From 8ec22d8221978381e443c9a58ef47467290d5a04 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:04:08 -0800 Subject: [PATCH 01/53] Regenerate dataproc client (#4634) --- .../cloud/dataproc/v1/ClusterControllerClient.java | 4 +++- .../google/cloud/dataproc/v1/JobControllerClient.java | 4 +++- .../dataproc/v1/WorkflowTemplateServiceClient.java | 4 +++- .../dataproc/v1beta2/ClusterControllerClient.java | 4 +++- .../cloud/dataproc/v1beta2/JobControllerClient.java | 4 +++- .../v1beta2/WorkflowTemplateServiceClient.java | 4 +++- .../google-cloud-dataproc/synth.metadata | 10 +++++----- 7 files changed, 23 insertions(+), 11 deletions(-) diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index e070013923ad..b9101f01916e 100644 --- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1.stub.ClusterControllerStub; import com.google.cloud.dataproc.v1.stub.ClusterControllerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -987,7 +988,8 @@ public static ApiFuture createAsync( public ListClustersPagedResponse apply(ListClustersPage input) { return new ListClustersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListClustersPagedResponse(ListClustersPage page) { diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java index 555008e4fdb4..d3dd62db263d 100644 --- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java +++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1.stub.JobControllerStub; import com.google.cloud.dataproc.v1.stub.JobControllerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -755,7 +756,8 @@ public static ApiFuture createAsync( public ListJobsPagedResponse apply(ListJobsPage input) { return new ListJobsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListJobsPagedResponse(ListJobsPage page) { diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index 56410542d18e..6910dfa5e5db 100644 --- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStub; import com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -1232,7 +1233,8 @@ public static ApiFuture createAsync( public ListWorkflowTemplatesPagedResponse apply(ListWorkflowTemplatesPage input) { return new ListWorkflowTemplatesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListWorkflowTemplatesPagedResponse(ListWorkflowTemplatesPage page) { diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java index 693bd46f35c2..c0433f2cacce 100644 --- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java +++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.stub.ClusterControllerStub; import com.google.cloud.dataproc.v1beta2.stub.ClusterControllerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -991,7 +992,8 @@ public static ApiFuture createAsync( public ListClustersPagedResponse apply(ListClustersPage input) { return new ListClustersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListClustersPagedResponse(ListClustersPage page) { diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java index 6899c213bf19..cbc7ee1d1cb7 100644 --- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java +++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.stub.JobControllerStub; import com.google.cloud.dataproc.v1beta2.stub.JobControllerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -758,7 +759,8 @@ public static ApiFuture createAsync( public ListJobsPagedResponse apply(ListJobsPage input) { return new ListJobsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListJobsPagedResponse(ListJobsPage page) { diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java index 64f9c5801c80..ef6683081b02 100644 --- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java +++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.stub.WorkflowTemplateServiceStub; import com.google.cloud.dataproc.v1beta2.stub.WorkflowTemplateServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -1177,7 +1178,8 @@ public static ApiFuture createAsync( public ListWorkflowTemplatesPagedResponse apply(ListWorkflowTemplatesPage input) { return new ListWorkflowTemplatesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListWorkflowTemplatesPagedResponse(ListWorkflowTemplatesPage page) { diff --git a/google-cloud-clients/google-cloud-dataproc/synth.metadata b/google-cloud-clients/google-cloud-dataproc/synth.metadata index ef0d3dcdbe16..451bf17b8513 100644 --- a/google-cloud-clients/google-cloud-dataproc/synth.metadata +++ b/google-cloud-clients/google-cloud-dataproc/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:40:02.252998Z", + "updateTime": "2019-03-06T08:39:37.112446Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 304fccf6acce10658950aab696cdc35f9d612e59 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:04:39 -0800 Subject: [PATCH 02/53] Regenerate dialogflow client (#4635) --- .../com/google/cloud/dialogflow/v2/AgentsClient.java | 4 +++- .../com/google/cloud/dialogflow/v2/ContextsClient.java | 4 +++- .../google/cloud/dialogflow/v2/EntityTypesClient.java | 4 +++- .../com/google/cloud/dialogflow/v2/IntentsClient.java | 4 +++- .../cloud/dialogflow/v2/SessionEntityTypesClient.java | 4 +++- .../google/cloud/dialogflow/v2beta1/AgentsClient.java | 4 +++- .../cloud/dialogflow/v2beta1/ContextsClient.java | 4 +++- .../cloud/dialogflow/v2beta1/DocumentsClient.java | 4 +++- .../cloud/dialogflow/v2beta1/EntityTypesClient.java | 4 +++- .../google/cloud/dialogflow/v2beta1/IntentsClient.java | 4 +++- .../cloud/dialogflow/v2beta1/KnowledgeBasesClient.java | 4 +++- .../dialogflow/v2beta1/SessionEntityTypesClient.java | 4 +++- .../google-cloud-dialogflow/synth.metadata | 10 +++++----- 13 files changed, 41 insertions(+), 17 deletions(-) diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index 86078ed10397..c4108db3f9bc 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2.stub.AgentsStub; import com.google.cloud.dialogflow.v2.stub.AgentsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -948,7 +949,8 @@ public static ApiFuture createAsync( public SearchAgentsPagedResponse apply(SearchAgentsPage input) { return new SearchAgentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private SearchAgentsPagedResponse(SearchAgentsPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java index 47ebfc78f660..af6bab205a0d 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2.stub.ContextsStub; import com.google.cloud.dialogflow.v2.stub.ContextsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -797,7 +798,8 @@ public static ApiFuture createAsync( public ListContextsPagedResponse apply(ListContextsPage input) { return new ListContextsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListContextsPagedResponse(ListContextsPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java index 3f56b68bd5dc..dc9fb2da4cbf 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2.stub.EntityTypesStub; import com.google.cloud.dialogflow.v2.stub.EntityTypesStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -1924,7 +1925,8 @@ public static ApiFuture createAsync( public ListEntityTypesPagedResponse apply(ListEntityTypesPage input) { return new ListEntityTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListEntityTypesPagedResponse(ListEntityTypesPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java index 2a8b9095b7b1..664607a48b23 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2.stub.IntentsStub; import com.google.cloud.dialogflow.v2.stub.IntentsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -1211,7 +1212,8 @@ public static ApiFuture createAsync( public ListIntentsPagedResponse apply(ListIntentsPage input) { return new ListIntentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListIntentsPagedResponse(ListIntentsPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java index 0e18a0a716cc..01b6469abb47 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2.stub.SessionEntityTypesStub; import com.google.cloud.dialogflow.v2.stub.SessionEntityTypesStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -722,7 +723,8 @@ public static ApiFuture createAsync( public ListSessionEntityTypesPagedResponse apply(ListSessionEntityTypesPage input) { return new ListSessionEntityTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSessionEntityTypesPagedResponse(ListSessionEntityTypesPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java index 3a605f5f5cf0..d46ad05a83cb 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.stub.AgentsStub; import com.google.cloud.dialogflow.v2beta1.stub.AgentsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -949,7 +950,8 @@ public static ApiFuture createAsync( public SearchAgentsPagedResponse apply(SearchAgentsPage input) { return new SearchAgentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private SearchAgentsPagedResponse(SearchAgentsPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java index d19d0a7e44bd..f4649b63d65e 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.stub.ContextsStub; import com.google.cloud.dialogflow.v2beta1.stub.ContextsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -831,7 +832,8 @@ public static ApiFuture createAsync( public ListContextsPagedResponse apply(ListContextsPage input) { return new ListContextsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListContextsPagedResponse(ListContextsPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java index ba2638bb9e9b..5386c6c8d714 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.stub.DocumentsStub; import com.google.cloud.dialogflow.v2beta1.stub.DocumentsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -735,7 +736,8 @@ public static ApiFuture createAsync( public ListDocumentsPagedResponse apply(ListDocumentsPage input) { return new ListDocumentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDocumentsPagedResponse(ListDocumentsPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java index 797c5ea48bc0..360b0437c3a3 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.stub.EntityTypesStub; import com.google.cloud.dialogflow.v2beta1.stub.EntityTypesStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -1924,7 +1925,8 @@ public static ApiFuture createAsync( public ListEntityTypesPagedResponse apply(ListEntityTypesPage input) { return new ListEntityTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListEntityTypesPagedResponse(ListEntityTypesPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java index a944178880e1..3289763b9139 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.stub.IntentsStub; import com.google.cloud.dialogflow.v2beta1.stub.IntentsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -1211,7 +1212,8 @@ public static ApiFuture createAsync( public ListIntentsPagedResponse apply(ListIntentsPage input) { return new ListIntentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListIntentsPagedResponse(ListIntentsPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java index 74ccd386a906..4ca6a8a625cc 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.stub.KnowledgeBasesStub; import com.google.cloud.dialogflow.v2beta1.stub.KnowledgeBasesStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -635,7 +636,8 @@ public static ApiFuture createAsync( public ListKnowledgeBasesPagedResponse apply(ListKnowledgeBasesPage input) { return new ListKnowledgeBasesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListKnowledgeBasesPagedResponse(ListKnowledgeBasesPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java index 78f3d667f485..feb59874d13a 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.v2beta1.stub.SessionEntityTypesStub; import com.google.cloud.dialogflow.v2beta1.stub.SessionEntityTypesStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -754,7 +755,8 @@ public static ApiFuture createAsync( public ListSessionEntityTypesPagedResponse apply(ListSessionEntityTypesPage input) { return new ListSessionEntityTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSessionEntityTypesPagedResponse(ListSessionEntityTypesPage page) { diff --git a/google-cloud-clients/google-cloud-dialogflow/synth.metadata b/google-cloud-clients/google-cloud-dialogflow/synth.metadata index e45dba790839..fdf7164f1334 100644 --- a/google-cloud-clients/google-cloud-dialogflow/synth.metadata +++ b/google-cloud-clients/google-cloud-dialogflow/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:41:11.500073Z", + "updateTime": "2019-03-06T08:41:27.247149Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 76a22eb60aa91d54c0ae4f8a89c8072678886c27 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:06:06 -0800 Subject: [PATCH 03/53] Regenerate firestore client (#4638) --- .../com/google/cloud/firestore/v1/FirestoreClient.java | 7 +++++-- .../cloud/firestore/v1beta1/FirestoreClient.java | 7 +++++-- .../google-cloud-firestore/synth.metadata | 10 +++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java index 857ce007cb94..e5cc08d0913c 100644 --- a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java @@ -30,6 +30,7 @@ import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.firestore.v1.stub.FirestoreStub; import com.google.cloud.firestore.v1.stub.FirestoreStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.firestore.v1.BatchGetDocumentsRequest; import com.google.firestore.v1.BatchGetDocumentsResponse; import com.google.firestore.v1.BeginTransactionRequest; @@ -1143,7 +1144,8 @@ public static ApiFuture createAsync( public ListDocumentsPagedResponse apply(ListDocumentsPage input) { return new ListDocumentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDocumentsPagedResponse(ListDocumentsPage page) { @@ -1223,7 +1225,8 @@ public static ApiFuture createAsync( public ListCollectionIdsPagedResponse apply(ListCollectionIdsPage input) { return new ListCollectionIdsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListCollectionIdsPagedResponse(ListCollectionIdsPage page) { diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/FirestoreClient.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/FirestoreClient.java index ce92bacdefb1..f0e2e21eb346 100644 --- a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/FirestoreClient.java +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/FirestoreClient.java @@ -30,6 +30,7 @@ import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.firestore.v1beta1.stub.FirestoreStub; import com.google.cloud.firestore.v1beta1.stub.FirestoreStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.firestore.v1beta1.BatchGetDocumentsRequest; import com.google.firestore.v1beta1.BatchGetDocumentsResponse; import com.google.firestore.v1beta1.BeginTransactionRequest; @@ -1143,7 +1144,8 @@ public static ApiFuture createAsync( public ListDocumentsPagedResponse apply(ListDocumentsPage input) { return new ListDocumentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDocumentsPagedResponse(ListDocumentsPage page) { @@ -1223,7 +1225,8 @@ public static ApiFuture createAsync( public ListCollectionIdsPagedResponse apply(ListCollectionIdsPage input) { return new ListCollectionIdsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListCollectionIdsPagedResponse(ListCollectionIdsPage page) { diff --git a/google-cloud-clients/google-cloud-firestore/synth.metadata b/google-cloud-clients/google-cloud-firestore/synth.metadata index 3df6ec3fab02..d655db71d4b2 100644 --- a/google-cloud-clients/google-cloud-firestore/synth.metadata +++ b/google-cloud-clients/google-cloud-firestore/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:44:26.233377Z", + "updateTime": "2019-03-06T08:44:01.706383Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 45f3a1f4107841e39f6a82391b5e30b5920ebb89 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:06:30 -0800 Subject: [PATCH 04/53] Regenerate iot client (#4639) --- .../com/google/cloud/iot/v1/DeviceManagerClient.java | 7 +++++-- google-cloud-clients/google-cloud-iot/synth.metadata | 10 +++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/google-cloud-clients/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java b/google-cloud-clients/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java index 91a4d4fca8ff..899708138c53 100644 --- a/google-cloud-clients/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java +++ b/google-cloud-clients/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.iot.v1.stub.DeviceManagerStub; import com.google.cloud.iot.v1.stub.DeviceManagerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -2289,7 +2290,8 @@ public static ApiFuture createAsync( public ListDeviceRegistriesPagedResponse apply(ListDeviceRegistriesPage input) { return new ListDeviceRegistriesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDeviceRegistriesPagedResponse(ListDeviceRegistriesPage page) { @@ -2376,7 +2378,8 @@ public static ApiFuture createAsync( public ListDevicesPagedResponse apply(ListDevicesPage input) { return new ListDevicesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDevicesPagedResponse(ListDevicesPage page) { diff --git a/google-cloud-clients/google-cloud-iot/synth.metadata b/google-cloud-clients/google-cloud-iot/synth.metadata index 225cdd01fc39..986a9c0455fb 100644 --- a/google-cloud-clients/google-cloud-iot/synth.metadata +++ b/google-cloud-clients/google-cloud-iot/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:44:30.879833Z", + "updateTime": "2019-03-06T08:45:02.464959Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 2b69989a459e4c1f229df878476917c1dbe2f74f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:06:59 -0800 Subject: [PATCH 05/53] Regenerate monitoring client (#4642) --- .../cloud/monitoring/v3/AlertPolicyServiceClient.java | 4 +++- .../google/cloud/monitoring/v3/GroupServiceClient.java | 7 +++++-- .../cloud/monitoring/v3/MetricServiceClient.java | 10 +++++++--- .../v3/NotificationChannelServiceClient.java | 7 +++++-- .../cloud/monitoring/v3/UptimeCheckServiceClient.java | 7 +++++-- .../google-cloud-monitoring/synth.metadata | 10 +++++----- 6 files changed, 30 insertions(+), 15 deletions(-) diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java index 8a1c87361b17..6a48c01fcb60 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.monitoring.v3.stub.AlertPolicyServiceStub; import com.google.cloud.monitoring.v3.stub.AlertPolicyServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.AlertPolicy; import com.google.monitoring.v3.AlertPolicyName; import com.google.monitoring.v3.CreateAlertPolicyRequest; @@ -758,7 +759,8 @@ public static ApiFuture createAsync( public ListAlertPoliciesPagedResponse apply(ListAlertPoliciesPage input) { return new ListAlertPoliciesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListAlertPoliciesPagedResponse(ListAlertPoliciesPage page) { diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java index 3badeb060a5a..f8d3578d0d06 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.monitoring.v3.stub.GroupServiceStub; import com.google.cloud.monitoring.v3.stub.GroupServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.CreateGroupRequest; import com.google.monitoring.v3.DeleteGroupRequest; import com.google.monitoring.v3.GetGroupRequest; @@ -790,7 +791,8 @@ public static ApiFuture createAsync( public ListGroupsPagedResponse apply(ListGroupsPage input) { return new ListGroupsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListGroupsPagedResponse(ListGroupsPage page) { @@ -869,7 +871,8 @@ public static ApiFuture createAsync( public ListGroupMembersPagedResponse apply(ListGroupMembersPage input) { return new ListGroupMembersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListGroupMembersPagedResponse(ListGroupMembersPage page) { diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java index a929908add2f..913183e33640 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.monitoring.v3.stub.MetricServiceStub; import com.google.cloud.monitoring.v3.stub.MetricServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.CreateMetricDescriptorRequest; import com.google.monitoring.v3.CreateTimeSeriesRequest; import com.google.monitoring.v3.DeleteMetricDescriptorRequest; @@ -1239,7 +1240,8 @@ public ListMonitoredResourceDescriptorsPagedResponse apply( ListMonitoredResourceDescriptorsPage input) { return new ListMonitoredResourceDescriptorsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListMonitoredResourceDescriptorsPagedResponse( @@ -1337,7 +1339,8 @@ public static ApiFuture createAsync( public ListMetricDescriptorsPagedResponse apply(ListMetricDescriptorsPage input) { return new ListMetricDescriptorsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListMetricDescriptorsPagedResponse(ListMetricDescriptorsPage page) { @@ -1424,7 +1427,8 @@ public static ApiFuture createAsync( public ListTimeSeriesPagedResponse apply(ListTimeSeriesPage input) { return new ListTimeSeriesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTimeSeriesPagedResponse(ListTimeSeriesPage page) { diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java index 82b00915caa8..ec971fb6543c 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.monitoring.v3.stub.NotificationChannelServiceStub; import com.google.cloud.monitoring.v3.stub.NotificationChannelServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.CreateNotificationChannelRequest; import com.google.monitoring.v3.DeleteNotificationChannelRequest; import com.google.monitoring.v3.GetNotificationChannelDescriptorRequest; @@ -1043,7 +1044,8 @@ public ListNotificationChannelDescriptorsPagedResponse apply( ListNotificationChannelDescriptorsPage input) { return new ListNotificationChannelDescriptorsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListNotificationChannelDescriptorsPagedResponse( @@ -1144,7 +1146,8 @@ public static ApiFuture createAsync( public ListNotificationChannelsPagedResponse apply(ListNotificationChannelsPage input) { return new ListNotificationChannelsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListNotificationChannelsPagedResponse(ListNotificationChannelsPage page) { diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java index c812cdbc41c5..cfe1554df34f 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.monitoring.v3.stub.UptimeCheckServiceStub; import com.google.cloud.monitoring.v3.stub.UptimeCheckServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.monitoring.v3.CreateUptimeCheckConfigRequest; import com.google.monitoring.v3.DeleteUptimeCheckConfigRequest; import com.google.monitoring.v3.GetUptimeCheckConfigRequest; @@ -714,7 +715,8 @@ public static ApiFuture createAsync( public ListUptimeCheckConfigsPagedResponse apply(ListUptimeCheckConfigsPage input) { return new ListUptimeCheckConfigsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListUptimeCheckConfigsPagedResponse(ListUptimeCheckConfigsPage page) { @@ -804,7 +806,8 @@ public static ApiFuture createAsync( public ListUptimeCheckIpsPagedResponse apply(ListUptimeCheckIpsPage input) { return new ListUptimeCheckIpsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListUptimeCheckIpsPagedResponse(ListUptimeCheckIpsPage page) { diff --git a/google-cloud-clients/google-cloud-monitoring/synth.metadata b/google-cloud-clients/google-cloud-monitoring/synth.metadata index 3a6db89a9272..03c6c0e07a28 100644 --- a/google-cloud-clients/google-cloud-monitoring/synth.metadata +++ b/google-cloud-clients/google-cloud-monitoring/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:47:14.055530Z", + "updateTime": "2019-03-06T08:47:52.711546Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From b424e12fad3234b940e7a789381e566d21adc4fc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:08:13 -0800 Subject: [PATCH 06/53] Regenerate bigtable client (#4631) --- .../admin/v2/BaseBigtableInstanceAdminClient.java | 4 +++- .../admin/v2/BaseBigtableTableAdminClient.java | 7 +++++-- .../google-cloud-bigtable/synth.metadata | 10 +++++----- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java index 45dc3b20eb15..17868a28b00d 100644 --- a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java +++ b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java @@ -58,6 +58,7 @@ import com.google.bigtable.admin.v2.UpdateInstanceMetadata; import com.google.cloud.bigtable.admin.v2.stub.BigtableInstanceAdminStub; import com.google.cloud.bigtable.admin.v2.stub.BigtableInstanceAdminStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -2130,7 +2131,8 @@ public static ApiFuture createAsync( public ListAppProfilesPagedResponse apply(ListAppProfilesPage input) { return new ListAppProfilesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListAppProfilesPagedResponse(ListAppProfilesPage page) { diff --git a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java index 25ba1c283c43..6b49ff4ecc38 100644 --- a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java +++ b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java @@ -54,6 +54,7 @@ import com.google.bigtable.admin.v2.TableName; import com.google.cloud.bigtable.admin.v2.stub.BigtableTableAdminStub; import com.google.cloud.bigtable.admin.v2.stub.BigtableTableAdminStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -1851,7 +1852,8 @@ public static ApiFuture createAsync( public ListTablesPagedResponse apply(ListTablesPage input) { return new ListTablesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTablesPagedResponse(ListTablesPage page) { @@ -1930,7 +1932,8 @@ public static ApiFuture createAsync( public ListSnapshotsPagedResponse apply(ListSnapshotsPage input) { return new ListSnapshotsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSnapshotsPagedResponse(ListSnapshotsPage page) { diff --git a/google-cloud-clients/google-cloud-bigtable/synth.metadata b/google-cloud-clients/google-cloud-bigtable/synth.metadata index 30fd82045573..dc14981ee12e 100644 --- a/google-cloud-clients/google-cloud-bigtable/synth.metadata +++ b/google-cloud-clients/google-cloud-bigtable/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:35:32.180936Z", + "updateTime": "2019-03-06T08:35:24.239873Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From a4f1ace9ef322951fdceb0363b0892e9c01edf98 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:09:03 -0800 Subject: [PATCH 07/53] Regenerate errorreporting client (#4637) --- .../v1beta1/ErrorStatsServiceClient.java | 7 +++++-- .../google-cloud-errorreporting/synth.metadata | 10 +++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/ErrorStatsServiceClient.java b/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/ErrorStatsServiceClient.java index c5bbe82536c3..8b04aa1792a7 100644 --- a/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/ErrorStatsServiceClient.java +++ b/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/ErrorStatsServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.errorreporting.v1beta1.stub.ErrorStatsServiceStub; import com.google.cloud.errorreporting.v1beta1.stub.ErrorStatsServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest; import com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse; import com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent; @@ -622,7 +623,8 @@ public static ApiFuture createAsync( public ListGroupStatsPagedResponse apply(ListGroupStatsPage input) { return new ListGroupStatsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListGroupStatsPagedResponse(ListGroupStatsPage page) { @@ -702,7 +704,8 @@ public static ApiFuture createAsync( public ListEventsPagedResponse apply(ListEventsPage input) { return new ListEventsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListEventsPagedResponse(ListEventsPage page) { diff --git a/google-cloud-clients/google-cloud-errorreporting/synth.metadata b/google-cloud-clients/google-cloud-errorreporting/synth.metadata index 348764478b17..ba0e1701952f 100644 --- a/google-cloud-clients/google-cloud-errorreporting/synth.metadata +++ b/google-cloud-clients/google-cloud-errorreporting/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:42:26.234719Z", + "updateTime": "2019-03-06T08:42:48.951032Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From e4a3a152bc7bbf122a8949695897974fe0809f94 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:09:42 -0800 Subject: [PATCH 08/53] Regenerate pubsub client (#4643) --- .../cloud/pubsub/v1/SubscriptionAdminClient.java | 7 +++++-- .../com/google/cloud/pubsub/v1/TopicAdminClient.java | 7 +++++-- .../google-cloud-pubsub/synth.metadata | 10 +++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index aad805519f65..bd640c1b9c56 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.pubsub.v1.stub.SubscriberStub; import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -2256,7 +2257,8 @@ public static ApiFuture createAsync( public ListSubscriptionsPagedResponse apply(ListSubscriptionsPage input) { return new ListSubscriptionsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSubscriptionsPagedResponse(ListSubscriptionsPage page) { @@ -2340,7 +2342,8 @@ public static ApiFuture createAsync( public ListSnapshotsPagedResponse apply(ListSnapshotsPage input) { return new ListSnapshotsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSnapshotsPagedResponse(ListSnapshotsPage page) { diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 0a26402ade29..d1bd8ee18c34 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -29,6 +29,7 @@ import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; import com.google.common.base.Function; import com.google.common.collect.Iterables; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -1193,7 +1194,8 @@ public static ApiFuture createAsync( public ListTopicsPagedResponse apply(ListTopicsPage input) { return new ListTopicsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTopicsPagedResponse(ListTopicsPage page) { @@ -1272,7 +1274,8 @@ public static ApiFuture createAsync( public ListTopicSubscriptionsPagedResponse apply(ListTopicSubscriptionsPage input) { return new ListTopicSubscriptionsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTopicSubscriptionsPagedResponse(ListTopicSubscriptionsPage page) { diff --git a/google-cloud-clients/google-cloud-pubsub/synth.metadata b/google-cloud-clients/google-cloud-pubsub/synth.metadata index 961e55caa402..ab2a20fb7dbb 100644 --- a/google-cloud-clients/google-cloud-pubsub/synth.metadata +++ b/google-cloud-clients/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:49:22.807745Z", + "updateTime": "2019-03-06T08:48:55.349052Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 783848ccee5755d71a4ec9debe1eabbaba228904 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:10:52 -0800 Subject: [PATCH 09/53] Regenerate automl client (#4629) --- .../com/google/cloud/automl/v1beta1/AutoMlClient.java | 10 +++++++--- .../google-cloud-automl/synth.metadata | 10 +++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java index 1bff23d0f233..c3ee2a7151b0 100644 --- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java +++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.automl.v1beta1.stub.AutoMlStub; import com.google.cloud.automl.v1beta1.stub.AutoMlStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -1882,7 +1883,8 @@ public static ApiFuture createAsync( public ListDatasetsPagedResponse apply(ListDatasetsPage input) { return new ListDatasetsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDatasetsPagedResponse(ListDatasetsPage page) { @@ -1961,7 +1963,8 @@ public static ApiFuture createAsync( public ListModelsPagedResponse apply(ListModelsPage input) { return new ListModelsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListModelsPagedResponse(ListModelsPage page) { @@ -2041,7 +2044,8 @@ public static ApiFuture createAsync( public ListModelEvaluationsPagedResponse apply(ListModelEvaluationsPage input) { return new ListModelEvaluationsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListModelEvaluationsPagedResponse(ListModelEvaluationsPage page) { diff --git a/google-cloud-clients/google-cloud-automl/synth.metadata b/google-cloud-clients/google-cloud-automl/synth.metadata index fed5decaef55..4a1a9fc30407 100644 --- a/google-cloud-clients/google-cloud-automl/synth.metadata +++ b/google-cloud-clients/google-cloud-automl/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:33:44.574653Z", + "updateTime": "2019-03-06T08:33:24.144648Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 55aae57b0f0a90bf9519c0fdda937cde73bb4b3e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:11:41 -0800 Subject: [PATCH 10/53] Regenerate redis client (#4644) --- .../com/google/cloud/redis/v1/CloudRedisClient.java | 4 +++- .../google/cloud/redis/v1beta1/CloudRedisClient.java | 4 +++- google-cloud-clients/google-cloud-redis/synth.metadata | 10 +++++----- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java index a59a277fb035..027acd1e61de 100644 --- a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.redis.v1.stub.CloudRedisStub; import com.google.cloud.redis.v1.stub.CloudRedisStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -1400,7 +1401,8 @@ public static ApiFuture createAsync( public ListInstancesPagedResponse apply(ListInstancesPage input) { return new ListInstancesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInstancesPagedResponse(ListInstancesPage page) { diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java index cc170adda598..8104b79bb1a9 100644 --- a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.redis.v1beta1.stub.CloudRedisStub; import com.google.cloud.redis.v1beta1.stub.CloudRedisStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Any; @@ -1022,7 +1023,8 @@ public static ApiFuture createAsync( public ListInstancesPagedResponse apply(ListInstancesPage input) { return new ListInstancesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInstancesPagedResponse(ListInstancesPage page) { diff --git a/google-cloud-clients/google-cloud-redis/synth.metadata b/google-cloud-clients/google-cloud-redis/synth.metadata index c0d811a00f3a..a8597d37c5e0 100644 --- a/google-cloud-clients/google-cloud-redis/synth.metadata +++ b/google-cloud-clients/google-cloud-redis/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:48:54.937413Z", + "updateTime": "2019-03-06T08:49:45.177637Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From d90db2cbc7c14edf448425bba5226af01a2b65f3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:12:54 -0800 Subject: [PATCH 11/53] Regenerate bigquerydatatransfer client (#4630) --- .../datatransfer/v1/DataTransferServiceClient.java | 13 +++++++++---- .../synth.metadata | 10 +++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java b/google-cloud-clients/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java index 953859658182..fd93def9c89e 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.bigquery.datatransfer.v1.stub.DataTransferServiceStub; import com.google.cloud.bigquery.datatransfer.v1.stub.DataTransferServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -1639,7 +1640,8 @@ public static ApiFuture createAsync( public ListDataSourcesPagedResponse apply(ListDataSourcesPage input) { return new ListDataSourcesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDataSourcesPagedResponse(ListDataSourcesPage page) { @@ -1721,7 +1723,8 @@ public static ApiFuture createAsync( public ListTransferConfigsPagedResponse apply(ListTransferConfigsPage input) { return new ListTransferConfigsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTransferConfigsPagedResponse(ListTransferConfigsPage page) { @@ -1808,7 +1811,8 @@ public static ApiFuture createAsync( public ListTransferRunsPagedResponse apply(ListTransferRunsPage input) { return new ListTransferRunsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTransferRunsPagedResponse(ListTransferRunsPage page) { @@ -1889,7 +1893,8 @@ public static ApiFuture createAsync( public ListTransferLogsPagedResponse apply(ListTransferLogsPage input) { return new ListTransferLogsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTransferLogsPagedResponse(ListTransferLogsPage page) { diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.metadata b/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.metadata index 8f27dc8c2c68..8fd835b030f1 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.metadata +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:34:26.897101Z", + "updateTime": "2019-03-06T08:33:58.205669Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 766a974d2e1e059c7c1d41ddc18ec25510bc5915 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:13:48 -0800 Subject: [PATCH 12/53] Regenerate scheduler client (#4645) --- .../cloud/scheduler/v1beta1/CloudSchedulerClient.java | 4 +++- .../google-cloud-scheduler/synth.metadata | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java index f933c5f97907..c9942ca9a4c5 100644 --- a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java +++ b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.scheduler.v1beta1.stub.CloudSchedulerStub; import com.google.cloud.scheduler.v1beta1.stub.CloudSchedulerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -1061,7 +1062,8 @@ public static ApiFuture createAsync( public ListJobsPagedResponse apply(ListJobsPage input) { return new ListJobsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListJobsPagedResponse(ListJobsPage page) { diff --git a/google-cloud-clients/google-cloud-scheduler/synth.metadata b/google-cloud-clients/google-cloud-scheduler/synth.metadata index 912172653581..3fa17db46d30 100644 --- a/google-cloud-clients/google-cloud-scheduler/synth.metadata +++ b/google-cloud-clients/google-cloud-scheduler/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:50:41.817834Z", + "updateTime": "2019-03-06T08:50:15.033556Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 4f232dc8698a6a097a74cbf997c0cede1699ad6c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:17:05 -0800 Subject: [PATCH 13/53] Regenerate kms client (#4640) --- .../cloud/kms/v1/KeyManagementServiceClient.java | 10 +++++++--- google-cloud-clients/google-cloud-kms/synth.metadata | 10 +++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java index d2c7c7235d97..9e4a9cda51d7 100644 --- a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.kms.v1.stub.KeyManagementServiceStub; import com.google.cloud.kms.v1.stub.KeyManagementServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -2852,7 +2853,8 @@ public static ApiFuture createAsync( public ListKeyRingsPagedResponse apply(ListKeyRingsPage input) { return new ListKeyRingsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListKeyRingsPagedResponse(ListKeyRingsPage page) { @@ -2931,7 +2933,8 @@ public static ApiFuture createAsync( public ListCryptoKeysPagedResponse apply(ListCryptoKeysPage input) { return new ListCryptoKeysPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListCryptoKeysPagedResponse(ListCryptoKeysPage page) { @@ -3012,7 +3015,8 @@ public static ApiFuture createAsync( public ListCryptoKeyVersionsPagedResponse apply(ListCryptoKeyVersionsPage input) { return new ListCryptoKeyVersionsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListCryptoKeyVersionsPagedResponse(ListCryptoKeyVersionsPage page) { diff --git a/google-cloud-clients/google-cloud-kms/synth.metadata b/google-cloud-clients/google-cloud-kms/synth.metadata index 8d7e147ca73e..96f7ab195f8d 100644 --- a/google-cloud-clients/google-cloud-kms/synth.metadata +++ b/google-cloud-clients/google-cloud-kms/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:45:03.731774Z", + "updateTime": "2019-03-06T08:45:42.757794Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 2a66da1ae8bcf242e6b29308521515ab2da4107a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:24:34 -0800 Subject: [PATCH 14/53] Regenerate vision client (#4650) --- .../google/cloud/vision/v1/ProductSearchClient.java | 13 +++++++++---- .../cloud/vision/v1p3beta1/ProductSearchClient.java | 13 +++++++++---- .../cloud/vision/v1p4beta1/ProductSearchClient.java | 13 +++++++++---- .../google-cloud-vision/synth.metadata | 10 +++++----- 4 files changed, 32 insertions(+), 17 deletions(-) diff --git a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java index 85b6559eca0e..ed164149d6a6 100644 --- a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java +++ b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java @@ -30,6 +30,7 @@ import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.vision.v1.stub.ProductSearchStub; import com.google.cloud.vision.v1.stub.ProductSearchStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -2826,7 +2827,8 @@ public static ApiFuture createAsync( public ListProductsPagedResponse apply(ListProductsPage input) { return new ListProductsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListProductsPagedResponse(ListProductsPage page) { @@ -2906,7 +2908,8 @@ public static ApiFuture createAsync( public ListReferenceImagesPagedResponse apply(ListReferenceImagesPage input) { return new ListReferenceImagesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListReferenceImagesPagedResponse(ListReferenceImagesPage page) { @@ -2993,7 +2996,8 @@ public static ApiFuture createAsync( public ListProductSetsPagedResponse apply(ListProductSetsPage input) { return new ListProductSetsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListProductSetsPagedResponse(ListProductSetsPage page) { @@ -3075,7 +3079,8 @@ public static ApiFuture createAsync( public ListProductsInProductSetPagedResponse apply(ListProductsInProductSetPage input) { return new ListProductsInProductSetPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListProductsInProductSetPagedResponse(ListProductsInProductSetPage page) { diff --git a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java index 9b78a9544756..ef473ad65df8 100644 --- a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java +++ b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.vision.v1p3beta1.stub.ProductSearchStub; import com.google.cloud.vision.v1p3beta1.stub.ProductSearchStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -2709,7 +2710,8 @@ public static ApiFuture createAsync( public ListProductSetsPagedResponse apply(ListProductSetsPage input) { return new ListProductSetsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListProductSetsPagedResponse(ListProductSetsPage page) { @@ -2790,7 +2792,8 @@ public static ApiFuture createAsync( public ListProductsPagedResponse apply(ListProductsPage input) { return new ListProductsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListProductsPagedResponse(ListProductsPage page) { @@ -2870,7 +2873,8 @@ public static ApiFuture createAsync( public ListReferenceImagesPagedResponse apply(ListReferenceImagesPage input) { return new ListReferenceImagesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListReferenceImagesPagedResponse(ListReferenceImagesPage page) { @@ -2958,7 +2962,8 @@ public static ApiFuture createAsync( public ListProductsInProductSetPagedResponse apply(ListProductsInProductSetPage input) { return new ListProductsInProductSetPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListProductsInProductSetPagedResponse(ListProductsInProductSetPage page) { diff --git a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java index ddfcd1ee130b..0a81388e65d9 100644 --- a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java +++ b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.vision.v1p4beta1.stub.ProductSearchStub; import com.google.cloud.vision.v1p4beta1.stub.ProductSearchStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -2709,7 +2710,8 @@ public static ApiFuture createAsync( public ListProductSetsPagedResponse apply(ListProductSetsPage input) { return new ListProductSetsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListProductSetsPagedResponse(ListProductSetsPage page) { @@ -2790,7 +2792,8 @@ public static ApiFuture createAsync( public ListProductsPagedResponse apply(ListProductsPage input) { return new ListProductsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListProductsPagedResponse(ListProductsPage page) { @@ -2870,7 +2873,8 @@ public static ApiFuture createAsync( public ListReferenceImagesPagedResponse apply(ListReferenceImagesPage input) { return new ListReferenceImagesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListReferenceImagesPagedResponse(ListReferenceImagesPage page) { @@ -2958,7 +2962,8 @@ public static ApiFuture createAsync( public ListProductsInProductSetPagedResponse apply(ListProductsInProductSetPage input) { return new ListProductsInProductSetPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListProductsInProductSetPagedResponse(ListProductsInProductSetPage page) { diff --git a/google-cloud-clients/google-cloud-vision/synth.metadata b/google-cloud-clients/google-cloud-vision/synth.metadata index 9a276c36a8ea..d750bebb574d 100644 --- a/google-cloud-clients/google-cloud-vision/synth.metadata +++ b/google-cloud-clients/google-cloud-vision/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-05T08:58:11.767522Z", + "updateTime": "2019-03-06T08:59:16.194083Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b4a22569c88f1f0444e889d8139ddacb799f287c", - "internalRef": "236712632" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 12871b256fb3c5fc24294e40fb4be0f28ae3fd56 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:27:46 -0800 Subject: [PATCH 15/53] Regenerate websecurityscanner client (#4651) --- .../v1alpha/WebSecurityScannerClient.java | 13 +++++++++---- .../google-cloud-websecurityscanner/synth.metadata | 10 +++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/google-cloud-clients/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java b/google-cloud-clients/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java index 1fb2de0943bd..170be6b2fc8c 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java +++ b/google-cloud-clients/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java @@ -28,6 +28,7 @@ import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.websecurityscanner.v1alpha.stub.WebSecurityScannerStub; import com.google.cloud.websecurityscanner.v1alpha.stub.WebSecurityScannerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -1391,7 +1392,8 @@ public static ApiFuture createAsync( public ListScanConfigsPagedResponse apply(ListScanConfigsPage input) { return new ListScanConfigsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListScanConfigsPagedResponse(ListScanConfigsPage page) { @@ -1472,7 +1474,8 @@ public static ApiFuture createAsync( public ListScanRunsPagedResponse apply(ListScanRunsPage input) { return new ListScanRunsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListScanRunsPagedResponse(ListScanRunsPage page) { @@ -1551,7 +1554,8 @@ public static ApiFuture createAsync( public ListCrawledUrlsPagedResponse apply(ListCrawledUrlsPage input) { return new ListCrawledUrlsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListCrawledUrlsPagedResponse(ListCrawledUrlsPage page) { @@ -1632,7 +1636,8 @@ public static ApiFuture createAsync( public ListFindingsPagedResponse apply(ListFindingsPage input) { return new ListFindingsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListFindingsPagedResponse(ListFindingsPage page) { diff --git a/google-cloud-clients/google-cloud-websecurityscanner/synth.metadata b/google-cloud-clients/google-cloud-websecurityscanner/synth.metadata index 382e59633492..a73ecb01f2e6 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/synth.metadata +++ b/google-cloud-clients/google-cloud-websecurityscanner/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T09:00:03.592153Z", + "updateTime": "2019-03-06T08:59:50.869051Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 56f1449db15f923a81ba947ca5e2682f1ecc5650 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:29:05 -0800 Subject: [PATCH 16/53] Regenerate containeranalysis client (#4633) --- .../v1beta1/ContainerAnalysisV1Beta1Client.java | 4 +++- .../v1beta1/GrafeasV1Beta1Client.java | 10 +++++++--- .../google-cloud-containeranalysis/synth.metadata | 10 +++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java b/google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java index d0cd434b8acd..dcccf482e84c 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java +++ b/google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.devtools.containeranalysis.v1beta1.stub.ContainerAnalysisV1Beta1Stub; import com.google.cloud.devtools.containeranalysis.v1beta1.stub.ContainerAnalysisV1Beta1StubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.containeranalysis.v1beta1.GetScanConfigRequest; import com.google.containeranalysis.v1beta1.IamResourceName; import com.google.containeranalysis.v1beta1.ListScanConfigsRequest; @@ -942,7 +943,8 @@ public static ApiFuture createAsync( public ListScanConfigsPagedResponse apply(ListScanConfigsPage input) { return new ListScanConfigsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListScanConfigsPagedResponse(ListScanConfigsPage page) { diff --git a/google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Client.java b/google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Client.java index bf9ecf347ff4..fbc4144231e3 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Client.java +++ b/google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Client.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.devtools.containeranalysis.v1beta1.stub.GrafeasV1Beta1Stub; import com.google.cloud.devtools.containeranalysis.v1beta1.stub.GrafeasV1Beta1StubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.containeranalysis.v1beta1.NoteName; import com.google.containeranalysis.v1beta1.OccurrenceName; import com.google.containeranalysis.v1beta1.ProjectName; @@ -1895,7 +1896,8 @@ public static ApiFuture createAsync( public ListOccurrencesPagedResponse apply(ListOccurrencesPage input) { return new ListOccurrencesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListOccurrencesPagedResponse(ListOccurrencesPage page) { @@ -1972,7 +1974,8 @@ public static ApiFuture createAsync( public ListNotesPagedResponse apply(ListNotesPage input) { return new ListNotesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListNotesPagedResponse(ListNotesPage page) { @@ -2047,7 +2050,8 @@ public static ApiFuture createAsync( public ListNoteOccurrencesPagedResponse apply(ListNoteOccurrencesPage input) { return new ListNoteOccurrencesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListNoteOccurrencesPagedResponse(ListNoteOccurrencesPage page) { diff --git a/google-cloud-clients/google-cloud-containeranalysis/synth.metadata b/google-cloud-clients/google-cloud-containeranalysis/synth.metadata index fa998ed35dff..8ad97fed5aba 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/synth.metadata +++ b/google-cloud-clients/google-cloud-containeranalysis/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:38:14.123641Z", + "updateTime": "2019-03-06T08:38:24.918772Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 37a44f8e755811d142d00f57cbd7b0fb0fe423cf Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 02:08:19 -0800 Subject: [PATCH 17/53] Regenerate dlp client (#4636) --- .../google/cloud/dlp/v2/DlpServiceClient.java | 16 +++++++++++----- .../google-cloud-dlp/synth.metadata | 10 +++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/google-cloud-clients/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java b/google-cloud-clients/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java index c19ea07fae1f..2cd3cf4b6ff8 100644 --- a/google-cloud-clients/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java +++ b/google-cloud-clients/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dlp.v2.stub.DlpServiceStub; import com.google.cloud.dlp.v2.stub.DlpServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.privacy.dlp.v2.CancelDlpJobRequest; import com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.CreateDlpJobRequest; @@ -1915,7 +1916,8 @@ public static ApiFuture createAsync( public ListInspectTemplatesPagedResponse apply(ListInspectTemplatesPage input) { return new ListInspectTemplatesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInspectTemplatesPagedResponse(ListInspectTemplatesPage page) { @@ -2004,7 +2006,8 @@ public static ApiFuture createAsync( public ListDeidentifyTemplatesPagedResponse apply(ListDeidentifyTemplatesPage input) { return new ListDeidentifyTemplatesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDeidentifyTemplatesPagedResponse(ListDeidentifyTemplatesPage page) { @@ -2094,7 +2097,8 @@ public static ApiFuture createAsync( public ListDlpJobsPagedResponse apply(ListDlpJobsPage input) { return new ListDlpJobsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDlpJobsPagedResponse(ListDlpJobsPage page) { @@ -2173,7 +2177,8 @@ public static ApiFuture createAsync( public ListJobTriggersPagedResponse apply(ListJobTriggersPage input) { return new ListJobTriggersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListJobTriggersPagedResponse(ListJobTriggersPage page) { @@ -2255,7 +2260,8 @@ public static ApiFuture createAsync( public ListStoredInfoTypesPagedResponse apply(ListStoredInfoTypesPage input) { return new ListStoredInfoTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListStoredInfoTypesPagedResponse(ListStoredInfoTypesPage page) { diff --git a/google-cloud-clients/google-cloud-dlp/synth.metadata b/google-cloud-clients/google-cloud-dlp/synth.metadata index 27448efd927b..a0cba20d7c2a 100644 --- a/google-cloud-clients/google-cloud-dlp/synth.metadata +++ b/google-cloud-clients/google-cloud-dlp/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:42:40.608536Z", + "updateTime": "2019-03-06T08:42:16.001412Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 99226a810b142c0411cce074fca60c8e38f4d135 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 02:24:32 -0800 Subject: [PATCH 18/53] Regenerate trace client (#4649) --- .../com/google/cloud/trace/v1/TraceServiceClient.java | 4 +++- google-cloud-clients/google-cloud-trace/synth.metadata | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/google-cloud-clients/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java b/google-cloud-clients/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java index 005dd1629282..0d45805d57e8 100644 --- a/google-cloud-clients/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java +++ b/google-cloud-clients/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.trace.v1.stub.TraceServiceStub; import com.google.cloud.trace.v1.stub.TraceServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.devtools.cloudtrace.v1.GetTraceRequest; import com.google.devtools.cloudtrace.v1.ListTracesRequest; import com.google.devtools.cloudtrace.v1.ListTracesResponse; @@ -472,7 +473,8 @@ public static ApiFuture createAsync( public ListTracesPagedResponse apply(ListTracesPage input) { return new ListTracesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTracesPagedResponse(ListTracesPage page) { diff --git a/google-cloud-clients/google-cloud-trace/synth.metadata b/google-cloud-clients/google-cloud-trace/synth.metadata index ecb6d1165fa9..eadc17f8146d 100644 --- a/google-cloud-clients/google-cloud-trace/synth.metadata +++ b/google-cloud-clients/google-cloud-trace/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:54:00.680348Z", + "updateTime": "2019-03-06T08:55:06.586413Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 103ba85d829ab15b2140f3467a54f444143b5bb6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 02:27:45 -0800 Subject: [PATCH 19/53] Regenerate spanner client (#4647) --- .../com/google/spanner/v1/SpannerGrpc.java | 218 +- .../spanner/v1/ExecuteBatchDmlRequest.java | 3128 +++++++++++++++++ .../v1/ExecuteBatchDmlRequestOrBuilder.java | 154 + .../spanner/v1/ExecuteBatchDmlResponse.java | 1333 +++++++ .../v1/ExecuteBatchDmlResponseOrBuilder.java | 120 + .../com/google/spanner/v1/SpannerProto.java | 347 +- .../proto/google/spanner/v1/spanner.proto | 125 +- .../database/v1/DatabaseAdminClient.java | 4 +- .../instance/v1/InstanceAdminClient.java | 7 +- .../cloud/spanner/v1/SpannerClient.java | 108 +- .../cloud/spanner/v1/SpannerSettings.java | 14 + .../spanner/v1/stub/GrpcSpannerStub.java | 26 + .../cloud/spanner/v1/stub/SpannerStub.java | 6 + .../spanner/v1/stub/SpannerStubSettings.java | 29 + .../cloud/spanner/v1/MockSpannerImpl.java | 17 + .../google-cloud-spanner/synth.metadata | 10 +- 16 files changed, 5482 insertions(+), 164 deletions(-) create mode 100644 google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequest.java create mode 100644 google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponse.java create mode 100644 google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponseOrBuilder.java diff --git a/google-api-grpc/grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java b/google-api-grpc/grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java index 723de5ed800f..b972e19f5dc4 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java +++ b/google-api-grpc/grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java @@ -325,6 +325,61 @@ private SpannerGrpc() {} return getExecuteStreamingSqlMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getExecuteBatchDmlMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.spanner.v1.ExecuteBatchDmlRequest, + com.google.spanner.v1.ExecuteBatchDmlResponse> + METHOD_EXECUTE_BATCH_DML = getExecuteBatchDmlMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.spanner.v1.ExecuteBatchDmlRequest, + com.google.spanner.v1.ExecuteBatchDmlResponse> + getExecuteBatchDmlMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.spanner.v1.ExecuteBatchDmlRequest, + com.google.spanner.v1.ExecuteBatchDmlResponse> + getExecuteBatchDmlMethod() { + return getExecuteBatchDmlMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.spanner.v1.ExecuteBatchDmlRequest, + com.google.spanner.v1.ExecuteBatchDmlResponse> + getExecuteBatchDmlMethodHelper() { + io.grpc.MethodDescriptor< + com.google.spanner.v1.ExecuteBatchDmlRequest, + com.google.spanner.v1.ExecuteBatchDmlResponse> + getExecuteBatchDmlMethod; + if ((getExecuteBatchDmlMethod = SpannerGrpc.getExecuteBatchDmlMethod) == null) { + synchronized (SpannerGrpc.class) { + if ((getExecuteBatchDmlMethod = SpannerGrpc.getExecuteBatchDmlMethod) == null) { + SpannerGrpc.getExecuteBatchDmlMethod = + getExecuteBatchDmlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName("google.spanner.v1.Spanner", "ExecuteBatchDml")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ExecuteBatchDmlRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ExecuteBatchDmlResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("ExecuteBatchDml")) + .build(); + } + } + } + return getExecuteBatchDmlMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getReadMethod()} instead. public static final io.grpc.MethodDescriptor< @@ -757,7 +812,9 @@ public void listSessions( * * *
-     * Ends a session, releasing server resources associated with it.
+     * Ends a session, releasing server resources associated with it. This will
+     * asynchronously trigger cancellation of any operations that are running with
+     * this session.
      * 
*/ public void deleteSession( @@ -806,6 +863,35 @@ public void executeStreamingSql( asyncUnimplementedUnaryCall(getExecuteStreamingSqlMethodHelper(), responseObserver); } + /** + * + * + *
+     * Executes a batch of SQL DML statements. This method allows many statements
+     * to be run with lower latency than submitting them sequentially with
+     * [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
+     * Statements are executed in order, sequentially.
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a
+     * [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a
+     * statement fails, its error status will be returned as part of the
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will
+     * stop at the first failed statement; the remaining statements will not run.
+     * ExecuteBatchDml is expected to return an OK status with a response even if
+     * there was an error while processing one of the DML statements. Clients must
+     * inspect response.status to determine if there were any errors while
+     * processing the request.
+     * See more details in
+     * [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse].
+     * 
+ */ + public void executeBatchDml( + com.google.spanner.v1.ExecuteBatchDmlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getExecuteBatchDmlMethodHelper(), responseObserver); + } + /** * * @@ -991,6 +1077,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.PartialResultSet>( this, METHODID_EXECUTE_STREAMING_SQL))) + .addMethod( + getExecuteBatchDmlMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.ExecuteBatchDmlRequest, + com.google.spanner.v1.ExecuteBatchDmlResponse>( + this, METHODID_EXECUTE_BATCH_DML))) .addMethod( getReadMethodHelper(), asyncUnaryCall( @@ -1129,7 +1222,9 @@ public void listSessions( * * *
-     * Ends a session, releasing server resources associated with it.
+     * Ends a session, releasing server resources associated with it. This will
+     * asynchronously trigger cancellation of any operations that are running with
+     * this session.
      * 
*/ public void deleteSession( @@ -1187,6 +1282,38 @@ public void executeStreamingSql( responseObserver); } + /** + * + * + *
+     * Executes a batch of SQL DML statements. This method allows many statements
+     * to be run with lower latency than submitting them sequentially with
+     * [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
+     * Statements are executed in order, sequentially.
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a
+     * [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a
+     * statement fails, its error status will be returned as part of the
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will
+     * stop at the first failed statement; the remaining statements will not run.
+     * ExecuteBatchDml is expected to return an OK status with a response even if
+     * there was an error while processing one of the DML statements. Clients must
+     * inspect response.status to determine if there were any errors while
+     * processing the request.
+     * See more details in
+     * [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse].
+     * 
+ */ + public void executeBatchDml( + com.google.spanner.v1.ExecuteBatchDmlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getExecuteBatchDmlMethodHelper(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1436,7 +1563,9 @@ public com.google.spanner.v1.ListSessionsResponse listSessions( * * *
-     * Ends a session, releasing server resources associated with it.
+     * Ends a session, releasing server resources associated with it. This will
+     * asynchronously trigger cancellation of any operations that are running with
+     * this session.
      * 
*/ public com.google.protobuf.Empty deleteSession( @@ -1485,6 +1614,34 @@ public java.util.Iterator executeStreami getChannel(), getExecuteStreamingSqlMethodHelper(), getCallOptions(), request); } + /** + * + * + *
+     * Executes a batch of SQL DML statements. This method allows many statements
+     * to be run with lower latency than submitting them sequentially with
+     * [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
+     * Statements are executed in order, sequentially.
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a
+     * [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a
+     * statement fails, its error status will be returned as part of the
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will
+     * stop at the first failed statement; the remaining statements will not run.
+     * ExecuteBatchDml is expected to return an OK status with a response even if
+     * there was an error while processing one of the DML statements. Clients must
+     * inspect response.status to determine if there were any errors while
+     * processing the request.
+     * See more details in
+     * [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse].
+     * 
+ */ + public com.google.spanner.v1.ExecuteBatchDmlResponse executeBatchDml( + com.google.spanner.v1.ExecuteBatchDmlRequest request) { + return blockingUnaryCall( + getChannel(), getExecuteBatchDmlMethodHelper(), getCallOptions(), request); + } + /** * * @@ -1710,7 +1867,9 @@ protected SpannerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c * * *
-     * Ends a session, releasing server resources associated with it.
+     * Ends a session, releasing server resources associated with it. This will
+     * asynchronously trigger cancellation of any operations that are running with
+     * this session.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1742,6 +1901,35 @@ protected SpannerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c getChannel().newCall(getExecuteSqlMethodHelper(), getCallOptions()), request); } + /** + * + * + *
+     * Executes a batch of SQL DML statements. This method allows many statements
+     * to be run with lower latency than submitting them sequentially with
+     * [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
+     * Statements are executed in order, sequentially.
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a
+     * [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a
+     * statement fails, its error status will be returned as part of the
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will
+     * stop at the first failed statement; the remaining statements will not run.
+     * ExecuteBatchDml is expected to return an OK status with a response even if
+     * there was an error while processing one of the DML statements. Clients must
+     * inspect response.status to determine if there were any errors while
+     * processing the request.
+     * See more details in
+     * [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and
+     * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.spanner.v1.ExecuteBatchDmlResponse> + executeBatchDml(com.google.spanner.v1.ExecuteBatchDmlRequest request) { + return futureUnaryCall( + getChannel().newCall(getExecuteBatchDmlMethodHelper(), getCallOptions()), request); + } + /** * * @@ -1879,13 +2067,14 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1936,6 +2125,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXECUTE_BATCH_DML: + serviceImpl.executeBatchDml( + (com.google.spanner.v1.ExecuteBatchDmlRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_READ: serviceImpl.read( (com.google.spanner.v1.ReadRequest) request, @@ -2042,6 +2237,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteSessionMethodHelper()) .addMethod(getExecuteSqlMethodHelper()) .addMethod(getExecuteStreamingSqlMethodHelper()) + .addMethod(getExecuteBatchDmlMethodHelper()) .addMethod(getReadMethodHelper()) .addMethod(getStreamingReadMethodHelper()) .addMethod(getBeginTransactionMethodHelper()) diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequest.java b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequest.java new file mode 100644 index 000000000000..5832f27b8f19 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequest.java @@ -0,0 +1,3128 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/v1/spanner.proto + +package com.google.spanner.v1; + +/** + * + * + *
+ * The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml]
+ * 
+ * + * Protobuf type {@code google.spanner.v1.ExecuteBatchDmlRequest} + */ +public final class ExecuteBatchDmlRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.v1.ExecuteBatchDmlRequest) + ExecuteBatchDmlRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecuteBatchDmlRequest.newBuilder() to construct. + private ExecuteBatchDmlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecuteBatchDmlRequest() { + session_ = ""; + statements_ = java.util.Collections.emptyList(); + seqno_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExecuteBatchDmlRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + session_ = s; + break; + } + case 18: + { + com.google.spanner.v1.TransactionSelector.Builder subBuilder = null; + if (transaction_ != null) { + subBuilder = transaction_.toBuilder(); + } + transaction_ = + input.readMessage( + com.google.spanner.v1.TransactionSelector.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transaction_); + transaction_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + statements_ = + new java.util.ArrayList< + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement>(); + mutable_bitField0_ |= 0x00000004; + } + statements_.add( + input.readMessage( + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.parser(), + extensionRegistry)); + break; + } + case 32: + { + seqno_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + statements_ = java.util.Collections.unmodifiableList(statements_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.v1.ExecuteBatchDmlRequest.class, + com.google.spanner.v1.ExecuteBatchDmlRequest.Builder.class); + } + + public interface StatementOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.spanner.v1.ExecuteBatchDmlRequest.Statement) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The DML string.
+     * 
+ * + * string sql = 1; + */ + java.lang.String getSql(); + /** + * + * + *
+     * Required. The DML string.
+     * 
+ * + * string sql = 1; + */ + com.google.protobuf.ByteString getSqlBytes(); + + /** + * + * + *
+     * The DML string can contain parameter placeholders. A parameter
+     * placeholder consists of `'@'` followed by the parameter
+     * name. Parameter names consist of any combination of letters,
+     * numbers, and underscores.
+     * Parameters can appear anywhere that a literal value is expected.  The
+     * same parameter name can be used more than once, for example:
+     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+     * It is an error to execute an SQL statement with unbound parameters.
+     * Parameter values are specified using `params`, which is a JSON
+     * object whose keys are parameter names, and whose values are the
+     * corresponding parameter values.
+     * 
+ * + * .google.protobuf.Struct params = 2; + */ + boolean hasParams(); + /** + * + * + *
+     * The DML string can contain parameter placeholders. A parameter
+     * placeholder consists of `'@'` followed by the parameter
+     * name. Parameter names consist of any combination of letters,
+     * numbers, and underscores.
+     * Parameters can appear anywhere that a literal value is expected.  The
+     * same parameter name can be used more than once, for example:
+     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+     * It is an error to execute an SQL statement with unbound parameters.
+     * Parameter values are specified using `params`, which is a JSON
+     * object whose keys are parameter names, and whose values are the
+     * corresponding parameter values.
+     * 
+ * + * .google.protobuf.Struct params = 2; + */ + com.google.protobuf.Struct getParams(); + /** + * + * + *
+     * The DML string can contain parameter placeholders. A parameter
+     * placeholder consists of `'@'` followed by the parameter
+     * name. Parameter names consist of any combination of letters,
+     * numbers, and underscores.
+     * Parameters can appear anywhere that a literal value is expected.  The
+     * same parameter name can be used more than once, for example:
+     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+     * It is an error to execute an SQL statement with unbound parameters.
+     * Parameter values are specified using `params`, which is a JSON
+     * object whose keys are parameter names, and whose values are the
+     * corresponding parameter values.
+     * 
+ * + * .google.protobuf.Struct params = 2; + */ + com.google.protobuf.StructOrBuilder getParamsOrBuilder(); + + /** + * + * + *
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL statement parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + int getParamTypesCount(); + /** + * + * + *
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL statement parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + boolean containsParamTypes(java.lang.String key); + /** Use {@link #getParamTypesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getParamTypes(); + /** + * + * + *
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL statement parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + java.util.Map getParamTypesMap(); + /** + * + * + *
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL statement parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + com.google.spanner.v1.Type getParamTypesOrDefault( + java.lang.String key, com.google.spanner.v1.Type defaultValue); + /** + * + * + *
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL statement parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + com.google.spanner.v1.Type getParamTypesOrThrow(java.lang.String key); + } + /** + * + * + *
+   * A single DML statement.
+   * 
+ * + * Protobuf type {@code google.spanner.v1.ExecuteBatchDmlRequest.Statement} + */ + public static final class Statement extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.v1.ExecuteBatchDmlRequest.Statement) + StatementOrBuilder { + private static final long serialVersionUID = 0L; + // Use Statement.newBuilder() to construct. + private Statement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Statement() { + sql_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Statement( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + sql_ = s; + break; + } + case 18: + { + com.google.protobuf.Struct.Builder subBuilder = null; + if (params_ != null) { + subBuilder = params_.toBuilder(); + } + params_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(params_); + params_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + paramTypes_ = + com.google.protobuf.MapField.newMapField( + ParamTypesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + paramTypes__ = + input.readMessage( + ParamTypesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + paramTypes_.getMutableMap().put(paramTypes__.getKey(), paramTypes__.getValue()); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetParamTypes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.class, + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder.class); + } + + private int bitField0_; + public static final int SQL_FIELD_NUMBER = 1; + private volatile java.lang.Object sql_; + /** + * + * + *
+     * Required. The DML string.
+     * 
+ * + * string sql = 1; + */ + public java.lang.String getSql() { + java.lang.Object ref = sql_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sql_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The DML string.
+     * 
+ * + * string sql = 1; + */ + public com.google.protobuf.ByteString getSqlBytes() { + java.lang.Object ref = sql_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sql_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMS_FIELD_NUMBER = 2; + private com.google.protobuf.Struct params_; + /** + * + * + *
+     * The DML string can contain parameter placeholders. A parameter
+     * placeholder consists of `'@'` followed by the parameter
+     * name. Parameter names consist of any combination of letters,
+     * numbers, and underscores.
+     * Parameters can appear anywhere that a literal value is expected.  The
+     * same parameter name can be used more than once, for example:
+     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+     * It is an error to execute an SQL statement with unbound parameters.
+     * Parameter values are specified using `params`, which is a JSON
+     * object whose keys are parameter names, and whose values are the
+     * corresponding parameter values.
+     * 
+ * + * .google.protobuf.Struct params = 2; + */ + public boolean hasParams() { + return params_ != null; + } + /** + * + * + *
+     * The DML string can contain parameter placeholders. A parameter
+     * placeholder consists of `'@'` followed by the parameter
+     * name. Parameter names consist of any combination of letters,
+     * numbers, and underscores.
+     * Parameters can appear anywhere that a literal value is expected.  The
+     * same parameter name can be used more than once, for example:
+     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+     * It is an error to execute an SQL statement with unbound parameters.
+     * Parameter values are specified using `params`, which is a JSON
+     * object whose keys are parameter names, and whose values are the
+     * corresponding parameter values.
+     * 
+ * + * .google.protobuf.Struct params = 2; + */ + public com.google.protobuf.Struct getParams() { + return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; + } + /** + * + * + *
+     * The DML string can contain parameter placeholders. A parameter
+     * placeholder consists of `'@'` followed by the parameter
+     * name. Parameter names consist of any combination of letters,
+     * numbers, and underscores.
+     * Parameters can appear anywhere that a literal value is expected.  The
+     * same parameter name can be used more than once, for example:
+     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+     * It is an error to execute an SQL statement with unbound parameters.
+     * Parameter values are specified using `params`, which is a JSON
+     * object whose keys are parameter names, and whose values are the
+     * corresponding parameter values.
+     * 
+ * + * .google.protobuf.Struct params = 2; + */ + public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { + return getParams(); + } + + public static final int PARAM_TYPES_FIELD_NUMBER = 3; + + private static final class ParamTypesDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_ParamTypesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.spanner.v1.Type.getDefaultInstance()); + } + + private com.google.protobuf.MapField paramTypes_; + + private com.google.protobuf.MapField + internalGetParamTypes() { + if (paramTypes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParamTypesDefaultEntryHolder.defaultEntry); + } + return paramTypes_; + } + + public int getParamTypesCount() { + return internalGetParamTypes().getMap().size(); + } + /** + * + * + *
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL statement parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public boolean containsParamTypes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetParamTypes().getMap().containsKey(key); + } + /** Use {@link #getParamTypesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getParamTypes() { + return getParamTypesMap(); + } + /** + * + * + *
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL statement parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public java.util.Map getParamTypesMap() { + return internalGetParamTypes().getMap(); + } + /** + * + * + *
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL statement parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public com.google.spanner.v1.Type getParamTypesOrDefault( + java.lang.String key, com.google.spanner.v1.Type defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetParamTypes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * It is not always possible for Cloud Spanner to infer the right SQL type
+     * from a JSON value.  For example, values of type `BYTES` and values
+     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+     * In these cases, `param_types` can be used to specify the exact
+     * SQL type for some or all of the SQL statement parameters. See the
+     * definition of [Type][google.spanner.v1.Type] for more information
+     * about SQL types.
+     * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public com.google.spanner.v1.Type getParamTypesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetParamTypes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSqlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sql_); + } + if (params_ != null) { + output.writeMessage(2, getParams()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParamTypes(), ParamTypesDefaultEntryHolder.defaultEntry, 3); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSqlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sql_); + } + if (params_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getParams()); + } + for (java.util.Map.Entry entry : + internalGetParamTypes().getMap().entrySet()) { + com.google.protobuf.MapEntry paramTypes__ = + ParamTypesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paramTypes__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.spanner.v1.ExecuteBatchDmlRequest.Statement)) { + return super.equals(obj); + } + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement other = + (com.google.spanner.v1.ExecuteBatchDmlRequest.Statement) obj; + + boolean result = true; + result = result && getSql().equals(other.getSql()); + result = result && (hasParams() == other.hasParams()); + if (hasParams()) { + result = result && getParams().equals(other.getParams()); + } + result = result && internalGetParamTypes().equals(other.internalGetParamTypes()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SQL_FIELD_NUMBER; + hash = (53 * hash) + getSql().hashCode(); + if (hasParams()) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getParams().hashCode(); + } + if (!internalGetParamTypes().getMap().isEmpty()) { + hash = (37 * hash) + PARAM_TYPES_FIELD_NUMBER; + hash = (53 * hash) + internalGetParamTypes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A single DML statement.
+     * 
+ * + * Protobuf type {@code google.spanner.v1.ExecuteBatchDmlRequest.Statement} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.spanner.v1.ExecuteBatchDmlRequest.Statement) + com.google.spanner.v1.ExecuteBatchDmlRequest.StatementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetParamTypes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableParamTypes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.class, + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder.class); + } + + // Construct using com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sql_ = ""; + + if (paramsBuilder_ == null) { + params_ = null; + } else { + params_ = null; + paramsBuilder_ = null; + } + internalGetMutableParamTypes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_descriptor; + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlRequest.Statement getDefaultInstanceForType() { + return com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.getDefaultInstance(); + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlRequest.Statement build() { + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlRequest.Statement buildPartial() { + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement result = + new com.google.spanner.v1.ExecuteBatchDmlRequest.Statement(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.sql_ = sql_; + if (paramsBuilder_ == null) { + result.params_ = params_; + } else { + result.params_ = paramsBuilder_.build(); + } + result.paramTypes_ = internalGetParamTypes(); + result.paramTypes_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.spanner.v1.ExecuteBatchDmlRequest.Statement) { + return mergeFrom((com.google.spanner.v1.ExecuteBatchDmlRequest.Statement) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.spanner.v1.ExecuteBatchDmlRequest.Statement other) { + if (other == com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.getDefaultInstance()) + return this; + if (!other.getSql().isEmpty()) { + sql_ = other.sql_; + onChanged(); + } + if (other.hasParams()) { + mergeParams(other.getParams()); + } + internalGetMutableParamTypes().mergeFrom(other.internalGetParamTypes()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.spanner.v1.ExecuteBatchDmlRequest.Statement) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object sql_ = ""; + /** + * + * + *
+       * Required. The DML string.
+       * 
+ * + * string sql = 1; + */ + public java.lang.String getSql() { + java.lang.Object ref = sql_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sql_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The DML string.
+       * 
+ * + * string sql = 1; + */ + public com.google.protobuf.ByteString getSqlBytes() { + java.lang.Object ref = sql_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sql_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The DML string.
+       * 
+ * + * string sql = 1; + */ + public Builder setSql(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sql_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The DML string.
+       * 
+ * + * string sql = 1; + */ + public Builder clearSql() { + + sql_ = getDefaultInstance().getSql(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The DML string.
+       * 
+ * + * string sql = 1; + */ + public Builder setSqlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sql_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct params_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + paramsBuilder_; + /** + * + * + *
+       * The DML string can contain parameter placeholders. A parameter
+       * placeholder consists of `'@'` followed by the parameter
+       * name. Parameter names consist of any combination of letters,
+       * numbers, and underscores.
+       * Parameters can appear anywhere that a literal value is expected.  The
+       * same parameter name can be used more than once, for example:
+       *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+       * It is an error to execute an SQL statement with unbound parameters.
+       * Parameter values are specified using `params`, which is a JSON
+       * object whose keys are parameter names, and whose values are the
+       * corresponding parameter values.
+       * 
+ * + * .google.protobuf.Struct params = 2; + */ + public boolean hasParams() { + return paramsBuilder_ != null || params_ != null; + } + /** + * + * + *
+       * The DML string can contain parameter placeholders. A parameter
+       * placeholder consists of `'@'` followed by the parameter
+       * name. Parameter names consist of any combination of letters,
+       * numbers, and underscores.
+       * Parameters can appear anywhere that a literal value is expected.  The
+       * same parameter name can be used more than once, for example:
+       *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+       * It is an error to execute an SQL statement with unbound parameters.
+       * Parameter values are specified using `params`, which is a JSON
+       * object whose keys are parameter names, and whose values are the
+       * corresponding parameter values.
+       * 
+ * + * .google.protobuf.Struct params = 2; + */ + public com.google.protobuf.Struct getParams() { + if (paramsBuilder_ == null) { + return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; + } else { + return paramsBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The DML string can contain parameter placeholders. A parameter
+       * placeholder consists of `'@'` followed by the parameter
+       * name. Parameter names consist of any combination of letters,
+       * numbers, and underscores.
+       * Parameters can appear anywhere that a literal value is expected.  The
+       * same parameter name can be used more than once, for example:
+       *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+       * It is an error to execute an SQL statement with unbound parameters.
+       * Parameter values are specified using `params`, which is a JSON
+       * object whose keys are parameter names, and whose values are the
+       * corresponding parameter values.
+       * 
+ * + * .google.protobuf.Struct params = 2; + */ + public Builder setParams(com.google.protobuf.Struct value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + params_ = value; + onChanged(); + } else { + paramsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The DML string can contain parameter placeholders. A parameter
+       * placeholder consists of `'@'` followed by the parameter
+       * name. Parameter names consist of any combination of letters,
+       * numbers, and underscores.
+       * Parameters can appear anywhere that a literal value is expected.  The
+       * same parameter name can be used more than once, for example:
+       *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+       * It is an error to execute an SQL statement with unbound parameters.
+       * Parameter values are specified using `params`, which is a JSON
+       * object whose keys are parameter names, and whose values are the
+       * corresponding parameter values.
+       * 
+ * + * .google.protobuf.Struct params = 2; + */ + public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) { + if (paramsBuilder_ == null) { + params_ = builderForValue.build(); + onChanged(); + } else { + paramsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The DML string can contain parameter placeholders. A parameter
+       * placeholder consists of `'@'` followed by the parameter
+       * name. Parameter names consist of any combination of letters,
+       * numbers, and underscores.
+       * Parameters can appear anywhere that a literal value is expected.  The
+       * same parameter name can be used more than once, for example:
+       *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+       * It is an error to execute an SQL statement with unbound parameters.
+       * Parameter values are specified using `params`, which is a JSON
+       * object whose keys are parameter names, and whose values are the
+       * corresponding parameter values.
+       * 
+ * + * .google.protobuf.Struct params = 2; + */ + public Builder mergeParams(com.google.protobuf.Struct value) { + if (paramsBuilder_ == null) { + if (params_ != null) { + params_ = + com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial(); + } else { + params_ = value; + } + onChanged(); + } else { + paramsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The DML string can contain parameter placeholders. A parameter
+       * placeholder consists of `'@'` followed by the parameter
+       * name. Parameter names consist of any combination of letters,
+       * numbers, and underscores.
+       * Parameters can appear anywhere that a literal value is expected.  The
+       * same parameter name can be used more than once, for example:
+       *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+       * It is an error to execute an SQL statement with unbound parameters.
+       * Parameter values are specified using `params`, which is a JSON
+       * object whose keys are parameter names, and whose values are the
+       * corresponding parameter values.
+       * 
+ * + * .google.protobuf.Struct params = 2; + */ + public Builder clearParams() { + if (paramsBuilder_ == null) { + params_ = null; + onChanged(); + } else { + params_ = null; + paramsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The DML string can contain parameter placeholders. A parameter
+       * placeholder consists of `'@'` followed by the parameter
+       * name. Parameter names consist of any combination of letters,
+       * numbers, and underscores.
+       * Parameters can appear anywhere that a literal value is expected.  The
+       * same parameter name can be used more than once, for example:
+       *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+       * It is an error to execute an SQL statement with unbound parameters.
+       * Parameter values are specified using `params`, which is a JSON
+       * object whose keys are parameter names, and whose values are the
+       * corresponding parameter values.
+       * 
+ * + * .google.protobuf.Struct params = 2; + */ + public com.google.protobuf.Struct.Builder getParamsBuilder() { + + onChanged(); + return getParamsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The DML string can contain parameter placeholders. A parameter
+       * placeholder consists of `'@'` followed by the parameter
+       * name. Parameter names consist of any combination of letters,
+       * numbers, and underscores.
+       * Parameters can appear anywhere that a literal value is expected.  The
+       * same parameter name can be used more than once, for example:
+       *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+       * It is an error to execute an SQL statement with unbound parameters.
+       * Parameter values are specified using `params`, which is a JSON
+       * object whose keys are parameter names, and whose values are the
+       * corresponding parameter values.
+       * 
+ * + * .google.protobuf.Struct params = 2; + */ + public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { + if (paramsBuilder_ != null) { + return paramsBuilder_.getMessageOrBuilder(); + } else { + return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; + } + } + /** + * + * + *
+       * The DML string can contain parameter placeholders. A parameter
+       * placeholder consists of `'@'` followed by the parameter
+       * name. Parameter names consist of any combination of letters,
+       * numbers, and underscores.
+       * Parameters can appear anywhere that a literal value is expected.  The
+       * same parameter name can be used more than once, for example:
+       *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
+       * It is an error to execute an SQL statement with unbound parameters.
+       * Parameter values are specified using `params`, which is a JSON
+       * object whose keys are parameter names, and whose values are the
+       * corresponding parameter values.
+       * 
+ * + * .google.protobuf.Struct params = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getParamsFieldBuilder() { + if (paramsBuilder_ == null) { + paramsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getParams(), getParentForChildren(), isClean()); + params_ = null; + } + return paramsBuilder_; + } + + private com.google.protobuf.MapField + paramTypes_; + + private com.google.protobuf.MapField + internalGetParamTypes() { + if (paramTypes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParamTypesDefaultEntryHolder.defaultEntry); + } + return paramTypes_; + } + + private com.google.protobuf.MapField + internalGetMutableParamTypes() { + onChanged(); + ; + if (paramTypes_ == null) { + paramTypes_ = + com.google.protobuf.MapField.newMapField(ParamTypesDefaultEntryHolder.defaultEntry); + } + if (!paramTypes_.isMutable()) { + paramTypes_ = paramTypes_.copy(); + } + return paramTypes_; + } + + public int getParamTypesCount() { + return internalGetParamTypes().getMap().size(); + } + /** + * + * + *
+       * It is not always possible for Cloud Spanner to infer the right SQL type
+       * from a JSON value.  For example, values of type `BYTES` and values
+       * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+       * In these cases, `param_types` can be used to specify the exact
+       * SQL type for some or all of the SQL statement parameters. See the
+       * definition of [Type][google.spanner.v1.Type] for more information
+       * about SQL types.
+       * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public boolean containsParamTypes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetParamTypes().getMap().containsKey(key); + } + /** Use {@link #getParamTypesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getParamTypes() { + return getParamTypesMap(); + } + /** + * + * + *
+       * It is not always possible for Cloud Spanner to infer the right SQL type
+       * from a JSON value.  For example, values of type `BYTES` and values
+       * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+       * In these cases, `param_types` can be used to specify the exact
+       * SQL type for some or all of the SQL statement parameters. See the
+       * definition of [Type][google.spanner.v1.Type] for more information
+       * about SQL types.
+       * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public java.util.Map getParamTypesMap() { + return internalGetParamTypes().getMap(); + } + /** + * + * + *
+       * It is not always possible for Cloud Spanner to infer the right SQL type
+       * from a JSON value.  For example, values of type `BYTES` and values
+       * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+       * In these cases, `param_types` can be used to specify the exact
+       * SQL type for some or all of the SQL statement parameters. See the
+       * definition of [Type][google.spanner.v1.Type] for more information
+       * about SQL types.
+       * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public com.google.spanner.v1.Type getParamTypesOrDefault( + java.lang.String key, com.google.spanner.v1.Type defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetParamTypes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * It is not always possible for Cloud Spanner to infer the right SQL type
+       * from a JSON value.  For example, values of type `BYTES` and values
+       * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+       * In these cases, `param_types` can be used to specify the exact
+       * SQL type for some or all of the SQL statement parameters. See the
+       * definition of [Type][google.spanner.v1.Type] for more information
+       * about SQL types.
+       * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public com.google.spanner.v1.Type getParamTypesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetParamTypes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParamTypes() { + internalGetMutableParamTypes().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * It is not always possible for Cloud Spanner to infer the right SQL type
+       * from a JSON value.  For example, values of type `BYTES` and values
+       * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+       * In these cases, `param_types` can be used to specify the exact
+       * SQL type for some or all of the SQL statement parameters. See the
+       * definition of [Type][google.spanner.v1.Type] for more information
+       * about SQL types.
+       * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public Builder removeParamTypes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableParamTypes().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableParamTypes() { + return internalGetMutableParamTypes().getMutableMap(); + } + /** + * + * + *
+       * It is not always possible for Cloud Spanner to infer the right SQL type
+       * from a JSON value.  For example, values of type `BYTES` and values
+       * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+       * In these cases, `param_types` can be used to specify the exact
+       * SQL type for some or all of the SQL statement parameters. See the
+       * definition of [Type][google.spanner.v1.Type] for more information
+       * about SQL types.
+       * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public Builder putParamTypes(java.lang.String key, com.google.spanner.v1.Type value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableParamTypes().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * It is not always possible for Cloud Spanner to infer the right SQL type
+       * from a JSON value.  For example, values of type `BYTES` and values
+       * of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
+       * In these cases, `param_types` can be used to specify the exact
+       * SQL type for some or all of the SQL statement parameters. See the
+       * definition of [Type][google.spanner.v1.Type] for more information
+       * about SQL types.
+       * 
+ * + * map<string, .google.spanner.v1.Type> param_types = 3; + */ + public Builder putAllParamTypes( + java.util.Map values) { + internalGetMutableParamTypes().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.spanner.v1.ExecuteBatchDmlRequest.Statement) + } + + // @@protoc_insertion_point(class_scope:google.spanner.v1.ExecuteBatchDmlRequest.Statement) + private static final com.google.spanner.v1.ExecuteBatchDmlRequest.Statement DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.spanner.v1.ExecuteBatchDmlRequest.Statement(); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest.Statement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Statement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Statement(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlRequest.Statement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SESSION_FIELD_NUMBER = 1; + private volatile java.lang.Object session_; + /** + * + * + *
+   * Required. The session in which the DML statements should be performed.
+   * 
+ * + * string session = 1; + */ + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The session in which the DML statements should be performed.
+   * 
+ * + * string session = 1; + */ + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRANSACTION_FIELD_NUMBER = 2; + private com.google.spanner.v1.TransactionSelector transaction_; + /** + * + * + *
+   * The transaction to use. A ReadWrite transaction is required. Single-use
+   * transactions are not supported (to avoid replay).  The caller must either
+   * supply an existing transaction ID or begin a new transaction.
+   * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public boolean hasTransaction() { + return transaction_ != null; + } + /** + * + * + *
+   * The transaction to use. A ReadWrite transaction is required. Single-use
+   * transactions are not supported (to avoid replay).  The caller must either
+   * supply an existing transaction ID or begin a new transaction.
+   * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public com.google.spanner.v1.TransactionSelector getTransaction() { + return transaction_ == null + ? com.google.spanner.v1.TransactionSelector.getDefaultInstance() + : transaction_; + } + /** + * + * + *
+   * The transaction to use. A ReadWrite transaction is required. Single-use
+   * transactions are not supported (to avoid replay).  The caller must either
+   * supply an existing transaction ID or begin a new transaction.
+   * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public com.google.spanner.v1.TransactionSelectorOrBuilder getTransactionOrBuilder() { + return getTransaction(); + } + + public static final int STATEMENTS_FIELD_NUMBER = 3; + private java.util.List statements_; + /** + * + * + *
+   * The list of statements to execute in this batch. Statements are executed
+   * serially, such that the effects of statement i are visible to statement
+   * i+1. Each statement must be a DML statement. Execution will stop at the
+   * first failed statement; the remaining statements will not run.
+   * REQUIRES: statements_size() > 0.
+   * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public java.util.List + getStatementsList() { + return statements_; + } + /** + * + * + *
+   * The list of statements to execute in this batch. Statements are executed
+   * serially, such that the effects of statement i are visible to statement
+   * i+1. Each statement must be a DML statement. Execution will stop at the
+   * first failed statement; the remaining statements will not run.
+   * REQUIRES: statements_size() > 0.
+   * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public java.util.List + getStatementsOrBuilderList() { + return statements_; + } + /** + * + * + *
+   * The list of statements to execute in this batch. Statements are executed
+   * serially, such that the effects of statement i are visible to statement
+   * i+1. Each statement must be a DML statement. Execution will stop at the
+   * first failed statement; the remaining statements will not run.
+   * REQUIRES: statements_size() > 0.
+   * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public int getStatementsCount() { + return statements_.size(); + } + /** + * + * + *
+   * The list of statements to execute in this batch. Statements are executed
+   * serially, such that the effects of statement i are visible to statement
+   * i+1. Each statement must be a DML statement. Execution will stop at the
+   * first failed statement; the remaining statements will not run.
+   * REQUIRES: statements_size() > 0.
+   * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public com.google.spanner.v1.ExecuteBatchDmlRequest.Statement getStatements(int index) { + return statements_.get(index); + } + /** + * + * + *
+   * The list of statements to execute in this batch. Statements are executed
+   * serially, such that the effects of statement i are visible to statement
+   * i+1. Each statement must be a DML statement. Execution will stop at the
+   * first failed statement; the remaining statements will not run.
+   * REQUIRES: statements_size() > 0.
+   * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public com.google.spanner.v1.ExecuteBatchDmlRequest.StatementOrBuilder getStatementsOrBuilder( + int index) { + return statements_.get(index); + } + + public static final int SEQNO_FIELD_NUMBER = 4; + private long seqno_; + /** + * + * + *
+   * A per-transaction sequence number used to identify this request. This is
+   * used in the same space as the seqno in
+   * [ExecuteSqlRequest][Spanner.ExecuteSqlRequest]. See more details
+   * in [ExecuteSqlRequest][Spanner.ExecuteSqlRequest].
+   * 
+ * + * int64 seqno = 4; + */ + public long getSeqno() { + return seqno_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSessionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); + } + if (transaction_ != null) { + output.writeMessage(2, getTransaction()); + } + for (int i = 0; i < statements_.size(); i++) { + output.writeMessage(3, statements_.get(i)); + } + if (seqno_ != 0L) { + output.writeInt64(4, seqno_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSessionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); + } + if (transaction_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransaction()); + } + for (int i = 0; i < statements_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, statements_.get(i)); + } + if (seqno_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, seqno_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.spanner.v1.ExecuteBatchDmlRequest)) { + return super.equals(obj); + } + com.google.spanner.v1.ExecuteBatchDmlRequest other = + (com.google.spanner.v1.ExecuteBatchDmlRequest) obj; + + boolean result = true; + result = result && getSession().equals(other.getSession()); + result = result && (hasTransaction() == other.hasTransaction()); + if (hasTransaction()) { + result = result && getTransaction().equals(other.getTransaction()); + } + result = result && getStatementsList().equals(other.getStatementsList()); + result = result && (getSeqno() == other.getSeqno()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSession().hashCode(); + if (hasTransaction()) { + hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; + hash = (53 * hash) + getTransaction().hashCode(); + } + if (getStatementsCount() > 0) { + hash = (37 * hash) + STATEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getStatementsList().hashCode(); + } + hash = (37 * hash) + SEQNO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSeqno()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.spanner.v1.ExecuteBatchDmlRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml]
+   * 
+ * + * Protobuf type {@code google.spanner.v1.ExecuteBatchDmlRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.spanner.v1.ExecuteBatchDmlRequest) + com.google.spanner.v1.ExecuteBatchDmlRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.v1.ExecuteBatchDmlRequest.class, + com.google.spanner.v1.ExecuteBatchDmlRequest.Builder.class); + } + + // Construct using com.google.spanner.v1.ExecuteBatchDmlRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStatementsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + session_ = ""; + + if (transactionBuilder_ == null) { + transaction_ = null; + } else { + transaction_ = null; + transactionBuilder_ = null; + } + if (statementsBuilder_ == null) { + statements_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + statementsBuilder_.clear(); + } + seqno_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlRequest_descriptor; + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlRequest getDefaultInstanceForType() { + return com.google.spanner.v1.ExecuteBatchDmlRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlRequest build() { + com.google.spanner.v1.ExecuteBatchDmlRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlRequest buildPartial() { + com.google.spanner.v1.ExecuteBatchDmlRequest result = + new com.google.spanner.v1.ExecuteBatchDmlRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.session_ = session_; + if (transactionBuilder_ == null) { + result.transaction_ = transaction_; + } else { + result.transaction_ = transactionBuilder_.build(); + } + if (statementsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + statements_ = java.util.Collections.unmodifiableList(statements_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.statements_ = statements_; + } else { + result.statements_ = statementsBuilder_.build(); + } + result.seqno_ = seqno_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.spanner.v1.ExecuteBatchDmlRequest) { + return mergeFrom((com.google.spanner.v1.ExecuteBatchDmlRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.spanner.v1.ExecuteBatchDmlRequest other) { + if (other == com.google.spanner.v1.ExecuteBatchDmlRequest.getDefaultInstance()) return this; + if (!other.getSession().isEmpty()) { + session_ = other.session_; + onChanged(); + } + if (other.hasTransaction()) { + mergeTransaction(other.getTransaction()); + } + if (statementsBuilder_ == null) { + if (!other.statements_.isEmpty()) { + if (statements_.isEmpty()) { + statements_ = other.statements_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureStatementsIsMutable(); + statements_.addAll(other.statements_); + } + onChanged(); + } + } else { + if (!other.statements_.isEmpty()) { + if (statementsBuilder_.isEmpty()) { + statementsBuilder_.dispose(); + statementsBuilder_ = null; + statements_ = other.statements_; + bitField0_ = (bitField0_ & ~0x00000004); + statementsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStatementsFieldBuilder() + : null; + } else { + statementsBuilder_.addAllMessages(other.statements_); + } + } + } + if (other.getSeqno() != 0L) { + setSeqno(other.getSeqno()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.spanner.v1.ExecuteBatchDmlRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.spanner.v1.ExecuteBatchDmlRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object session_ = ""; + /** + * + * + *
+     * Required. The session in which the DML statements should be performed.
+     * 
+ * + * string session = 1; + */ + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The session in which the DML statements should be performed.
+     * 
+ * + * string session = 1; + */ + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The session in which the DML statements should be performed.
+     * 
+ * + * string session = 1; + */ + public Builder setSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + session_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The session in which the DML statements should be performed.
+     * 
+ * + * string session = 1; + */ + public Builder clearSession() { + + session_ = getDefaultInstance().getSession(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The session in which the DML statements should be performed.
+     * 
+ * + * string session = 1; + */ + public Builder setSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + session_ = value; + onChanged(); + return this; + } + + private com.google.spanner.v1.TransactionSelector transaction_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.v1.TransactionSelector, + com.google.spanner.v1.TransactionSelector.Builder, + com.google.spanner.v1.TransactionSelectorOrBuilder> + transactionBuilder_; + /** + * + * + *
+     * The transaction to use. A ReadWrite transaction is required. Single-use
+     * transactions are not supported (to avoid replay).  The caller must either
+     * supply an existing transaction ID or begin a new transaction.
+     * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public boolean hasTransaction() { + return transactionBuilder_ != null || transaction_ != null; + } + /** + * + * + *
+     * The transaction to use. A ReadWrite transaction is required. Single-use
+     * transactions are not supported (to avoid replay).  The caller must either
+     * supply an existing transaction ID or begin a new transaction.
+     * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public com.google.spanner.v1.TransactionSelector getTransaction() { + if (transactionBuilder_ == null) { + return transaction_ == null + ? com.google.spanner.v1.TransactionSelector.getDefaultInstance() + : transaction_; + } else { + return transactionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The transaction to use. A ReadWrite transaction is required. Single-use
+     * transactions are not supported (to avoid replay).  The caller must either
+     * supply an existing transaction ID or begin a new transaction.
+     * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public Builder setTransaction(com.google.spanner.v1.TransactionSelector value) { + if (transactionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transaction_ = value; + onChanged(); + } else { + transactionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The transaction to use. A ReadWrite transaction is required. Single-use
+     * transactions are not supported (to avoid replay).  The caller must either
+     * supply an existing transaction ID or begin a new transaction.
+     * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public Builder setTransaction( + com.google.spanner.v1.TransactionSelector.Builder builderForValue) { + if (transactionBuilder_ == null) { + transaction_ = builderForValue.build(); + onChanged(); + } else { + transactionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The transaction to use. A ReadWrite transaction is required. Single-use
+     * transactions are not supported (to avoid replay).  The caller must either
+     * supply an existing transaction ID or begin a new transaction.
+     * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public Builder mergeTransaction(com.google.spanner.v1.TransactionSelector value) { + if (transactionBuilder_ == null) { + if (transaction_ != null) { + transaction_ = + com.google.spanner.v1.TransactionSelector.newBuilder(transaction_) + .mergeFrom(value) + .buildPartial(); + } else { + transaction_ = value; + } + onChanged(); + } else { + transactionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The transaction to use. A ReadWrite transaction is required. Single-use
+     * transactions are not supported (to avoid replay).  The caller must either
+     * supply an existing transaction ID or begin a new transaction.
+     * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public Builder clearTransaction() { + if (transactionBuilder_ == null) { + transaction_ = null; + onChanged(); + } else { + transaction_ = null; + transactionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The transaction to use. A ReadWrite transaction is required. Single-use
+     * transactions are not supported (to avoid replay).  The caller must either
+     * supply an existing transaction ID or begin a new transaction.
+     * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public com.google.spanner.v1.TransactionSelector.Builder getTransactionBuilder() { + + onChanged(); + return getTransactionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The transaction to use. A ReadWrite transaction is required. Single-use
+     * transactions are not supported (to avoid replay).  The caller must either
+     * supply an existing transaction ID or begin a new transaction.
+     * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + public com.google.spanner.v1.TransactionSelectorOrBuilder getTransactionOrBuilder() { + if (transactionBuilder_ != null) { + return transactionBuilder_.getMessageOrBuilder(); + } else { + return transaction_ == null + ? com.google.spanner.v1.TransactionSelector.getDefaultInstance() + : transaction_; + } + } + /** + * + * + *
+     * The transaction to use. A ReadWrite transaction is required. Single-use
+     * transactions are not supported (to avoid replay).  The caller must either
+     * supply an existing transaction ID or begin a new transaction.
+     * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.v1.TransactionSelector, + com.google.spanner.v1.TransactionSelector.Builder, + com.google.spanner.v1.TransactionSelectorOrBuilder> + getTransactionFieldBuilder() { + if (transactionBuilder_ == null) { + transactionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.v1.TransactionSelector, + com.google.spanner.v1.TransactionSelector.Builder, + com.google.spanner.v1.TransactionSelectorOrBuilder>( + getTransaction(), getParentForChildren(), isClean()); + transaction_ = null; + } + return transactionBuilder_; + } + + private java.util.List statements_ = + java.util.Collections.emptyList(); + + private void ensureStatementsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + statements_ = + new java.util.ArrayList( + statements_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement, + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder, + com.google.spanner.v1.ExecuteBatchDmlRequest.StatementOrBuilder> + statementsBuilder_; + + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public java.util.List + getStatementsList() { + if (statementsBuilder_ == null) { + return java.util.Collections.unmodifiableList(statements_); + } else { + return statementsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public int getStatementsCount() { + if (statementsBuilder_ == null) { + return statements_.size(); + } else { + return statementsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public com.google.spanner.v1.ExecuteBatchDmlRequest.Statement getStatements(int index) { + if (statementsBuilder_ == null) { + return statements_.get(index); + } else { + return statementsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public Builder setStatements( + int index, com.google.spanner.v1.ExecuteBatchDmlRequest.Statement value) { + if (statementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatementsIsMutable(); + statements_.set(index, value); + onChanged(); + } else { + statementsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public Builder setStatements( + int index, com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder builderForValue) { + if (statementsBuilder_ == null) { + ensureStatementsIsMutable(); + statements_.set(index, builderForValue.build()); + onChanged(); + } else { + statementsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public Builder addStatements(com.google.spanner.v1.ExecuteBatchDmlRequest.Statement value) { + if (statementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatementsIsMutable(); + statements_.add(value); + onChanged(); + } else { + statementsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public Builder addStatements( + int index, com.google.spanner.v1.ExecuteBatchDmlRequest.Statement value) { + if (statementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatementsIsMutable(); + statements_.add(index, value); + onChanged(); + } else { + statementsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public Builder addStatements( + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder builderForValue) { + if (statementsBuilder_ == null) { + ensureStatementsIsMutable(); + statements_.add(builderForValue.build()); + onChanged(); + } else { + statementsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public Builder addStatements( + int index, com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder builderForValue) { + if (statementsBuilder_ == null) { + ensureStatementsIsMutable(); + statements_.add(index, builderForValue.build()); + onChanged(); + } else { + statementsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public Builder addAllStatements( + java.lang.Iterable + values) { + if (statementsBuilder_ == null) { + ensureStatementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statements_); + onChanged(); + } else { + statementsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public Builder clearStatements() { + if (statementsBuilder_ == null) { + statements_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + statementsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public Builder removeStatements(int index) { + if (statementsBuilder_ == null) { + ensureStatementsIsMutable(); + statements_.remove(index); + onChanged(); + } else { + statementsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder getStatementsBuilder( + int index) { + return getStatementsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public com.google.spanner.v1.ExecuteBatchDmlRequest.StatementOrBuilder getStatementsOrBuilder( + int index) { + if (statementsBuilder_ == null) { + return statements_.get(index); + } else { + return statementsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public java.util.List + getStatementsOrBuilderList() { + if (statementsBuilder_ != null) { + return statementsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(statements_); + } + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder addStatementsBuilder() { + return getStatementsFieldBuilder() + .addBuilder(com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.getDefaultInstance()); + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder addStatementsBuilder( + int index) { + return getStatementsFieldBuilder() + .addBuilder( + index, com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.getDefaultInstance()); + } + /** + * + * + *
+     * The list of statements to execute in this batch. Statements are executed
+     * serially, such that the effects of statement i are visible to statement
+     * i+1. Each statement must be a DML statement. Execution will stop at the
+     * first failed statement; the remaining statements will not run.
+     * REQUIRES: statements_size() > 0.
+     * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + public java.util.List + getStatementsBuilderList() { + return getStatementsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement, + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder, + com.google.spanner.v1.ExecuteBatchDmlRequest.StatementOrBuilder> + getStatementsFieldBuilder() { + if (statementsBuilder_ == null) { + statementsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement, + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder, + com.google.spanner.v1.ExecuteBatchDmlRequest.StatementOrBuilder>( + statements_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + statements_ = null; + } + return statementsBuilder_; + } + + private long seqno_; + /** + * + * + *
+     * A per-transaction sequence number used to identify this request. This is
+     * used in the same space as the seqno in
+     * [ExecuteSqlRequest][Spanner.ExecuteSqlRequest]. See more details
+     * in [ExecuteSqlRequest][Spanner.ExecuteSqlRequest].
+     * 
+ * + * int64 seqno = 4; + */ + public long getSeqno() { + return seqno_; + } + /** + * + * + *
+     * A per-transaction sequence number used to identify this request. This is
+     * used in the same space as the seqno in
+     * [ExecuteSqlRequest][Spanner.ExecuteSqlRequest]. See more details
+     * in [ExecuteSqlRequest][Spanner.ExecuteSqlRequest].
+     * 
+ * + * int64 seqno = 4; + */ + public Builder setSeqno(long value) { + + seqno_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A per-transaction sequence number used to identify this request. This is
+     * used in the same space as the seqno in
+     * [ExecuteSqlRequest][Spanner.ExecuteSqlRequest]. See more details
+     * in [ExecuteSqlRequest][Spanner.ExecuteSqlRequest].
+     * 
+ * + * int64 seqno = 4; + */ + public Builder clearSeqno() { + + seqno_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.spanner.v1.ExecuteBatchDmlRequest) + } + + // @@protoc_insertion_point(class_scope:google.spanner.v1.ExecuteBatchDmlRequest) + private static final com.google.spanner.v1.ExecuteBatchDmlRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.spanner.v1.ExecuteBatchDmlRequest(); + } + + public static com.google.spanner.v1.ExecuteBatchDmlRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteBatchDmlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecuteBatchDmlRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequestOrBuilder.java new file mode 100644 index 000000000000..248a0b3f2916 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequestOrBuilder.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/v1/spanner.proto + +package com.google.spanner.v1; + +public interface ExecuteBatchDmlRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.spanner.v1.ExecuteBatchDmlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The session in which the DML statements should be performed.
+   * 
+ * + * string session = 1; + */ + java.lang.String getSession(); + /** + * + * + *
+   * Required. The session in which the DML statements should be performed.
+   * 
+ * + * string session = 1; + */ + com.google.protobuf.ByteString getSessionBytes(); + + /** + * + * + *
+   * The transaction to use. A ReadWrite transaction is required. Single-use
+   * transactions are not supported (to avoid replay).  The caller must either
+   * supply an existing transaction ID or begin a new transaction.
+   * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + boolean hasTransaction(); + /** + * + * + *
+   * The transaction to use. A ReadWrite transaction is required. Single-use
+   * transactions are not supported (to avoid replay).  The caller must either
+   * supply an existing transaction ID or begin a new transaction.
+   * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + com.google.spanner.v1.TransactionSelector getTransaction(); + /** + * + * + *
+   * The transaction to use. A ReadWrite transaction is required. Single-use
+   * transactions are not supported (to avoid replay).  The caller must either
+   * supply an existing transaction ID or begin a new transaction.
+   * 
+ * + * .google.spanner.v1.TransactionSelector transaction = 2; + */ + com.google.spanner.v1.TransactionSelectorOrBuilder getTransactionOrBuilder(); + + /** + * + * + *
+   * The list of statements to execute in this batch. Statements are executed
+   * serially, such that the effects of statement i are visible to statement
+   * i+1. Each statement must be a DML statement. Execution will stop at the
+   * first failed statement; the remaining statements will not run.
+   * REQUIRES: statements_size() > 0.
+   * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + java.util.List getStatementsList(); + /** + * + * + *
+   * The list of statements to execute in this batch. Statements are executed
+   * serially, such that the effects of statement i are visible to statement
+   * i+1. Each statement must be a DML statement. Execution will stop at the
+   * first failed statement; the remaining statements will not run.
+   * REQUIRES: statements_size() > 0.
+   * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + com.google.spanner.v1.ExecuteBatchDmlRequest.Statement getStatements(int index); + /** + * + * + *
+   * The list of statements to execute in this batch. Statements are executed
+   * serially, such that the effects of statement i are visible to statement
+   * i+1. Each statement must be a DML statement. Execution will stop at the
+   * first failed statement; the remaining statements will not run.
+   * REQUIRES: statements_size() > 0.
+   * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + int getStatementsCount(); + /** + * + * + *
+   * The list of statements to execute in this batch. Statements are executed
+   * serially, such that the effects of statement i are visible to statement
+   * i+1. Each statement must be a DML statement. Execution will stop at the
+   * first failed statement; the remaining statements will not run.
+   * REQUIRES: statements_size() > 0.
+   * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + java.util.List + getStatementsOrBuilderList(); + /** + * + * + *
+   * The list of statements to execute in this batch. Statements are executed
+   * serially, such that the effects of statement i are visible to statement
+   * i+1. Each statement must be a DML statement. Execution will stop at the
+   * first failed statement; the remaining statements will not run.
+   * REQUIRES: statements_size() > 0.
+   * 
+ * + * repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; + */ + com.google.spanner.v1.ExecuteBatchDmlRequest.StatementOrBuilder getStatementsOrBuilder(int index); + + /** + * + * + *
+   * A per-transaction sequence number used to identify this request. This is
+   * used in the same space as the seqno in
+   * [ExecuteSqlRequest][Spanner.ExecuteSqlRequest]. See more details
+   * in [ExecuteSqlRequest][Spanner.ExecuteSqlRequest].
+   * 
+ * + * int64 seqno = 4; + */ + long getSeqno(); +} diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponse.java b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponse.java new file mode 100644 index 000000000000..b639f98a5a1e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponse.java @@ -0,0 +1,1333 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/v1/spanner.proto + +package com.google.spanner.v1; + +/** + * + * + *
+ * The response for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml]. Contains a list
+ * of [ResultSet][google.spanner.v1.ResultSet], one for each DML statement that has successfully executed.
+ * If a statement fails, the error is returned as part of the response payload.
+ * Clients can determine whether all DML statements have run successfully, or if
+ * a statement failed, using one of the following approaches:
+ *   1. Check if 'status' field is OkStatus.
+ *   2. Check if result_sets_size() equals the number of statements in
+ *      [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest].
+ * Example 1: A request with 5 DML statements, all executed successfully.
+ * Result: A response with 5 ResultSets, one for each statement in the same
+ * order, and an OK status.
+ * Example 2: A request with 5 DML statements. The 3rd statement has a syntax
+ * error.
+ * Result: A response with 2 ResultSets, for the first 2 statements that
+ * run successfully, and a syntax error (INVALID_ARGUMENT) status. From
+ * result_set_size() client can determine that the 3rd statement has failed.
+ * 
+ * + * Protobuf type {@code google.spanner.v1.ExecuteBatchDmlResponse} + */ +public final class ExecuteBatchDmlResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.v1.ExecuteBatchDmlResponse) + ExecuteBatchDmlResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecuteBatchDmlResponse.newBuilder() to construct. + private ExecuteBatchDmlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecuteBatchDmlResponse() { + resultSets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExecuteBatchDmlResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + resultSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resultSets_.add( + input.readMessage(com.google.spanner.v1.ResultSet.parser(), extensionRegistry)); + break; + } + case 18: + { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + resultSets_ = java.util.Collections.unmodifiableList(resultSets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.v1.ExecuteBatchDmlResponse.class, + com.google.spanner.v1.ExecuteBatchDmlResponse.Builder.class); + } + + private int bitField0_; + public static final int RESULT_SETS_FIELD_NUMBER = 1; + private java.util.List resultSets_; + /** + * + * + *
+   * ResultSets, one for each statement in the request that ran successfully, in
+   * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+   * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+   * contain the number of rows modified by the statement.
+   * Only the first ResultSet in the response contains a valid
+   * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+   * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public java.util.List getResultSetsList() { + return resultSets_; + } + /** + * + * + *
+   * ResultSets, one for each statement in the request that ran successfully, in
+   * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+   * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+   * contain the number of rows modified by the statement.
+   * Only the first ResultSet in the response contains a valid
+   * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+   * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public java.util.List + getResultSetsOrBuilderList() { + return resultSets_; + } + /** + * + * + *
+   * ResultSets, one for each statement in the request that ran successfully, in
+   * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+   * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+   * contain the number of rows modified by the statement.
+   * Only the first ResultSet in the response contains a valid
+   * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+   * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public int getResultSetsCount() { + return resultSets_.size(); + } + /** + * + * + *
+   * ResultSets, one for each statement in the request that ran successfully, in
+   * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+   * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+   * contain the number of rows modified by the statement.
+   * Only the first ResultSet in the response contains a valid
+   * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+   * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public com.google.spanner.v1.ResultSet getResultSets(int index) { + return resultSets_.get(index); + } + /** + * + * + *
+   * ResultSets, one for each statement in the request that ran successfully, in
+   * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+   * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+   * contain the number of rows modified by the statement.
+   * Only the first ResultSet in the response contains a valid
+   * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+   * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public com.google.spanner.v1.ResultSetOrBuilder getResultSetsOrBuilder(int index) { + return resultSets_.get(index); + } + + public static final int STATUS_FIELD_NUMBER = 2; + private com.google.rpc.Status status_; + /** + * + * + *
+   * If all DML statements are executed successfully, status will be OK.
+   * Otherwise, the error status of the first failed statement.
+   * 
+ * + * .google.rpc.Status status = 2; + */ + public boolean hasStatus() { + return status_ != null; + } + /** + * + * + *
+   * If all DML statements are executed successfully, status will be OK.
+   * Otherwise, the error status of the first failed statement.
+   * 
+ * + * .google.rpc.Status status = 2; + */ + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + * + * + *
+   * If all DML statements are executed successfully, status will be OK.
+   * Otherwise, the error status of the first failed statement.
+   * 
+ * + * .google.rpc.Status status = 2; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < resultSets_.size(); i++) { + output.writeMessage(1, resultSets_.get(i)); + } + if (status_ != null) { + output.writeMessage(2, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < resultSets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resultSets_.get(i)); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.spanner.v1.ExecuteBatchDmlResponse)) { + return super.equals(obj); + } + com.google.spanner.v1.ExecuteBatchDmlResponse other = + (com.google.spanner.v1.ExecuteBatchDmlResponse) obj; + + boolean result = true; + result = result && getResultSetsList().equals(other.getResultSetsList()); + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus().equals(other.getStatus()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultSetsCount() > 0) { + hash = (37 * hash) + RESULT_SETS_FIELD_NUMBER; + hash = (53 * hash) + getResultSetsList().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.spanner.v1.ExecuteBatchDmlResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml]. Contains a list
+   * of [ResultSet][google.spanner.v1.ResultSet], one for each DML statement that has successfully executed.
+   * If a statement fails, the error is returned as part of the response payload.
+   * Clients can determine whether all DML statements have run successfully, or if
+   * a statement failed, using one of the following approaches:
+   *   1. Check if 'status' field is OkStatus.
+   *   2. Check if result_sets_size() equals the number of statements in
+   *      [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest].
+   * Example 1: A request with 5 DML statements, all executed successfully.
+   * Result: A response with 5 ResultSets, one for each statement in the same
+   * order, and an OK status.
+   * Example 2: A request with 5 DML statements. The 3rd statement has a syntax
+   * error.
+   * Result: A response with 2 ResultSets, for the first 2 statements that
+   * run successfully, and a syntax error (INVALID_ARGUMENT) status. From
+   * result_set_size() client can determine that the 3rd statement has failed.
+   * 
+ * + * Protobuf type {@code google.spanner.v1.ExecuteBatchDmlResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.spanner.v1.ExecuteBatchDmlResponse) + com.google.spanner.v1.ExecuteBatchDmlResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.v1.ExecuteBatchDmlResponse.class, + com.google.spanner.v1.ExecuteBatchDmlResponse.Builder.class); + } + + // Construct using com.google.spanner.v1.ExecuteBatchDmlResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getResultSetsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (resultSetsBuilder_ == null) { + resultSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + resultSetsBuilder_.clear(); + } + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.spanner.v1.SpannerProto + .internal_static_google_spanner_v1_ExecuteBatchDmlResponse_descriptor; + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlResponse getDefaultInstanceForType() { + return com.google.spanner.v1.ExecuteBatchDmlResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlResponse build() { + com.google.spanner.v1.ExecuteBatchDmlResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlResponse buildPartial() { + com.google.spanner.v1.ExecuteBatchDmlResponse result = + new com.google.spanner.v1.ExecuteBatchDmlResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (resultSetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + resultSets_ = java.util.Collections.unmodifiableList(resultSets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resultSets_ = resultSets_; + } else { + result.resultSets_ = resultSetsBuilder_.build(); + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.spanner.v1.ExecuteBatchDmlResponse) { + return mergeFrom((com.google.spanner.v1.ExecuteBatchDmlResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.spanner.v1.ExecuteBatchDmlResponse other) { + if (other == com.google.spanner.v1.ExecuteBatchDmlResponse.getDefaultInstance()) return this; + if (resultSetsBuilder_ == null) { + if (!other.resultSets_.isEmpty()) { + if (resultSets_.isEmpty()) { + resultSets_ = other.resultSets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultSetsIsMutable(); + resultSets_.addAll(other.resultSets_); + } + onChanged(); + } + } else { + if (!other.resultSets_.isEmpty()) { + if (resultSetsBuilder_.isEmpty()) { + resultSetsBuilder_.dispose(); + resultSetsBuilder_ = null; + resultSets_ = other.resultSets_; + bitField0_ = (bitField0_ & ~0x00000001); + resultSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultSetsFieldBuilder() + : null; + } else { + resultSetsBuilder_.addAllMessages(other.resultSets_); + } + } + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.spanner.v1.ExecuteBatchDmlResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.spanner.v1.ExecuteBatchDmlResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List resultSets_ = + java.util.Collections.emptyList(); + + private void ensureResultSetsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + resultSets_ = new java.util.ArrayList(resultSets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.v1.ResultSet, + com.google.spanner.v1.ResultSet.Builder, + com.google.spanner.v1.ResultSetOrBuilder> + resultSetsBuilder_; + + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public java.util.List getResultSetsList() { + if (resultSetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(resultSets_); + } else { + return resultSetsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public int getResultSetsCount() { + if (resultSetsBuilder_ == null) { + return resultSets_.size(); + } else { + return resultSetsBuilder_.getCount(); + } + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public com.google.spanner.v1.ResultSet getResultSets(int index) { + if (resultSetsBuilder_ == null) { + return resultSets_.get(index); + } else { + return resultSetsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public Builder setResultSets(int index, com.google.spanner.v1.ResultSet value) { + if (resultSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultSetsIsMutable(); + resultSets_.set(index, value); + onChanged(); + } else { + resultSetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public Builder setResultSets( + int index, com.google.spanner.v1.ResultSet.Builder builderForValue) { + if (resultSetsBuilder_ == null) { + ensureResultSetsIsMutable(); + resultSets_.set(index, builderForValue.build()); + onChanged(); + } else { + resultSetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public Builder addResultSets(com.google.spanner.v1.ResultSet value) { + if (resultSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultSetsIsMutable(); + resultSets_.add(value); + onChanged(); + } else { + resultSetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public Builder addResultSets(int index, com.google.spanner.v1.ResultSet value) { + if (resultSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultSetsIsMutable(); + resultSets_.add(index, value); + onChanged(); + } else { + resultSetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public Builder addResultSets(com.google.spanner.v1.ResultSet.Builder builderForValue) { + if (resultSetsBuilder_ == null) { + ensureResultSetsIsMutable(); + resultSets_.add(builderForValue.build()); + onChanged(); + } else { + resultSetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public Builder addResultSets( + int index, com.google.spanner.v1.ResultSet.Builder builderForValue) { + if (resultSetsBuilder_ == null) { + ensureResultSetsIsMutable(); + resultSets_.add(index, builderForValue.build()); + onChanged(); + } else { + resultSetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public Builder addAllResultSets( + java.lang.Iterable values) { + if (resultSetsBuilder_ == null) { + ensureResultSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resultSets_); + onChanged(); + } else { + resultSetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public Builder clearResultSets() { + if (resultSetsBuilder_ == null) { + resultSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultSetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public Builder removeResultSets(int index) { + if (resultSetsBuilder_ == null) { + ensureResultSetsIsMutable(); + resultSets_.remove(index); + onChanged(); + } else { + resultSetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public com.google.spanner.v1.ResultSet.Builder getResultSetsBuilder(int index) { + return getResultSetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public com.google.spanner.v1.ResultSetOrBuilder getResultSetsOrBuilder(int index) { + if (resultSetsBuilder_ == null) { + return resultSets_.get(index); + } else { + return resultSetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public java.util.List + getResultSetsOrBuilderList() { + if (resultSetsBuilder_ != null) { + return resultSetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resultSets_); + } + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public com.google.spanner.v1.ResultSet.Builder addResultSetsBuilder() { + return getResultSetsFieldBuilder() + .addBuilder(com.google.spanner.v1.ResultSet.getDefaultInstance()); + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public com.google.spanner.v1.ResultSet.Builder addResultSetsBuilder(int index) { + return getResultSetsFieldBuilder() + .addBuilder(index, com.google.spanner.v1.ResultSet.getDefaultInstance()); + } + /** + * + * + *
+     * ResultSets, one for each statement in the request that ran successfully, in
+     * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+     * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+     * contain the number of rows modified by the statement.
+     * Only the first ResultSet in the response contains a valid
+     * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+     * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + public java.util.List getResultSetsBuilderList() { + return getResultSetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.v1.ResultSet, + com.google.spanner.v1.ResultSet.Builder, + com.google.spanner.v1.ResultSetOrBuilder> + getResultSetsFieldBuilder() { + if (resultSetsBuilder_ == null) { + resultSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.v1.ResultSet, + com.google.spanner.v1.ResultSet.Builder, + com.google.spanner.v1.ResultSetOrBuilder>( + resultSets_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + resultSets_ = null; + } + return resultSetsBuilder_; + } + + private com.google.rpc.Status status_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; + /** + * + * + *
+     * If all DML statements are executed successfully, status will be OK.
+     * Otherwise, the error status of the first failed statement.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + * + * + *
+     * If all DML statements are executed successfully, status will be OK.
+     * Otherwise, the error status of the first failed statement.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If all DML statements are executed successfully, status will be OK.
+     * Otherwise, the error status of the first failed statement.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If all DML statements are executed successfully, status will be OK.
+     * Otherwise, the error status of the first failed statement.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If all DML statements are executed successfully, status will be OK.
+     * Otherwise, the error status of the first failed statement.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If all DML statements are executed successfully, status will be OK.
+     * Otherwise, the error status of the first failed statement.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If all DML statements are executed successfully, status will be OK.
+     * Otherwise, the error status of the first failed statement.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If all DML statements are executed successfully, status will be OK.
+     * Otherwise, the error status of the first failed statement.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + * + * + *
+     * If all DML statements are executed successfully, status will be OK.
+     * Otherwise, the error status of the first failed statement.
+     * 
+ * + * .google.rpc.Status status = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.spanner.v1.ExecuteBatchDmlResponse) + } + + // @@protoc_insertion_point(class_scope:google.spanner.v1.ExecuteBatchDmlResponse) + private static final com.google.spanner.v1.ExecuteBatchDmlResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.spanner.v1.ExecuteBatchDmlResponse(); + } + + public static com.google.spanner.v1.ExecuteBatchDmlResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteBatchDmlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecuteBatchDmlResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.spanner.v1.ExecuteBatchDmlResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponseOrBuilder.java new file mode 100644 index 000000000000..70ee20ca9fa5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlResponseOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/v1/spanner.proto + +package com.google.spanner.v1; + +public interface ExecuteBatchDmlResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.spanner.v1.ExecuteBatchDmlResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * ResultSets, one for each statement in the request that ran successfully, in
+   * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+   * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+   * contain the number of rows modified by the statement.
+   * Only the first ResultSet in the response contains a valid
+   * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+   * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + java.util.List getResultSetsList(); + /** + * + * + *
+   * ResultSets, one for each statement in the request that ran successfully, in
+   * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+   * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+   * contain the number of rows modified by the statement.
+   * Only the first ResultSet in the response contains a valid
+   * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+   * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + com.google.spanner.v1.ResultSet getResultSets(int index); + /** + * + * + *
+   * ResultSets, one for each statement in the request that ran successfully, in
+   * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+   * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+   * contain the number of rows modified by the statement.
+   * Only the first ResultSet in the response contains a valid
+   * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+   * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + int getResultSetsCount(); + /** + * + * + *
+   * ResultSets, one for each statement in the request that ran successfully, in
+   * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+   * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+   * contain the number of rows modified by the statement.
+   * Only the first ResultSet in the response contains a valid
+   * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+   * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + java.util.List getResultSetsOrBuilderList(); + /** + * + * + *
+   * ResultSets, one for each statement in the request that ran successfully, in
+   * the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will
+   * not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will
+   * contain the number of rows modified by the statement.
+   * Only the first ResultSet in the response contains a valid
+   * [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].
+   * 
+ * + * repeated .google.spanner.v1.ResultSet result_sets = 1; + */ + com.google.spanner.v1.ResultSetOrBuilder getResultSetsOrBuilder(int index); + + /** + * + * + *
+   * If all DML statements are executed successfully, status will be OK.
+   * Otherwise, the error status of the first failed statement.
+   * 
+ * + * .google.rpc.Status status = 2; + */ + boolean hasStatus(); + /** + * + * + *
+   * If all DML statements are executed successfully, status will be OK.
+   * Otherwise, the error status of the first failed statement.
+   * 
+ * + * .google.rpc.Status status = 2; + */ + com.google.rpc.Status getStatus(); + /** + * + * + *
+   * If all DML statements are executed successfully, status will be OK.
+   * Otherwise, the error status of the first failed statement.
+   * 
+ * + * .google.rpc.Status status = 2; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java index 36e6dd6a9095..b20abf2efdf4 100644 --- a/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java +++ b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java @@ -48,6 +48,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_spanner_v1_ExecuteSqlRequest_ParamTypesEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_spanner_v1_ExecuteSqlRequest_ParamTypesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_ParamTypesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_ParamTypesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_v1_ExecuteBatchDmlResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_v1_ExecuteBatchDmlResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_spanner_v1_PartitionOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -105,135 +121,154 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.spanner.v1\032\034google/api/annotations.pro" + "to\032\033google/protobuf/empty.proto\032\034google/" + "protobuf/struct.proto\032\037google/protobuf/t" - + "imestamp.proto\032\034google/spanner/v1/keys.p" - + "roto\032 google/spanner/v1/mutation.proto\032\"" - + "google/spanner/v1/result_set.proto\032#goog" - + "le/spanner/v1/transaction.proto\032\034google/" - + "spanner/v1/type.proto\"U\n\024CreateSessionRe" - + "quest\022\020\n\010database\030\001 \001(\t\022+\n\007session\030\002 \001(\013" - + "2\032.google.spanner.v1.Session\"\356\001\n\007Session" - + "\022\014\n\004name\030\001 \001(\t\0226\n\006labels\030\002 \003(\0132&.google." - + "spanner.v1.Session.LabelsEntry\022/\n\013create" - + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022" - + "=\n\031approximate_last_use_time\030\004 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\021GetSess" - + "ionRequest\022\014\n\004name\030\001 \001(\t\"^\n\023ListSessions" - + "Request\022\020\n\010database\030\001 \001(\t\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" - + "\"]\n\024ListSessionsResponse\022,\n\010sessions\030\001 \003" - + "(\0132\032.google.spanner.v1.Session\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"$\n\024DeleteSessionRequest\022" - + "\014\n\004name\030\001 \001(\t\"\340\003\n\021ExecuteSqlRequest\022\017\n\007s" - + "ession\030\001 \001(\t\022;\n\013transaction\030\002 \001(\0132&.goog" - + "le.spanner.v1.TransactionSelector\022\013\n\003sql" - + "\030\003 \001(\t\022\'\n\006params\030\004 \001(\0132\027.google.protobuf" - + ".Struct\022I\n\013param_types\030\005 \003(\01324.google.sp" - + "anner.v1.ExecuteSqlRequest.ParamTypesEnt" - + "ry\022\024\n\014resume_token\030\006 \001(\014\022B\n\nquery_mode\030\007" - + " \001(\0162..google.spanner.v1.ExecuteSqlReque" - + "st.QueryMode\022\027\n\017partition_token\030\010 \001(\014\022\r\n" - + "\005seqno\030\t \001(\003\032J\n\017ParamTypesEntry\022\013\n\003key\030\001" - + " \001(\t\022&\n\005value\030\002 \001(\0132\027.google.spanner.v1." - + "Type:\0028\001\".\n\tQueryMode\022\n\n\006NORMAL\020\000\022\010\n\004PLA" - + "N\020\001\022\013\n\007PROFILE\020\002\"H\n\020PartitionOptions\022\034\n\024" - + "partition_size_bytes\030\001 \001(\003\022\026\n\016max_partit" - + "ions\030\002 \001(\003\"\366\002\n\025PartitionQueryRequest\022\017\n\007" - + "session\030\001 \001(\t\022;\n\013transaction\030\002 \001(\0132&.goo" - + "gle.spanner.v1.TransactionSelector\022\013\n\003sq" - + "l\030\003 \001(\t\022\'\n\006params\030\004 \001(\0132\027.google.protobu" - + "f.Struct\022M\n\013param_types\030\005 \003(\01328.google.s" - + "panner.v1.PartitionQueryRequest.ParamTyp" - + "esEntry\022>\n\021partition_options\030\006 \001(\0132#.goo" - + "gle.spanner.v1.PartitionOptions\032J\n\017Param" - + "TypesEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027" - + ".google.spanner.v1.Type:\0028\001\"\377\001\n\024Partitio" - + "nReadRequest\022\017\n\007session\030\001 \001(\t\022;\n\013transac" - + "tion\030\002 \001(\0132&.google.spanner.v1.Transacti" - + "onSelector\022\r\n\005table\030\003 \001(\t\022\r\n\005index\030\004 \001(\t" - + "\022\017\n\007columns\030\005 \003(\t\022*\n\007key_set\030\006 \001(\0132\031.goo" - + "gle.spanner.v1.KeySet\022>\n\021partition_optio" - + "ns\030\t \001(\0132#.google.spanner.v1.PartitionOp" - + "tions\"$\n\tPartition\022\027\n\017partition_token\030\001 " - + "\001(\014\"z\n\021PartitionResponse\0220\n\npartitions\030\001" - + " \003(\0132\034.google.spanner.v1.Partition\0223\n\013tr" - + "ansaction\030\002 \001(\0132\036.google.spanner.v1.Tran" - + "saction\"\364\001\n\013ReadRequest\022\017\n\007session\030\001 \001(\t" - + "\022;\n\013transaction\030\002 \001(\0132&.google.spanner.v" - + "1.TransactionSelector\022\r\n\005table\030\003 \001(\t\022\r\n\005" - + "index\030\004 \001(\t\022\017\n\007columns\030\005 \003(\t\022*\n\007key_set\030" - + "\006 \001(\0132\031.google.spanner.v1.KeySet\022\r\n\005limi" - + "t\030\010 \001(\003\022\024\n\014resume_token\030\t \001(\014\022\027\n\017partiti" - + "on_token\030\n \001(\014\"b\n\027BeginTransactionReques" - + "t\022\017\n\007session\030\001 \001(\t\0226\n\007options\030\002 \001(\0132%.go" - + "ogle.spanner.v1.TransactionOptions\"\302\001\n\rC" - + "ommitRequest\022\017\n\007session\030\001 \001(\t\022\030\n\016transac" - + "tion_id\030\002 \001(\014H\000\022G\n\026single_use_transactio" - + "n\030\003 \001(\0132%.google.spanner.v1.TransactionO" - + "ptionsH\000\022.\n\tmutations\030\004 \003(\0132\033.google.spa" - + "nner.v1.MutationB\r\n\013transaction\"F\n\016Commi" - + "tResponse\0224\n\020commit_timestamp\030\001 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\":\n\017RollbackReque" - + "st\022\017\n\007session\030\001 \001(\t\022\026\n\016transaction_id\030\002 " - + "\001(\0142\203\021\n\007Spanner\022\233\001\n\rCreateSession\022\'.goog" - + "le.spanner.v1.CreateSessionRequest\032\032.goo" - + "gle.spanner.v1.Session\"E\202\323\344\223\002?\":/v1/{dat" - + "abase=projects/*/instances/*/databases/*" - + "}/sessions:\001*\022\220\001\n\nGetSession\022$.google.sp" - + "anner.v1.GetSessionRequest\032\032.google.span" - + "ner.v1.Session\"@\202\323\344\223\002:\0228/v1/{name=projec" - + "ts/*/instances/*/databases/*/sessions/*}" - + "\022\243\001\n\014ListSessions\022&.google.spanner.v1.Li" - + "stSessionsRequest\032\'.google.spanner.v1.Li" - + "stSessionsResponse\"B\202\323\344\223\002<\022:/v1/{databas" - + "e=projects/*/instances/*/databases/*}/se" - + "ssions\022\222\001\n\rDeleteSession\022\'.google.spanne" - + "r.v1.DeleteSessionRequest\032\026.google.proto" - + "buf.Empty\"@\202\323\344\223\002:*8/v1/{name=projects/*/" - + "instances/*/databases/*/sessions/*}\022\243\001\n\n" - + "ExecuteSql\022$.google.spanner.v1.ExecuteSq" - + "lRequest\032\034.google.spanner.v1.ResultSet\"Q" - + "\202\323\344\223\002K\"F/v1/{session=projects/*/instance" - + "s/*/databases/*/sessions/*}:executeSql:\001" - + "*\022\276\001\n\023ExecuteStreamingSql\022$.google.spann" - + "er.v1.ExecuteSqlRequest\032#.google.spanner" - + ".v1.PartialResultSet\"Z\202\323\344\223\002T\"O/v1/{sessi" - + "on=projects/*/instances/*/databases/*/se" - + "ssions/*}:executeStreamingSql:\001*0\001\022\221\001\n\004R" - + "ead\022\036.google.spanner.v1.ReadRequest\032\034.go" - + "ogle.spanner.v1.ResultSet\"K\202\323\344\223\002E\"@/v1/{" - + "session=projects/*/instances/*/databases" - + "/*/sessions/*}:read:\001*\022\254\001\n\rStreamingRead" - + "\022\036.google.spanner.v1.ReadRequest\032#.googl" - + "e.spanner.v1.PartialResultSet\"T\202\323\344\223\002N\"I/" - + "v1/{session=projects/*/instances/*/datab" - + "ases/*/sessions/*}:streamingRead:\001*0\001\022\267\001" - + "\n\020BeginTransaction\022*.google.spanner.v1.B" - + "eginTransactionRequest\032\036.google.spanner." - + "v1.Transaction\"W\202\323\344\223\002Q\"L/v1/{session=pro" - + "jects/*/instances/*/databases/*/sessions" - + "/*}:beginTransaction:\001*\022\234\001\n\006Commit\022 .goo" - + "gle.spanner.v1.CommitRequest\032!.google.sp" - + "anner.v1.CommitResponse\"M\202\323\344\223\002G\"B/v1/{se" - + "ssion=projects/*/instances/*/databases/*" - + "/sessions/*}:commit:\001*\022\227\001\n\010Rollback\022\".go" - + "ogle.spanner.v1.RollbackRequest\032\026.google" - + ".protobuf.Empty\"O\202\323\344\223\002I\"D/v1/{session=pr" + + "imestamp.proto\032\027google/rpc/status.proto\032" + + "\034google/spanner/v1/keys.proto\032 google/sp" + + "anner/v1/mutation.proto\032\"google/spanner/" + + "v1/result_set.proto\032#google/spanner/v1/t" + + "ransaction.proto\032\034google/spanner/v1/type" + + ".proto\"U\n\024CreateSessionRequest\022\020\n\010databa" + + "se\030\001 \001(\t\022+\n\007session\030\002 \001(\0132\032.google.spann" + + "er.v1.Session\"\356\001\n\007Session\022\014\n\004name\030\001 \001(\t\022" + + "6\n\006labels\030\002 \003(\0132&.google.spanner.v1.Sess" + + "ion.LabelsEntry\022/\n\013create_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022=\n\031approximate_" + + "last_use_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"!\n\021GetSessionRequest\022\014\n\004n" + + "ame\030\001 \001(\t\"^\n\023ListSessionsRequest\022\020\n\010data" + + "base\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"]\n\024ListSession" + + "sResponse\022,\n\010sessions\030\001 \003(\0132\032.google.spa" + + "nner.v1.Session\022\027\n\017next_page_token\030\002 \001(\t" + + "\"$\n\024DeleteSessionRequest\022\014\n\004name\030\001 \001(\t\"\340" + + "\003\n\021ExecuteSqlRequest\022\017\n\007session\030\001 \001(\t\022;\n" + + "\013transaction\030\002 \001(\0132&.google.spanner.v1.T" + + "ransactionSelector\022\013\n\003sql\030\003 \001(\t\022\'\n\006param" + + "s\030\004 \001(\0132\027.google.protobuf.Struct\022I\n\013para" + + "m_types\030\005 \003(\01324.google.spanner.v1.Execut" + + "eSqlRequest.ParamTypesEntry\022\024\n\014resume_to" + + "ken\030\006 \001(\014\022B\n\nquery_mode\030\007 \001(\0162..google.s" + + "panner.v1.ExecuteSqlRequest.QueryMode\022\027\n" + + "\017partition_token\030\010 \001(\014\022\r\n\005seqno\030\t \001(\003\032J\n" + + "\017ParamTypesEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002" + + " \001(\0132\027.google.spanner.v1.Type:\0028\001\".\n\tQue" + + "ryMode\022\n\n\006NORMAL\020\000\022\010\n\004PLAN\020\001\022\013\n\007PROFILE\020" + + "\002\"\250\003\n\026ExecuteBatchDmlRequest\022\017\n\007session\030" + + "\001 \001(\t\022;\n\013transaction\030\002 \001(\0132&.google.span" + + "ner.v1.TransactionSelector\022G\n\nstatements" + + "\030\003 \003(\01323.google.spanner.v1.ExecuteBatchD" + + "mlRequest.Statement\022\r\n\005seqno\030\004 \001(\003\032\347\001\n\tS" + + "tatement\022\013\n\003sql\030\001 \001(\t\022\'\n\006params\030\002 \001(\0132\027." + + "google.protobuf.Struct\022X\n\013param_types\030\003 " + + "\003(\0132C.google.spanner.v1.ExecuteBatchDmlR" + + "equest.Statement.ParamTypesEntry\032J\n\017Para" + + "mTypesEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(\0132" + + "\027.google.spanner.v1.Type:\0028\001\"p\n\027ExecuteB" + + "atchDmlResponse\0221\n\013result_sets\030\001 \003(\0132\034.g" + + "oogle.spanner.v1.ResultSet\022\"\n\006status\030\002 \001" + + "(\0132\022.google.rpc.Status\"H\n\020PartitionOptio" + + "ns\022\034\n\024partition_size_bytes\030\001 \001(\003\022\026\n\016max_" + + "partitions\030\002 \001(\003\"\366\002\n\025PartitionQueryReque" + + "st\022\017\n\007session\030\001 \001(\t\022;\n\013transaction\030\002 \001(\013" + + "2&.google.spanner.v1.TransactionSelector" + + "\022\013\n\003sql\030\003 \001(\t\022\'\n\006params\030\004 \001(\0132\027.google.p" + + "rotobuf.Struct\022M\n\013param_types\030\005 \003(\01328.go" + + "ogle.spanner.v1.PartitionQueryRequest.Pa" + + "ramTypesEntry\022>\n\021partition_options\030\006 \001(\013" + + "2#.google.spanner.v1.PartitionOptions\032J\n" + + "\017ParamTypesEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002" + + " \001(\0132\027.google.spanner.v1.Type:\0028\001\"\377\001\n\024Pa" + + "rtitionReadRequest\022\017\n\007session\030\001 \001(\t\022;\n\013t" + + "ransaction\030\002 \001(\0132&.google.spanner.v1.Tra" + + "nsactionSelector\022\r\n\005table\030\003 \001(\t\022\r\n\005index" + + "\030\004 \001(\t\022\017\n\007columns\030\005 \003(\t\022*\n\007key_set\030\006 \001(\013" + + "2\031.google.spanner.v1.KeySet\022>\n\021partition" + + "_options\030\t \001(\0132#.google.spanner.v1.Parti" + + "tionOptions\"$\n\tPartition\022\027\n\017partition_to" + + "ken\030\001 \001(\014\"z\n\021PartitionResponse\0220\n\npartit" + + "ions\030\001 \003(\0132\034.google.spanner.v1.Partition" + + "\0223\n\013transaction\030\002 \001(\0132\036.google.spanner.v" + + "1.Transaction\"\364\001\n\013ReadRequest\022\017\n\007session" + + "\030\001 \001(\t\022;\n\013transaction\030\002 \001(\0132&.google.spa" + + "nner.v1.TransactionSelector\022\r\n\005table\030\003 \001" + + "(\t\022\r\n\005index\030\004 \001(\t\022\017\n\007columns\030\005 \003(\t\022*\n\007ke" + + "y_set\030\006 \001(\0132\031.google.spanner.v1.KeySet\022\r" + + "\n\005limit\030\010 \001(\003\022\024\n\014resume_token\030\t \001(\014\022\027\n\017p" + + "artition_token\030\n \001(\014\"b\n\027BeginTransaction" + + "Request\022\017\n\007session\030\001 \001(\t\0226\n\007options\030\002 \001(" + + "\0132%.google.spanner.v1.TransactionOptions" + + "\"\302\001\n\rCommitRequest\022\017\n\007session\030\001 \001(\t\022\030\n\016t" + + "ransaction_id\030\002 \001(\014H\000\022G\n\026single_use_tran" + + "saction\030\003 \001(\0132%.google.spanner.v1.Transa" + + "ctionOptionsH\000\022.\n\tmutations\030\004 \003(\0132\033.goog" + + "le.spanner.v1.MutationB\r\n\013transaction\"F\n" + + "\016CommitResponse\0224\n\020commit_timestamp\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\":\n\017Rollbac" + + "kRequest\022\017\n\007session\030\001 \001(\t\022\026\n\016transaction" + + "_id\030\002 \001(\0142\306\022\n\007Spanner\022\233\001\n\rCreateSession\022" + + "\'.google.spanner.v1.CreateSessionRequest" + + "\032\032.google.spanner.v1.Session\"E\202\323\344\223\002?\":/v" + + "1/{database=projects/*/instances/*/datab" + + "ases/*}/sessions:\001*\022\220\001\n\nGetSession\022$.goo" + + "gle.spanner.v1.GetSessionRequest\032\032.googl" + + "e.spanner.v1.Session\"@\202\323\344\223\002:\0228/v1/{name=" + + "projects/*/instances/*/databases/*/sessi" + + "ons/*}\022\243\001\n\014ListSessions\022&.google.spanner" + + ".v1.ListSessionsRequest\032\'.google.spanner" + + ".v1.ListSessionsResponse\"B\202\323\344\223\002<\022:/v1/{d" + + "atabase=projects/*/instances/*/databases" + + "/*}/sessions\022\222\001\n\rDeleteSession\022\'.google." + + "spanner.v1.DeleteSessionRequest\032\026.google" + + ".protobuf.Empty\"@\202\323\344\223\002:*8/v1/{name=proje" + + "cts/*/instances/*/databases/*/sessions/*" + + "}\022\243\001\n\nExecuteSql\022$.google.spanner.v1.Exe" + + "cuteSqlRequest\032\034.google.spanner.v1.Resul" + + "tSet\"Q\202\323\344\223\002K\"F/v1/{session=projects/*/in" + + "stances/*/databases/*/sessions/*}:execut" + + "eSql:\001*\022\276\001\n\023ExecuteStreamingSql\022$.google" + + ".spanner.v1.ExecuteSqlRequest\032#.google.s" + + "panner.v1.PartialResultSet\"Z\202\323\344\223\002T\"O/v1/" + + "{session=projects/*/instances/*/database" + + "s/*/sessions/*}:executeStreamingSql:\001*0\001" + + "\022\300\001\n\017ExecuteBatchDml\022).google.spanner.v1" + + ".ExecuteBatchDmlRequest\032*.google.spanner" + + ".v1.ExecuteBatchDmlResponse\"V\202\323\344\223\002P\"K/v1" + + "/{session=projects/*/instances/*/databas" + + "es/*/sessions/*}:executeBatchDml:\001*\022\221\001\n\004" + + "Read\022\036.google.spanner.v1.ReadRequest\032\034.g" + + "oogle.spanner.v1.ResultSet\"K\202\323\344\223\002E\"@/v1/" + + "{session=projects/*/instances/*/database" + + "s/*/sessions/*}:read:\001*\022\254\001\n\rStreamingRea" + + "d\022\036.google.spanner.v1.ReadRequest\032#.goog" + + "le.spanner.v1.PartialResultSet\"T\202\323\344\223\002N\"I" + + "/v1/{session=projects/*/instances/*/data" + + "bases/*/sessions/*}:streamingRead:\001*0\001\022\267" + + "\001\n\020BeginTransaction\022*.google.spanner.v1." + + "BeginTransactionRequest\032\036.google.spanner" + + ".v1.Transaction\"W\202\323\344\223\002Q\"L/v1/{session=pr" + "ojects/*/instances/*/databases/*/session" - + "s/*}:rollback:\001*\022\267\001\n\016PartitionQuery\022(.go" - + "ogle.spanner.v1.PartitionQueryRequest\032$." - + "google.spanner.v1.PartitionResponse\"U\202\323\344" - + "\223\002O\"J/v1/{session=projects/*/instances/*" - + "/databases/*/sessions/*}:partitionQuery:" - + "\001*\022\264\001\n\rPartitionRead\022\'.google.spanner.v1" - + ".PartitionReadRequest\032$.google.spanner.v" - + "1.PartitionResponse\"T\202\323\344\223\002N\"I/v1/{sessio" - + "n=projects/*/instances/*/databases/*/ses" - + "sions/*}:partitionRead:\001*B\225\001\n\025com.google" - + ".spanner.v1B\014SpannerProtoP\001Z8google.gola" - + "ng.org/genproto/googleapis/spanner/v1;sp" - + "anner\252\002\027Google.Cloud.Spanner.V1\312\002\027Google" - + "\\Cloud\\Spanner\\V1b\006proto3" + + "s/*}:beginTransaction:\001*\022\234\001\n\006Commit\022 .go" + + "ogle.spanner.v1.CommitRequest\032!.google.s" + + "panner.v1.CommitResponse\"M\202\323\344\223\002G\"B/v1/{s" + + "ession=projects/*/instances/*/databases/" + + "*/sessions/*}:commit:\001*\022\227\001\n\010Rollback\022\".g" + + "oogle.spanner.v1.RollbackRequest\032\026.googl" + + "e.protobuf.Empty\"O\202\323\344\223\002I\"D/v1/{session=p" + + "rojects/*/instances/*/databases/*/sessio" + + "ns/*}:rollback:\001*\022\267\001\n\016PartitionQuery\022(.g" + + "oogle.spanner.v1.PartitionQueryRequest\032$" + + ".google.spanner.v1.PartitionResponse\"U\202\323" + + "\344\223\002O\"J/v1/{session=projects/*/instances/" + + "*/databases/*/sessions/*}:partitionQuery" + + ":\001*\022\264\001\n\rPartitionRead\022\'.google.spanner.v" + + "1.PartitionReadRequest\032$.google.spanner." + + "v1.PartitionResponse\"T\202\323\344\223\002N\"I/v1/{sessi" + + "on=projects/*/instances/*/databases/*/se" + + "ssions/*}:partitionRead:\001*B\225\001\n\025com.googl" + + "e.spanner.v1B\014SpannerProtoP\001Z8google.gol" + + "ang.org/genproto/googleapis/spanner/v1;s" + + "panner\252\002\027Google.Cloud.Spanner.V1\312\002\027Googl" + + "e\\Cloud\\Spanner\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -250,6 +285,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), com.google.spanner.v1.KeysProto.getDescriptor(), com.google.spanner.v1.MutationProto.getDescriptor(), com.google.spanner.v1.ResultSetProto.getDescriptor(), @@ -336,8 +372,42 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); - internal_static_google_spanner_v1_PartitionOptions_descriptor = + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_descriptor, + new java.lang.String[] { + "Session", "Transaction", "Statements", "Seqno", + }); + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_descriptor = + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_descriptor.getNestedTypes().get(0); + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_descriptor, + new java.lang.String[] { + "Sql", "Params", "ParamTypes", + }); + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_ParamTypesEntry_descriptor = + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_descriptor + .getNestedTypes() + .get(0); + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_ParamTypesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_v1_ExecuteBatchDmlRequest_Statement_ParamTypesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_spanner_v1_ExecuteBatchDmlResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_spanner_v1_ExecuteBatchDmlResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_v1_ExecuteBatchDmlResponse_descriptor, + new java.lang.String[] { + "ResultSets", "Status", + }); + internal_static_google_spanner_v1_PartitionOptions_descriptor = + getDescriptor().getMessageTypes().get(9); internal_static_google_spanner_v1_PartitionOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_PartitionOptions_descriptor, @@ -345,7 +415,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "PartitionSizeBytes", "MaxPartitions", }); internal_static_google_spanner_v1_PartitionQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_spanner_v1_PartitionQueryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_PartitionQueryRequest_descriptor, @@ -361,7 +431,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Key", "Value", }); internal_static_google_spanner_v1_PartitionReadRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_spanner_v1_PartitionReadRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_PartitionReadRequest_descriptor, @@ -369,7 +439,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Session", "Transaction", "Table", "Index", "Columns", "KeySet", "PartitionOptions", }); internal_static_google_spanner_v1_Partition_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_spanner_v1_Partition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_Partition_descriptor, @@ -377,7 +447,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "PartitionToken", }); internal_static_google_spanner_v1_PartitionResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_spanner_v1_PartitionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_PartitionResponse_descriptor, @@ -385,7 +455,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Partitions", "Transaction", }); internal_static_google_spanner_v1_ReadRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_spanner_v1_ReadRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_ReadRequest_descriptor, @@ -401,7 +471,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "PartitionToken", }); internal_static_google_spanner_v1_BeginTransactionRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_spanner_v1_BeginTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_BeginTransactionRequest_descriptor, @@ -409,7 +479,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Session", "Options", }); internal_static_google_spanner_v1_CommitRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_spanner_v1_CommitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_CommitRequest_descriptor, @@ -417,7 +487,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Session", "TransactionId", "SingleUseTransaction", "Mutations", "Transaction", }); internal_static_google_spanner_v1_CommitResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_spanner_v1_CommitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_CommitResponse_descriptor, @@ -425,7 +495,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "CommitTimestamp", }); internal_static_google_spanner_v1_RollbackRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_spanner_v1_RollbackRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_v1_RollbackRequest_descriptor, @@ -441,6 +511,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); com.google.spanner.v1.KeysProto.getDescriptor(); com.google.spanner.v1.MutationProto.getDescriptor(); com.google.spanner.v1.ResultSetProto.getDescriptor(); diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/spanner.proto b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/spanner.proto index 7a01fb5e9dc3..b2091c92f7e1 100644 --- a/google-api-grpc/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/spanner.proto +++ b/google-api-grpc/proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/spanner.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -20,6 +21,7 @@ import "google/api/annotations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; import "google/spanner/v1/keys.proto"; import "google/spanner/v1/mutation.proto"; import "google/spanner/v1/result_set.proto"; @@ -80,7 +82,9 @@ service Spanner { }; } - // Ends a session, releasing server resources associated with it. + // Ends a session, releasing server resources associated with it. This will + // asynchronously trigger cancellation of any operations that are running with + // this session. rpc DeleteSession(DeleteSessionRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/instances/*/databases/*/sessions/*}" @@ -119,6 +123,32 @@ service Spanner { }; } + // Executes a batch of SQL DML statements. This method allows many statements + // to be run with lower latency than submitting them sequentially with + // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. + // + // Statements are executed in order, sequentially. + // [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a + // [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. If a + // statement fails, its error status will be returned as part of the + // [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will + // stop at the first failed statement; the remaining statements will not run. + // + // ExecuteBatchDml is expected to return an OK status with a response even if + // there was an error while processing one of the DML statements. Clients must + // inspect response.status to determine if there were any errors while + // processing the request. + // + // See more details in + // [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and + // [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. + rpc ExecuteBatchDml(ExecuteBatchDmlRequest) returns (ExecuteBatchDmlResponse) { + option (google.api.http) = { + post: "/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeBatchDml" + body: "*" + }; + } + // Reads rows from the database using key lookups and scans, as a // simple key/value style alternative to // [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. This method cannot be @@ -421,6 +451,97 @@ message ExecuteSqlRequest { int64 seqno = 9; } +// The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml] +message ExecuteBatchDmlRequest { + // A single DML statement. + message Statement { + // Required. The DML string. + string sql = 1; + + // The DML string can contain parameter placeholders. A parameter + // placeholder consists of `'@'` followed by the parameter + // name. Parameter names consist of any combination of letters, + // numbers, and underscores. + // + // Parameters can appear anywhere that a literal value is expected. The + // same parameter name can be used more than once, for example: + // `"WHERE id > @msg_id AND id < @msg_id + 100"` + // + // It is an error to execute an SQL statement with unbound parameters. + // + // Parameter values are specified using `params`, which is a JSON + // object whose keys are parameter names, and whose values are the + // corresponding parameter values. + google.protobuf.Struct params = 2; + + // It is not always possible for Cloud Spanner to infer the right SQL type + // from a JSON value. For example, values of type `BYTES` and values + // of type `STRING` both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings. + // + // In these cases, `param_types` can be used to specify the exact + // SQL type for some or all of the SQL statement parameters. See the + // definition of [Type][google.spanner.v1.Type] for more information + // about SQL types. + map param_types = 3; + } + + // Required. The session in which the DML statements should be performed. + string session = 1; + + // The transaction to use. A ReadWrite transaction is required. Single-use + // transactions are not supported (to avoid replay). The caller must either + // supply an existing transaction ID or begin a new transaction. + TransactionSelector transaction = 2; + + // The list of statements to execute in this batch. Statements are executed + // serially, such that the effects of statement i are visible to statement + // i+1. Each statement must be a DML statement. Execution will stop at the + // first failed statement; the remaining statements will not run. + // + // REQUIRES: statements_size() > 0. + repeated Statement statements = 3; + + // A per-transaction sequence number used to identify this request. This is + // used in the same space as the seqno in + // [ExecuteSqlRequest][Spanner.ExecuteSqlRequest]. See more details + // in [ExecuteSqlRequest][Spanner.ExecuteSqlRequest]. + int64 seqno = 4; +} + +// The response for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml]. Contains a list +// of [ResultSet][google.spanner.v1.ResultSet], one for each DML statement that has successfully executed. +// If a statement fails, the error is returned as part of the response payload. +// Clients can determine whether all DML statements have run successfully, or if +// a statement failed, using one of the following approaches: +// +// 1. Check if 'status' field is OkStatus. +// 2. Check if result_sets_size() equals the number of statements in +// [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest]. +// +// Example 1: A request with 5 DML statements, all executed successfully. +// Result: A response with 5 ResultSets, one for each statement in the same +// order, and an OK status. +// +// Example 2: A request with 5 DML statements. The 3rd statement has a syntax +// error. +// Result: A response with 2 ResultSets, for the first 2 statements that +// run successfully, and a syntax error (INVALID_ARGUMENT) status. From +// result_set_size() client can determine that the 3rd statement has failed. +message ExecuteBatchDmlResponse { + // ResultSets, one for each statement in the request that ran successfully, in + // the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] will + // not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] will + // contain the number of rows modified by the statement. + // + // Only the first ResultSet in the response contains a valid + // [ResultSetMetadata][google.spanner.v1.ResultSetMetadata]. + repeated ResultSet result_sets = 1; + + // If all DML statements are executed successfully, status will be OK. + // Otherwise, the error status of the first failed statement. + google.rpc.Status status = 2; +} + // Options for a PartitionQueryRequest and // PartitionReadRequest. message PartitionOptions { diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java index 1f611ca292ee..2b454965fb85 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.spanner.admin.database.v1.stub.DatabaseAdminStub; import com.google.cloud.spanner.admin.database.v1.stub.DatabaseAdminStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -1272,7 +1273,8 @@ public static ApiFuture createAsync( public ListDatabasesPagedResponse apply(ListDatabasesPage input) { return new ListDatabasesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDatabasesPagedResponse(ListDatabasesPage page) { diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java index 94bc50a45fcc..52eef3b3cb53 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.spanner.admin.instance.v1.stub.InstanceAdminStub; import com.google.cloud.spanner.admin.instance.v1.stub.InstanceAdminStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -1641,7 +1642,8 @@ public static ApiFuture createAsync( public ListInstanceConfigsPagedResponse apply(ListInstanceConfigsPage input) { return new ListInstanceConfigsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInstanceConfigsPagedResponse(ListInstanceConfigsPage page) { @@ -1728,7 +1730,8 @@ public static ApiFuture createAsync( public ListInstancesPagedResponse apply(ListInstancesPage input) { return new ListInstancesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInstancesPagedResponse(ListInstancesPage page) { diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java index cf6633182073..7543b54fccdc 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.spanner.v1.stub.SpannerStub; import com.google.cloud.spanner.v1.stub.SpannerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.spanner.v1.BeginTransactionRequest; @@ -36,6 +37,8 @@ import com.google.spanner.v1.CreateSessionRequest; import com.google.spanner.v1.DatabaseName; import com.google.spanner.v1.DeleteSessionRequest; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; import com.google.spanner.v1.ExecuteSqlRequest; import com.google.spanner.v1.GetSessionRequest; import com.google.spanner.v1.ListSessionsRequest; @@ -525,7 +528,8 @@ public final UnaryCallable listSessio // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Ends a session, releasing server resources associated with it. + * Ends a session, releasing server resources associated with it. This will asynchronously trigger + * cancellation of any operations that are running with this session. * *

Sample code: * @@ -548,7 +552,8 @@ public final void deleteSession(SessionName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Ends a session, releasing server resources associated with it. + * Ends a session, releasing server resources associated with it. This will asynchronously trigger + * cancellation of any operations that are running with this session. * *

Sample code: * @@ -570,7 +575,8 @@ public final void deleteSession(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Ends a session, releasing server resources associated with it. + * Ends a session, releasing server resources associated with it. This will asynchronously trigger + * cancellation of any operations that are running with this session. * *

Sample code: * @@ -593,7 +599,8 @@ public final void deleteSession(DeleteSessionRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Ends a session, releasing server resources associated with it. + * Ends a session, releasing server resources associated with it. This will asynchronously trigger + * cancellation of any operations that are running with this session. * *

Sample code: * @@ -710,6 +717,96 @@ public final UnaryCallable executeSqlCallable() { return stub.executeStreamingSqlCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Executes a batch of SQL DML statements. This method allows many statements to be run with lower + * latency than submitting them sequentially with + * [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. + * + *

Statements are executed in order, sequentially. + * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a + * [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. + * If a statement fails, its error status will be returned as part of the + * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will stop at the first + * failed statement; the remaining statements will not run. + * + *

ExecuteBatchDml is expected to return an OK status with a response even if there was an + * error while processing one of the DML statements. Clients must inspect response.status to + * determine if there were any errors while processing the request. + * + *

See more details in [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and + * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. + * + *

Sample code: + * + *


+   * try (SpannerClient spannerClient = SpannerClient.create()) {
+   *   SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]");
+   *   TransactionSelector transaction = TransactionSelector.newBuilder().build();
+   *   List<ExecuteBatchDmlRequest.Statement> statements = new ArrayList<>();
+   *   long seqno = 0L;
+   *   ExecuteBatchDmlRequest request = ExecuteBatchDmlRequest.newBuilder()
+   *     .setSession(session.toString())
+   *     .setTransaction(transaction)
+   *     .addAllStatements(statements)
+   *     .setSeqno(seqno)
+   *     .build();
+   *   ExecuteBatchDmlResponse response = spannerClient.executeBatchDml(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteBatchDmlResponse executeBatchDml(ExecuteBatchDmlRequest request) { + return executeBatchDmlCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Executes a batch of SQL DML statements. This method allows many statements to be run with lower + * latency than submitting them sequentially with + * [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. + * + *

Statements are executed in order, sequentially. + * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse] will contain a + * [ResultSet][google.spanner.v1.ResultSet] for each DML statement that has successfully executed. + * If a statement fails, its error status will be returned as part of the + * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. Execution will stop at the first + * failed statement; the remaining statements will not run. + * + *

ExecuteBatchDml is expected to return an OK status with a response even if there was an + * error while processing one of the DML statements. Clients must inspect response.status to + * determine if there were any errors while processing the request. + * + *

See more details in [ExecuteBatchDmlRequest][Spanner.ExecuteBatchDmlRequest] and + * [ExecuteBatchDmlResponse][Spanner.ExecuteBatchDmlResponse]. + * + *

Sample code: + * + *


+   * try (SpannerClient spannerClient = SpannerClient.create()) {
+   *   SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]");
+   *   TransactionSelector transaction = TransactionSelector.newBuilder().build();
+   *   List<ExecuteBatchDmlRequest.Statement> statements = new ArrayList<>();
+   *   long seqno = 0L;
+   *   ExecuteBatchDmlRequest request = ExecuteBatchDmlRequest.newBuilder()
+   *     .setSession(session.toString())
+   *     .setTransaction(transaction)
+   *     .addAllStatements(statements)
+   *     .setSeqno(seqno)
+   *     .build();
+   *   ApiFuture<ExecuteBatchDmlResponse> future = spannerClient.executeBatchDmlCallable().futureCall(request);
+   *   // Do something
+   *   ExecuteBatchDmlResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + executeBatchDmlCallable() { + return stub.executeBatchDmlCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Reads rows from the database using key lookups and scans, as a simple key/value style @@ -1475,7 +1572,8 @@ public static ApiFuture createAsync( public ListSessionsPagedResponse apply(ListSessionsPage input) { return new ListSessionsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSessionsPagedResponse(ListSessionsPage page) { diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java index e6bc753f5c95..59d76f84329a 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java @@ -36,6 +36,8 @@ import com.google.spanner.v1.CommitResponse; import com.google.spanner.v1.CreateSessionRequest; import com.google.spanner.v1.DeleteSessionRequest; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; import com.google.spanner.v1.ExecuteSqlRequest; import com.google.spanner.v1.GetSessionRequest; import com.google.spanner.v1.ListSessionsRequest; @@ -113,6 +115,12 @@ public UnaryCallSettings executeSqlSettings() { return ((SpannerStubSettings) getStubSettings()).executeStreamingSqlSettings(); } + /** Returns the object with the settings used for calls to executeBatchDml. */ + public UnaryCallSettings + executeBatchDmlSettings() { + return ((SpannerStubSettings) getStubSettings()).executeBatchDmlSettings(); + } + /** Returns the object with the settings used for calls to read. */ public UnaryCallSettings readSettings() { return ((SpannerStubSettings) getStubSettings()).readSettings(); @@ -277,6 +285,12 @@ public UnaryCallSettings.Builder executeSqlSetting return getStubSettingsBuilder().executeStreamingSqlSettings(); } + /** Returns the builder for the settings used for calls to executeBatchDml. */ + public UnaryCallSettings.Builder + executeBatchDmlSettings() { + return getStubSettingsBuilder().executeBatchDmlSettings(); + } + /** Returns the builder for the settings used for calls to read. */ public UnaryCallSettings.Builder readSettings() { return getStubSettingsBuilder().readSettings(); diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java index 3818afc33859..326ec0816c08 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java @@ -31,6 +31,8 @@ import com.google.spanner.v1.CommitResponse; import com.google.spanner.v1.CreateSessionRequest; import com.google.spanner.v1.DeleteSessionRequest; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; import com.google.spanner.v1.ExecuteSqlRequest; import com.google.spanner.v1.GetSessionRequest; import com.google.spanner.v1.ListSessionsRequest; @@ -107,6 +109,16 @@ public class GrpcSpannerStub extends SpannerStub { .setRequestMarshaller(ProtoUtils.marshaller(ExecuteSqlRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(PartialResultSet.getDefaultInstance())) .build(); + private static final MethodDescriptor + executeBatchDmlMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.spanner.v1.Spanner/ExecuteBatchDml") + .setRequestMarshaller( + ProtoUtils.marshaller(ExecuteBatchDmlRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ExecuteBatchDmlResponse.getDefaultInstance())) + .build(); private static final MethodDescriptor readMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -175,6 +187,8 @@ public class GrpcSpannerStub extends SpannerStub { private final UnaryCallable executeSqlCallable; private final ServerStreamingCallable executeStreamingSqlCallable; + private final UnaryCallable + executeBatchDmlCallable; private final UnaryCallable readCallable; private final ServerStreamingCallable streamingReadCallable; private final UnaryCallable beginTransactionCallable; @@ -243,6 +257,11 @@ protected GrpcSpannerStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(executeStreamingSqlMethodDescriptor) .build(); + GrpcCallSettings + executeBatchDmlTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(executeBatchDmlMethodDescriptor) + .build(); GrpcCallSettings readTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(readMethodDescriptor) @@ -295,6 +314,9 @@ protected GrpcSpannerStub( executeStreamingSqlTransportSettings, settings.executeStreamingSqlSettings(), clientContext); + this.executeBatchDmlCallable = + callableFactory.createUnaryCallable( + executeBatchDmlTransportSettings, settings.executeBatchDmlSettings(), clientContext); this.readCallable = callableFactory.createUnaryCallable( readTransportSettings, settings.readSettings(), clientContext); @@ -349,6 +371,10 @@ public UnaryCallable executeSqlCallable() { return executeStreamingSqlCallable; } + public UnaryCallable executeBatchDmlCallable() { + return executeBatchDmlCallable; + } + public UnaryCallable readCallable() { return readCallable; } diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java index 45a0ac0dd0ed..0b72ec8200d2 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java @@ -27,6 +27,8 @@ import com.google.spanner.v1.CommitResponse; import com.google.spanner.v1.CreateSessionRequest; import com.google.spanner.v1.DeleteSessionRequest; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; import com.google.spanner.v1.ExecuteSqlRequest; import com.google.spanner.v1.GetSessionRequest; import com.google.spanner.v1.ListSessionsRequest; @@ -81,6 +83,10 @@ public UnaryCallable executeSqlCallable() { throw new UnsupportedOperationException("Not implemented: executeStreamingSqlCallable()"); } + public UnaryCallable executeBatchDmlCallable() { + throw new UnsupportedOperationException("Not implemented: executeBatchDmlCallable()"); + } + public UnaryCallable readCallable() { throw new UnsupportedOperationException("Not implemented: readCallable()"); } diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java index e05a2447db75..775a86c72538 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java @@ -50,6 +50,8 @@ import com.google.spanner.v1.CommitResponse; import com.google.spanner.v1.CreateSessionRequest; import com.google.spanner.v1.DeleteSessionRequest; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; import com.google.spanner.v1.ExecuteSqlRequest; import com.google.spanner.v1.GetSessionRequest; import com.google.spanner.v1.ListSessionsRequest; @@ -112,6 +114,8 @@ public class SpannerStubSettings extends StubSettings { private final UnaryCallSettings executeSqlSettings; private final ServerStreamingCallSettings executeStreamingSqlSettings; + private final UnaryCallSettings + executeBatchDmlSettings; private final UnaryCallSettings readSettings; private final ServerStreamingCallSettings streamingReadSettings; private final UnaryCallSettings beginTransactionSettings; @@ -152,6 +156,12 @@ public UnaryCallSettings executeSqlSettings() { return executeStreamingSqlSettings; } + /** Returns the object with the settings used for calls to executeBatchDml. */ + public UnaryCallSettings + executeBatchDmlSettings() { + return executeBatchDmlSettings; + } + /** Returns the object with the settings used for calls to read. */ public UnaryCallSettings readSettings() { return readSettings; @@ -260,6 +270,7 @@ protected SpannerStubSettings(Builder settingsBuilder) throws IOException { deleteSessionSettings = settingsBuilder.deleteSessionSettings().build(); executeSqlSettings = settingsBuilder.executeSqlSettings().build(); executeStreamingSqlSettings = settingsBuilder.executeStreamingSqlSettings().build(); + executeBatchDmlSettings = settingsBuilder.executeBatchDmlSettings().build(); readSettings = settingsBuilder.readSettings().build(); streamingReadSettings = settingsBuilder.streamingReadSettings().build(); beginTransactionSettings = settingsBuilder.beginTransactionSettings().build(); @@ -335,6 +346,8 @@ public static class Builder extends StubSettings.Builder executeSqlSettings; private final ServerStreamingCallSettings.Builder executeStreamingSqlSettings; + private final UnaryCallSettings.Builder + executeBatchDmlSettings; private final UnaryCallSettings.Builder readSettings; private final ServerStreamingCallSettings.Builder streamingReadSettings; @@ -425,6 +438,8 @@ protected Builder(ClientContext clientContext) { executeStreamingSqlSettings = ServerStreamingCallSettings.newBuilder(); + executeBatchDmlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + readSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamingReadSettings = ServerStreamingCallSettings.newBuilder(); @@ -446,6 +461,7 @@ protected Builder(ClientContext clientContext) { listSessionsSettings, deleteSessionSettings, executeSqlSettings, + executeBatchDmlSettings, readSettings, beginTransactionSettings, commitSettings, @@ -497,6 +513,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("streaming")); + builder + .executeBatchDmlSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder .readSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) @@ -544,6 +565,7 @@ protected Builder(SpannerStubSettings settings) { deleteSessionSettings = settings.deleteSessionSettings.toBuilder(); executeSqlSettings = settings.executeSqlSettings.toBuilder(); executeStreamingSqlSettings = settings.executeStreamingSqlSettings.toBuilder(); + executeBatchDmlSettings = settings.executeBatchDmlSettings.toBuilder(); readSettings = settings.readSettings.toBuilder(); streamingReadSettings = settings.streamingReadSettings.toBuilder(); beginTransactionSettings = settings.beginTransactionSettings.toBuilder(); @@ -559,6 +581,7 @@ protected Builder(SpannerStubSettings settings) { listSessionsSettings, deleteSessionSettings, executeSqlSettings, + executeBatchDmlSettings, readSettings, beginTransactionSettings, commitSettings, @@ -616,6 +639,12 @@ public UnaryCallSettings.Builder executeSqlSetting return executeStreamingSqlSettings; } + /** Returns the builder for the settings used for calls to executeBatchDml. */ + public UnaryCallSettings.Builder + executeBatchDmlSettings() { + return executeBatchDmlSettings; + } + /** Returns the builder for the settings used for calls to read. */ public UnaryCallSettings.Builder readSettings() { return readSettings; diff --git a/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java b/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java index 0f23ffab7c33..1fc3105bca43 100644 --- a/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java +++ b/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java @@ -23,6 +23,8 @@ import com.google.spanner.v1.CommitResponse; import com.google.spanner.v1.CreateSessionRequest; import com.google.spanner.v1.DeleteSessionRequest; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; import com.google.spanner.v1.ExecuteSqlRequest; import com.google.spanner.v1.GetSessionRequest; import com.google.spanner.v1.ListSessionsRequest; @@ -162,6 +164,21 @@ public void executeStreamingSql( } } + @Override + public void executeBatchDml( + ExecuteBatchDmlRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ExecuteBatchDmlResponse) { + requests.add(request); + responseObserver.onNext((ExecuteBatchDmlResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + @Override public void read(ReadRequest request, StreamObserver responseObserver) { Object response = responses.remove(); diff --git a/google-cloud-clients/google-cloud-spanner/synth.metadata b/google-cloud-clients/google-cloud-spanner/synth.metadata index 951d594cb049..9e4f94580108 100644 --- a/google-cloud-clients/google-cloud-spanner/synth.metadata +++ b/google-cloud-clients/google-cloud-spanner/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:50:56.009586Z", + "updateTime": "2019-03-06T08:52:00.759549Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From e13408cdd9cc631ca9ae75b1e789dcf443f51a30 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 03:14:51 -0800 Subject: [PATCH 20/53] Regenerate logging client (#4641) --- .../java/com/google/cloud/logging/v2/ConfigClient.java | 7 +++++-- .../com/google/cloud/logging/v2/LoggingClient.java | 10 +++++++--- .../com/google/cloud/logging/v2/MetricsClient.java | 4 +++- .../google-cloud-logging/synth.metadata | 10 +++++----- 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java index ccc6bee49746..4970b9a9798e 100644 --- a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java +++ b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.logging.v2.stub.ConfigServiceV2Stub; import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.DeleteExclusionRequest; @@ -1490,7 +1491,8 @@ public static ApiFuture createAsync( public ListSinksPagedResponse apply(ListSinksPage input) { return new ListSinksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSinksPagedResponse(ListSinksPage page) { @@ -1569,7 +1571,8 @@ public static ApiFuture createAsync( public ListExclusionsPagedResponse apply(ListExclusionsPage input) { return new ListExclusionsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListExclusionsPagedResponse(ListExclusionsPage page) { diff --git a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java index 1f3bf042ea6d..34110d4471ae 100644 --- a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java +++ b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.logging.v2.stub.LoggingServiceV2Stub; import com.google.cloud.logging.v2.stub.LoggingServiceV2StubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.logging.v2.DeleteLogRequest; import com.google.logging.v2.ListLogEntriesRequest; import com.google.logging.v2.ListLogEntriesResponse; @@ -866,7 +867,8 @@ public static ApiFuture createAsync( public ListLogEntriesPagedResponse apply(ListLogEntriesPage input) { return new ListLogEntriesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListLogEntriesPagedResponse(ListLogEntriesPage page) { @@ -954,7 +956,8 @@ public ListMonitoredResourceDescriptorsPagedResponse apply( ListMonitoredResourceDescriptorsPage input) { return new ListMonitoredResourceDescriptorsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListMonitoredResourceDescriptorsPagedResponse( @@ -1047,7 +1050,8 @@ public static ApiFuture createAsync( public ListLogsPagedResponse apply(ListLogsPage input) { return new ListLogsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListLogsPagedResponse(ListLogsPage page) { diff --git a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java index 82b70a58f747..f72fb7fae008 100644 --- a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java +++ b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.logging.v2.stub.MetricsServiceV2Stub; import com.google.cloud.logging.v2.stub.MetricsServiceV2StubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.logging.v2.CreateLogMetricRequest; import com.google.logging.v2.DeleteLogMetricRequest; import com.google.logging.v2.GetLogMetricRequest; @@ -749,7 +750,8 @@ public static ApiFuture createAsync( public ListLogMetricsPagedResponse apply(ListLogMetricsPage input) { return new ListLogMetricsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListLogMetricsPagedResponse(ListLogMetricsPage page) { diff --git a/google-cloud-clients/google-cloud-logging/synth.metadata b/google-cloud-clients/google-cloud-logging/synth.metadata index 187ee79b23c1..a65f6d4fb48d 100644 --- a/google-cloud-clients/google-cloud-logging/synth.metadata +++ b/google-cloud-clients/google-cloud-logging/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-26T08:46:31.768482Z", + "updateTime": "2019-03-06T08:47:08.312966Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29f098cb03a9983cc9cb15993de5da64419046f2", - "internalRef": "235621085" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From b5094a727524d2a3a3c5cd34b4cf565b97a21535 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 03:15:11 -0800 Subject: [PATCH 21/53] Regenerate tasks client (#4648) --- .../google/cloud/tasks/v2beta2/CloudTasksClient.java | 7 +++++-- .../google/cloud/tasks/v2beta3/CloudTasksClient.java | 7 +++++-- google-cloud-clients/google-cloud-tasks/synth.metadata | 10 +++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/google-cloud-clients/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-clients/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java index 1741272844e7..81c44d7cd0dc 100644 --- a/google-cloud-clients/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java +++ b/google-cloud-clients/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.tasks.v2beta2.stub.CloudTasksStub; import com.google.cloud.tasks.v2beta2.stub.CloudTasksStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -2850,7 +2851,8 @@ public static ApiFuture createAsync( public ListQueuesPagedResponse apply(ListQueuesPage input) { return new ListQueuesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListQueuesPagedResponse(ListQueuesPage page) { @@ -2925,7 +2927,8 @@ public static ApiFuture createAsync( public ListTasksPagedResponse apply(ListTasksPage input) { return new ListTasksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTasksPagedResponse(ListTasksPage page) { diff --git a/google-cloud-clients/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-clients/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java index 3ee194cbbba5..6d6b6104d3c7 100644 --- a/google-cloud-clients/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java +++ b/google-cloud-clients/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.tasks.v2beta3.stub.CloudTasksStub; import com.google.cloud.tasks.v2beta3.stub.CloudTasksStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -2296,7 +2297,8 @@ public static ApiFuture createAsync( public ListQueuesPagedResponse apply(ListQueuesPage input) { return new ListQueuesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListQueuesPagedResponse(ListQueuesPage page) { @@ -2371,7 +2373,8 @@ public static ApiFuture createAsync( public ListTasksPagedResponse apply(ListTasksPage input) { return new ListTasksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTasksPagedResponse(ListTasksPage page) { diff --git a/google-cloud-clients/google-cloud-tasks/synth.metadata b/google-cloud-clients/google-cloud-tasks/synth.metadata index f54aef13d8cd..bcb6b2cec97c 100644 --- a/google-cloud-clients/google-cloud-tasks/synth.metadata +++ b/google-cloud-clients/google-cloud-tasks/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:54:09.252645Z", + "updateTime": "2019-03-06T08:53:41.978611Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 9d6027aa66a0f3659dea47ba3909d9ccd9d3acdc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 03:32:02 -0800 Subject: [PATCH 22/53] Regenerate securitycenter client (#4646) --- .../v1beta1/SecurityCenterClient.java | 16 +++++++++++----- .../google-cloud-securitycenter/synth.metadata | 10 +++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java index 8812fdf6294e..58434a9bbefa 100644 --- a/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java +++ b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.securitycenter.v1beta1.stub.SecurityCenterStub; import com.google.cloud.securitycenter.v1beta1.stub.SecurityCenterStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -2067,7 +2068,8 @@ public static ApiFuture createAsync( public GroupAssetsPagedResponse apply(GroupAssetsPage input) { return new GroupAssetsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private GroupAssetsPagedResponse(GroupAssetsPage page) { @@ -2146,7 +2148,8 @@ public static ApiFuture createAsync( public GroupFindingsPagedResponse apply(GroupFindingsPage input) { return new GroupFindingsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private GroupFindingsPagedResponse(GroupFindingsPage page) { @@ -2227,7 +2230,8 @@ public static ApiFuture createAsync( public ListAssetsPagedResponse apply(ListAssetsPage input) { return new ListAssetsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListAssetsPagedResponse(ListAssetsPage page) { @@ -2313,7 +2317,8 @@ public static ApiFuture createAsync( public ListFindingsPagedResponse apply(ListFindingsPage input) { return new ListFindingsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListFindingsPagedResponse(ListFindingsPage page) { @@ -2392,7 +2397,8 @@ public static ApiFuture createAsync( public ListSourcesPagedResponse apply(ListSourcesPage input) { return new ListSourcesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSourcesPagedResponse(ListSourcesPage page) { diff --git a/google-cloud-clients/google-cloud-securitycenter/synth.metadata b/google-cloud-clients/google-cloud-securitycenter/synth.metadata index 95ee3aef990f..c17ba15545b6 100644 --- a/google-cloud-clients/google-cloud-securitycenter/synth.metadata +++ b/google-cloud-clients/google-cloud-securitycenter/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:51:17.686846Z", + "updateTime": "2019-03-06T08:50:50.672265Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From 5b4e36c84e74e5e3ecc420df2a08a8beba395f90 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 6 Mar 2019 13:03:21 -0800 Subject: [PATCH 23/53] Bump gax to 1.42.0 (#4624) Also regenerate the Compute client to match the newest version of gax. --- google-cloud-bom/pom.xml | 2 +- .../compute/v1/AcceleratorTypeClient.java | 7 +++++-- .../cloud/compute/v1/AddressClient.java | 7 +++++-- .../cloud/compute/v1/AutoscalerClient.java | 7 +++++-- .../cloud/compute/v1/BackendBucketClient.java | 4 +++- .../compute/v1/BackendServiceClient.java | 7 +++++-- .../google/cloud/compute/v1/DiskClient.java | 7 +++++-- .../cloud/compute/v1/DiskTypeClient.java | 7 +++++-- .../cloud/compute/v1/FirewallClient.java | 4 +++- .../compute/v1/ForwardingRuleClient.java | 7 +++++-- .../cloud/compute/v1/GlobalAddressClient.java | 4 +++- .../v1/GlobalForwardingRuleClient.java | 4 +++- .../compute/v1/GlobalOperationClient.java | 7 +++++-- .../cloud/compute/v1/HealthCheckClient.java | 4 +++- .../compute/v1/HttpHealthCheckClient.java | 4 +++- .../compute/v1/HttpsHealthCheckClient.java | 4 +++- .../google/cloud/compute/v1/ImageClient.java | 4 +++- .../cloud/compute/v1/InstanceClient.java | 10 ++++++--- .../cloud/compute/v1/InstanceGroupClient.java | 10 ++++++--- .../v1/InstanceGroupManagerClient.java | 7 +++++-- .../compute/v1/InstanceTemplateClient.java | 4 +++- .../v1/InterconnectAttachmentClient.java | 7 +++++-- .../cloud/compute/v1/InterconnectClient.java | 4 +++- .../v1/InterconnectLocationClient.java | 4 +++- .../cloud/compute/v1/LicenseClient.java | 4 +++- .../cloud/compute/v1/MachineTypeClient.java | 7 +++++-- .../cloud/compute/v1/NetworkClient.java | 4 +++- .../cloud/compute/v1/NodeGroupClient.java | 10 ++++++--- .../cloud/compute/v1/NodeTemplateClient.java | 7 +++++-- .../cloud/compute/v1/NodeTypeClient.java | 7 +++++-- .../cloud/compute/v1/ProjectClient.java | 7 +++++-- .../compute/v1/RegionAutoscalerClient.java | 4 +++- .../v1/RegionBackendServiceClient.java | 4 +++- .../google/cloud/compute/v1/RegionClient.java | 4 +++- .../compute/v1/RegionCommitmentClient.java | 7 +++++-- .../cloud/compute/v1/RegionDiskClient.java | 4 +++- .../compute/v1/RegionDiskTypeClient.java | 4 +++- .../compute/v1/RegionInstanceGroupClient.java | 7 +++++-- .../v1/RegionInstanceGroupManagerClient.java | 4 +++- .../compute/v1/RegionOperationClient.java | 4 +++- .../google/cloud/compute/v1/RouteClient.java | 4 +++- .../google/cloud/compute/v1/RouterClient.java | 10 ++++++--- .../compute/v1/SecurityPolicyClient.java | 4 +++- .../cloud/compute/v1/SnapshotClient.java | 4 +++- .../compute/v1/SslCertificateClient.java | 4 +++- .../cloud/compute/v1/SslPolicyClient.java | 4 +++- .../cloud/compute/v1/SubnetworkClient.java | 10 ++++++--- .../compute/v1/TargetHttpProxyClient.java | 4 +++- .../compute/v1/TargetHttpsProxyClient.java | 4 +++- .../compute/v1/TargetInstanceClient.java | 7 +++++-- .../cloud/compute/v1/TargetPoolClient.java | 7 +++++-- .../compute/v1/TargetSslProxyClient.java | 4 +++- .../compute/v1/TargetTcpProxyClient.java | 4 +++- .../compute/v1/TargetVpnGatewayClient.java | 7 +++++-- .../google/cloud/compute/v1/UrlMapClient.java | 4 +++- .../cloud/compute/v1/VpnTunnelClient.java | 7 +++++-- .../google/cloud/compute/v1/ZoneClient.java | 4 +++- .../cloud/compute/v1/ZoneOperationClient.java | 4 +++- ...ttpJsonAcceleratorTypeCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonAddressCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonAutoscalerCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonBackendBucketCallableFactory.java | 21 ++++++++++++++++++- ...HttpJsonBackendServiceCallableFactory.java | 21 ++++++++++++++++++- .../v1/stub/HttpJsonDiskCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonDiskTypeCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonFirewallCallableFactory.java | 21 ++++++++++++++++++- ...HttpJsonForwardingRuleCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonGlobalAddressCallableFactory.java | 21 ++++++++++++++++++- ...onGlobalForwardingRuleCallableFactory.java | 21 ++++++++++++++++++- ...ttpJsonGlobalOperationCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonHealthCheckCallableFactory.java | 21 ++++++++++++++++++- ...ttpJsonHttpHealthCheckCallableFactory.java | 21 ++++++++++++++++++- ...tpJsonHttpsHealthCheckCallableFactory.java | 21 ++++++++++++++++++- .../v1/stub/HttpJsonImageCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonInstanceCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonInstanceGroupCallableFactory.java | 21 ++++++++++++++++++- ...onInstanceGroupManagerCallableFactory.java | 21 ++++++++++++++++++- ...tpJsonInstanceTemplateCallableFactory.java | 21 ++++++++++++++++++- ...InterconnectAttachmentCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonInterconnectCallableFactory.java | 21 ++++++++++++++++++- ...onInterconnectLocationCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonLicenseCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonLicenseCodeCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonMachineTypeCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonNetworkCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonNodeGroupCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonNodeTemplateCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonNodeTypeCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonProjectCallableFactory.java | 21 ++++++++++++++++++- ...tpJsonRegionAutoscalerCallableFactory.java | 21 ++++++++++++++++++- ...onRegionBackendServiceCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonRegionCallableFactory.java | 21 ++++++++++++++++++- ...tpJsonRegionCommitmentCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonRegionDiskCallableFactory.java | 21 ++++++++++++++++++- ...HttpJsonRegionDiskTypeCallableFactory.java | 21 ++++++++++++++++++- ...sonRegionInstanceGroupCallableFactory.java | 21 ++++++++++++++++++- ...onInstanceGroupManagerCallableFactory.java | 20 +++++++++++++++++- ...ttpJsonRegionOperationCallableFactory.java | 21 ++++++++++++++++++- .../v1/stub/HttpJsonRouteCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonRouterCallableFactory.java | 21 ++++++++++++++++++- ...HttpJsonSecurityPolicyCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonSnapshotCallableFactory.java | 21 ++++++++++++++++++- ...HttpJsonSslCertificateCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonSslPolicyCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonSubnetworkCallableFactory.java | 21 ++++++++++++++++++- ...ttpJsonTargetHttpProxyCallableFactory.java | 21 ++++++++++++++++++- ...tpJsonTargetHttpsProxyCallableFactory.java | 21 ++++++++++++++++++- ...HttpJsonTargetInstanceCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonTargetPoolCallableFactory.java | 21 ++++++++++++++++++- ...HttpJsonTargetSslProxyCallableFactory.java | 21 ++++++++++++++++++- ...HttpJsonTargetTcpProxyCallableFactory.java | 21 ++++++++++++++++++- ...tpJsonTargetVpnGatewayCallableFactory.java | 21 ++++++++++++++++++- .../stub/HttpJsonUrlMapCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonVpnTunnelCallableFactory.java | 21 ++++++++++++++++++- .../v1/stub/HttpJsonZoneCallableFactory.java | 21 ++++++++++++++++++- .../HttpJsonZoneOperationCallableFactory.java | 21 ++++++++++++++++++- google-cloud-clients/pom.xml | 2 +- 117 files changed, 1392 insertions(+), 147 deletions(-) diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index 9e4fd90c130c..f8c29606e131 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -168,7 +168,7 @@ com.google.api gax-bom - 1.40.0 + 1.42.0 pom import diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java index 501b6de15ded..58dc4d542ccf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.AcceleratorTypeStub; import com.google.cloud.compute.v1.stub.AcceleratorTypeStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -588,7 +589,8 @@ public AggregatedListAcceleratorTypesPagedResponse apply( AggregatedListAcceleratorTypesPage input) { return new AggregatedListAcceleratorTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListAcceleratorTypesPagedResponse(AggregatedListAcceleratorTypesPage page) { @@ -684,7 +686,8 @@ public static ApiFuture createAsync( public ListAcceleratorTypesPagedResponse apply(ListAcceleratorTypesPage input) { return new ListAcceleratorTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListAcceleratorTypesPagedResponse(ListAcceleratorTypesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java index 350917331d05..08d31b3cd55b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.AddressStub; import com.google.cloud.compute.v1.stub.AddressStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -782,7 +783,8 @@ public static ApiFuture createAsync( public AggregatedListAddressesPagedResponse apply(AggregatedListAddressesPage input) { return new AggregatedListAddressesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListAddressesPagedResponse(AggregatedListAddressesPage page) { @@ -869,7 +871,8 @@ public static ApiFuture createAsync( public ListAddressesPagedResponse apply(ListAddressesPage input) { return new ListAddressesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListAddressesPagedResponse(ListAddressesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java index e1a36fe8bb5e..1118fc2870d6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.AutoscalerStub; import com.google.cloud.compute.v1.stub.AutoscalerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1096,7 +1097,8 @@ public AggregatedListAutoscalersPagedResponse apply( AggregatedListAutoscalersPage input) { return new AggregatedListAutoscalersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListAutoscalersPagedResponse(AggregatedListAutoscalersPage page) { @@ -1192,7 +1194,8 @@ public static ApiFuture createAsync( public ListAutoscalersPagedResponse apply(ListAutoscalersPage input) { return new ListAutoscalersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListAutoscalersPagedResponse(ListAutoscalersPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java index 108449139b62..6b4bf3afcda0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.BackendBucketStub; import com.google.cloud.compute.v1.stub.BackendBucketStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1157,7 +1158,8 @@ public static ApiFuture createAsync( public ListBackendBucketsPagedResponse apply(ListBackendBucketsPage input) { return new ListBackendBucketsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListBackendBucketsPagedResponse(ListBackendBucketsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java index 04290a2a09cd..0142ca5636a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.BackendServiceStub; import com.google.cloud.compute.v1.stub.BackendServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1565,7 +1566,8 @@ public AggregatedListBackendServicesPagedResponse apply( AggregatedListBackendServicesPage input) { return new AggregatedListBackendServicesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListBackendServicesPagedResponse(AggregatedListBackendServicesPage page) { @@ -1661,7 +1663,8 @@ public static ApiFuture createAsync( public ListBackendServicesPagedResponse apply(ListBackendServicesPage input) { return new ListBackendServicesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListBackendServicesPagedResponse(ListBackendServicesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java index acad92e6aea4..ab2fb75dc6fc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.DiskStub; import com.google.cloud.compute.v1.stub.DiskStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1467,7 +1468,8 @@ public static ApiFuture createAsync( public AggregatedListDisksPagedResponse apply(AggregatedListDisksPage input) { return new AggregatedListDisksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListDisksPagedResponse(AggregatedListDisksPage page) { @@ -1547,7 +1549,8 @@ public static ApiFuture createAsync( public ListDisksPagedResponse apply(ListDisksPage input) { return new ListDisksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDisksPagedResponse(ListDisksPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java index 2edf71da0449..18e200e04447 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.DiskTypeStub; import com.google.cloud.compute.v1.stub.DiskTypeStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -576,7 +577,8 @@ public static ApiFuture createAsync( public AggregatedListDiskTypesPagedResponse apply(AggregatedListDiskTypesPage input) { return new AggregatedListDiskTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListDiskTypesPagedResponse(AggregatedListDiskTypesPage page) { @@ -663,7 +665,8 @@ public static ApiFuture createAsync( public ListDiskTypesPagedResponse apply(ListDiskTypesPage input) { return new ListDiskTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListDiskTypesPagedResponse(ListDiskTypesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java index 6bc1ca517763..c820b36db818 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.FirewallStub; import com.google.cloud.compute.v1.stub.FirewallStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -905,7 +906,8 @@ public static ApiFuture createAsync( public ListFirewallsPagedResponse apply(ListFirewallsPage input) { return new ListFirewallsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListFirewallsPagedResponse(ListFirewallsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java index ba45653bc3ea..05cf9a616d1c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.ForwardingRuleStub; import com.google.cloud.compute.v1.stub.ForwardingRuleStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -926,7 +927,8 @@ public AggregatedListForwardingRulesPagedResponse apply( AggregatedListForwardingRulesPage input) { return new AggregatedListForwardingRulesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListForwardingRulesPagedResponse(AggregatedListForwardingRulesPage page) { @@ -1022,7 +1024,8 @@ public static ApiFuture createAsync( public ListForwardingRulesPagedResponse apply(ListForwardingRulesPage input) { return new ListForwardingRulesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListForwardingRulesPagedResponse(ListForwardingRulesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java index 9aa48d06041f..0716cbdf7ba2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.GlobalAddressStub; import com.google.cloud.compute.v1.stub.GlobalAddressStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -653,7 +654,8 @@ public static ApiFuture createAsync( public ListGlobalAddressesPagedResponse apply(ListGlobalAddressesPage input) { return new ListGlobalAddressesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListGlobalAddressesPagedResponse(ListGlobalAddressesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java index 64156dde5424..7708ee9c662d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.GlobalForwardingRuleStub; import com.google.cloud.compute.v1.stub.GlobalForwardingRuleStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -792,7 +793,8 @@ public ListGlobalForwardingRulesPagedResponse apply( ListGlobalForwardingRulesPage input) { return new ListGlobalForwardingRulesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListGlobalForwardingRulesPagedResponse(ListGlobalForwardingRulesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java index cf3ff11bfbfe..59e97d9af274 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.GlobalOperationStub; import com.google.cloud.compute.v1.stub.GlobalOperationStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -689,7 +690,8 @@ public AggregatedListGlobalOperationsPagedResponse apply( AggregatedListGlobalOperationsPage input) { return new AggregatedListGlobalOperationsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListGlobalOperationsPagedResponse(AggregatedListGlobalOperationsPage page) { @@ -785,7 +787,8 @@ public static ApiFuture createAsync( public ListGlobalOperationsPagedResponse apply(ListGlobalOperationsPage input) { return new ListGlobalOperationsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListGlobalOperationsPagedResponse(ListGlobalOperationsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java index 0eaa5d6ed784..da6f30e54756 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.HealthCheckStub; import com.google.cloud.compute.v1.stub.HealthCheckStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -919,7 +920,8 @@ public static ApiFuture createAsync( public ListHealthChecksPagedResponse apply(ListHealthChecksPage input) { return new ListHealthChecksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListHealthChecksPagedResponse(ListHealthChecksPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java index dd2f1223f2f2..51f30aece082 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.HttpHealthCheckStub; import com.google.cloud.compute.v1.stub.HttpHealthCheckStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -936,7 +937,8 @@ public static ApiFuture createAsync( public ListHttpHealthChecksPagedResponse apply(ListHttpHealthChecksPage input) { return new ListHttpHealthChecksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListHttpHealthChecksPagedResponse(ListHttpHealthChecksPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java index 7fcf330f460b..c286a2d35b35 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.HttpsHealthCheckStub; import com.google.cloud.compute.v1.stub.HttpsHealthCheckStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -940,7 +941,8 @@ public static ApiFuture createAsync( public ListHttpsHealthChecksPagedResponse apply(ListHttpsHealthChecksPage input) { return new ListHttpsHealthChecksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListHttpsHealthChecksPagedResponse(ListHttpsHealthChecksPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java index cdef2a1d21b7..b82b84081162 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.ImageStub; import com.google.cloud.compute.v1.stub.ImageStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1321,7 +1322,8 @@ public static ApiFuture createAsync( public ListImagesPagedResponse apply(ListImagesPage input) { return new ListImagesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListImagesPagedResponse(ListImagesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java index b57f56275808..d96eaccb1843 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.InstanceStub; import com.google.cloud.compute.v1.stub.InstanceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -3849,7 +3850,8 @@ public static ApiFuture createAsync( public AggregatedListInstancesPagedResponse apply(AggregatedListInstancesPage input) { return new AggregatedListInstancesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListInstancesPagedResponse(AggregatedListInstancesPage page) { @@ -3936,7 +3938,8 @@ public static ApiFuture createAsync( public ListInstancesPagedResponse apply(ListInstancesPage input) { return new ListInstancesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInstancesPagedResponse(ListInstancesPage page) { @@ -4015,7 +4018,8 @@ public static ApiFuture createAsync( public ListReferrersInstancesPagedResponse apply(ListReferrersInstancesPage input) { return new ListReferrersInstancesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListReferrersInstancesPagedResponse(ListReferrersInstancesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java index 11efff7ab9d4..230022674f3c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.InstanceGroupStub; import com.google.cloud.compute.v1.stub.InstanceGroupStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1350,7 +1351,8 @@ public AggregatedListInstanceGroupsPagedResponse apply( AggregatedListInstanceGroupsPage input) { return new AggregatedListInstanceGroupsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListInstanceGroupsPagedResponse(AggregatedListInstanceGroupsPage page) { @@ -1446,7 +1448,8 @@ public static ApiFuture createAsync( public ListInstanceGroupsPagedResponse apply(ListInstanceGroupsPage input) { return new ListInstanceGroupsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInstanceGroupsPagedResponse(ListInstanceGroupsPage page) { @@ -1534,7 +1537,8 @@ public ListInstancesInstanceGroupsPagedResponse apply( ListInstancesInstanceGroupsPage input) { return new ListInstancesInstanceGroupsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInstancesInstanceGroupsPagedResponse(ListInstancesInstanceGroupsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java index c6beb0d7ec7d..98daac1376c1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.InstanceGroupManagerStub; import com.google.cloud.compute.v1.stub.InstanceGroupManagerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -2074,7 +2075,8 @@ public AggregatedListInstanceGroupManagersPagedResponse apply( AggregatedListInstanceGroupManagersPage input) { return new AggregatedListInstanceGroupManagersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListInstanceGroupManagersPagedResponse( @@ -2176,7 +2178,8 @@ public ListInstanceGroupManagersPagedResponse apply( ListInstanceGroupManagersPage input) { return new ListInstanceGroupManagersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInstanceGroupManagersPagedResponse(ListInstanceGroupManagersPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java index 9c2db2c3a0ce..d53795c3e251 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.InstanceTemplateStub; import com.google.cloud.compute.v1.stub.InstanceTemplateStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1012,7 +1013,8 @@ public static ApiFuture createAsync( public ListInstanceTemplatesPagedResponse apply(ListInstanceTemplatesPage input) { return new ListInstanceTemplatesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInstanceTemplatesPagedResponse(ListInstanceTemplatesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java index d5db6755193c..faeea674b4f0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.InterconnectAttachmentStub; import com.google.cloud.compute.v1.stub.InterconnectAttachmentStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -965,7 +966,8 @@ public AggregatedListInterconnectAttachmentsPagedResponse apply( AggregatedListInterconnectAttachmentsPage input) { return new AggregatedListInterconnectAttachmentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListInterconnectAttachmentsPagedResponse( @@ -1070,7 +1072,8 @@ public ListInterconnectAttachmentsPagedResponse apply( ListInterconnectAttachmentsPage input) { return new ListInterconnectAttachmentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInterconnectAttachmentsPagedResponse(ListInterconnectAttachmentsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java index f9063400e48e..3111244a2b9c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.InterconnectStub; import com.google.cloud.compute.v1.stub.InterconnectStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -895,7 +896,8 @@ public static ApiFuture createAsync( public ListInterconnectsPagedResponse apply(ListInterconnectsPage input) { return new ListInterconnectsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInterconnectsPagedResponse(ListInterconnectsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationClient.java index 34d614be7b7f..57c6676d86ca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.InterconnectLocationStub; import com.google.cloud.compute.v1.stub.InterconnectLocationStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -455,7 +456,8 @@ public ListInterconnectLocationsPagedResponse apply( ListInterconnectLocationsPage input) { return new ListInterconnectLocationsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInterconnectLocationsPagedResponse(ListInterconnectLocationsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java index 9ee3ecb5639e..b909832fb1db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.LicenseStub; import com.google.cloud.compute.v1.stub.LicenseStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -985,7 +986,8 @@ public static ApiFuture createAsync( public ListLicensesPagedResponse apply(ListLicensesPage input) { return new ListLicensesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListLicensesPagedResponse(ListLicensesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeClient.java index 190dfe32c55b..1aab88b7ea75 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.MachineTypeStub; import com.google.cloud.compute.v1.stub.MachineTypeStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -585,7 +586,8 @@ public AggregatedListMachineTypesPagedResponse apply( AggregatedListMachineTypesPage input) { return new AggregatedListMachineTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListMachineTypesPagedResponse(AggregatedListMachineTypesPage page) { @@ -681,7 +683,8 @@ public static ApiFuture createAsync( public ListMachineTypesPagedResponse apply(ListMachineTypesPage input) { return new ListMachineTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListMachineTypesPagedResponse(ListMachineTypesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java index ff33058b68e4..b617ce77de46 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.NetworkStub; import com.google.cloud.compute.v1.stub.NetworkStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1101,7 +1102,8 @@ public static ApiFuture createAsync( public ListNetworksPagedResponse apply(ListNetworksPage input) { return new ListNetworksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListNetworksPagedResponse(ListNetworksPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java index 706aaaebb4ac..209d05f2442b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.NodeGroupStub; import com.google.cloud.compute.v1.stub.NodeGroupStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1613,7 +1614,8 @@ public static ApiFuture createAsync( public AggregatedListNodeGroupsPagedResponse apply(AggregatedListNodeGroupsPage input) { return new AggregatedListNodeGroupsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListNodeGroupsPagedResponse(AggregatedListNodeGroupsPage page) { @@ -1703,7 +1705,8 @@ public static ApiFuture createAsync( public ListNodeGroupsPagedResponse apply(ListNodeGroupsPage input) { return new ListNodeGroupsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListNodeGroupsPagedResponse(ListNodeGroupsPage page) { @@ -1783,7 +1786,8 @@ public static ApiFuture createAsync( public ListNodesNodeGroupsPagedResponse apply(ListNodesNodeGroupsPage input) { return new ListNodesNodeGroupsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListNodesNodeGroupsPagedResponse(ListNodesNodeGroupsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java index 698632e89990..88a3a7ec20d5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.NodeTemplateStub; import com.google.cloud.compute.v1.stub.NodeTemplateStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1130,7 +1131,8 @@ public AggregatedListNodeTemplatesPagedResponse apply( AggregatedListNodeTemplatesPage input) { return new AggregatedListNodeTemplatesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListNodeTemplatesPagedResponse(AggregatedListNodeTemplatesPage page) { @@ -1226,7 +1228,8 @@ public static ApiFuture createAsync( public ListNodeTemplatesPagedResponse apply(ListNodeTemplatesPage input) { return new ListNodeTemplatesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListNodeTemplatesPagedResponse(ListNodeTemplatesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeClient.java index 3d133f475301..47c0fca39745 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.NodeTypeStub; import com.google.cloud.compute.v1.stub.NodeTypeStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -576,7 +577,8 @@ public static ApiFuture createAsync( public AggregatedListNodeTypesPagedResponse apply(AggregatedListNodeTypesPage input) { return new AggregatedListNodeTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListNodeTypesPagedResponse(AggregatedListNodeTypesPage page) { @@ -663,7 +665,8 @@ public static ApiFuture createAsync( public ListNodeTypesPagedResponse apply(ListNodeTypesPage input) { return new ListNodeTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListNodeTypesPagedResponse(ListNodeTypesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java index 033c79113007..ca220297e908 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.ProjectStub; import com.google.cloud.compute.v1.stub.ProjectStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1692,7 +1693,8 @@ public static ApiFuture createAsync( public GetXpnResourcesProjectsPagedResponse apply(GetXpnResourcesProjectsPage input) { return new GetXpnResourcesProjectsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private GetXpnResourcesProjectsPagedResponse(GetXpnResourcesProjectsPage page) { @@ -1779,7 +1781,8 @@ public static ApiFuture createAsync( public ListXpnHostsProjectsPagedResponse apply(ListXpnHostsProjectsPage input) { return new ListXpnHostsProjectsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListXpnHostsProjectsPagedResponse(ListXpnHostsProjectsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java index 1e91496bc68a..8d1a1e8437b4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionAutoscalerStub; import com.google.cloud.compute.v1.stub.RegionAutoscalerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -958,7 +959,8 @@ public static ApiFuture createAsync( public ListRegionAutoscalersPagedResponse apply(ListRegionAutoscalersPage input) { return new ListRegionAutoscalersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRegionAutoscalersPagedResponse(ListRegionAutoscalersPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java index fae1e1a33a1c..d793ab2ef4d3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionBackendServiceStub; import com.google.cloud.compute.v1.stub.RegionBackendServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1076,7 +1077,8 @@ public ListRegionBackendServicesPagedResponse apply( ListRegionBackendServicesPage input) { return new ListRegionBackendServicesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRegionBackendServicesPagedResponse(ListRegionBackendServicesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionClient.java index c5ff98425a2f..d46c29730e8c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionStub; import com.google.cloud.compute.v1.stub.RegionStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -436,7 +437,8 @@ public static ApiFuture createAsync( public ListRegionsPagedResponse apply(ListRegionsPage input) { return new ListRegionsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRegionsPagedResponse(ListRegionsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java index f9f4b82b5493..ccb1e5aca3f7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionCommitmentStub; import com.google.cloud.compute.v1.stub.RegionCommitmentStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -716,7 +717,8 @@ public AggregatedListRegionCommitmentsPagedResponse apply( AggregatedListRegionCommitmentsPage input) { return new AggregatedListRegionCommitmentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListRegionCommitmentsPagedResponse(AggregatedListRegionCommitmentsPage page) { @@ -812,7 +814,8 @@ public static ApiFuture createAsync( public ListRegionCommitmentsPagedResponse apply(ListRegionCommitmentsPage input) { return new ListRegionCommitmentsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRegionCommitmentsPagedResponse(ListRegionCommitmentsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java index 77c210bf1a6c..25d3d40272ab 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionDiskStub; import com.google.cloud.compute.v1.stub.RegionDiskStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1104,7 +1105,8 @@ public static ApiFuture createAsync( public ListRegionDisksPagedResponse apply(ListRegionDisksPage input) { return new ListRegionDisksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRegionDisksPagedResponse(ListRegionDisksPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeClient.java index 9e417283fc85..360e590621bc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionDiskTypeStub; import com.google.cloud.compute.v1.stub.RegionDiskTypeStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -441,7 +442,8 @@ public static ApiFuture createAsync( public ListRegionDiskTypesPagedResponse apply(ListRegionDiskTypesPage input) { return new ListRegionDiskTypesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRegionDiskTypesPagedResponse(ListRegionDiskTypesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java index 5c4e6526a97b..7531f101bd6a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionInstanceGroupStub; import com.google.cloud.compute.v1.stub.RegionInstanceGroupStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -732,7 +733,8 @@ public static ApiFuture createAsync( public ListRegionInstanceGroupsPagedResponse apply(ListRegionInstanceGroupsPage input) { return new ListRegionInstanceGroupsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRegionInstanceGroupsPagedResponse(ListRegionInstanceGroupsPage page) { @@ -827,7 +829,8 @@ public ListInstancesRegionInstanceGroupsPagedResponse apply( ListInstancesRegionInstanceGroupsPage input) { return new ListInstancesRegionInstanceGroupsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListInstancesRegionInstanceGroupsPagedResponse( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java index 7f328294b74a..2511a1d27b26 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionInstanceGroupManagerStub; import com.google.cloud.compute.v1.stub.RegionInstanceGroupManagerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1866,7 +1867,8 @@ public ListRegionInstanceGroupManagersPagedResponse apply( ListRegionInstanceGroupManagersPage input) { return new ListRegionInstanceGroupManagersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRegionInstanceGroupManagersPagedResponse(ListRegionInstanceGroupManagersPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationClient.java index ae66e41e6c6f..ebfd8f0a24f1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionOperationStub; import com.google.cloud.compute.v1.stub.RegionOperationStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -537,7 +538,8 @@ public static ApiFuture createAsync( public ListRegionOperationsPagedResponse apply(ListRegionOperationsPage input) { return new ListRegionOperationsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRegionOperationsPagedResponse(ListRegionOperationsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java index 7823767111cf..98a552173875 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RouteStub; import com.google.cloud.compute.v1.stub.RouteStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -658,7 +659,8 @@ public static ApiFuture createAsync( public ListRoutesPagedResponse apply(ListRoutesPage input) { return new ListRoutesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRoutesPagedResponse(ListRoutesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java index dadaa6afb804..933d9468b4bb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RouterStub; import com.google.cloud.compute.v1.stub.RouterStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1395,7 +1396,8 @@ public static ApiFuture createAsync( public AggregatedListRoutersPagedResponse apply(AggregatedListRoutersPage input) { return new AggregatedListRoutersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListRoutersPagedResponse(AggregatedListRoutersPage page) { @@ -1486,7 +1488,8 @@ public static ApiFuture createAsync( public GetNatMappingInfoRoutersPagedResponse apply(GetNatMappingInfoRoutersPage input) { return new GetNatMappingInfoRoutersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private GetNatMappingInfoRoutersPagedResponse(GetNatMappingInfoRoutersPage page) { @@ -1582,7 +1585,8 @@ public static ApiFuture createAsync( public ListRoutersPagedResponse apply(ListRoutersPage input) { return new ListRoutersPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListRoutersPagedResponse(ListRoutersPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java index e1add564f16d..49e2f830fb61 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.SecurityPolicyStub; import com.google.cloud.compute.v1.stub.SecurityPolicyStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1250,7 +1251,8 @@ public static ApiFuture createAsync( public ListSecurityPoliciesPagedResponse apply(ListSecurityPoliciesPage input) { return new ListSecurityPoliciesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSecurityPoliciesPagedResponse(ListSecurityPoliciesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java index 85553b55b7fb..e1bf3225a6b7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.SnapshotStub; import com.google.cloud.compute.v1.stub.SnapshotStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -999,7 +1000,8 @@ public static ApiFuture createAsync( public ListSnapshotsPagedResponse apply(ListSnapshotsPage input) { return new ListSnapshotsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSnapshotsPagedResponse(ListSnapshotsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java index 8e5ed73bcfe1..6028c1f0d39a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.SslCertificateStub; import com.google.cloud.compute.v1.stub.SslCertificateStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -660,7 +661,8 @@ public static ApiFuture createAsync( public ListSslCertificatesPagedResponse apply(ListSslCertificatesPage input) { return new ListSslCertificatesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSslCertificatesPagedResponse(ListSslCertificatesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java index 843b7f63b18b..afc899c8258d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.SslPolicyStub; import com.google.cloud.compute.v1.stub.SslPolicyStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -895,7 +896,8 @@ public static ApiFuture createAsync( public ListSslPoliciesPagedResponse apply(ListSslPoliciesPage input) { return new ListSslPoliciesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSslPoliciesPagedResponse(ListSslPoliciesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java index bb80c9d6c130..39429fe085c9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.SubnetworkStub; import com.google.cloud.compute.v1.stub.SubnetworkStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1632,7 +1633,8 @@ public AggregatedListSubnetworksPagedResponse apply( AggregatedListSubnetworksPage input) { return new AggregatedListSubnetworksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListSubnetworksPagedResponse(AggregatedListSubnetworksPage page) { @@ -1728,7 +1730,8 @@ public static ApiFuture createAsync( public ListSubnetworksPagedResponse apply(ListSubnetworksPage input) { return new ListSubnetworksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSubnetworksPagedResponse(ListSubnetworksPage page) { @@ -1811,7 +1814,8 @@ public static ApiFuture createAsync( public ListUsableSubnetworksPagedResponse apply(ListUsableSubnetworksPage input) { return new ListUsableSubnetworksPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListUsableSubnetworksPagedResponse(ListUsableSubnetworksPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java index 235e0176e5ef..ab07a90e24db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.TargetHttpProxyStub; import com.google.cloud.compute.v1.stub.TargetHttpProxyStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -772,7 +773,8 @@ public static ApiFuture createAsync( public ListTargetHttpProxiesPagedResponse apply(ListTargetHttpProxiesPage input) { return new ListTargetHttpProxiesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTargetHttpProxiesPagedResponse(ListTargetHttpProxiesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java index 439a5944f737..3d6901d4a490 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.TargetHttpsProxyStub; import com.google.cloud.compute.v1.stub.TargetHttpsProxyStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1142,7 +1143,8 @@ public static ApiFuture createAsync( public ListTargetHttpsProxiesPagedResponse apply(ListTargetHttpsProxiesPage input) { return new ListTargetHttpsProxiesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTargetHttpsProxiesPagedResponse(ListTargetHttpsProxiesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java index 37644b84a4ba..1eb959e74769 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.TargetInstanceStub; import com.google.cloud.compute.v1.stub.TargetInstanceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -807,7 +808,8 @@ public AggregatedListTargetInstancesPagedResponse apply( AggregatedListTargetInstancesPage input) { return new AggregatedListTargetInstancesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListTargetInstancesPagedResponse(AggregatedListTargetInstancesPage page) { @@ -903,7 +905,8 @@ public static ApiFuture createAsync( public ListTargetInstancesPagedResponse apply(ListTargetInstancesPage input) { return new ListTargetInstancesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTargetInstancesPagedResponse(ListTargetInstancesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java index 523c6e282375..d1454e0ba3e7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.TargetPoolStub; import com.google.cloud.compute.v1.stub.TargetPoolStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1496,7 +1497,8 @@ public AggregatedListTargetPoolsPagedResponse apply( AggregatedListTargetPoolsPage input) { return new AggregatedListTargetPoolsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListTargetPoolsPagedResponse(AggregatedListTargetPoolsPage page) { @@ -1592,7 +1594,8 @@ public static ApiFuture createAsync( public ListTargetPoolsPagedResponse apply(ListTargetPoolsPage input) { return new ListTargetPoolsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTargetPoolsPagedResponse(ListTargetPoolsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java index 443a8fb50925..ddda0fcc5d31 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.TargetSslProxyStub; import com.google.cloud.compute.v1.stub.TargetSslProxyStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1136,7 +1137,8 @@ public static ApiFuture createAsync( public ListTargetSslProxiesPagedResponse apply(ListTargetSslProxiesPage input) { return new ListTargetSslProxiesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTargetSslProxiesPagedResponse(ListTargetSslProxiesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java index 0fbcd7c51685..d34de3033329 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.TargetTcpProxyStub; import com.google.cloud.compute.v1.stub.TargetTcpProxyStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -894,7 +895,8 @@ public static ApiFuture createAsync( public ListTargetTcpProxiesPagedResponse apply(ListTargetTcpProxiesPage input) { return new ListTargetTcpProxiesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTargetTcpProxiesPagedResponse(ListTargetTcpProxiesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java index 745be670bcfd..1d2a4852a2f6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.TargetVpnGatewayStub; import com.google.cloud.compute.v1.stub.TargetVpnGatewayStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -812,7 +813,8 @@ public AggregatedListTargetVpnGatewaysPagedResponse apply( AggregatedListTargetVpnGatewaysPage input) { return new AggregatedListTargetVpnGatewaysPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListTargetVpnGatewaysPagedResponse(AggregatedListTargetVpnGatewaysPage page) { @@ -909,7 +911,8 @@ public static ApiFuture createAsync( public ListTargetVpnGatewaysPagedResponse apply(ListTargetVpnGatewaysPage input) { return new ListTargetVpnGatewaysPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTargetVpnGatewaysPagedResponse(ListTargetVpnGatewaysPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java index 26a3c830ac28..ae06a360973c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.UrlMapStub; import com.google.cloud.compute.v1.stub.UrlMapStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -1137,7 +1138,8 @@ public static ApiFuture createAsync( public ListUrlMapsPagedResponse apply(ListUrlMapsPage input) { return new ListUrlMapsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListUrlMapsPagedResponse(ListUrlMapsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java index f69be3298ba9..d70c1633ed9b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.VpnTunnelStub; import com.google.cloud.compute.v1.stub.VpnTunnelStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -790,7 +791,8 @@ public static ApiFuture createAsync( public AggregatedListVpnTunnelsPagedResponse apply(AggregatedListVpnTunnelsPage input) { return new AggregatedListVpnTunnelsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private AggregatedListVpnTunnelsPagedResponse(AggregatedListVpnTunnelsPage page) { @@ -880,7 +882,8 @@ public static ApiFuture createAsync( public ListVpnTunnelsPagedResponse apply(ListVpnTunnelsPage input) { return new ListVpnTunnelsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListVpnTunnelsPagedResponse(ListVpnTunnelsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneClient.java index 0599a4740ca7..312bd9bcb0e9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.ZoneStub; import com.google.cloud.compute.v1.stub.ZoneStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -425,7 +426,8 @@ public static ApiFuture createAsync( public ListZonesPagedResponse apply(ListZonesPage input) { return new ListZonesPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListZonesPagedResponse(ListZonesPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java index dc0774a7bc4a..0f8e668bb93d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.ZoneOperationStub; import com.google.cloud.compute.v1.stub.ZoneOperationStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -534,7 +535,8 @@ public static ApiFuture createAsync( public ListZoneOperationsPagedResponse apply(ListZoneOperationsPage input) { return new ListZoneOperationsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListZoneOperationsPagedResponse(ListZoneOperationsPage page) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java index 4cfae18316bd..f98b842de2f3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonAcceleratorTypeCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonAcceleratorTypeCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java index 69365a14f053..54570ef9bee7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonAddressCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonAddressCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java index c809bd99b192..bf2a6bb5ed37 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonAutoscalerCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonAutoscalerCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java index 25f2a59c0cff..710c72d7bc5c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonBackendBucketCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonBackendBucketCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java index d8c3a181ec7c..8c4b12c8b3d1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonBackendServiceCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonBackendServiceCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java index 26772348f613..485cea4ab245 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonDiskCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonDiskCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java index 928e628b530a..3d72e9bdf1a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonDiskTypeCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonDiskTypeCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java index 16199de782e1..bc1b29e02730 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonFirewallCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonFirewallCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java index 3a4bf5f6e844..212ea0f764cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonForwardingRuleCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonForwardingRuleCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java index 62da914a4012..be77e16cfd1c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonGlobalAddressCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonGlobalAddressCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java index 584a93b0104b..80e662310fac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonGlobalForwardingRuleCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonGlobalForwardingRuleCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java index b23bc230a52f..5abc79e0b133 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonGlobalOperationCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonGlobalOperationCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java index 6eef2549ec3a..da3cfd8ee6bf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonHealthCheckCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonHealthCheckCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java index 56a61bba2c97..a8fbad00ce99 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonHttpHealthCheckCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonHttpHealthCheckCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java index a34e901537d3..e4a15ae1ae96 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonHttpsHealthCheckCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonHttpsHealthCheckCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java index 143b1de15f99..f8baef60e278 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonImageCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonImageCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java index 1c68f61d2dbf..a59ea1934264 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonInstanceCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonInstanceCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java index 8247b0fa6708..864f75e34fda 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonInstanceGroupCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonInstanceGroupCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java index 5f26d7a7eeee..b61e47b305cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonInstanceGroupManagerCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonInstanceGroupManagerCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java index eb1d219984ed..07a19b9e4cd9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonInstanceTemplateCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonInstanceTemplateCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java index 5e7ed80b7b6b..9545ec87c2d5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonInterconnectAttachmentCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonInterconnectAttachmentCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java index 005b9bc35e25..3fb417c83781 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonInterconnectCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonInterconnectCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java index 8b8bdc9a3f46..1394eac5655e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonInterconnectLocationCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonInterconnectLocationCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java index 347d5fbe9dcd..3c890899a129 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonLicenseCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonLicenseCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java index 851adb6dc07e..30de47489d83 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonLicenseCodeCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonLicenseCodeCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java index cdbb974f6936..897b97adc8cc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonMachineTypeCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonMachineTypeCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java index bf5a46c9941c..1f5fe4bf98f7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonNetworkCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonNetworkCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java index f13957c45b0c..d8946e66a975 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonNodeGroupCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonNodeGroupCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java index d1945ac2207a..e5d6d2a0884c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonNodeTemplateCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonNodeTemplateCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java index 3507770f5f95..b8f685ab0013 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonNodeTypeCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonNodeTypeCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java index 8c4f2a3843ca..0d3ebde705c0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonProjectCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonProjectCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java index 028dd7ee0d48..f73b33598c64 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRegionAutoscalerCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRegionAutoscalerCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java index 33b0dbe1575f..04d79459aaf7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRegionBackendServiceCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRegionBackendServiceCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java index a4f59c2af3b7..73b001b3215a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRegionCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRegionCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java index ee7033a26498..c70f05d13e86 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRegionCommitmentCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRegionCommitmentCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java index 75d069e610d5..9ed53ea317d6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRegionDiskCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRegionDiskCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java index 19cac958665a..a95441d65604 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRegionDiskTypeCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRegionDiskTypeCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java index f6cf1a937e52..112b2f5b8e8b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRegionInstanceGroupCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRegionInstanceGroupCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java index 1d3cc2486d7a..b3adc6252d9b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -35,7 +40,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRegionInstanceGroupManagerCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -45,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java index 25091b74575e..4ce5e25e717a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRegionOperationCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRegionOperationCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java index e8fa8bdb5b38..95846a446f9e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRouteCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRouteCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java index b875a6777070..8e69f6072dcc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRouterCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRouterCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java index 4a93225f5329..7066307b1f2c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonSecurityPolicyCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonSecurityPolicyCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java index 29e105d62789..700253685d7a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonSnapshotCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonSnapshotCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java index 9adb16e4921e..0c367b78661a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonSslCertificateCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonSslCertificateCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java index 06b68d1c85a4..f5175868e82b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonSslPolicyCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonSslPolicyCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java index 47d2c1a62a63..643e2bcff8f0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonSubnetworkCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonSubnetworkCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java index 7f5fae37970a..ae4862926f54 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonTargetHttpProxyCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonTargetHttpProxyCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java index d1901422ed86..4a028acf63c8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonTargetHttpsProxyCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonTargetHttpsProxyCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java index f7edec6f9894..cdd0ad3c9e44 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonTargetInstanceCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonTargetInstanceCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java index 5b81d1ea2886..39c92bca567b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonTargetPoolCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonTargetPoolCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java index e666655bc1c2..7491dbc57699 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonTargetSslProxyCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonTargetSslProxyCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java index f355beddcac3..025777a374d6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonTargetTcpProxyCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonTargetTcpProxyCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java index 46b4a202bd21..fe958f26965e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonTargetVpnGatewayCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonTargetVpnGatewayCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java index ab9bd4cbe8e9..2e8c7786f272 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonUrlMapCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonUrlMapCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java index 96616805bbbe..d712045a1ef1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonVpnTunnelCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonVpnTunnelCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java index c48aee25f81c..d57975767bd0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonZoneCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonZoneCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java index 572e3f39edba..193fa554eff2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java @@ -16,15 +16,20 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.ApiMessage; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; +import javax.annotation.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS /** @@ -34,7 +39,8 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonZoneOperationCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonZoneOperationCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +50,19 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + @Nullable + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + BackgroundResource operationsStub) { + return null; + } + @Override public UnaryCallable createPagedCallable( diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 3967b626b2f7..9d3959b81987 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -155,7 +155,7 @@ 0.82.1-alpha-SNAPSHOT 1.27.0 - 1.40.0 + 1.42.0 1.7.0 0.13.0 1.18.0 From cc04990d8e57f5804f6963b2a3ce8c1e2e18ab18 Mon Sep 17 00:00:00 2001 From: guangyus <43188686+guangyus@users.noreply.github.com> Date: Thu, 7 Mar 2019 07:17:37 -0800 Subject: [PATCH 24/53] Batch dml mainline (#4653) * Cloud Spanner Batch DML implementation and integration tests. (#45) * Fix the file header of the newly added classes. (#46) * Fix RPC interface mismatch after GAPIC migration. * Address review comment. * Fix code format with mvn com.coveo:fmt-maven-plugin:format. * Update year in file headers. --- .../spanner/SpannerBatchUpdateException.java | 32 +++ .../spanner/SpannerExceptionFactory.java | 6 + .../com/google/cloud/spanner/SpannerImpl.java | 58 +++++ .../cloud/spanner/TransactionContext.java | 17 ++ .../cloud/spanner/spi/v1/GapicSpannerRpc.java | 10 + .../cloud/spanner/spi/v1/SpannerRpc.java | 4 + .../cloud/spanner/it/ITBatchDmlTest.java | 208 ++++++++++++++++++ 7 files changed, 335 insertions(+) create mode 100644 google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerBatchUpdateException.java create mode 100644 google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchDmlTest.java diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerBatchUpdateException.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerBatchUpdateException.java new file mode 100644 index 000000000000..0e51c5f91f31 --- /dev/null +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerBatchUpdateException.java @@ -0,0 +1,32 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.spanner; + +public class SpannerBatchUpdateException extends SpannerException { + private long[] updateCounts; + /** Private constructor. Use {@link SpannerExceptionFactory} to create instances. */ + SpannerBatchUpdateException( + DoNotConstructDirectly token, ErrorCode code, String message, long[] counts) { + super(token, code, false, message, null); + updateCounts = counts; + } + + /** Returns the number of rows affected by each statement that is successfully run. */ + public long[] getUpdateCounts() { + return updateCounts; + } +} diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java index f6f6210d85e7..3ff2d6749778 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java @@ -82,6 +82,12 @@ public static SpannerException newSpannerException(Throwable cause) { return newSpannerException(null, cause); } + public static SpannerBatchUpdateException newSpannerBatchUpdateException( + ErrorCode code, String message, long[] updateCounts) { + DoNotConstructDirectly token = DoNotConstructDirectly.ALLOWED; + return new SpannerBatchUpdateException(token, code, message, updateCounts); + } + /** * Creates a new exception based on {@code cause}. If {@code cause} indicates cancellation, {@code * context} will be inspected to establish the type of cancellation. diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerImpl.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerImpl.java index 2424cf321e16..c8e3506ca596 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerImpl.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerImpl.java @@ -16,6 +16,7 @@ package com.google.cloud.spanner; +import static com.google.cloud.spanner.SpannerExceptionFactory.newSpannerBatchUpdateException; import static com.google.cloud.spanner.SpannerExceptionFactory.newSpannerException; import static com.google.cloud.spanner.SpannerExceptionFactory.newSpannerExceptionForCancellation; import static com.google.common.base.Preconditions.checkArgument; @@ -69,6 +70,7 @@ import com.google.spanner.v1.BeginTransactionRequest; import com.google.spanner.v1.CommitRequest; import com.google.spanner.v1.CommitResponse; +import com.google.spanner.v1.ExecuteBatchDmlRequest; import com.google.spanner.v1.ExecuteSqlRequest; import com.google.spanner.v1.ExecuteSqlRequest.QueryMode; import com.google.spanner.v1.PartialResultSet; @@ -1080,6 +1082,36 @@ ExecuteSqlRequest.Builder getExecuteSqlRequestBuilder( return builder; } + ExecuteBatchDmlRequest.Builder getExecuteBatchDmlRequestBuilder( + Iterable statements) { + ExecuteBatchDmlRequest.Builder builder = + ExecuteBatchDmlRequest.newBuilder().setSession(session.name); + int idx = 0; + for (Statement stmt : statements) { + builder.addStatementsBuilder(); + builder.getStatementsBuilder(idx).setSql(stmt.getSql()); + Map stmtParameters = stmt.getParameters(); + if (!stmtParameters.isEmpty()) { + com.google.protobuf.Struct.Builder paramsBuilder = + builder.getStatementsBuilder(idx).getParamsBuilder(); + for (Map.Entry param : stmtParameters.entrySet()) { + paramsBuilder.putFields(param.getKey(), param.getValue().toProto()); + builder + .getStatementsBuilder(idx) + .putParamTypes(param.getKey(), param.getValue().getType().toProto()); + } + } + idx++; + } + + TransactionSelector selector = getTransactionSelector(); + if (selector != null) { + builder.setTransaction(selector); + } + builder.setSeqno(getSeqNo()); + return builder; + } + ResultSet executeQueryInternalWithOptions( Statement statement, com.google.spanner.v1.ExecuteSqlRequest.QueryMode queryMode, @@ -1660,6 +1692,32 @@ public com.google.spanner.v1.ResultSet call() throws Exception { // For standard DML, using the exact row count. return resultSet.getStats().getRowCountExact(); } + + @Override + public long[] batchUpdate(Iterable statements) { + beforeReadOrQuery(); + final ExecuteBatchDmlRequest.Builder builder = getExecuteBatchDmlRequestBuilder(statements); + com.google.spanner.v1.ExecuteBatchDmlResponse response = + runWithRetries( + new Callable() { + @Override + public com.google.spanner.v1.ExecuteBatchDmlResponse call() throws Exception { + return rpc.executeBatchDml(builder.build(), session.options); + } + }); + long[] results = new long[response.getResultSetsCount()]; + for (int i = 0; i < response.getResultSetsCount(); ++i) { + results[i] = response.getResultSets(i).getStats().getRowCountExact(); + } + + if (response.getStatus().getCode() != 0) { + throw newSpannerBatchUpdateException( + ErrorCode.fromRpcStatus(response.getStatus()), + response.getStatus().getMessage(), + results); + } + return results; + } } /** diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionContext.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionContext.java index 59e4c52c28b7..a529c4c492be 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionContext.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionContext.java @@ -101,4 +101,21 @@ public interface TransactionContext extends ReadContext { * visible to subsequent operations in the transaction. */ long executeUpdate(Statement statement); + + /** + * Executes a list of DML statements in a single request. The statements will be executed in order + * and the semantics is the same as if each statement is executed by {@code executeUpdate} in a + * loop. This method returns an array of long integers, each representing the number of rows + * modified by each statement. + * + *

If an individual statement fails, execution stops and a {@code SpannerBatchUpdateException} + * is returned, which includes the error and the number of rows affected by the statements that + * are run prior to the error. + * + *

For example, if statements contains 3 statements, and the 2nd one is not a valid DML. This + * method throws a {@code SpannerBatchUpdateException} that contains the error message from the + * 2nd statement, and an array of length 1 that contains the number of rows modified by the 1st + * statement. The 3rd statement will not run. + */ + long[] batchUpdate(Iterable statements); } diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java index 5469699abd63..262808392537 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java @@ -90,6 +90,8 @@ import com.google.spanner.v1.CommitResponse; import com.google.spanner.v1.CreateSessionRequest; import com.google.spanner.v1.DeleteSessionRequest; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; import com.google.spanner.v1.ExecuteSqlRequest; import com.google.spanner.v1.PartialResultSet; import com.google.spanner.v1.PartitionQueryRequest; @@ -514,6 +516,14 @@ public void cancel(String message) { }; } + @Override + public ExecuteBatchDmlResponse executeBatchDml( + ExecuteBatchDmlRequest request, @Nullable Map options) { + + GrpcCallContext context = newCallContext(options, request.getSession()); + return get(spannerStub.executeBatchDmlCallable().futureCall(request, context)); + } + @Override public Transaction beginTransaction( BeginTransactionRequest request, @Nullable Map options) throws SpannerException { diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/SpannerRpc.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/SpannerRpc.java index 107b92fa24e8..500f369f67a8 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/SpannerRpc.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/SpannerRpc.java @@ -34,6 +34,8 @@ import com.google.spanner.v1.BeginTransactionRequest; import com.google.spanner.v1.CommitRequest; import com.google.spanner.v1.CommitResponse; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; import com.google.spanner.v1.ExecuteSqlRequest; import com.google.spanner.v1.PartialResultSet; import com.google.spanner.v1.PartitionQueryRequest; @@ -214,6 +216,8 @@ StreamingCall read( StreamingCall executeQuery( ExecuteSqlRequest request, ResultStreamConsumer consumer, @Nullable Map options); + ExecuteBatchDmlResponse executeBatchDml(ExecuteBatchDmlRequest build, Map options); + Transaction beginTransaction(BeginTransactionRequest request, @Nullable Map options) throws SpannerException; diff --git a/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchDmlTest.java b/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchDmlTest.java new file mode 100644 index 000000000000..c5090d10e4e5 --- /dev/null +++ b/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchDmlTest.java @@ -0,0 +1,208 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.spanner.it; + +import static com.google.common.truth.Truth.assertThat; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.spanner.Database; +import com.google.cloud.spanner.DatabaseClient; +import com.google.cloud.spanner.ErrorCode; +import com.google.cloud.spanner.IntegrationTest; +import com.google.cloud.spanner.IntegrationTestEnv; +import com.google.cloud.spanner.SpannerBatchUpdateException; +import com.google.cloud.spanner.SpannerException; +import com.google.cloud.spanner.Statement; +import com.google.cloud.spanner.TransactionContext; +import com.google.cloud.spanner.TransactionRunner; +import com.google.cloud.spanner.TransactionRunner.TransactionCallable; +import com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.ClassRule; +import org.junit.Test; +import org.junit.experimental.categories.Category; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Integration tests for DML. */ +@Category(IntegrationTest.class) +@RunWith(JUnit4.class) +public final class ITBatchDmlTest { + + private static Database db; + @ClassRule public static IntegrationTestEnv env = new IntegrationTestEnv(); + + private static final String INSERT_DML = + "INSERT INTO T (k, v) VALUES ('boo1', 1), ('boo2', 2), ('boo3', 3), ('boo4', 4);"; + private static final String UPDATE_DML = "UPDATE T SET T.V = 100 WHERE T.K LIKE 'boo%';"; + private static final String DELETE_DML = "DELETE FROM T WHERE T.K like 'boo%';"; + private static DatabaseClient client; + + @BeforeClass + public static void createDatabase() { + db = env.getTestHelper().createTestDatabase(); + client = env.getTestHelper().getDatabaseClient(db); + } + + @Before + public void createTable() throws Exception { + String ddl = + "CREATE TABLE T (" + " K STRING(MAX) NOT NULL," + " V INT64," + ") PRIMARY KEY (K)"; + OperationFuture op = db.updateDdl(Arrays.asList(ddl), null); + op.get(); + } + + @After + public void dropTable() throws Exception { + String ddl = "DROP TABLE T"; + OperationFuture op = db.updateDdl(Arrays.asList(ddl), null); + op.get(); + } + + @Test + public void noStatementsInRequest() { + final TransactionCallable callable = + new TransactionCallable() { + @Override + public long[] run(TransactionContext transaction) { + List stmts = new ArrayList<>(); + long[] rowCounts; + try { + rowCounts = transaction.batchUpdate(stmts); + Assert.fail("Expecting an exception."); + } catch (SpannerException e) { + assertThat(e instanceof SpannerBatchUpdateException).isFalse(); + assertThat(e.getErrorCode()).isEqualTo(ErrorCode.INVALID_ARGUMENT); + assertThat(e.getMessage()).contains("No statements in batch DML request."); + rowCounts = new long[0]; + } + return rowCounts; + } + }; + TransactionRunner runner = client.readWriteTransaction(); + long[] rowCounts = runner.run(callable); + assertThat(rowCounts.length).isEqualTo(0); + } + + @Test + public void batchDml() { + final TransactionCallable callable = + new TransactionCallable() { + @Override + public long[] run(TransactionContext transaction) throws Exception { + List stmts = new ArrayList<>(); + stmts.add(Statement.of(INSERT_DML)); + stmts.add(Statement.of(UPDATE_DML)); + stmts.add(Statement.of(DELETE_DML)); + return transaction.batchUpdate(stmts); + } + }; + TransactionRunner runner = client.readWriteTransaction(); + long[] rowCounts = runner.run(callable); + assertThat(rowCounts.length).isEqualTo(3); + for (long rc : rowCounts) { + assertThat(rc).isEqualTo(4); + } + } + + @Test + public void mixedBatchDmlAndDml() { + final TransactionCallable callable = + new TransactionCallable() { + @Override + public long[] run(TransactionContext transaction) throws Exception { + long rowCount = transaction.executeUpdate(Statement.of(INSERT_DML)); + List stmts = new ArrayList<>(); + stmts.add(Statement.of(UPDATE_DML)); + stmts.add(Statement.of(DELETE_DML)); + long[] batchRowCounts = transaction.batchUpdate(stmts); + long[] rowCounts = new long[batchRowCounts.length + 1]; + System.arraycopy(batchRowCounts, 0, rowCounts, 0, batchRowCounts.length); + rowCounts[batchRowCounts.length] = rowCount; + return rowCounts; + } + }; + TransactionRunner runner = client.readWriteTransaction(); + long[] rowCounts = runner.run(callable); + assertThat(rowCounts.length).isEqualTo(3); + for (long rc : rowCounts) { + assertThat(rc).isEqualTo(4); + } + } + + @Test + public void errorBatchDmlIllegalStatement() { + final TransactionCallable callable = + new TransactionCallable() { + @Override + public long[] run(TransactionContext transaction) { + List stmts = new ArrayList<>(); + stmts.add(Statement.of(INSERT_DML)); + stmts.add(Statement.of("some illegal statement")); + stmts.add(Statement.of(UPDATE_DML)); + return transaction.batchUpdate(stmts); + } + }; + TransactionRunner runner = client.readWriteTransaction(); + try { + runner.run(callable); + Assert.fail("Expecting an exception."); + } catch (SpannerBatchUpdateException e) { + assertThat(e.getErrorCode()).isEqualTo(ErrorCode.INVALID_ARGUMENT); + assertThat(e.getMessage()).contains("is not valid DML."); + long[] rowCounts = e.getUpdateCounts(); + assertThat(rowCounts.length).isEqualTo(1); + for (long rc : rowCounts) { + assertThat(rc).isEqualTo(4); + } + } + } + + @Test + public void errorBatchDmlAlreadyExist() { + final TransactionCallable callable = + new TransactionCallable() { + @Override + public long[] run(TransactionContext transaction) { + List stmts = new ArrayList<>(); + stmts.add(Statement.of(INSERT_DML)); + stmts.add(Statement.of(INSERT_DML)); // should fail + stmts.add(Statement.of(UPDATE_DML)); + return transaction.batchUpdate(stmts); + } + }; + TransactionRunner runner = client.readWriteTransaction(); + try { + runner.run(callable); + Assert.fail("Expecting an exception."); + } catch (SpannerBatchUpdateException e) { + assertThat(e.getErrorCode()).isEqualTo(ErrorCode.ALREADY_EXISTS); + assertThat(e.getMessage()).contains("already exists"); + long[] rowCounts = e.getUpdateCounts(); + assertThat(rowCounts.length).isEqualTo(1); + for (long rc : rowCounts) { + assertThat(rc).isEqualTo(4); + } + } + } +} From 83ea49e5d4959ee9616530e32afdcf114345bf15 Mon Sep 17 00:00:00 2001 From: shollyman Date: Thu, 7 Mar 2019 10:49:23 -0800 Subject: [PATCH 25/53] BigQuery: add long term storage bytes to standard table definition. (#4387) * BigQuery: Add long term storage bytes for managed tables. * formatting * let maven format the things * plumb this upwards into Table/TableInfo * return * assertion mismatch * Update TableInfoTest.java --- .../bigquery/StandardTableDefinition.java | 15 ++++++++++++ .../java/com/google/cloud/bigquery/Table.java | 6 +++++ .../com/google/cloud/bigquery/TableInfo.java | 24 +++++++++++++++++++ .../bigquery/StandardTableDefinitionTest.java | 5 ++++ .../google/cloud/bigquery/TableInfoTest.java | 9 +++++++ .../cloud/bigquery/it/ITBigQueryTest.java | 3 +++ 6 files changed, 62 insertions(+) diff --git a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java index f12e6b608a91..9b2ae343875f 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java +++ b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java @@ -130,6 +130,8 @@ public abstract static class Builder public abstract Builder setNumBytes(Long numBytes); + public abstract Builder setNumLongTermBytes(Long numLongTermBytes); + public abstract Builder setNumRows(Long numRows); public abstract Builder setLocation(String location); @@ -161,6 +163,15 @@ public abstract static class Builder @Nullable public abstract Long getNumBytes(); + /** + * Returns the number of bytes considered "long-term storage" for reduced billing purposes. + * + * @see Long Term Storage + * Pricing + */ + @Nullable + public abstract Long getNumLongTermBytes(); + /** Returns the number of rows in this table, excluding any data in the streaming buffer. */ @Nullable public abstract Long getNumRows(); @@ -221,6 +232,7 @@ Table toPb() { tablePb.setNumRows(BigInteger.valueOf(getNumRows())); } tablePb.setNumBytes(getNumBytes()); + tablePb.setNumLongTermBytes(getNumLongTermBytes()); tablePb.setLocation(getLocation()); if (getStreamingBuffer() != null) { tablePb.setStreamingBuffer(getStreamingBuffer().toPb()); @@ -249,6 +261,9 @@ static StandardTableDefinition fromPb(Table tablePb) { if (tablePb.getClustering() != null) { builder.setClustering(Clustering.fromPb(tablePb.getClustering())); } + if (tablePb.getNumLongTermBytes() != null) { + builder.setNumLongTermBytes(tablePb.getNumLongTermBytes()); + } return builder.setNumBytes(tablePb.getNumBytes()).setLocation(tablePb.getLocation()).build(); } } diff --git a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java index d38957bd6186..ab341c62c4ff 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java +++ b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java @@ -108,6 +108,12 @@ Builder setNumBytes(Long numBytes) { return this; } + @Override + Builder setNumLongTermBytes(Long numLongTermBytes) { + infoBuilder.setNumLongTermBytes(numLongTermBytes); + return this; + } + @Override Builder setNumRows(BigInteger numRows) { infoBuilder.setNumRows(numRows); diff --git a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java index 8fad66d20a7e..e64e85ebae22 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java +++ b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java @@ -66,6 +66,7 @@ public Table apply(TableInfo tableInfo) { private final Long expirationTime; private final Long lastModifiedTime; private final Long numBytes; + private final Long numLongTermBytes; private final BigInteger numRows; private final TableDefinition definition; private final EncryptionConfiguration encryptionConfiguration; @@ -96,6 +97,8 @@ public abstract static class Builder { abstract Builder setNumBytes(Long numBytes); + abstract Builder setNumLongTermBytes(Long numLongTermBytes); + abstract Builder setNumRows(BigInteger numRows); abstract Builder setSelfLink(String selfLink); @@ -141,6 +144,7 @@ static class BuilderImpl extends Builder { private Long expirationTime; private Long lastModifiedTime; private Long numBytes; + private Long numLongTermBytes; private BigInteger numRows; private TableDefinition definition; private EncryptionConfiguration encryptionConfiguration; @@ -159,6 +163,7 @@ static class BuilderImpl extends Builder { this.expirationTime = tableInfo.expirationTime; this.lastModifiedTime = tableInfo.lastModifiedTime; this.numBytes = tableInfo.numBytes; + this.numLongTermBytes = tableInfo.numLongTermBytes; this.numRows = tableInfo.numRows; this.definition = tableInfo.definition; this.encryptionConfiguration = tableInfo.encryptionConfiguration; @@ -178,6 +183,7 @@ static class BuilderImpl extends Builder { this.generatedId = tablePb.getId(); this.selfLink = tablePb.getSelfLink(); this.numBytes = tablePb.getNumBytes(); + this.numLongTermBytes = tablePb.getNumLongTermBytes(); this.numRows = tablePb.getNumRows(); this.definition = TableDefinition.fromPb(tablePb); if (tablePb.getEncryptionConfiguration() != null) { @@ -235,6 +241,12 @@ Builder setNumBytes(Long numBytes) { return this; } + @Override + Builder setNumLongTermBytes(Long numLongTermBytes) { + this.numLongTermBytes = numLongTermBytes; + return this; + } + @Override Builder setNumRows(BigInteger numRows) { this.numRows = numRows; @@ -288,6 +300,7 @@ public TableInfo build() { this.expirationTime = builder.expirationTime; this.lastModifiedTime = builder.lastModifiedTime; this.numBytes = builder.numBytes; + this.numLongTermBytes = builder.numLongTermBytes; this.numRows = builder.numRows; this.definition = builder.definition; this.encryptionConfiguration = builder.encryptionConfiguration; @@ -360,6 +373,16 @@ public Long getNumBytes() { return numBytes; } + /** + * Returns the number of bytes considered "long-term storage" for reduced billing purposes. + * + * @see Long Term Storage + * Pricing + */ + public Long getNumLongTermBytes() { + return numLongTermBytes; + } + /** Returns the number of rows of data in this table */ public BigInteger getNumRows() { return numRows; @@ -394,6 +417,7 @@ public String toString() { .add("creationTime", creationTime) .add("lastModifiedTime", lastModifiedTime) .add("numBytes", numBytes) + .add("numLongTermBytes", numLongTermBytes) .add("numRows", numRows) .add("definition", definition) .add("encryptionConfiguration", encryptionConfiguration) diff --git a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java index d70d33fb119b..7bfbf62754b8 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java +++ b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java @@ -44,6 +44,7 @@ public class StandardTableDefinitionTest { .build(); private static final Schema TABLE_SCHEMA = Schema.of(FIELD_SCHEMA1, FIELD_SCHEMA2, FIELD_SCHEMA3); private static final Long NUM_BYTES = 42L; + private static final Long NUM_LONG_TERM_BYTES = 18L; private static final Long NUM_ROWS = 43L; private static final String LOCATION = "US"; private static final StreamingBuffer STREAMING_BUFFER = new StreamingBuffer(1L, 2L, 3L); @@ -56,6 +57,7 @@ public class StandardTableDefinitionTest { .setLocation(LOCATION) .setNumBytes(NUM_BYTES) .setNumRows(NUM_ROWS) + .setNumLongTermBytes(NUM_LONG_TERM_BYTES) .setStreamingBuffer(STREAMING_BUFFER) .setSchema(TABLE_SCHEMA) .setTimePartitioning(TIME_PARTITIONING) @@ -84,6 +86,7 @@ public void testBuilder() { assertEquals(TABLE_SCHEMA, TABLE_DEFINITION.getSchema()); assertEquals(LOCATION, TABLE_DEFINITION.getLocation()); assertEquals(NUM_BYTES, TABLE_DEFINITION.getNumBytes()); + assertEquals(NUM_LONG_TERM_BYTES, TABLE_DEFINITION.getNumLongTermBytes()); assertEquals(NUM_ROWS, TABLE_DEFINITION.getNumRows()); assertEquals(STREAMING_BUFFER, TABLE_DEFINITION.getStreamingBuffer()); assertEquals(TIME_PARTITIONING, TABLE_DEFINITION.getTimePartitioning()); @@ -97,6 +100,7 @@ public void testOf() { assertEquals(TABLE_SCHEMA, TABLE_DEFINITION.getSchema()); assertNull(definition.getLocation()); assertNull(definition.getNumBytes()); + assertNull(definition.getNumLongTermBytes()); assertNull(definition.getNumRows()); assertNull(definition.getStreamingBuffer()); assertNull(definition.getTimePartitioning()); @@ -131,6 +135,7 @@ private void compareStandardTableDefinition( assertEquals(expected.getSchema(), value.getSchema()); assertEquals(expected.getType(), value.getType()); assertEquals(expected.getNumBytes(), value.getNumBytes()); + assertEquals(expected.getNumLongTermBytes(), value.getNumLongTermBytes()); assertEquals(expected.getNumRows(), value.getNumRows()); assertEquals(expected.getLocation(), value.getLocation()); assertEquals(expected.getStreamingBuffer(), value.getStreamingBuffer()); diff --git a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java index 6e35ce6cb620..324f562cdfdf 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java +++ b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java @@ -54,6 +54,7 @@ public class TableInfoTest { .build(); private static final Schema TABLE_SCHEMA = Schema.of(FIELD_SCHEMA1, FIELD_SCHEMA2, FIELD_SCHEMA3); private static final Long NUM_BYTES = 42L; + private static final Long NUM_LONG_TERM_BYTES = 21L; private static final Long NUM_ROWS = 43L; private static final String LOCATION = "US"; private static final StandardTableDefinition.StreamingBuffer STREAMING_BUFFER = @@ -62,6 +63,7 @@ public class TableInfoTest { StandardTableDefinition.newBuilder() .setLocation(LOCATION) .setNumBytes(NUM_BYTES) + .setNumLongTermBytes(NUM_LONG_TERM_BYTES) .setNumRows(NUM_ROWS) .setStreamingBuffer(STREAMING_BUFFER) .setSchema(TABLE_SCHEMA) @@ -95,6 +97,7 @@ public class TableInfoTest { .setGeneratedId(GENERATED_ID) .setLastModifiedTime(LAST_MODIFIED_TIME) .setNumBytes(NUM_BYTES) + .setNumLongTermBytes(NUM_LONG_TERM_BYTES) .setNumRows(BigInteger.valueOf(NUM_ROWS)) .setSelfLink(SELF_LINK) .setLabels(Collections.singletonMap("a", "b")) @@ -155,6 +158,10 @@ public void testBuilder() { assertEquals(LAST_MODIFIED_TIME, TABLE_INFO.getLastModifiedTime()); assertEquals(TABLE_DEFINITION, TABLE_INFO.getDefinition()); assertEquals(SELF_LINK, TABLE_INFO.getSelfLink()); + assertEquals(NUM_BYTES, TABLE_INFO.getNumBytes()); + assertEquals(NUM_LONG_TERM_BYTES, TABLE_INFO.getNumLongTermBytes()); + assertEquals(BigInteger.valueOf(NUM_ROWS), TABLE_INFO.getNumRows()); + assertEquals(TABLE_ID, VIEW_INFO.getTableId()); assertEquals(VIEW_DEFINITION, VIEW_INFO.getDefinition()); assertEquals(CREATION_TIME, VIEW_INFO.getCreationTime()); @@ -166,6 +173,7 @@ public void testBuilder() { assertEquals(LAST_MODIFIED_TIME, VIEW_INFO.getLastModifiedTime()); assertEquals(VIEW_DEFINITION, VIEW_INFO.getDefinition()); assertEquals(SELF_LINK, VIEW_INFO.getSelfLink()); + assertEquals(TABLE_ID, EXTERNAL_TABLE_INFO.getTableId()); assertEquals(CREATION_TIME, EXTERNAL_TABLE_INFO.getCreationTime()); assertEquals(DESCRIPTION, EXTERNAL_TABLE_INFO.getDescription()); @@ -248,6 +256,7 @@ private void compareTableInfo(TableInfo expected, TableInfo value) { assertEquals(expected.getGeneratedId(), value.getGeneratedId()); assertEquals(expected.getLastModifiedTime(), value.getLastModifiedTime()); assertEquals(expected.getNumBytes(), value.getNumBytes()); + assertEquals(expected.getNumLongTermBytes(), value.getNumLongTermBytes()); assertEquals(expected.getNumRows(), value.getNumRows()); assertEquals(expected.getSelfLink(), value.getSelfLink()); assertEquals(expected.getLabels(), value.getLabels()); diff --git a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index 2fa28612ffd4..c7fe1ee35c75 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -436,6 +436,7 @@ public void testCreateAndGetTable() { assertNotNull(remoteTable.getCreationTime()); assertNotNull(remoteTable.getLastModifiedTime()); assertNotNull(remoteTable.getDefinition().getNumBytes()); + assertNotNull(remoteTable.getDefinition().getNumLongTermBytes()); assertNotNull(remoteTable.getDefinition().getNumRows()); assertEquals( partitioning, remoteTable.getDefinition().getTimePartitioning()); @@ -468,6 +469,7 @@ public void testCreateAndGetTableWithSelectedField() { assertNull(remoteTable.getDefinition().getSchema()); assertNull(remoteTable.getLastModifiedTime()); assertNull(remoteTable.getDefinition().getNumBytes()); + assertNull(remoteTable.getDefinition().getNumLongTermBytes()); assertNull(remoteTable.getDefinition().getNumRows()); assertNull(remoteTable.getDefinition().getTimePartitioning()); assertNull(remoteTable.getDefinition().getClustering()); @@ -707,6 +709,7 @@ public void testUpdateTableWithSelectedFields() { assertNull(updatedTable.getDefinition().getSchema()); assertNull(updatedTable.getLastModifiedTime()); assertNull(updatedTable.getDefinition().getNumBytes()); + assertNull(updatedTable.getDefinition().getNumLongTermBytes()); assertNull(updatedTable.getDefinition().getNumRows()); assertTrue(createdTable.delete()); } From 11cc5279b146e4aa8b347ac19097d9535976dba6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Fri, 8 Mar 2019 08:48:20 -0800 Subject: [PATCH 26/53] Regenerate compute client (#4662) --- .../cloud/compute/v1/BackendService.java | 47 +++ .../com/google/cloud/compute/v1/Binding.java | 14 +- .../cloud/compute/v1/DeprecationStatus.java | 27 +- .../google/cloud/compute/v1/HealthCheck.java | 32 ++ .../cloud/compute/v1/Http2HealthCheck.java | 366 ++++++++++++++++++ .../compute/v1/RouterStatusNatStatus.java | 2 +- .../cloud/compute/v1/TargetVpnGateway.java | 39 +- .../v1/TargetVpnGatewaysScopedList.java | 8 +- .../google/cloud/compute/v1/VpnTunnel.java | 92 +++-- .../compute/v1/VpnTunnelAggregatedList.java | 6 +- .../compute/v1/VpnTunnelsScopedList.java | 8 +- .../google-cloud-compute/synth.metadata | 8 +- 12 files changed, 568 insertions(+), 81 deletions(-) create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Http2HealthCheck.java diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java index 5d31e0ecf7db..156cc2effa99 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java @@ -35,6 +35,7 @@ public final class BackendService implements ApiMessage { private final BackendServiceCdnPolicy cdnPolicy; private final ConnectionDraining connectionDraining; private final String creationTimestamp; + private final List customRequestHeaders; private final String description; private final Boolean enableCDN; private final String fingerprint; @@ -59,6 +60,7 @@ private BackendService() { this.cdnPolicy = null; this.connectionDraining = null; this.creationTimestamp = null; + this.customRequestHeaders = null; this.description = null; this.enableCDN = null; this.fingerprint = null; @@ -84,6 +86,7 @@ private BackendService( BackendServiceCdnPolicy cdnPolicy, ConnectionDraining connectionDraining, String creationTimestamp, + List customRequestHeaders, String description, Boolean enableCDN, String fingerprint, @@ -106,6 +109,7 @@ private BackendService( this.cdnPolicy = cdnPolicy; this.connectionDraining = connectionDraining; this.creationTimestamp = creationTimestamp; + this.customRequestHeaders = customRequestHeaders; this.description = description; this.enableCDN = enableCDN; this.fingerprint = fingerprint; @@ -142,6 +146,9 @@ public Object getFieldValue(String fieldName) { if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } + if ("customRequestHeaders".equals(fieldName)) { + return customRequestHeaders; + } if ("description".equals(fieldName)) { return description; } @@ -244,6 +251,11 @@ public String getCreationTimestamp() { return creationTimestamp; } + /** Headers that the HTTP/S load balancer should add to proxied requests. */ + public List getCustomRequestHeadersList() { + return customRequestHeaders; + } + /** * An optional description of this resource. Provide this property when you create the resource. */ @@ -422,6 +434,7 @@ public static class Builder { private BackendServiceCdnPolicy cdnPolicy; private ConnectionDraining connectionDraining; private String creationTimestamp; + private List customRequestHeaders; private String description; private Boolean enableCDN; private String fingerprint; @@ -459,6 +472,9 @@ public Builder mergeFrom(BackendService other) { if (other.getCreationTimestamp() != null) { this.creationTimestamp = other.creationTimestamp; } + if (other.getCustomRequestHeadersList() != null) { + this.customRequestHeaders = other.customRequestHeaders; + } if (other.getDescription() != null) { this.description = other.description; } @@ -519,6 +535,7 @@ public Builder mergeFrom(BackendService other) { this.cdnPolicy = source.cdnPolicy; this.connectionDraining = source.connectionDraining; this.creationTimestamp = source.creationTimestamp; + this.customRequestHeaders = source.customRequestHeaders; this.description = source.description; this.enableCDN = source.enableCDN; this.fingerprint = source.fingerprint; @@ -615,6 +632,29 @@ public Builder setCreationTimestamp(String creationTimestamp) { return this; } + /** Headers that the HTTP/S load balancer should add to proxied requests. */ + public List getCustomRequestHeadersList() { + return customRequestHeaders; + } + + /** Headers that the HTTP/S load balancer should add to proxied requests. */ + public Builder addAllCustomRequestHeaders(List customRequestHeaders) { + if (this.customRequestHeaders == null) { + this.customRequestHeaders = new LinkedList<>(); + } + this.customRequestHeaders.addAll(customRequestHeaders); + return this; + } + + /** Headers that the HTTP/S load balancer should add to proxied requests. */ + public Builder addCustomRequestHeaders(String customRequestHeaders) { + if (this.customRequestHeaders == null) { + this.customRequestHeaders = new LinkedList<>(); + } + this.customRequestHeaders.add(customRequestHeaders); + return this; + } + /** * An optional description of this resource. Provide this property when you create the resource. */ @@ -961,6 +1001,7 @@ public BackendService build() { cdnPolicy, connectionDraining, creationTimestamp, + customRequestHeaders, description, enableCDN, fingerprint, @@ -987,6 +1028,7 @@ public Builder clone() { newBuilder.setCdnPolicy(this.cdnPolicy); newBuilder.setConnectionDraining(this.connectionDraining); newBuilder.setCreationTimestamp(this.creationTimestamp); + newBuilder.addAllCustomRequestHeaders(this.customRequestHeaders); newBuilder.setDescription(this.description); newBuilder.setEnableCDN(this.enableCDN); newBuilder.setFingerprint(this.fingerprint); @@ -1026,6 +1068,9 @@ public String toString() { + "creationTimestamp=" + creationTimestamp + ", " + + "customRequestHeaders=" + + customRequestHeaders + + ", " + "description=" + description + ", " @@ -1091,6 +1136,7 @@ public boolean equals(Object o) { && Objects.equals(this.cdnPolicy, that.getCdnPolicy()) && Objects.equals(this.connectionDraining, that.getConnectionDraining()) && Objects.equals(this.creationTimestamp, that.getCreationTimestamp()) + && Objects.equals(this.customRequestHeaders, that.getCustomRequestHeadersList()) && Objects.equals(this.description, that.getDescription()) && Objects.equals(this.enableCDN, that.getEnableCDN()) && Objects.equals(this.fingerprint, that.getFingerprint()) @@ -1120,6 +1166,7 @@ public int hashCode() { cdnPolicy, connectionDraining, creationTimestamp, + customRequestHeaders, description, enableCDN, fingerprint, diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java index 1941db6fb404..312c0f43108d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java @@ -103,7 +103,7 @@ public Expr getCondition() { *

* `group:{emailid}`: An email address that represents a Google group. For example, * `admins{@literal @}example.com`. * - *

* `domain:{domain}`: A Google Apps domain name that represents all the users of that + *

* `domain:{domain}`: The G Suite domain (primary) that represents all the users of that * domain. For example, `google.com` or `example.com`. */ public List getMembersList() { @@ -205,8 +205,8 @@ public Builder setCondition(Expr condition) { *

* `group:{emailid}`: An email address that represents a Google group. For example, * `admins{@literal @}example.com`. * - *

* `domain:{domain}`: A Google Apps domain name that represents all the users of that - * domain. For example, `google.com` or `example.com`. + *

* `domain:{domain}`: The G Suite domain (primary) that represents all the users of + * that domain. For example, `google.com` or `example.com`. */ public List getMembersList() { return members; @@ -231,8 +231,8 @@ public List getMembersList() { *

* `group:{emailid}`: An email address that represents a Google group. For example, * `admins{@literal @}example.com`. * - *

* `domain:{domain}`: A Google Apps domain name that represents all the users of that - * domain. For example, `google.com` or `example.com`. + *

* `domain:{domain}`: The G Suite domain (primary) that represents all the users of + * that domain. For example, `google.com` or `example.com`. */ public Builder addAllMembers(List members) { if (this.members == null) { @@ -261,8 +261,8 @@ public Builder addAllMembers(List members) { *

* `group:{emailid}`: An email address that represents a Google group. For example, * `admins{@literal @}example.com`. * - *

* `domain:{domain}`: A Google Apps domain name that represents all the users of that - * domain. For example, `google.com` or `example.com`. + *

* `domain:{domain}`: The G Suite domain (primary) that represents all the users of + * that domain. For example, `google.com` or `example.com`. */ public Builder addMembers(String members) { if (this.members == null) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java index 54d3d506a193..d9320e00d7c6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java @@ -123,10 +123,11 @@ public String getReplacement() { } /** - * The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED. - * Operations which create a new resource using a DEPRECATED resource will return successfully, - * but with a warning indicating the deprecated resource and recommending its replacement. - * Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. + * The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. + * Operations which communicate the end of life date for an image, can use ACTIVE. Operations + * which create a new resource using a DEPRECATED resource will return successfully, but with a + * warning indicating the deprecated resource and recommending its replacement. Operations which + * use OBSOLETE or DELETED resources will be rejected and result in an error. */ public String getState() { return state; @@ -266,20 +267,22 @@ public Builder setReplacement(String replacement) { } /** - * The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED. - * Operations which create a new resource using a DEPRECATED resource will return successfully, - * but with a warning indicating the deprecated resource and recommending its replacement. - * Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. + * The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. + * Operations which communicate the end of life date for an image, can use ACTIVE. Operations + * which create a new resource using a DEPRECATED resource will return successfully, but with a + * warning indicating the deprecated resource and recommending its replacement. Operations which + * use OBSOLETE or DELETED resources will be rejected and result in an error. */ public String getState() { return state; } /** - * The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED. - * Operations which create a new resource using a DEPRECATED resource will return successfully, - * but with a warning indicating the deprecated resource and recommending its replacement. - * Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. + * The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. + * Operations which communicate the end of life date for an image, can use ACTIVE. Operations + * which create a new resource using a DEPRECATED resource will return successfully, but with a + * warning indicating the deprecated resource and recommending its replacement. Operations which + * use OBSOLETE or DELETED resources will be rejected and result in an error. */ public Builder setState(String state) { this.state = state; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java index 94c651277baf..3ecb6cd9ddf8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java @@ -33,6 +33,7 @@ public final class HealthCheck implements ApiMessage { private final String creationTimestamp; private final String description; private final Integer healthyThreshold; + private final Http2HealthCheck http2HealthCheck; private final HttpHealthCheck httpHealthCheck; private final HttpSHealthCheck httpsHealthCheck; private final String id; @@ -50,6 +51,7 @@ private HealthCheck() { this.creationTimestamp = null; this.description = null; this.healthyThreshold = null; + this.http2HealthCheck = null; this.httpHealthCheck = null; this.httpsHealthCheck = null; this.id = null; @@ -68,6 +70,7 @@ private HealthCheck( String creationTimestamp, String description, Integer healthyThreshold, + Http2HealthCheck http2HealthCheck, HttpHealthCheck httpHealthCheck, HttpSHealthCheck httpsHealthCheck, String id, @@ -83,6 +86,7 @@ private HealthCheck( this.creationTimestamp = creationTimestamp; this.description = description; this.healthyThreshold = healthyThreshold; + this.http2HealthCheck = http2HealthCheck; this.httpHealthCheck = httpHealthCheck; this.httpsHealthCheck = httpsHealthCheck; this.id = id; @@ -110,6 +114,9 @@ public Object getFieldValue(String fieldName) { if ("healthyThreshold".equals(fieldName)) { return healthyThreshold; } + if ("http2HealthCheck".equals(fieldName)) { + return http2HealthCheck; + } if ("httpHealthCheck".equals(fieldName)) { return httpHealthCheck; } @@ -189,6 +196,10 @@ public Integer getHealthyThreshold() { return healthyThreshold; } + public Http2HealthCheck getHttp2HealthCheck() { + return http2HealthCheck; + } + public HttpHealthCheck getHttpHealthCheck() { return httpHealthCheck; } @@ -285,6 +296,7 @@ public static class Builder { private String creationTimestamp; private String description; private Integer healthyThreshold; + private Http2HealthCheck http2HealthCheck; private HttpHealthCheck httpHealthCheck; private HttpSHealthCheck httpsHealthCheck; private String id; @@ -313,6 +325,9 @@ public Builder mergeFrom(HealthCheck other) { if (other.getHealthyThreshold() != null) { this.healthyThreshold = other.healthyThreshold; } + if (other.getHttp2HealthCheck() != null) { + this.http2HealthCheck = other.http2HealthCheck; + } if (other.getHttpHealthCheck() != null) { this.httpHealthCheck = other.httpHealthCheck; } @@ -354,6 +369,7 @@ public Builder mergeFrom(HealthCheck other) { this.creationTimestamp = source.creationTimestamp; this.description = source.description; this.healthyThreshold = source.healthyThreshold; + this.http2HealthCheck = source.http2HealthCheck; this.httpHealthCheck = source.httpHealthCheck; this.httpsHealthCheck = source.httpsHealthCheck; this.id = source.id; @@ -421,6 +437,15 @@ public Builder setHealthyThreshold(Integer healthyThreshold) { return this; } + public Http2HealthCheck getHttp2HealthCheck() { + return http2HealthCheck; + } + + public Builder setHttp2HealthCheck(Http2HealthCheck http2HealthCheck) { + this.http2HealthCheck = http2HealthCheck; + return this; + } + public HttpHealthCheck getHttpHealthCheck() { return httpHealthCheck; } @@ -579,6 +604,7 @@ public HealthCheck build() { creationTimestamp, description, healthyThreshold, + http2HealthCheck, httpHealthCheck, httpsHealthCheck, id, @@ -598,6 +624,7 @@ public Builder clone() { newBuilder.setCreationTimestamp(this.creationTimestamp); newBuilder.setDescription(this.description); newBuilder.setHealthyThreshold(this.healthyThreshold); + newBuilder.setHttp2HealthCheck(this.http2HealthCheck); newBuilder.setHttpHealthCheck(this.httpHealthCheck); newBuilder.setHttpsHealthCheck(this.httpsHealthCheck); newBuilder.setId(this.id); @@ -628,6 +655,9 @@ public String toString() { + "healthyThreshold=" + healthyThreshold + ", " + + "http2HealthCheck=" + + http2HealthCheck + + ", " + "httpHealthCheck=" + httpHealthCheck + ", " @@ -674,6 +704,7 @@ public boolean equals(Object o) { && Objects.equals(this.creationTimestamp, that.getCreationTimestamp()) && Objects.equals(this.description, that.getDescription()) && Objects.equals(this.healthyThreshold, that.getHealthyThreshold()) + && Objects.equals(this.http2HealthCheck, that.getHttp2HealthCheck()) && Objects.equals(this.httpHealthCheck, that.getHttpHealthCheck()) && Objects.equals(this.httpsHealthCheck, that.getHttpsHealthCheck()) && Objects.equals(this.id, that.getId()) @@ -696,6 +727,7 @@ public int hashCode() { creationTimestamp, description, healthyThreshold, + http2HealthCheck, httpHealthCheck, httpsHealthCheck, id, diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Http2HealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Http2HealthCheck.java new file mode 100644 index 000000000000..6453d5d70ae7 --- /dev/null +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Http2HealthCheck.java @@ -0,0 +1,366 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.compute.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.ApiMessage; +import java.util.List; +import java.util.Objects; +import javax.annotation.Generated; +import javax.annotation.Nullable; + +@Generated("by GAPIC") +@BetaApi +public final class Http2HealthCheck implements ApiMessage { + private final String host; + private final Integer port; + private final String portName; + private final String proxyHeader; + private final String requestPath; + private final String response; + + private Http2HealthCheck() { + this.host = null; + this.port = null; + this.portName = null; + this.proxyHeader = null; + this.requestPath = null; + this.response = null; + } + + private Http2HealthCheck( + String host, + Integer port, + String portName, + String proxyHeader, + String requestPath, + String response) { + this.host = host; + this.port = port; + this.portName = portName; + this.proxyHeader = proxyHeader; + this.requestPath = requestPath; + this.response = response; + } + + @Override + public Object getFieldValue(String fieldName) { + if ("host".equals(fieldName)) { + return host; + } + if ("port".equals(fieldName)) { + return port; + } + if ("portName".equals(fieldName)) { + return portName; + } + if ("proxyHeader".equals(fieldName)) { + return proxyHeader; + } + if ("requestPath".equals(fieldName)) { + return requestPath; + } + if ("response".equals(fieldName)) { + return response; + } + return null; + } + + @Nullable + @Override + public ApiMessage getApiMessageRequestBody() { + return null; + } + + @Nullable + @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ + public List getFieldMask() { + return null; + } + + /** + * The value of the host header in the HTTP/2 health check request. If left empty (default value), + * the IP on behalf of which this health check is performed will be used. + */ + public String getHost() { + return host; + } + + /** + * The TCP port number for the health check request. The default value is 443. Valid values are 1 + * through 65535. + */ + public Integer getPort() { + return port; + } + + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, + * port takes precedence. + */ + public String getPortName() { + return portName; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + */ + public String getProxyHeader() { + return proxyHeader; + } + + /** The request path of the HTTP/2 health check request. The default value is /. */ + public String getRequestPath() { + return requestPath; + } + + /** + * The string to match anywhere in the first 1024 bytes of the response body. If left empty (the + * default value), the status code determines health. The response data can only be ASCII. + */ + public String getResponse() { + return response; + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(Http2HealthCheck prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + public static Http2HealthCheck getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final Http2HealthCheck DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new Http2HealthCheck(); + } + + public static class Builder { + private String host; + private Integer port; + private String portName; + private String proxyHeader; + private String requestPath; + private String response; + + Builder() {} + + public Builder mergeFrom(Http2HealthCheck other) { + if (other == Http2HealthCheck.getDefaultInstance()) return this; + if (other.getHost() != null) { + this.host = other.host; + } + if (other.getPort() != null) { + this.port = other.port; + } + if (other.getPortName() != null) { + this.portName = other.portName; + } + if (other.getProxyHeader() != null) { + this.proxyHeader = other.proxyHeader; + } + if (other.getRequestPath() != null) { + this.requestPath = other.requestPath; + } + if (other.getResponse() != null) { + this.response = other.response; + } + return this; + } + + Builder(Http2HealthCheck source) { + this.host = source.host; + this.port = source.port; + this.portName = source.portName; + this.proxyHeader = source.proxyHeader; + this.requestPath = source.requestPath; + this.response = source.response; + } + + /** + * The value of the host header in the HTTP/2 health check request. If left empty (default + * value), the IP on behalf of which this health check is performed will be used. + */ + public String getHost() { + return host; + } + + /** + * The value of the host header in the HTTP/2 health check request. If left empty (default + * value), the IP on behalf of which this health check is performed will be used. + */ + public Builder setHost(String host) { + this.host = host; + return this; + } + + /** + * The TCP port number for the health check request. The default value is 443. Valid values are + * 1 through 65535. + */ + public Integer getPort() { + return port; + } + + /** + * The TCP port number for the health check request. The default value is 443. Valid values are + * 1 through 65535. + */ + public Builder setPort(Integer port) { + this.port = port; + return this; + } + + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, + * port takes precedence. + */ + public String getPortName() { + return portName; + } + + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, + * port takes precedence. + */ + public Builder setPortName(String portName) { + this.portName = portName; + return this; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE + * or PROXY_V1. The default is NONE. + */ + public String getProxyHeader() { + return proxyHeader; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE + * or PROXY_V1. The default is NONE. + */ + public Builder setProxyHeader(String proxyHeader) { + this.proxyHeader = proxyHeader; + return this; + } + + /** The request path of the HTTP/2 health check request. The default value is /. */ + public String getRequestPath() { + return requestPath; + } + + /** The request path of the HTTP/2 health check request. The default value is /. */ + public Builder setRequestPath(String requestPath) { + this.requestPath = requestPath; + return this; + } + + /** + * The string to match anywhere in the first 1024 bytes of the response body. If left empty (the + * default value), the status code determines health. The response data can only be ASCII. + */ + public String getResponse() { + return response; + } + + /** + * The string to match anywhere in the first 1024 bytes of the response body. If left empty (the + * default value), the status code determines health. The response data can only be ASCII. + */ + public Builder setResponse(String response) { + this.response = response; + return this; + } + + public Http2HealthCheck build() { + + return new Http2HealthCheck(host, port, portName, proxyHeader, requestPath, response); + } + + public Builder clone() { + Builder newBuilder = new Builder(); + newBuilder.setHost(this.host); + newBuilder.setPort(this.port); + newBuilder.setPortName(this.portName); + newBuilder.setProxyHeader(this.proxyHeader); + newBuilder.setRequestPath(this.requestPath); + newBuilder.setResponse(this.response); + return newBuilder; + } + } + + @Override + public String toString() { + return "Http2HealthCheck{" + + "host=" + + host + + ", " + + "port=" + + port + + ", " + + "portName=" + + portName + + ", " + + "proxyHeader=" + + proxyHeader + + ", " + + "requestPath=" + + requestPath + + ", " + + "response=" + + response + + "}"; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof Http2HealthCheck) { + Http2HealthCheck that = (Http2HealthCheck) o; + return Objects.equals(this.host, that.getHost()) + && Objects.equals(this.port, that.getPort()) + && Objects.equals(this.portName, that.getPortName()) + && Objects.equals(this.proxyHeader, that.getProxyHeader()) + && Objects.equals(this.requestPath, that.getRequestPath()) + && Objects.equals(this.response, that.getResponse()); + } + return false; + } + + @Override + public int hashCode() { + return Objects.hash(host, port, portName, proxyHeader, requestPath, response); + } +} diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java index 566a76125fe0..29d0fe85cdb4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java @@ -25,7 +25,7 @@ @Generated("by GAPIC") @BetaApi -/** Status of a NAT contained in this router. */ +/** Status of a NAT contained in this router. Next tag: 9 */ public final class RouterStatusNatStatus implements ApiMessage { private final List autoAllocatedNatIps; private final Integer minExtraNatIpsNeeded; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java index e0ce790f65de..5d3e643b667e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java @@ -151,7 +151,7 @@ public String getDescription() { /** * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created using - * compute.forwardingRules.insert and associated to a VPN gateway. + * compute.forwardingRules.insert and associated with a VPN gateway. */ public List getForwardingRulesList() { return forwardingRules; @@ -201,14 +201,17 @@ public String getSelfLink() { return selfLink; } - /** [Output Only] The status of the VPN gateway. */ + /** + * [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, + * READY, FAILED, or DELETING. + */ public String getStatus() { return status; } /** - * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using - * compute.vpntunnels.insert method and associated to a VPN gateway. + * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the + * compute.vpntunnels.insert method and associated with a VPN gateway. */ public List getTunnelsList() { return tunnels; @@ -331,7 +334,7 @@ public Builder setDescription(String description) { /** * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created - * using compute.forwardingRules.insert and associated to a VPN gateway. + * using compute.forwardingRules.insert and associated with a VPN gateway. */ public List getForwardingRulesList() { return forwardingRules; @@ -339,7 +342,7 @@ public List getForwardingRulesList() { /** * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created - * using compute.forwardingRules.insert and associated to a VPN gateway. + * using compute.forwardingRules.insert and associated with a VPN gateway. */ public Builder addAllForwardingRules(List forwardingRules) { if (this.forwardingRules == null) { @@ -351,7 +354,7 @@ public Builder addAllForwardingRules(List forwardingRules) { /** * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created - * using compute.forwardingRules.insert and associated to a VPN gateway. + * using compute.forwardingRules.insert and associated with a VPN gateway. */ public Builder addForwardingRules(String forwardingRules) { if (this.forwardingRules == null) { @@ -457,28 +460,34 @@ public Builder setSelfLink(String selfLink) { return this; } - /** [Output Only] The status of the VPN gateway. */ + /** + * [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, + * READY, FAILED, or DELETING. + */ public String getStatus() { return status; } - /** [Output Only] The status of the VPN gateway. */ + /** + * [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, + * READY, FAILED, or DELETING. + */ public Builder setStatus(String status) { this.status = status; return this; } /** - * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using - * compute.vpntunnels.insert method and associated to a VPN gateway. + * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the + * compute.vpntunnels.insert method and associated with a VPN gateway. */ public List getTunnelsList() { return tunnels; } /** - * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using - * compute.vpntunnels.insert method and associated to a VPN gateway. + * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the + * compute.vpntunnels.insert method and associated with a VPN gateway. */ public Builder addAllTunnels(List tunnels) { if (this.tunnels == null) { @@ -489,8 +498,8 @@ public Builder addAllTunnels(List tunnels) { } /** - * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using - * compute.vpntunnels.insert method and associated to a VPN gateway. + * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the + * compute.vpntunnels.insert method and associated with a VPN gateway. */ public Builder addTunnels(String tunnels) { if (this.tunnels == null) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java index 0002eb4045ca..c180bd3d30f4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java @@ -68,7 +68,7 @@ public List getFieldMask() { return null; } - /** [Output Only] A list of target vpn gateways contained in this scope. */ + /** [Output Only] A list of target VPN gateways contained in this scope. */ public List getTargetVpnGatewaysList() { return targetVpnGateways; } @@ -125,12 +125,12 @@ public Builder mergeFrom(TargetVpnGatewaysScopedList other) { this.warning = source.warning; } - /** [Output Only] A list of target vpn gateways contained in this scope. */ + /** [Output Only] A list of target VPN gateways contained in this scope. */ public List getTargetVpnGatewaysList() { return targetVpnGateways; } - /** [Output Only] A list of target vpn gateways contained in this scope. */ + /** [Output Only] A list of target VPN gateways contained in this scope. */ public Builder addAllTargetVpnGateways(List targetVpnGateways) { if (this.targetVpnGateways == null) { this.targetVpnGateways = new LinkedList<>(); @@ -139,7 +139,7 @@ public Builder addAllTargetVpnGateways(List targetVpnGateways) return this; } - /** [Output Only] A list of target vpn gateways contained in this scope. */ + /** [Output Only] A list of target VPN gateways contained in this scope. */ public Builder addTargetVpnGateways(TargetVpnGateway targetVpnGateways) { if (this.targetVpnGateways == null) { this.targetVpnGateways = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java index 88f5508bc741..79e68732be70 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java @@ -201,8 +201,8 @@ public String getId() { } /** - * IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable - * IKE versions are 1 or 2. Default version is 2. + * IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. + * Acceptable IKE versions are 1 or 2. The default version is 2. */ public Integer getIkeVersion() { return ikeVersion; @@ -214,9 +214,9 @@ public String getKind() { } /** - * Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value - * should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. - * Only IPv4 is supported. + * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The + * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be + * disjoint. Only IPv4 is supported. */ public List getLocalTrafficSelectorList() { return localTrafficSelector; @@ -247,7 +247,7 @@ public String getRegion() { } /** - * Remote traffic selectors to use when establishing the VPN tunnel with peer VPN gateway. The + * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be * disjoint. Only IPv4 is supported. */ @@ -255,7 +255,7 @@ public List getRemoteTrafficSelectorList() { return remoteTrafficSelector; } - /** URL of router resource to be used for dynamic routing. */ + /** URL of the router resource to be used for dynamic routing. */ public String getRouter() { return router; } @@ -278,7 +278,17 @@ public String getSharedSecretHash() { return sharedSecretHash; } - /** [Output Only] The status of the VPN tunnel. */ + /** + * [Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: + * Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive + * all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, + * and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first + * handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the + * peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: + * Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - + * DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation + * has failed and the tunnel is not ready to be used. + */ public String getStatus() { return status; } @@ -465,16 +475,16 @@ public Builder setId(String id) { } /** - * IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. - * Acceptable IKE versions are 1 or 2. Default version is 2. + * IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. + * Acceptable IKE versions are 1 or 2. The default version is 2. */ public Integer getIkeVersion() { return ikeVersion; } /** - * IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. - * Acceptable IKE versions are 1 or 2. Default version is 2. + * IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. + * Acceptable IKE versions are 1 or 2. The default version is 2. */ public Builder setIkeVersion(Integer ikeVersion) { this.ikeVersion = ikeVersion; @@ -493,8 +503,8 @@ public Builder setKind(String kind) { } /** - * Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be + * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The + * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be * disjoint. Only IPv4 is supported. */ public List getLocalTrafficSelectorList() { @@ -502,8 +512,8 @@ public List getLocalTrafficSelectorList() { } /** - * Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be + * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The + * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be * disjoint. Only IPv4 is supported. */ public Builder addAllLocalTrafficSelector(List localTrafficSelector) { @@ -515,8 +525,8 @@ public Builder addAllLocalTrafficSelector(List localTrafficSelector) { } /** - * Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be + * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The + * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be * disjoint. Only IPv4 is supported. */ public Builder addLocalTrafficSelector(String localTrafficSelector) { @@ -579,18 +589,18 @@ public Builder setRegion(String region) { } /** - * Remote traffic selectors to use when establishing the VPN tunnel with peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be - * disjoint. Only IPv4 is supported. + * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. + * The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should + * be disjoint. Only IPv4 is supported. */ public List getRemoteTrafficSelectorList() { return remoteTrafficSelector; } /** - * Remote traffic selectors to use when establishing the VPN tunnel with peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be - * disjoint. Only IPv4 is supported. + * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. + * The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should + * be disjoint. Only IPv4 is supported. */ public Builder addAllRemoteTrafficSelector(List remoteTrafficSelector) { if (this.remoteTrafficSelector == null) { @@ -601,9 +611,9 @@ public Builder addAllRemoteTrafficSelector(List remoteTrafficSelector) { } /** - * Remote traffic selectors to use when establishing the VPN tunnel with peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be - * disjoint. Only IPv4 is supported. + * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. + * The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should + * be disjoint. Only IPv4 is supported. */ public Builder addRemoteTrafficSelector(String remoteTrafficSelector) { if (this.remoteTrafficSelector == null) { @@ -613,12 +623,12 @@ public Builder addRemoteTrafficSelector(String remoteTrafficSelector) { return this; } - /** URL of router resource to be used for dynamic routing. */ + /** URL of the router resource to be used for dynamic routing. */ public String getRouter() { return router; } - /** URL of router resource to be used for dynamic routing. */ + /** URL of the router resource to be used for dynamic routing. */ public Builder setRouter(String router) { this.router = router; return this; @@ -663,12 +673,32 @@ public Builder setSharedSecretHash(String sharedSecretHash) { return this; } - /** [Output Only] The status of the VPN tunnel. */ + /** + * [Output Only] The status of the VPN tunnel, which can be one of the following: - + * PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: + * Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, + * VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - + * FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session + * is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by + * NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - + * NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for + * the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. + */ public String getStatus() { return status; } - /** [Output Only] The status of the VPN tunnel. */ + /** + * [Output Only] The status of the VPN tunnel, which can be one of the following: - + * PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: + * Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, + * VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - + * FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session + * is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by + * NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - + * NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for + * the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. + */ public Builder setStatus(String status) { this.status = status; return this; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java index 0fac4336cba3..3722604d215a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java @@ -105,7 +105,7 @@ public String getId() { /** * A list of VpnTunnelsScopedList resources. The key for the map is: Name of the scope containing - * this set of vpn tunnels. + * this set of VPN tunnels. */ public Map getItemsMap() { return items; @@ -213,7 +213,7 @@ public Builder setId(String id) { /** * A list of VpnTunnelsScopedList resources. The key for the map is: Name of the scope - * containing this set of vpn tunnels. + * containing this set of VPN tunnels. */ public Map getItemsMap() { return items; @@ -221,7 +221,7 @@ public Map getItemsMap() { /** * A list of VpnTunnelsScopedList resources. The key for the map is: Name of the scope - * containing this set of vpn tunnels. + * containing this set of VPN tunnels. */ public Builder putAllItems(Map items) { this.items = items; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java index ac11c8ed1f29..5d057bad9af9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java @@ -68,7 +68,7 @@ public List getFieldMask() { return null; } - /** A list of vpn tunnels contained in this scope. */ + /** A list of VPN tunnels contained in this scope. */ public List getVpnTunnelsList() { return vpnTunnels; } @@ -122,12 +122,12 @@ public Builder mergeFrom(VpnTunnelsScopedList other) { this.warning = source.warning; } - /** A list of vpn tunnels contained in this scope. */ + /** A list of VPN tunnels contained in this scope. */ public List getVpnTunnelsList() { return vpnTunnels; } - /** A list of vpn tunnels contained in this scope. */ + /** A list of VPN tunnels contained in this scope. */ public Builder addAllVpnTunnels(List vpnTunnels) { if (this.vpnTunnels == null) { this.vpnTunnels = new LinkedList<>(); @@ -136,7 +136,7 @@ public Builder addAllVpnTunnels(List vpnTunnels) { return this; } - /** A list of vpn tunnels contained in this scope. */ + /** A list of VPN tunnels contained in this scope. */ public Builder addVpnTunnels(VpnTunnel vpnTunnels) { if (this.vpnTunnels == null) { this.vpnTunnels = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/synth.metadata b/google-cloud-clients/google-cloud-compute/synth.metadata index a0c420a5ba4d..1fbd06626d19 100644 --- a/google-cloud-clients/google-cloud-compute/synth.metadata +++ b/google-cloud-clients/google-cloud-compute/synth.metadata @@ -1,18 +1,18 @@ { - "updateTime": "2019-02-28T08:37:09.528246Z", + "updateTime": "2019-03-08T08:37:03.640656Z", "sources": [ { "git": { "name": "discovery-artifact-manager", "remote": "https://github.com/googleapis/discovery-artifact-manager.git", - "sha": "ab3567b03ec53c3affe70518e59df16ca9cc7bac" + "sha": "d6f22d5a41026993e91d51e896987968a392787d" } }, { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } } ] From abf4f937472d303d9b4fb37121a09ac70522341a Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Fri, 8 Mar 2019 13:01:41 -0500 Subject: [PATCH 27/53] Add Cloud Security Center v1 API. (#4659) * Add Cloud Security Center v1 API. * Add securitycenter to google-cloud-bom pom.xml * Fixing code format --- .../pom.xml | 31 + .../securitycenter/v1/SecurityCenterGrpc.java | 2590 ++++++++++ google-api-grpc/pom.xml | 12 + .../pom.xml | 36 + .../google/cloud/securitycenter/v1/Asset.java | 4586 +++++++++++++++++ .../securitycenter/v1/AssetOrBuilder.java | 274 + .../securitycenter/v1/AssetOuterClass.java | 130 + .../v1/AssetSecurityMarksName.java | 180 + .../v1/CreateFindingRequest.java | 1060 ++++ .../v1/CreateFindingRequestOrBuilder.java | 92 + .../v1/CreateSourceRequest.java | 885 ++++ .../v1/CreateSourceRequestOrBuilder.java | 67 + .../cloud/securitycenter/v1/Finding.java | 2828 ++++++++++ .../cloud/securitycenter/v1/FindingName.java | 209 + .../securitycenter/v1/FindingOrBuilder.java | 339 ++ .../securitycenter/v1/FindingOuterClass.java | 105 + .../v1/FindingSecurityMarksName.java | 208 + .../v1/GetOrganizationSettingsRequest.java | 617 +++ ...tOrganizationSettingsRequestOrBuilder.java | 33 + .../securitycenter/v1/GetSourceRequest.java | 606 +++ .../v1/GetSourceRequestOrBuilder.java | 33 + .../securitycenter/v1/GroupAssetsRequest.java | 2369 +++++++++ .../v1/GroupAssetsRequestOrBuilder.java | 327 ++ .../v1/GroupAssetsResponse.java | 1492 ++++++ .../v1/GroupAssetsResponseOrBuilder.java | 137 + .../v1/GroupFindingsRequest.java | 2350 +++++++++ .../v1/GroupFindingsRequestOrBuilder.java | 322 ++ .../v1/GroupFindingsResponse.java | 1492 ++++++ .../v1/GroupFindingsResponseOrBuilder.java | 137 + .../cloud/securitycenter/v1/GroupResult.java | 847 +++ .../v1/GroupResultOrBuilder.java | 76 + .../securitycenter/v1/ListAssetsRequest.java | 2623 ++++++++++ .../v1/ListAssetsRequestOrBuilder.java | 357 ++ .../securitycenter/v1/ListAssetsResponse.java | 2640 ++++++++++ .../v1/ListAssetsResponseOrBuilder.java | 141 + .../v1/ListFindingsRequest.java | 2612 ++++++++++ .../v1/ListFindingsRequestOrBuilder.java | 354 ++ .../v1/ListFindingsResponse.java | 2689 ++++++++++ .../v1/ListFindingsResponseOrBuilder.java | 142 + .../securitycenter/v1/ListSourcesRequest.java | 866 ++++ .../v1/ListSourcesRequestOrBuilder.java | 70 + .../v1/ListSourcesResponse.java | 1099 ++++ .../v1/ListSourcesResponseOrBuilder.java | 85 + .../securitycenter/v1/OrganizationName.java | 160 + .../v1/OrganizationSettings.java | 2142 ++++++++ .../v1/OrganizationSettingsName.java | 160 + .../v1/OrganizationSettingsOrBuilder.java | 90 + .../v1/OrganizationSettingsOuterClass.java | 86 + .../v1/OrganizationSourcesName.java | 160 + .../v1/RunAssetDiscoveryRequest.java | 607 +++ .../v1/RunAssetDiscoveryRequestOrBuilder.java | 33 + .../securitycenter/v1/SecurityMarks.java | 1013 ++++ .../v1/SecurityMarksOrBuilder.java | 123 + .../v1/SecurityMarksOuterClass.java | 79 + .../v1/SecuritycenterService.java | 596 +++ .../securitycenter/v1/SecuritymarksName.java | 23 + .../securitycenter/v1/SecuritymarksNames.java | 31 + .../v1/SetFindingStateRequest.java | 1009 ++++ .../v1/SetFindingStateRequestOrBuilder.java | 89 + .../cloud/securitycenter/v1/Source.java | 1028 ++++ .../cloud/securitycenter/v1/SourceName.java | 180 + .../securitycenter/v1/SourceOrBuilder.java | 103 + .../securitycenter/v1/SourceOuterClass.java | 63 + .../v1/UntypedSecuritymarksName.java | 99 + .../v1/UpdateFindingRequest.java | 1073 ++++ .../v1/UpdateFindingRequestOrBuilder.java | 99 + .../v1/UpdateOrganizationSettingsRequest.java | 998 ++++ ...eOrganizationSettingsRequestOrBuilder.java | 76 + .../v1/UpdateSecurityMarksRequest.java | 1287 +++++ .../UpdateSecurityMarksRequestOrBuilder.java | 118 + .../v1/UpdateSourceRequest.java | 977 ++++ .../v1/UpdateSourceRequestOrBuilder.java | 75 + .../cloud/securitycenter/v1/asset.proto | 101 + .../cloud/securitycenter/v1/finding.proto | 99 + .../v1/organization_settings.proto | 76 + .../securitycenter/v1/security_marks.proto | 46 + .../v1/securitycenter_service.proto | 891 ++++ .../cloud/securitycenter/v1/source.proto | 55 + google-cloud-bom/pom.xml | 15 + .../google-cloud-securitycenter/pom.xml | 8 + .../v1/SecurityCenterClient.java | 2471 +++++++++ .../v1/SecurityCenterSettings.java | 399 ++ .../cloud/securitycenter/v1/package-info.java | 38 + .../GrpcSecurityCenterCallableFactory.java | 115 + .../v1/stub/GrpcSecurityCenterStub.java | 620 +++ .../v1/stub/SecurityCenterStub.java | 183 + .../v1/stub/SecurityCenterStubSettings.java | 1082 ++++ .../securitycenter/v1/MockSecurityCenter.java | 57 + .../v1/MockSecurityCenterImpl.java | 332 ++ .../v1/SecurityCenterClientTest.java | 795 +++ .../synth.metadata | 16 +- .../google-cloud-securitycenter/synth.py | 2 +- versions.txt | 2 + 93 files changed, 58124 insertions(+), 4 deletions(-) create mode 100644 google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml create mode 100644 google-api-grpc/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSourcesName.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksName.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksNames.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecuritymarksName.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto create mode 100644 google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto create mode 100644 google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java create mode 100644 google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java create mode 100644 google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java create mode 100644 google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java create mode 100644 google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java create mode 100644 google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java create mode 100644 google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java create mode 100644 google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java create mode 100644 google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml new file mode 100644 index 000000000000..00fd730790f3 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + grpc-google-cloud-securitycenter-v1 + 0.47.1-SNAPSHOT + grpc-google-cloud-securitycenter-v1 + GRPC library for grpc-google-cloud-securitycenter-v1 + + com.google.api.grpc + google-api-grpc + 0.47.1-SNAPSHOT + + + + io.grpc + grpc-stub + compile + + + io.grpc + grpc-protobuf + compile + + + com.google.api.grpc + proto-google-cloud-securitycenter-v1 + compile + + + diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java b/google-api-grpc/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java new file mode 100644 index 000000000000..8a6a42b43489 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java @@ -0,0 +1,2590 @@ +package com.google.cloud.securitycenter.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *

+ * V1 APIs for Security Center service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/securitycenter/v1/securitycenter_service.proto") +public final class SecurityCenterGrpc { + + private SecurityCenterGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.securitycenter.v1.SecurityCenter"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateSourceMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + METHOD_CREATE_SOURCE = getCreateSourceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getCreateSourceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getCreateSourceMethod() { + return getCreateSourceMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getCreateSourceMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getCreateSourceMethod; + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + SecurityCenterGrpc.getCreateSourceMethod = + getCreateSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "CreateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateSource")) + .build(); + } + } + } + return getCreateSourceMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateFindingMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + METHOD_CREATE_FINDING = getCreateFindingMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getCreateFindingMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getCreateFindingMethod() { + return getCreateFindingMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getCreateFindingMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getCreateFindingMethod; + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + SecurityCenterGrpc.getCreateFindingMethod = + getCreateFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "CreateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateFinding")) + .build(); + } + } + } + return getCreateFindingMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetIamPolicyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + METHOD_GET_IAM_POLICY = getGetIamPolicyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + return getGetIamPolicyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethodHelper() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + SecurityCenterGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetOrganizationSettingsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + METHOD_GET_ORGANIZATION_SETTINGS = getGetOrganizationSettingsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getGetOrganizationSettingsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getGetOrganizationSettingsMethod() { + return getGetOrganizationSettingsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getGetOrganizationSettingsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getGetOrganizationSettingsMethod; + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) + == null) { + SecurityCenterGrpc.getGetOrganizationSettingsMethod = + getGetOrganizationSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", + "GetOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.OrganizationSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) + .build(); + } + } + } + return getGetOrganizationSettingsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetSourceMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source> + METHOD_GET_SOURCE = getGetSourceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getGetSourceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getGetSourceMethod() { + return getGetSourceMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getGetSourceMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getGetSourceMethod; + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + SecurityCenterGrpc.getGetSourceMethod = + getGetSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "GetSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) + .build(); + } + } + } + return getGetSourceMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGroupAssetsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse> + METHOD_GROUP_ASSETS = getGroupAssetsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse> + getGroupAssetsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse> + getGroupAssetsMethod() { + return getGroupAssetsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse> + getGroupAssetsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse> + getGroupAssetsMethod; + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + SecurityCenterGrpc.getGroupAssetsMethod = + getGroupAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "GroupAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupAssetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupAssetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GroupAssets")) + .build(); + } + } + } + return getGroupAssetsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGroupFindingsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse> + METHOD_GROUP_FINDINGS = getGroupFindingsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse> + getGroupFindingsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse> + getGroupFindingsMethod() { + return getGroupFindingsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse> + getGroupFindingsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse> + getGroupFindingsMethod; + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + SecurityCenterGrpc.getGroupFindingsMethod = + getGroupFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "GroupFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GroupFindings")) + .build(); + } + } + } + return getGroupFindingsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListAssetsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse> + METHOD_LIST_ASSETS = getListAssetsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse> + getListAssetsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse> + getListAssetsMethod() { + return getListAssetsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse> + getListAssetsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse> + getListAssetsMethod; + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + SecurityCenterGrpc.getListAssetsMethod = + getListAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListAssetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListAssetsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) + .build(); + } + } + } + return getListAssetsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListFindingsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse> + METHOD_LIST_FINDINGS = getListFindingsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse> + getListFindingsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse> + getListFindingsMethod() { + return getListFindingsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse> + getListFindingsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse> + getListFindingsMethod; + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + SecurityCenterGrpc.getListFindingsMethod = + getListFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListSourcesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse> + METHOD_LIST_SOURCES = getListSourcesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse> + getListSourcesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse> + getListSourcesMethod() { + return getListSourcesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse> + getListSourcesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse> + getListSourcesMethod; + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + SecurityCenterGrpc.getListSourcesMethod = + getListSourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "ListSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListSourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListSourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListSources")) + .build(); + } + } + } + return getListSourcesMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getRunAssetDiscoveryMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + METHOD_RUN_ASSET_DISCOVERY = getRunAssetDiscoveryMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod() { + return getRunAssetDiscoveryMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod; + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + SecurityCenterGrpc.getRunAssetDiscoveryMethod = + getRunAssetDiscoveryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "RunAssetDiscovery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) + .build(); + } + } + } + return getRunAssetDiscoveryMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetFindingStateMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding> + METHOD_SET_FINDING_STATE = getSetFindingStateMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding> + getSetFindingStateMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding> + getSetFindingStateMethod() { + return getSetFindingStateMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding> + getSetFindingStateMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding> + getSetFindingStateMethod; + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + SecurityCenterGrpc.getSetFindingStateMethod = + getSetFindingStateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "SetFindingState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.SetFindingStateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("SetFindingState")) + .build(); + } + } + } + return getSetFindingStateMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSetIamPolicyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + METHOD_SET_IAM_POLICY = getSetIamPolicyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + return getSetIamPolicyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethodHelper() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + SecurityCenterGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getTestIamPermissionsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + METHOD_TEST_IAM_PERMISSIONS = getTestIamPermissionsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + return getTestIamPermissionsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) + == null) { + SecurityCenterGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", + "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateFindingMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + METHOD_UPDATE_FINDING = getUpdateFindingMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getUpdateFindingMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getUpdateFindingMethod() { + return getUpdateFindingMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getUpdateFindingMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getUpdateFindingMethod; + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + SecurityCenterGrpc.getUpdateFindingMethod = + getUpdateFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "UpdateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) + .build(); + } + } + } + return getUpdateFindingMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateOrganizationSettingsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + METHOD_UPDATE_ORGANIZATION_SETTINGS = getUpdateOrganizationSettingsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getUpdateOrganizationSettingsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getUpdateOrganizationSettingsMethod() { + return getUpdateOrganizationSettingsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getUpdateOrganizationSettingsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getUpdateOrganizationSettingsMethod; + if ((getUpdateOrganizationSettingsMethod = + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateOrganizationSettingsMethod = + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) + == null) { + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = + getUpdateOrganizationSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", + "UpdateOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.OrganizationSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) + .build(); + } + } + } + return getUpdateOrganizationSettingsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateSourceMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + METHOD_UPDATE_SOURCE = getUpdateSourceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getUpdateSourceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getUpdateSourceMethod() { + return getUpdateSourceMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getUpdateSourceMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getUpdateSourceMethod; + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + SecurityCenterGrpc.getUpdateSourceMethod = + getUpdateSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", "UpdateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateSource")) + .build(); + } + } + } + return getUpdateSourceMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateSecurityMarksMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks> + METHOD_UPDATE_SECURITY_MARKS = getUpdateSecurityMarksMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks> + getUpdateSecurityMarksMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks> + getUpdateSecurityMarksMethod() { + return getUpdateSecurityMarksMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks> + getUpdateSecurityMarksMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks> + getUpdateSecurityMarksMethod; + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) + == null) { + SecurityCenterGrpc.getUpdateSecurityMarksMethod = + getUpdateSecurityMarksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter", + "UpdateSecurityMarks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.SecurityMarks + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) + .build(); + } + } + } + return getUpdateSecurityMarksMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SecurityCenterStub newStub(io.grpc.Channel channel) { + return new SecurityCenterStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecurityCenterBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new SecurityCenterBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SecurityCenterFutureStub newFutureStub(io.grpc.Channel channel) { + return new SecurityCenterFutureStub(channel); + } + + /** + * + * + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public abstract static class SecurityCenterImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public void createSource( + com.google.cloud.securitycenter.v1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateSourceMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public void createFinding( + com.google.cloud.securitycenter.v1.CreateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateFindingMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetIamPolicyMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGetOrganizationSettingsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public void getSource( + com.google.cloud.securitycenter.v1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetSourceMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets( + com.google.cloud.securitycenter.v1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGroupAssetsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/123/sources/-/findings
+     * 
+ */ + public void groupFindings( + com.google.cloud.securitycenter.v1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGroupFindingsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets( + com.google.cloud.securitycenter.v1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListAssetsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/123/sources/-/findings
+     * 
+ */ + public void listFindings( + com.google.cloud.securitycenter.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListFindingsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources( + com.google.cloud.securitycenter.v1.ListSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListSourcesMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getRunAssetDiscoveryMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState( + com.google.cloud.securitycenter.v1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetFindingStateMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSetIamPolicyMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getTestIamPermissionsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding( + com.google.cloud.securitycenter.v1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateFindingMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getUpdateOrganizationSettingsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public void updateSource( + com.google.cloud.securitycenter.v1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateSourceMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getUpdateSecurityMarksMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSourceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source>(this, METHODID_CREATE_SOURCE))) + .addMethod( + getCreateFindingMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding>(this, METHODID_CREATE_FINDING))) + .addMethod( + getGetIamPolicyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getGetOrganizationSettingsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings>( + this, METHODID_GET_ORGANIZATION_SETTINGS))) + .addMethod( + getGetSourceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source>(this, METHODID_GET_SOURCE))) + .addMethod( + getGroupAssetsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse>( + this, METHODID_GROUP_ASSETS))) + .addMethod( + getGroupFindingsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse>( + this, METHODID_GROUP_FINDINGS))) + .addMethod( + getListAssetsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) + .addMethod( + getListFindingsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListSourcesMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse>( + this, METHODID_LIST_SOURCES))) + .addMethod( + getRunAssetDiscoveryMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation>(this, METHODID_RUN_ASSET_DISCOVERY))) + .addMethod( + getSetFindingStateMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding>( + this, METHODID_SET_FINDING_STATE))) + .addMethod( + getSetIamPolicyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getUpdateFindingMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding>(this, METHODID_UPDATE_FINDING))) + .addMethod( + getUpdateOrganizationSettingsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings>( + this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) + .addMethod( + getUpdateSourceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source>(this, METHODID_UPDATE_SOURCE))) + .addMethod( + getUpdateSecurityMarksMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks>( + this, METHODID_UPDATE_SECURITY_MARKS))) + .build(); + } + } + + /** + * + * + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterStub + extends io.grpc.stub.AbstractStub { + private SecurityCenterStub(io.grpc.Channel channel) { + super(channel); + } + + private SecurityCenterStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public void createSource( + com.google.cloud.securitycenter.v1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateSourceMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public void createFinding( + com.google.cloud.securitycenter.v1.CreateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateFindingMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public void getSource( + com.google.cloud.securitycenter.v1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetSourceMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets( + com.google.cloud.securitycenter.v1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGroupAssetsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/123/sources/-/findings
+     * 
+ */ + public void groupFindings( + com.google.cloud.securitycenter.v1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGroupFindingsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets( + com.google.cloud.securitycenter.v1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListAssetsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/123/sources/-/findings
+     * 
+ */ + public void listFindings( + com.google.cloud.securitycenter.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListFindingsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources( + com.google.cloud.securitycenter.v1.ListSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListSourcesMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState( + com.google.cloud.securitycenter.v1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetFindingStateMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding( + com.google.cloud.securitycenter.v1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateFindingMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public void updateSource( + com.google.cloud.securitycenter.v1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateSourceMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterBlockingStub + extends io.grpc.stub.AbstractStub { + private SecurityCenterBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private SecurityCenterBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Source createSource( + com.google.cloud.securitycenter.v1.CreateSourceRequest request) { + return blockingUnaryCall( + getChannel(), getCreateSourceMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding createFinding( + com.google.cloud.securitycenter.v1.CreateFindingRequest request) { + return blockingUnaryCall( + getChannel(), getCreateFindingMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getGetIamPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { + return blockingUnaryCall( + getChannel(), getGetOrganizationSettingsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Source getSource( + com.google.cloud.securitycenter.v1.GetSourceRequest request) { + return blockingUnaryCall(getChannel(), getGetSourceMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.GroupAssetsResponse groupAssets( + com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { + return blockingUnaryCall( + getChannel(), getGroupAssetsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/123/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1.GroupFindingsResponse groupFindings( + com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { + return blockingUnaryCall( + getChannel(), getGroupFindingsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse listAssets( + com.google.cloud.securitycenter.v1.ListAssetsRequest request) { + return blockingUnaryCall( + getChannel(), getListAssetsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/123/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse listFindings( + com.google.cloud.securitycenter.v1.ListFindingsRequest request) { + return blockingUnaryCall( + getChannel(), getListFindingsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListSourcesResponse listSources( + com.google.cloud.securitycenter.v1.ListSourcesRequest request) { + return blockingUnaryCall( + getChannel(), getListSourcesMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.longrunning.Operation runAssetDiscovery( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { + return blockingUnaryCall( + getChannel(), getRunAssetDiscoveryMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding setFindingState( + com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { + return blockingUnaryCall( + getChannel(), getSetFindingStateMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getSetIamPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return blockingUnaryCall( + getChannel(), getTestIamPermissionsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding updateFinding( + com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateFindingMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizationSettings( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateOrganizationSettingsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Source updateSource( + com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateSourceMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.SecurityMarks updateSecurityMarks( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateSecurityMarksMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterFutureStub + extends io.grpc.stub.AbstractStub { + private SecurityCenterFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private SecurityCenterFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Source> + createSource(com.google.cloud.securitycenter.v1.CreateSourceRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateSourceMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Finding> + createFinding(com.google.cloud.securitycenter.v1.CreateFindingRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateFindingMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.OrganizationSettings> + getOrganizationSettings( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethodHelper(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Source> + getSource(com.google.cloud.securitycenter.v1.GetSourceRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetSourceMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.GroupAssetsResponse> + groupAssets(com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { + return futureUnaryCall( + getChannel().newCall(getGroupAssetsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/123/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.GroupFindingsResponse> + groupFindings(com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { + return futureUnaryCall( + getChannel().newCall(getGroupFindingsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ListAssetsResponse> + listAssets(com.google.cloud.securitycenter.v1.ListAssetsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListAssetsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/123/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ListFindingsResponse> + listFindings(com.google.cloud.securitycenter.v1.ListFindingsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListFindingsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ListSourcesResponse> + listSources(com.google.cloud.securitycenter.v1.ListSourcesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListSourcesMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + runAssetDiscovery(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { + return futureUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Finding> + setFindingState(com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetFindingStateMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Finding> + updateFinding(com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateFindingMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.OrganizationSettings> + updateOrganizationSettings( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethodHelper(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Source> + updateSource(com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateSourceMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.SecurityMarks> + updateSecurityMarks(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SOURCE = 0; + private static final int METHODID_CREATE_FINDING = 1; + private static final int METHODID_GET_IAM_POLICY = 2; + private static final int METHODID_GET_ORGANIZATION_SETTINGS = 3; + private static final int METHODID_GET_SOURCE = 4; + private static final int METHODID_GROUP_ASSETS = 5; + private static final int METHODID_GROUP_FINDINGS = 6; + private static final int METHODID_LIST_ASSETS = 7; + private static final int METHODID_LIST_FINDINGS = 8; + private static final int METHODID_LIST_SOURCES = 9; + private static final int METHODID_RUN_ASSET_DISCOVERY = 10; + private static final int METHODID_SET_FINDING_STATE = 11; + private static final int METHODID_SET_IAM_POLICY = 12; + private static final int METHODID_TEST_IAM_PERMISSIONS = 13; + private static final int METHODID_UPDATE_FINDING = 14; + private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 15; + private static final int METHODID_UPDATE_SOURCE = 16; + private static final int METHODID_UPDATE_SECURITY_MARKS = 17; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SecurityCenterImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SOURCE: + serviceImpl.createSource( + (com.google.cloud.securitycenter.v1.CreateSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FINDING: + serviceImpl.createFinding( + (com.google.cloud.securitycenter.v1.CreateFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ORGANIZATION_SETTINGS: + serviceImpl.getOrganizationSettings( + (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SOURCE: + serviceImpl.getSource( + (com.google.cloud.securitycenter.v1.GetSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GROUP_ASSETS: + serviceImpl.groupAssets( + (com.google.cloud.securitycenter.v1.GroupAssetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GROUP_FINDINGS: + serviceImpl.groupFindings( + (com.google.cloud.securitycenter.v1.GroupFindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.GroupFindingsResponse>) + responseObserver); + break; + case METHODID_LIST_ASSETS: + serviceImpl.listAssets( + (com.google.cloud.securitycenter.v1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings( + (com.google.cloud.securitycenter.v1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SOURCES: + serviceImpl.listSources( + (com.google.cloud.securitycenter.v1.ListSourcesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RUN_ASSET_DISCOVERY: + serviceImpl.runAssetDiscovery( + (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_FINDING_STATE: + serviceImpl.setFindingState( + (com.google.cloud.securitycenter.v1.SetFindingStateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FINDING: + serviceImpl.updateFinding( + (com.google.cloud.securitycenter.v1.UpdateFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_ORGANIZATION_SETTINGS: + serviceImpl.updateOrganizationSettings( + (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SOURCE: + serviceImpl.updateSource( + (com.google.cloud.securitycenter.v1.UpdateSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SECURITY_MARKS: + serviceImpl.updateSecurityMarks( + (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecurityCenterBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecurityCenter"); + } + } + + private static final class SecurityCenterFileDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier { + SecurityCenterFileDescriptorSupplier() {} + } + + private static final class SecurityCenterMethodDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SecurityCenterMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecurityCenterGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) + .addMethod(getCreateSourceMethodHelper()) + .addMethod(getCreateFindingMethodHelper()) + .addMethod(getGetIamPolicyMethodHelper()) + .addMethod(getGetOrganizationSettingsMethodHelper()) + .addMethod(getGetSourceMethodHelper()) + .addMethod(getGroupAssetsMethodHelper()) + .addMethod(getGroupFindingsMethodHelper()) + .addMethod(getListAssetsMethodHelper()) + .addMethod(getListFindingsMethodHelper()) + .addMethod(getListSourcesMethodHelper()) + .addMethod(getRunAssetDiscoveryMethodHelper()) + .addMethod(getSetFindingStateMethodHelper()) + .addMethod(getSetIamPolicyMethodHelper()) + .addMethod(getTestIamPermissionsMethodHelper()) + .addMethod(getUpdateFindingMethodHelper()) + .addMethod(getUpdateOrganizationSettingsMethodHelper()) + .addMethod(getUpdateSourceMethodHelper()) + .addMethod(getUpdateSecurityMarksMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index 8b46d498aed1..39cf79dfb119 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -644,6 +644,16 @@ grpc-google-cloud-securitycenter-v1beta1 0.47.1-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-securitycenter-v1 + 0.47.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-securitycenter-v1 + 0.47.1-SNAPSHOT + com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha @@ -697,6 +707,7 @@ grpc-google-cloud-redis-v1 grpc-google-cloud-scheduler-v1beta1 grpc-google-cloud-securitycenter-v1beta1 + grpc-google-cloud-securitycenter-v1 grpc-google-cloud-spanner-admin-database-v1 grpc-google-cloud-spanner-admin-instance-v1 grpc-google-cloud-spanner-v1 @@ -751,6 +762,7 @@ proto-google-cloud-redis-v1 proto-google-cloud-scheduler-v1beta1 proto-google-cloud-securitycenter-v1beta1 + proto-google-cloud-securitycenter-v1 proto-google-cloud-spanner-admin-database-v1 proto-google-cloud-spanner-admin-instance-v1 proto-google-cloud-spanner-v1 diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml new file mode 100644 index 000000000000..2daae1330ff1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml @@ -0,0 +1,36 @@ + + 4.0.0 + proto-google-cloud-securitycenter-v1 + 0.47.1-SNAPSHOT + proto-google-cloud-securitycenter-v1 + PROTO library for proto-google-cloud-securitycenter-v1 + + com.google.api.grpc + google-api-grpc + 0.47.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + compile + + + com.google.api + api-common + compile + + + com.google.api.grpc + proto-google-common-protos + compile + + + com.google.api.grpc + proto-google-iam-v1 + compile + + + diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java new file mode 100644 index 000000000000..0a368c4ef733 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java @@ -0,0 +1,4586 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/asset.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
+ * Platform (GCP) resource.
+ * The Asset is a Cloud SCC resource that captures information about a single
+ * GCP resource. All modifications to an Asset are only within the context of
+ * Cloud SCC and don't affect the referenced GCP resource.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Asset} + */ +public final class Asset extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Asset) + AssetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Asset.newBuilder() to construct. + private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Asset() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Asset( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder subBuilder = + null; + if (securityCenterProperties_ != null) { + subBuilder = securityCenterProperties_.toBuilder(); + } + securityCenterProperties_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityCenterProperties_); + securityCenterProperties_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + resourceProperties_ = + com.google.protobuf.MapField.newMapField( + ResourcePropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + resourceProperties__ = + input.readMessage( + ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + resourceProperties_ + .getMutableMap() + .put(resourceProperties__.getKey(), resourceProperties__.getValue()); + break; + } + case 66: + { + com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null; + if (securityMarks_ != null) { + subBuilder = securityMarks_.toBuilder(); + } + securityMarks_ = + input.readMessage( + com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityMarks_); + securityMarks_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder subBuilder = null; + if (iamPolicy_ != null) { + subBuilder = iamPolicy_.toBuilder(); + } + iamPolicy_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Asset.IamPolicy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(iamPolicy_); + iamPolicy_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetResourceProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Asset.class, + com.google.cloud.securitycenter.v1.Asset.Builder.class); + } + + public interface SecurityCenterPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The full resource name of the GCP resource this asset
+     * represents. This field is immutable after create time. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + * + * + *
+     * The full resource name of the GCP resource this asset
+     * represents. This field is immutable after create time. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString getResourceNameBytes(); + + /** + * + * + *
+     * The type of the GCP resource. Examples include: APPLICATION,
+     * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
+     * Cloud SCC and/or the producer of the resource and is immutable
+     * after create time.
+     * 
+ * + * string resource_type = 2; + */ + java.lang.String getResourceType(); + /** + * + * + *
+     * The type of the GCP resource. Examples include: APPLICATION,
+     * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
+     * Cloud SCC and/or the producer of the resource and is immutable
+     * after create time.
+     * 
+ * + * string resource_type = 2; + */ + com.google.protobuf.ByteString getResourceTypeBytes(); + + /** + * + * + *
+     * The full resource name of the immediate parent of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_parent = 3; + */ + java.lang.String getResourceParent(); + /** + * + * + *
+     * The full resource name of the immediate parent of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_parent = 3; + */ + com.google.protobuf.ByteString getResourceParentBytes(); + + /** + * + * + *
+     * The full resource name of the project the resource belongs to. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_project = 4; + */ + java.lang.String getResourceProject(); + /** + * + * + *
+     * The full resource name of the project the resource belongs to. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_project = 4; + */ + com.google.protobuf.ByteString getResourceProjectBytes(); + + /** + * + * + *
+     * Owners of the Google Cloud resource.
+     * 
+ * + * repeated string resource_owners = 5; + */ + java.util.List getResourceOwnersList(); + /** + * + * + *
+     * Owners of the Google Cloud resource.
+     * 
+ * + * repeated string resource_owners = 5; + */ + int getResourceOwnersCount(); + /** + * + * + *
+     * Owners of the Google Cloud resource.
+     * 
+ * + * repeated string resource_owners = 5; + */ + java.lang.String getResourceOwners(int index); + /** + * + * + *
+     * Owners of the Google Cloud resource.
+     * 
+ * + * repeated string resource_owners = 5; + */ + com.google.protobuf.ByteString getResourceOwnersBytes(int index); + } + /** + * + * + *
+   * Cloud SCC managed properties. These properties are managed by Cloud SCC and
+   * cannot be modified by the user.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Asset.SecurityCenterProperties} + */ + public static final class SecurityCenterProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) + SecurityCenterPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityCenterProperties.newBuilder() to construct. + private SecurityCenterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecurityCenterProperties() { + resourceName_ = ""; + resourceType_ = ""; + resourceParent_ = ""; + resourceProject_ = ""; + resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SecurityCenterProperties( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceType_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceParent_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceProject_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + resourceOwners_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + resourceOwners_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + resourceOwners_ = resourceOwners_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.class, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class); + } + + private int bitField0_; + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + * + * + *
+     * The full resource name of the GCP resource this asset
+     * represents. This field is immutable after create time. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + * + * + *
+     * The full resource name of the GCP resource this asset
+     * represents. This field is immutable after create time. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object resourceType_; + /** + * + * + *
+     * The type of the GCP resource. Examples include: APPLICATION,
+     * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
+     * Cloud SCC and/or the producer of the resource and is immutable
+     * after create time.
+     * 
+ * + * string resource_type = 2; + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + /** + * + * + *
+     * The type of the GCP resource. Examples include: APPLICATION,
+     * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
+     * Cloud SCC and/or the producer of the resource and is immutable
+     * after create time.
+     * 
+ * + * string resource_type = 2; + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_PARENT_FIELD_NUMBER = 3; + private volatile java.lang.Object resourceParent_; + /** + * + * + *
+     * The full resource name of the immediate parent of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_parent = 3; + */ + public java.lang.String getResourceParent() { + java.lang.Object ref = resourceParent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceParent_ = s; + return s; + } + } + /** + * + * + *
+     * The full resource name of the immediate parent of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_parent = 3; + */ + public com.google.protobuf.ByteString getResourceParentBytes() { + java.lang.Object ref = resourceParent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceParent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_PROJECT_FIELD_NUMBER = 4; + private volatile java.lang.Object resourceProject_; + /** + * + * + *
+     * The full resource name of the project the resource belongs to. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_project = 4; + */ + public java.lang.String getResourceProject() { + java.lang.Object ref = resourceProject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceProject_ = s; + return s; + } + } + /** + * + * + *
+     * The full resource name of the project the resource belongs to. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string resource_project = 4; + */ + public com.google.protobuf.ByteString getResourceProjectBytes() { + java.lang.Object ref = resourceProject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_OWNERS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList resourceOwners_; + /** + * + * + *
+     * Owners of the Google Cloud resource.
+     * 
+ * + * repeated string resource_owners = 5; + */ + public com.google.protobuf.ProtocolStringList getResourceOwnersList() { + return resourceOwners_; + } + /** + * + * + *
+     * Owners of the Google Cloud resource.
+     * 
+ * + * repeated string resource_owners = 5; + */ + public int getResourceOwnersCount() { + return resourceOwners_.size(); + } + /** + * + * + *
+     * Owners of the Google Cloud resource.
+     * 
+ * + * repeated string resource_owners = 5; + */ + public java.lang.String getResourceOwners(int index) { + return resourceOwners_.get(index); + } + /** + * + * + *
+     * Owners of the Google Cloud resource.
+     * 
+ * + * repeated string resource_owners = 5; + */ + public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { + return resourceOwners_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + if (!getResourceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceType_); + } + if (!getResourceParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceParent_); + } + if (!getResourceProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resourceProject_); + } + for (int i = 0; i < resourceOwners_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, resourceOwners_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + if (!getResourceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceType_); + } + if (!getResourceParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceParent_); + } + if (!getResourceProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resourceProject_); + } + { + int dataSize = 0; + for (int i = 0; i < resourceOwners_.size(); i++) { + dataSize += computeStringSizeNoTag(resourceOwners_.getRaw(i)); + } + size += dataSize; + size += 1 * getResourceOwnersList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other = + (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) obj; + + boolean result = true; + result = result && getResourceName().equals(other.getResourceName()); + result = result && getResourceType().equals(other.getResourceType()); + result = result && getResourceParent().equals(other.getResourceParent()); + result = result && getResourceProject().equals(other.getResourceProject()); + result = result && getResourceOwnersList().equals(other.getResourceOwnersList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().hashCode(); + hash = (37 * hash) + RESOURCE_PARENT_FIELD_NUMBER; + hash = (53 * hash) + getResourceParent().hashCode(); + hash = (37 * hash) + RESOURCE_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getResourceProject().hashCode(); + if (getResourceOwnersCount() > 0) { + hash = (37 * hash) + RESOURCE_OWNERS_FIELD_NUMBER; + hash = (53 * hash) + getResourceOwnersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Cloud SCC managed properties. These properties are managed by Cloud SCC and
+     * cannot be modified by the user.
+     * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Asset.SecurityCenterProperties} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) + com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.class, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + resourceType_ = ""; + + resourceParent_ = ""; + + resourceProject_ = ""; + + resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties build() { + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties buildPartial() { + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties result = + new com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.resourceName_ = resourceName_; + result.resourceType_ = resourceType_; + result.resourceParent_ = resourceParent_; + result.resourceProject_ = resourceProject_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + resourceOwners_ = resourceOwners_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.resourceOwners_ = resourceOwners_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other) { + if (other + == com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + .getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + onChanged(); + } + if (!other.getResourceParent().isEmpty()) { + resourceParent_ = other.resourceParent_; + onChanged(); + } + if (!other.getResourceProject().isEmpty()) { + resourceProject_ = other.resourceProject_; + onChanged(); + } + if (!other.resourceOwners_.isEmpty()) { + if (resourceOwners_.isEmpty()) { + resourceOwners_ = other.resourceOwners_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureResourceOwnersIsMutable(); + resourceOwners_.addAll(other.resourceOwners_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object resourceName_ = ""; + /** + * + * + *
+       * The full resource name of the GCP resource this asset
+       * represents. This field is immutable after create time. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The full resource name of the GCP resource this asset
+       * represents. This field is immutable after create time. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The full resource name of the GCP resource this asset
+       * represents. This field is immutable after create time. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The full resource name of the GCP resource this asset
+       * represents. This field is immutable after create time. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The full resource name of the GCP resource this asset
+       * represents. This field is immutable after create time. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + + private java.lang.Object resourceType_ = ""; + /** + * + * + *
+       * The type of the GCP resource. Examples include: APPLICATION,
+       * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
+       * Cloud SCC and/or the producer of the resource and is immutable
+       * after create time.
+       * 
+ * + * string resource_type = 2; + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The type of the GCP resource. Examples include: APPLICATION,
+       * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
+       * Cloud SCC and/or the producer of the resource and is immutable
+       * after create time.
+       * 
+ * + * string resource_type = 2; + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The type of the GCP resource. Examples include: APPLICATION,
+       * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
+       * Cloud SCC and/or the producer of the resource and is immutable
+       * after create time.
+       * 
+ * + * string resource_type = 2; + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The type of the GCP resource. Examples include: APPLICATION,
+       * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
+       * Cloud SCC and/or the producer of the resource and is immutable
+       * after create time.
+       * 
+ * + * string resource_type = 2; + */ + public Builder clearResourceType() { + + resourceType_ = getDefaultInstance().getResourceType(); + onChanged(); + return this; + } + /** + * + * + *
+       * The type of the GCP resource. Examples include: APPLICATION,
+       * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
+       * Cloud SCC and/or the producer of the resource and is immutable
+       * after create time.
+       * 
+ * + * string resource_type = 2; + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceType_ = value; + onChanged(); + return this; + } + + private java.lang.Object resourceParent_ = ""; + /** + * + * + *
+       * The full resource name of the immediate parent of the resource. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_parent = 3; + */ + public java.lang.String getResourceParent() { + java.lang.Object ref = resourceParent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceParent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The full resource name of the immediate parent of the resource. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_parent = 3; + */ + public com.google.protobuf.ByteString getResourceParentBytes() { + java.lang.Object ref = resourceParent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceParent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The full resource name of the immediate parent of the resource. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_parent = 3; + */ + public Builder setResourceParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceParent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The full resource name of the immediate parent of the resource. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_parent = 3; + */ + public Builder clearResourceParent() { + + resourceParent_ = getDefaultInstance().getResourceParent(); + onChanged(); + return this; + } + /** + * + * + *
+       * The full resource name of the immediate parent of the resource. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_parent = 3; + */ + public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceParent_ = value; + onChanged(); + return this; + } + + private java.lang.Object resourceProject_ = ""; + /** + * + * + *
+       * The full resource name of the project the resource belongs to. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_project = 4; + */ + public java.lang.String getResourceProject() { + java.lang.Object ref = resourceProject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceProject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The full resource name of the project the resource belongs to. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_project = 4; + */ + public com.google.protobuf.ByteString getResourceProjectBytes() { + java.lang.Object ref = resourceProject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The full resource name of the project the resource belongs to. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_project = 4; + */ + public Builder setResourceProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceProject_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The full resource name of the project the resource belongs to. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_project = 4; + */ + public Builder clearResourceProject() { + + resourceProject_ = getDefaultInstance().getResourceProject(); + onChanged(); + return this; + } + /** + * + * + *
+       * The full resource name of the project the resource belongs to. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string resource_project = 4; + */ + public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceProject_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList resourceOwners_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureResourceOwnersIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+       * Owners of the Google Cloud resource.
+       * 
+ * + * repeated string resource_owners = 5; + */ + public com.google.protobuf.ProtocolStringList getResourceOwnersList() { + return resourceOwners_.getUnmodifiableView(); + } + /** + * + * + *
+       * Owners of the Google Cloud resource.
+       * 
+ * + * repeated string resource_owners = 5; + */ + public int getResourceOwnersCount() { + return resourceOwners_.size(); + } + /** + * + * + *
+       * Owners of the Google Cloud resource.
+       * 
+ * + * repeated string resource_owners = 5; + */ + public java.lang.String getResourceOwners(int index) { + return resourceOwners_.get(index); + } + /** + * + * + *
+       * Owners of the Google Cloud resource.
+       * 
+ * + * repeated string resource_owners = 5; + */ + public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { + return resourceOwners_.getByteString(index); + } + /** + * + * + *
+       * Owners of the Google Cloud resource.
+       * 
+ * + * repeated string resource_owners = 5; + */ + public Builder setResourceOwners(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); + resourceOwners_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Owners of the Google Cloud resource.
+       * 
+ * + * repeated string resource_owners = 5; + */ + public Builder addResourceOwners(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); + resourceOwners_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Owners of the Google Cloud resource.
+       * 
+ * + * repeated string resource_owners = 5; + */ + public Builder addAllResourceOwners(java.lang.Iterable values) { + ensureResourceOwnersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceOwners_); + onChanged(); + return this; + } + /** + * + * + *
+       * Owners of the Google Cloud resource.
+       * 
+ * + * repeated string resource_owners = 5; + */ + public Builder clearResourceOwners() { + resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Owners of the Google Cloud resource.
+       * 
+ * + * repeated string resource_owners = 5; + */ + public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResourceOwnersIsMutable(); + resourceOwners_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) + private static final com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties(); + } + + public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityCenterProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityCenterProperties(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IamPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Asset.IamPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The JSON representation of the Policy associated with the asset.
+     * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
+     * details.
+     * 
+ * + * string policy_blob = 1; + */ + java.lang.String getPolicyBlob(); + /** + * + * + *
+     * The JSON representation of the Policy associated with the asset.
+     * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
+     * details.
+     * 
+ * + * string policy_blob = 1; + */ + com.google.protobuf.ByteString getPolicyBlobBytes(); + } + /** + * + * + *
+   * IAM Policy information associated with the GCP resource described by the
+   * Cloud SCC asset. This information is managed and defined by the GCP
+   * resource and cannot be modified by the user.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Asset.IamPolicy} + */ + public static final class IamPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Asset.IamPolicy) + IamPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use IamPolicy.newBuilder() to construct. + private IamPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IamPolicy() { + policyBlob_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IamPolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + policyBlob_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Asset.IamPolicy.class, + com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder.class); + } + + public static final int POLICY_BLOB_FIELD_NUMBER = 1; + private volatile java.lang.Object policyBlob_; + /** + * + * + *
+     * The JSON representation of the Policy associated with the asset.
+     * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
+     * details.
+     * 
+ * + * string policy_blob = 1; + */ + public java.lang.String getPolicyBlob() { + java.lang.Object ref = policyBlob_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyBlob_ = s; + return s; + } + } + /** + * + * + *
+     * The JSON representation of the Policy associated with the asset.
+     * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
+     * details.
+     * 
+ * + * string policy_blob = 1; + */ + public com.google.protobuf.ByteString getPolicyBlobBytes() { + java.lang.Object ref = policyBlob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyBlob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getPolicyBlobBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyBlob_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPolicyBlobBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyBlob_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.Asset.IamPolicy)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.Asset.IamPolicy other = + (com.google.cloud.securitycenter.v1.Asset.IamPolicy) obj; + + boolean result = true; + result = result && getPolicyBlob().equals(other.getPolicyBlob()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + POLICY_BLOB_FIELD_NUMBER; + hash = (53 * hash) + getPolicyBlob().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Asset.IamPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * IAM Policy information associated with the GCP resource described by the
+     * Cloud SCC asset. This information is managed and defined by the GCP
+     * resource and cannot be modified by the user.
+     * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Asset.IamPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Asset.IamPolicy) + com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Asset.IamPolicy.class, + com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.Asset.IamPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + policyBlob_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset.IamPolicy build() { + com.google.cloud.securitycenter.v1.Asset.IamPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset.IamPolicy buildPartial() { + com.google.cloud.securitycenter.v1.Asset.IamPolicy result = + new com.google.cloud.securitycenter.v1.Asset.IamPolicy(this); + result.policyBlob_ = policyBlob_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.Asset.IamPolicy) { + return mergeFrom((com.google.cloud.securitycenter.v1.Asset.IamPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.Asset.IamPolicy other) { + if (other == com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance()) + return this; + if (!other.getPolicyBlob().isEmpty()) { + policyBlob_ = other.policyBlob_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.Asset.IamPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.Asset.IamPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object policyBlob_ = ""; + /** + * + * + *
+       * The JSON representation of the Policy associated with the asset.
+       * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
+       * details.
+       * 
+ * + * string policy_blob = 1; + */ + public java.lang.String getPolicyBlob() { + java.lang.Object ref = policyBlob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyBlob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The JSON representation of the Policy associated with the asset.
+       * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
+       * details.
+       * 
+ * + * string policy_blob = 1; + */ + public com.google.protobuf.ByteString getPolicyBlobBytes() { + java.lang.Object ref = policyBlob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyBlob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The JSON representation of the Policy associated with the asset.
+       * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
+       * details.
+       * 
+ * + * string policy_blob = 1; + */ + public Builder setPolicyBlob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + policyBlob_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The JSON representation of the Policy associated with the asset.
+       * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
+       * details.
+       * 
+ * + * string policy_blob = 1; + */ + public Builder clearPolicyBlob() { + + policyBlob_ = getDefaultInstance().getPolicyBlob(); + onChanged(); + return this; + } + /** + * + * + *
+       * The JSON representation of the Policy associated with the asset.
+       * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
+       * details.
+       * 
+ * + * string policy_blob = 1; + */ + public Builder setPolicyBlobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + policyBlob_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Asset.IamPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset.IamPolicy) + private static final com.google.cloud.securitycenter.v1.Asset.IamPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Asset.IamPolicy(); + } + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IamPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The relative resource name of this asset. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/assets/456".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The relative resource name of this asset. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/assets/456".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER = 2; + private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + securityCenterProperties_; + /** + * + * + *
+   * Cloud SCC managed properties. These properties are managed by
+   * Cloud SCC and cannot be modified by the user.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public boolean hasSecurityCenterProperties() { + return securityCenterProperties_ != null; + } + /** + * + * + *
+   * Cloud SCC managed properties. These properties are managed by
+   * Cloud SCC and cannot be modified by the user.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + getSecurityCenterProperties() { + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() + : securityCenterProperties_; + } + /** + * + * + *
+   * Cloud SCC managed properties. These properties are managed by
+   * Cloud SCC and cannot be modified by the user.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder() { + return getSecurityCenterProperties(); + } + + public static final int RESOURCE_PROPERTIES_FIELD_NUMBER = 7; + + private static final class ResourcePropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField + resourceProperties_; + + private com.google.protobuf.MapField + internalGetResourceProperties() { + if (resourceProperties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourcePropertiesDefaultEntryHolder.defaultEntry); + } + return resourceProperties_; + } + + public int getResourcePropertiesCount() { + return internalGetResourceProperties().getMap().size(); + } + /** + * + * + *
+   * Resource managed properties. These properties are managed and defined by
+   * the GCP resource and cannot be modified by the user.
+   * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public boolean containsResourceProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetResourceProperties().getMap().containsKey(key); + } + /** Use {@link #getResourcePropertiesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getResourceProperties() { + return getResourcePropertiesMap(); + } + /** + * + * + *
+   * Resource managed properties. These properties are managed and defined by
+   * the GCP resource and cannot be modified by the user.
+   * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public java.util.Map getResourcePropertiesMap() { + return internalGetResourceProperties().getMap(); + } + /** + * + * + *
+   * Resource managed properties. These properties are managed and defined by
+   * the GCP resource and cannot be modified by the user.
+   * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public com.google.protobuf.Value getResourcePropertiesOrDefault( + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetResourceProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Resource managed properties. These properties are managed and defined by
+   * the GCP resource and cannot be modified by the user.
+   * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetResourceProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SECURITY_MARKS_FIELD_NUMBER = 8; + private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_; + /** + * + * + *
+   * User specified security marks. These marks are entirely managed by the user
+   * and come from the SecurityMarks resource that belongs to the asset.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public boolean hasSecurityMarks() { + return securityMarks_ != null; + } + /** + * + * + *
+   * User specified security marks. These marks are entirely managed by the user
+   * and come from the SecurityMarks resource that belongs to the asset.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; + } + /** + * + * + *
+   * User specified security marks. These marks are entirely managed by the user
+   * and come from the SecurityMarks resource that belongs to the asset.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + return getSecurityMarks(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * The time at which the asset was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * The time at which the asset was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * The time at which the asset was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * The time at which the asset was last updated, added, or deleted in Cloud
+   * SCC.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * The time at which the asset was last updated, added, or deleted in Cloud
+   * SCC.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * The time at which the asset was last updated, added, or deleted in Cloud
+   * SCC.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int IAM_POLICY_FIELD_NUMBER = 11; + private com.google.cloud.securitycenter.v1.Asset.IamPolicy iamPolicy_; + /** + * + * + *
+   * IAM Policy information associated with the GCP resource described by the
+   * Cloud SCC asset. This information is managed and defined by the GCP
+   * resource and cannot be modified by the user.
+   * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public boolean hasIamPolicy() { + return iamPolicy_ != null; + } + /** + * + * + *
+   * IAM Policy information associated with the GCP resource described by the
+   * Cloud SCC asset. This information is managed and defined by the GCP
+   * resource and cannot be modified by the user.
+   * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { + return iamPolicy_ == null + ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() + : iamPolicy_; + } + /** + * + * + *
+   * IAM Policy information associated with the GCP resource described by the
+   * Cloud SCC asset. This information is managed and defined by the GCP
+   * resource and cannot be modified by the user.
+   * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() { + return getIamPolicy(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (securityCenterProperties_ != null) { + output.writeMessage(2, getSecurityCenterProperties()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetResourceProperties(), + ResourcePropertiesDefaultEntryHolder.defaultEntry, + 7); + if (securityMarks_ != null) { + output.writeMessage(8, getSecurityMarks()); + } + if (createTime_ != null) { + output.writeMessage(9, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(10, getUpdateTime()); + } + if (iamPolicy_ != null) { + output.writeMessage(11, getIamPolicy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (securityCenterProperties_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSecurityCenterProperties()); + } + for (java.util.Map.Entry entry : + internalGetResourceProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + resourceProperties__ = + ResourcePropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, resourceProperties__); + } + if (securityMarks_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + } + if (iamPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getIamPolicy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.Asset)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.Asset other = (com.google.cloud.securitycenter.v1.Asset) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && (hasSecurityCenterProperties() == other.hasSecurityCenterProperties()); + if (hasSecurityCenterProperties()) { + result = result && getSecurityCenterProperties().equals(other.getSecurityCenterProperties()); + } + result = + result && internalGetResourceProperties().equals(other.internalGetResourceProperties()); + result = result && (hasSecurityMarks() == other.hasSecurityMarks()); + if (hasSecurityMarks()) { + result = result && getSecurityMarks().equals(other.getSecurityMarks()); + } + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime().equals(other.getCreateTime()); + } + result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime()) { + result = result && getUpdateTime().equals(other.getUpdateTime()); + } + result = result && (hasIamPolicy() == other.hasIamPolicy()); + if (hasIamPolicy()) { + result = result && getIamPolicy().equals(other.getIamPolicy()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSecurityCenterProperties()) { + hash = (37 * hash) + SECURITY_CENTER_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getSecurityCenterProperties().hashCode(); + } + if (!internalGetResourceProperties().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceProperties().hashCode(); + } + if (hasSecurityMarks()) { + hash = (37 * hash) + SECURITY_MARKS_FIELD_NUMBER; + hash = (53 * hash) + getSecurityMarks().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasIamPolicy()) { + hash = (37 * hash) + IAM_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getIamPolicy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.Asset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Asset parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Asset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Asset parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Asset parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Asset parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Asset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Asset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Asset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
+   * Platform (GCP) resource.
+   * The Asset is a Cloud SCC resource that captures information about a single
+   * GCP resource. All modifications to an Asset are only within the context of
+   * Cloud SCC and don't affect the referenced GCP resource.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Asset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Asset) + com.google.cloud.securitycenter.v1.AssetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetResourceProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 7: + return internalGetMutableResourceProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Asset.class, + com.google.cloud.securitycenter.v1.Asset.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.Asset.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (securityCenterPropertiesBuilder_ == null) { + securityCenterProperties_ = null; + } else { + securityCenterProperties_ = null; + securityCenterPropertiesBuilder_ = null; + } + internalGetMutableResourceProperties().clear(); + if (securityMarksBuilder_ == null) { + securityMarks_ = null; + } else { + securityMarks_ = null; + securityMarksBuilder_ = null; + } + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (iamPolicyBuilder_ == null) { + iamPolicy_ = null; + } else { + iamPolicy_ = null; + iamPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.Asset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset build() { + com.google.cloud.securitycenter.v1.Asset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset buildPartial() { + com.google.cloud.securitycenter.v1.Asset result = + new com.google.cloud.securitycenter.v1.Asset(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (securityCenterPropertiesBuilder_ == null) { + result.securityCenterProperties_ = securityCenterProperties_; + } else { + result.securityCenterProperties_ = securityCenterPropertiesBuilder_.build(); + } + result.resourceProperties_ = internalGetResourceProperties(); + result.resourceProperties_.makeImmutable(); + if (securityMarksBuilder_ == null) { + result.securityMarks_ = securityMarks_; + } else { + result.securityMarks_ = securityMarksBuilder_.build(); + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (iamPolicyBuilder_ == null) { + result.iamPolicy_ = iamPolicy_; + } else { + result.iamPolicy_ = iamPolicyBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.Asset) { + return mergeFrom((com.google.cloud.securitycenter.v1.Asset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.Asset other) { + if (other == com.google.cloud.securitycenter.v1.Asset.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSecurityCenterProperties()) { + mergeSecurityCenterProperties(other.getSecurityCenterProperties()); + } + internalGetMutableResourceProperties().mergeFrom(other.internalGetResourceProperties()); + if (other.hasSecurityMarks()) { + mergeSecurityMarks(other.getSecurityMarks()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasIamPolicy()) { + mergeIamPolicy(other.getIamPolicy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.Asset parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.securitycenter.v1.Asset) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The relative resource name of this asset. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/assets/456".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The relative resource name of this asset. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/assets/456".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The relative resource name of this asset. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/assets/456".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of this asset. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/assets/456".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of this asset. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/assets/456".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + securityCenterProperties_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder> + securityCenterPropertiesBuilder_; + /** + * + * + *
+     * Cloud SCC managed properties. These properties are managed by
+     * Cloud SCC and cannot be modified by the user.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public boolean hasSecurityCenterProperties() { + return securityCenterPropertiesBuilder_ != null || securityCenterProperties_ != null; + } + /** + * + * + *
+     * Cloud SCC managed properties. These properties are managed by
+     * Cloud SCC and cannot be modified by the user.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + getSecurityCenterProperties() { + if (securityCenterPropertiesBuilder_ == null) { + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() + : securityCenterProperties_; + } else { + return securityCenterPropertiesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Cloud SCC managed properties. These properties are managed by
+     * Cloud SCC and cannot be modified by the user.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public Builder setSecurityCenterProperties( + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties value) { + if (securityCenterPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityCenterProperties_ = value; + onChanged(); + } else { + securityCenterPropertiesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Cloud SCC managed properties. These properties are managed by
+     * Cloud SCC and cannot be modified by the user.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public Builder setSecurityCenterProperties( + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder builderForValue) { + if (securityCenterPropertiesBuilder_ == null) { + securityCenterProperties_ = builderForValue.build(); + onChanged(); + } else { + securityCenterPropertiesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Cloud SCC managed properties. These properties are managed by
+     * Cloud SCC and cannot be modified by the user.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public Builder mergeSecurityCenterProperties( + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties value) { + if (securityCenterPropertiesBuilder_ == null) { + if (securityCenterProperties_ != null) { + securityCenterProperties_ = + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.newBuilder( + securityCenterProperties_) + .mergeFrom(value) + .buildPartial(); + } else { + securityCenterProperties_ = value; + } + onChanged(); + } else { + securityCenterPropertiesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cloud SCC managed properties. These properties are managed by
+     * Cloud SCC and cannot be modified by the user.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public Builder clearSecurityCenterProperties() { + if (securityCenterPropertiesBuilder_ == null) { + securityCenterProperties_ = null; + onChanged(); + } else { + securityCenterProperties_ = null; + securityCenterPropertiesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cloud SCC managed properties. These properties are managed by
+     * Cloud SCC and cannot be modified by the user.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder + getSecurityCenterPropertiesBuilder() { + + onChanged(); + return getSecurityCenterPropertiesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Cloud SCC managed properties. These properties are managed by
+     * Cloud SCC and cannot be modified by the user.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder() { + if (securityCenterPropertiesBuilder_ != null) { + return securityCenterPropertiesBuilder_.getMessageOrBuilder(); + } else { + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() + : securityCenterProperties_; + } + } + /** + * + * + *
+     * Cloud SCC managed properties. These properties are managed by
+     * Cloud SCC and cannot be modified by the user.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder> + getSecurityCenterPropertiesFieldBuilder() { + if (securityCenterPropertiesBuilder_ == null) { + securityCenterPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder>( + getSecurityCenterProperties(), getParentForChildren(), isClean()); + securityCenterProperties_ = null; + } + return securityCenterPropertiesBuilder_; + } + + private com.google.protobuf.MapField + resourceProperties_; + + private com.google.protobuf.MapField + internalGetResourceProperties() { + if (resourceProperties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourcePropertiesDefaultEntryHolder.defaultEntry); + } + return resourceProperties_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceProperties() { + onChanged(); + ; + if (resourceProperties_ == null) { + resourceProperties_ = + com.google.protobuf.MapField.newMapField( + ResourcePropertiesDefaultEntryHolder.defaultEntry); + } + if (!resourceProperties_.isMutable()) { + resourceProperties_ = resourceProperties_.copy(); + } + return resourceProperties_; + } + + public int getResourcePropertiesCount() { + return internalGetResourceProperties().getMap().size(); + } + /** + * + * + *
+     * Resource managed properties. These properties are managed and defined by
+     * the GCP resource and cannot be modified by the user.
+     * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public boolean containsResourceProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetResourceProperties().getMap().containsKey(key); + } + /** Use {@link #getResourcePropertiesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getResourceProperties() { + return getResourcePropertiesMap(); + } + /** + * + * + *
+     * Resource managed properties. These properties are managed and defined by
+     * the GCP resource and cannot be modified by the user.
+     * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public java.util.Map getResourcePropertiesMap() { + return internalGetResourceProperties().getMap(); + } + /** + * + * + *
+     * Resource managed properties. These properties are managed and defined by
+     * the GCP resource and cannot be modified by the user.
+     * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public com.google.protobuf.Value getResourcePropertiesOrDefault( + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetResourceProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Resource managed properties. These properties are managed and defined by
+     * the GCP resource and cannot be modified by the user.
+     * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetResourceProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceProperties() { + internalGetMutableResourceProperties().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Resource managed properties. These properties are managed and defined by
+     * the GCP resource and cannot be modified by the user.
+     * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public Builder removeResourceProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableResourceProperties().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceProperties() { + return internalGetMutableResourceProperties().getMutableMap(); + } + /** + * + * + *
+     * Resource managed properties. These properties are managed and defined by
+     * the GCP resource and cannot be modified by the user.
+     * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public Builder putResourceProperties(java.lang.String key, com.google.protobuf.Value value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableResourceProperties().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Resource managed properties. These properties are managed and defined by
+     * the GCP resource and cannot be modified by the user.
+     * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + public Builder putAllResourceProperties( + java.util.Map values) { + internalGetMutableResourceProperties().getMutableMap().putAll(values); + return this; + } + + private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + securityMarksBuilder_; + /** + * + * + *
+     * User specified security marks. These marks are entirely managed by the user
+     * and come from the SecurityMarks resource that belongs to the asset.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public boolean hasSecurityMarks() { + return securityMarksBuilder_ != null || securityMarks_ != null; + } + /** + * + * + *
+     * User specified security marks. These marks are entirely managed by the user
+     * and come from the SecurityMarks resource that belongs to the asset.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { + if (securityMarksBuilder_ == null) { + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; + } else { + return securityMarksBuilder_.getMessage(); + } + } + /** + * + * + *
+     * User specified security marks. These marks are entirely managed by the user
+     * and come from the SecurityMarks resource that belongs to the asset.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { + if (securityMarksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityMarks_ = value; + onChanged(); + } else { + securityMarksBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * User specified security marks. These marks are entirely managed by the user
+     * and come from the SecurityMarks resource that belongs to the asset.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public Builder setSecurityMarks( + com.google.cloud.securitycenter.v1.SecurityMarks.Builder builderForValue) { + if (securityMarksBuilder_ == null) { + securityMarks_ = builderForValue.build(); + onChanged(); + } else { + securityMarksBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * User specified security marks. These marks are entirely managed by the user
+     * and come from the SecurityMarks resource that belongs to the asset.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { + if (securityMarksBuilder_ == null) { + if (securityMarks_ != null) { + securityMarks_ = + com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_) + .mergeFrom(value) + .buildPartial(); + } else { + securityMarks_ = value; + } + onChanged(); + } else { + securityMarksBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * User specified security marks. These marks are entirely managed by the user
+     * and come from the SecurityMarks resource that belongs to the asset.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public Builder clearSecurityMarks() { + if (securityMarksBuilder_ == null) { + securityMarks_ = null; + onChanged(); + } else { + securityMarks_ = null; + securityMarksBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * User specified security marks. These marks are entirely managed by the user
+     * and come from the SecurityMarks resource that belongs to the asset.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() { + + onChanged(); + return getSecurityMarksFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * User specified security marks. These marks are entirely managed by the user
+     * and come from the SecurityMarks resource that belongs to the asset.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + if (securityMarksBuilder_ != null) { + return securityMarksBuilder_.getMessageOrBuilder(); + } else { + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; + } + } + /** + * + * + *
+     * User specified security marks. These marks are entirely managed by the user
+     * and come from the SecurityMarks resource that belongs to the asset.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + getSecurityMarksFieldBuilder() { + if (securityMarksBuilder_ == null) { + securityMarksBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( + getSecurityMarks(), getParentForChildren(), isClean()); + securityMarks_ = null; + } + return securityMarksBuilder_; + } + + private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * The time at which the asset was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * The time at which the asset was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time at which the asset was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the asset was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time at which the asset was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the asset was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time at which the asset was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time at which the asset was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * The time at which the asset was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * The time at which the asset was last updated, added, or deleted in Cloud
+     * SCC.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * The time at which the asset was last updated, added, or deleted in Cloud
+     * SCC.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time at which the asset was last updated, added, or deleted in Cloud
+     * SCC.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the asset was last updated, added, or deleted in Cloud
+     * SCC.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time at which the asset was last updated, added, or deleted in Cloud
+     * SCC.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the asset was last updated, added, or deleted in Cloud
+     * SCC.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time at which the asset was last updated, added, or deleted in Cloud
+     * SCC.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time at which the asset was last updated, added, or deleted in Cloud
+     * SCC.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * The time at which the asset was last updated, added, or deleted in Cloud
+     * SCC.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.securitycenter.v1.Asset.IamPolicy iamPolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset.IamPolicy, + com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, + com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder> + iamPolicyBuilder_; + /** + * + * + *
+     * IAM Policy information associated with the GCP resource described by the
+     * Cloud SCC asset. This information is managed and defined by the GCP
+     * resource and cannot be modified by the user.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public boolean hasIamPolicy() { + return iamPolicyBuilder_ != null || iamPolicy_ != null; + } + /** + * + * + *
+     * IAM Policy information associated with the GCP resource described by the
+     * Cloud SCC asset. This information is managed and defined by the GCP
+     * resource and cannot be modified by the user.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { + if (iamPolicyBuilder_ == null) { + return iamPolicy_ == null + ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() + : iamPolicy_; + } else { + return iamPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * IAM Policy information associated with the GCP resource described by the
+     * Cloud SCC asset. This information is managed and defined by the GCP
+     * resource and cannot be modified by the user.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public Builder setIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy value) { + if (iamPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + iamPolicy_ = value; + onChanged(); + } else { + iamPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * IAM Policy information associated with the GCP resource described by the
+     * Cloud SCC asset. This information is managed and defined by the GCP
+     * resource and cannot be modified by the user.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public Builder setIamPolicy( + com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder builderForValue) { + if (iamPolicyBuilder_ == null) { + iamPolicy_ = builderForValue.build(); + onChanged(); + } else { + iamPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * IAM Policy information associated with the GCP resource described by the
+     * Cloud SCC asset. This information is managed and defined by the GCP
+     * resource and cannot be modified by the user.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy value) { + if (iamPolicyBuilder_ == null) { + if (iamPolicy_ != null) { + iamPolicy_ = + com.google.cloud.securitycenter.v1.Asset.IamPolicy.newBuilder(iamPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + iamPolicy_ = value; + } + onChanged(); + } else { + iamPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * IAM Policy information associated with the GCP resource described by the
+     * Cloud SCC asset. This information is managed and defined by the GCP
+     * resource and cannot be modified by the user.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public Builder clearIamPolicy() { + if (iamPolicyBuilder_ == null) { + iamPolicy_ = null; + onChanged(); + } else { + iamPolicy_ = null; + iamPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * IAM Policy information associated with the GCP resource described by the
+     * Cloud SCC asset. This information is managed and defined by the GCP
+     * resource and cannot be modified by the user.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder getIamPolicyBuilder() { + + onChanged(); + return getIamPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * IAM Policy information associated with the GCP resource described by the
+     * Cloud SCC asset. This information is managed and defined by the GCP
+     * resource and cannot be modified by the user.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() { + if (iamPolicyBuilder_ != null) { + return iamPolicyBuilder_.getMessageOrBuilder(); + } else { + return iamPolicy_ == null + ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() + : iamPolicy_; + } + } + /** + * + * + *
+     * IAM Policy information associated with the GCP resource described by the
+     * Cloud SCC asset. This information is managed and defined by the GCP
+     * resource and cannot be modified by the user.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset.IamPolicy, + com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, + com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder> + getIamPolicyFieldBuilder() { + if (iamPolicyBuilder_ == null) { + iamPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset.IamPolicy, + com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, + com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder>( + getIamPolicy(), getParentForChildren(), isClean()); + iamPolicy_ = null; + } + return iamPolicyBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Asset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset) + private static final com.google.cloud.securitycenter.v1.Asset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Asset(); + } + + public static com.google.cloud.securitycenter.v1.Asset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Asset(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Asset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java new file mode 100644 index 000000000000..c0da01733dc4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java @@ -0,0 +1,274 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/asset.proto + +package com.google.cloud.securitycenter.v1; + +public interface AssetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Asset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The relative resource name of this asset. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/assets/456".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The relative resource name of this asset. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/assets/456".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Cloud SCC managed properties. These properties are managed by
+   * Cloud SCC and cannot be modified by the user.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + boolean hasSecurityCenterProperties(); + /** + * + * + *
+   * Cloud SCC managed properties. These properties are managed by
+   * Cloud SCC and cannot be modified by the user.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties(); + /** + * + * + *
+   * Cloud SCC managed properties. These properties are managed by
+   * Cloud SCC and cannot be modified by the user.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + */ + com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder(); + + /** + * + * + *
+   * Resource managed properties. These properties are managed and defined by
+   * the GCP resource and cannot be modified by the user.
+   * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + int getResourcePropertiesCount(); + /** + * + * + *
+   * Resource managed properties. These properties are managed and defined by
+   * the GCP resource and cannot be modified by the user.
+   * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + boolean containsResourceProperties(java.lang.String key); + /** Use {@link #getResourcePropertiesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourceProperties(); + /** + * + * + *
+   * Resource managed properties. These properties are managed and defined by
+   * the GCP resource and cannot be modified by the user.
+   * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + java.util.Map getResourcePropertiesMap(); + /** + * + * + *
+   * Resource managed properties. These properties are managed and defined by
+   * the GCP resource and cannot be modified by the user.
+   * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + com.google.protobuf.Value getResourcePropertiesOrDefault( + java.lang.String key, com.google.protobuf.Value defaultValue); + /** + * + * + *
+   * Resource managed properties. These properties are managed and defined by
+   * the GCP resource and cannot be modified by the user.
+   * 
+ * + * map<string, .google.protobuf.Value> resource_properties = 7; + */ + com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key); + + /** + * + * + *
+   * User specified security marks. These marks are entirely managed by the user
+   * and come from the SecurityMarks resource that belongs to the asset.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + boolean hasSecurityMarks(); + /** + * + * + *
+   * User specified security marks. These marks are entirely managed by the user
+   * and come from the SecurityMarks resource that belongs to the asset.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); + /** + * + * + *
+   * User specified security marks. These marks are entirely managed by the user
+   * and come from the SecurityMarks resource that belongs to the asset.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); + + /** + * + * + *
+   * The time at which the asset was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * The time at which the asset was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * The time at which the asset was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * The time at which the asset was last updated, added, or deleted in Cloud
+   * SCC.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * The time at which the asset was last updated, added, or deleted in Cloud
+   * SCC.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * The time at which the asset was last updated, added, or deleted in Cloud
+   * SCC.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * IAM Policy information associated with the GCP resource described by the
+   * Cloud SCC asset. This information is managed and defined by the GCP
+   * resource and cannot be modified by the user.
+   * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + boolean hasIamPolicy(); + /** + * + * + *
+   * IAM Policy information associated with the GCP resource described by the
+   * Cloud SCC asset. This information is managed and defined by the GCP
+   * resource and cannot be modified by the user.
+   * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy(); + /** + * + * + *
+   * IAM Policy information associated with the GCP resource described by the
+   * Cloud SCC asset. This information is managed and defined by the GCP
+   * resource and cannot be modified by the user.
+   * 
+ * + * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + */ + com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java new file mode 100644 index 000000000000..c60e79cade03 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java @@ -0,0 +1,130 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/asset.proto + +package com.google.cloud.securitycenter.v1; + +public final class AssetOuterClass { + private AssetOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/securitycenter/v1/asset.p" + + "roto\022\036google.cloud.securitycenter.v1\032\034go" + + "ogle/api/annotations.proto\0323google/cloud" + + "/securitycenter/v1/security_marks.proto\032" + + "\034google/protobuf/struct.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\317\005\n\005Asset\022\014\n\004name" + + "\030\001 \001(\t\022b\n\032security_center_properties\030\002 \001" + + "(\0132>.google.cloud.securitycenter.v1.Asse" + + "t.SecurityCenterProperties\022Z\n\023resource_p" + + "roperties\030\007 \003(\0132=.google.cloud.securityc" + + "enter.v1.Asset.ResourcePropertiesEntry\022E" + + "\n\016security_marks\030\010 \001(\0132-.google.cloud.se" + + "curitycenter.v1.SecurityMarks\022/\n\013create_" + + "time\030\t \001(\0132\032.google.protobuf.Timestamp\022/" + + "\n\013update_time\030\n \001(\0132\032.google.protobuf.Ti" + + "mestamp\022C\n\niam_policy\030\013 \001(\0132/.google.clo" + + "ud.securitycenter.v1.Asset.IamPolicy\032\224\001\n" + + "\030SecurityCenterProperties\022\025\n\rresource_na" + + "me\030\001 \001(\t\022\025\n\rresource_type\030\002 \001(\t\022\027\n\017resou" + + "rce_parent\030\003 \001(\t\022\030\n\020resource_project\030\004 \001" + + "(\t\022\027\n\017resource_owners\030\005 \003(\t\032 \n\tIamPolicy" + + "\022\023\n\013policy_blob\030\001 \001(\t\032Q\n\027ResourcePropert" + + "iesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.g" + + "oogle.protobuf.Value:\0028\001Bt\n\"com.google.c" + + "loud.securitycenter.v1P\001ZLgoogle.golang." + + "org/genproto/googleapis/cloud/securityce" + + "nter/v1;securitycenterb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_securitycenter_v1_Asset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_descriptor, + new java.lang.String[] { + "Name", + "SecurityCenterProperties", + "ResourceProperties", + "SecurityMarks", + "CreateTime", + "UpdateTime", + "IamPolicy", + }); + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor = + internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor, + new java.lang.String[] { + "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners", + }); + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor = + internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor, + new java.lang.String[] { + "PolicyBlob", + }); + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java new file mode 100644 index 000000000000..5fe396f068a3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class AssetSecurityMarksName extends SecuritymarksName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/assets/{asset}/securityMarks"); + + private volatile Map fieldValuesMap; + + private final String organization; + private final String asset; + + public String getOrganization() { + return organization; + } + + public String getAsset() { + return asset; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private AssetSecurityMarksName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + asset = Preconditions.checkNotNull(builder.getAsset()); + } + + public static AssetSecurityMarksName of(String organization, String asset) { + return newBuilder().setOrganization(organization).setAsset(asset).build(); + } + + public static String format(String organization, String asset) { + return newBuilder().setOrganization(organization).setAsset(asset).build().toString(); + } + + public static AssetSecurityMarksName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "AssetSecurityMarksName.parse: formattedString not in valid format"); + return of(matchMap.get("organization"), matchMap.get("asset")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (AssetSecurityMarksName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldMapBuilder.put("asset", asset); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("organization", organization, "asset", asset); + } + + /** Builder for AssetSecurityMarksName. */ + public static class Builder { + + private String organization; + private String asset; + + public String getOrganization() { + return organization; + } + + public String getAsset() { + return asset; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setAsset(String asset) { + this.asset = asset; + return this; + } + + private Builder() {} + + private Builder(AssetSecurityMarksName assetSecurityMarksName) { + organization = assetSecurityMarksName.organization; + asset = assetSecurityMarksName.asset; + } + + public AssetSecurityMarksName build() { + return new AssetSecurityMarksName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof AssetSecurityMarksName) { + AssetSecurityMarksName that = (AssetSecurityMarksName) o; + return (this.organization.equals(that.organization)) && (this.asset.equals(that.asset)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + h *= 1000003; + h ^= asset.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java new file mode 100644 index 000000000000..deb201c8131f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java @@ -0,0 +1,1060 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for creating a finding.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CreateFindingRequest} + */ +public final class CreateFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateFindingRequest) + CreateFindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateFindingRequest.newBuilder() to construct. + private CreateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateFindingRequest() { + parent_ = ""; + findingId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateFindingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + findingId_ = s; + break; + } + case 26: + { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CreateFindingRequest.class, + com.google.cloud.securitycenter.v1.CreateFindingRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Resource name of the new finding's parent. Its format should be
+   * "organizations/[organization_id]/sources/[source_id]".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of the new finding's parent. Its format should be
+   * "organizations/[organization_id]/sources/[source_id]".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FINDING_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object findingId_; + /** + * + * + *
+   * Unique identifier provided by the client within the parent scope.
+   * It must be alphanumeric and less than or equal to 32 characters and
+   * greater than 0 characters in length.
+   * 
+ * + * string finding_id = 2; + */ + public java.lang.String getFindingId() { + java.lang.Object ref = findingId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingId_ = s; + return s; + } + } + /** + * + * + *
+   * Unique identifier provided by the client within the parent scope.
+   * It must be alphanumeric and less than or equal to 32 characters and
+   * greater than 0 characters in length.
+   * 
+ * + * string finding_id = 2; + */ + public com.google.protobuf.ByteString getFindingIdBytes() { + java.lang.Object ref = findingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FINDING_FIELD_NUMBER = 3; + private com.google.cloud.securitycenter.v1.Finding finding_; + /** + * + * + *
+   * The Finding being created. The name and security_marks will be ignored as
+   * they are both output only fields on this resource.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public boolean hasFinding() { + return finding_ != null; + } + /** + * + * + *
+   * The Finding being created. The name and security_marks will be ignored as
+   * they are both output only fields on this resource.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public com.google.cloud.securitycenter.v1.Finding getFinding() { + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; + } + /** + * + * + *
+   * The Finding being created. The name and security_marks will be ignored as
+   * they are both output only fields on this resource.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { + return getFinding(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFindingIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, findingId_); + } + if (finding_ != null) { + output.writeMessage(3, getFinding()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFindingIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, findingId_); + } + if (finding_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFinding()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateFindingRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.CreateFindingRequest other = + (com.google.cloud.securitycenter.v1.CreateFindingRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFindingId().equals(other.getFindingId()); + result = result && (hasFinding() == other.hasFinding()); + if (hasFinding()) { + result = result && getFinding().equals(other.getFinding()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getFindingId().hashCode(); + if (hasFinding()) { + hash = (37 * hash) + FINDING_FIELD_NUMBER; + hash = (53 * hash) + getFinding().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.CreateFindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for creating a finding.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CreateFindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateFindingRequest) + com.google.cloud.securitycenter.v1.CreateFindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CreateFindingRequest.class, + com.google.cloud.securitycenter.v1.CreateFindingRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.CreateFindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + findingId_ = ""; + + if (findingBuilder_ == null) { + finding_ = null; + } else { + finding_ = null; + findingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateFindingRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.CreateFindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateFindingRequest build() { + com.google.cloud.securitycenter.v1.CreateFindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateFindingRequest buildPartial() { + com.google.cloud.securitycenter.v1.CreateFindingRequest result = + new com.google.cloud.securitycenter.v1.CreateFindingRequest(this); + result.parent_ = parent_; + result.findingId_ = findingId_; + if (findingBuilder_ == null) { + result.finding_ = finding_; + } else { + result.finding_ = findingBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.CreateFindingRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.CreateFindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateFindingRequest other) { + if (other == com.google.cloud.securitycenter.v1.CreateFindingRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFindingId().isEmpty()) { + findingId_ = other.findingId_; + onChanged(); + } + if (other.hasFinding()) { + mergeFinding(other.getFinding()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.CreateFindingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.CreateFindingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Resource name of the new finding's parent. Its format should be
+     * "organizations/[organization_id]/sources/[source_id]".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of the new finding's parent. Its format should be
+     * "organizations/[organization_id]/sources/[source_id]".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of the new finding's parent. Its format should be
+     * "organizations/[organization_id]/sources/[source_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the new finding's parent. Its format should be
+     * "organizations/[organization_id]/sources/[source_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the new finding's parent. Its format should be
+     * "organizations/[organization_id]/sources/[source_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object findingId_ = ""; + /** + * + * + *
+     * Unique identifier provided by the client within the parent scope.
+     * It must be alphanumeric and less than or equal to 32 characters and
+     * greater than 0 characters in length.
+     * 
+ * + * string finding_id = 2; + */ + public java.lang.String getFindingId() { + java.lang.Object ref = findingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Unique identifier provided by the client within the parent scope.
+     * It must be alphanumeric and less than or equal to 32 characters and
+     * greater than 0 characters in length.
+     * 
+ * + * string finding_id = 2; + */ + public com.google.protobuf.ByteString getFindingIdBytes() { + java.lang.Object ref = findingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Unique identifier provided by the client within the parent scope.
+     * It must be alphanumeric and less than or equal to 32 characters and
+     * greater than 0 characters in length.
+     * 
+ * + * string finding_id = 2; + */ + public Builder setFindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + findingId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Unique identifier provided by the client within the parent scope.
+     * It must be alphanumeric and less than or equal to 32 characters and
+     * greater than 0 characters in length.
+     * 
+ * + * string finding_id = 2; + */ + public Builder clearFindingId() { + + findingId_ = getDefaultInstance().getFindingId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Unique identifier provided by the client within the parent scope.
+     * It must be alphanumeric and less than or equal to 32 characters and
+     * greater than 0 characters in length.
+     * 
+ * + * string finding_id = 2; + */ + public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + findingId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.securitycenter.v1.Finding finding_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> + findingBuilder_; + /** + * + * + *
+     * The Finding being created. The name and security_marks will be ignored as
+     * they are both output only fields on this resource.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public boolean hasFinding() { + return findingBuilder_ != null || finding_ != null; + } + /** + * + * + *
+     * The Finding being created. The name and security_marks will be ignored as
+     * they are both output only fields on this resource.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public com.google.cloud.securitycenter.v1.Finding getFinding() { + if (findingBuilder_ == null) { + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; + } else { + return findingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The Finding being created. The name and security_marks will be ignored as
+     * they are both output only fields on this resource.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { + if (findingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + finding_ = value; + onChanged(); + } else { + findingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The Finding being created. The name and security_marks will be ignored as
+     * they are both output only fields on this resource.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { + if (findingBuilder_ == null) { + finding_ = builderForValue.build(); + onChanged(); + } else { + findingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The Finding being created. The name and security_marks will be ignored as
+     * they are both output only fields on this resource.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { + if (findingBuilder_ == null) { + if (finding_ != null) { + finding_ = + com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); + } else { + finding_ = value; + } + onChanged(); + } else { + findingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The Finding being created. The name and security_marks will be ignored as
+     * they are both output only fields on this resource.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public Builder clearFinding() { + if (findingBuilder_ == null) { + finding_ = null; + onChanged(); + } else { + finding_ = null; + findingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The Finding being created. The name and security_marks will be ignored as
+     * they are both output only fields on this resource.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { + + onChanged(); + return getFindingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Finding being created. The name and security_marks will be ignored as
+     * they are both output only fields on this resource.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { + if (findingBuilder_ != null) { + return findingBuilder_.getMessageOrBuilder(); + } else { + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; + } + } + /** + * + * + *
+     * The Finding being created. The name and security_marks will be ignored as
+     * they are both output only fields on this resource.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> + getFindingFieldBuilder() { + if (findingBuilder_ == null) { + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); + finding_ = null; + } + return findingBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateFindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateFindingRequest) + private static final com.google.cloud.securitycenter.v1.CreateFindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateFindingRequest(); + } + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFindingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateFindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java new file mode 100644 index 000000000000..af623f7a4a15 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface CreateFindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateFindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of the new finding's parent. Its format should be
+   * "organizations/[organization_id]/sources/[source_id]".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Resource name of the new finding's parent. Its format should be
+   * "organizations/[organization_id]/sources/[source_id]".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Unique identifier provided by the client within the parent scope.
+   * It must be alphanumeric and less than or equal to 32 characters and
+   * greater than 0 characters in length.
+   * 
+ * + * string finding_id = 2; + */ + java.lang.String getFindingId(); + /** + * + * + *
+   * Unique identifier provided by the client within the parent scope.
+   * It must be alphanumeric and less than or equal to 32 characters and
+   * greater than 0 characters in length.
+   * 
+ * + * string finding_id = 2; + */ + com.google.protobuf.ByteString getFindingIdBytes(); + + /** + * + * + *
+   * The Finding being created. The name and security_marks will be ignored as
+   * they are both output only fields on this resource.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + boolean hasFinding(); + /** + * + * + *
+   * The Finding being created. The name and security_marks will be ignored as
+   * they are both output only fields on this resource.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + com.google.cloud.securitycenter.v1.Finding getFinding(); + /** + * + * + *
+   * The Finding being created. The name and security_marks will be ignored as
+   * they are both output only fields on this resource.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 3; + */ + com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java new file mode 100644 index 000000000000..a16d5f6679f9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java @@ -0,0 +1,885 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for creating a source.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CreateSourceRequest} + */ +public final class CreateSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateSourceRequest) + CreateSourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSourceRequest.newBuilder() to construct. + private CreateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSourceRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateSourceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.securitycenter.v1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CreateSourceRequest.class, + com.google.cloud.securitycenter.v1.CreateSourceRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Resource name of the new source's parent. Its format should be
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of the new source's parent. Its format should be
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 2; + private com.google.cloud.securitycenter.v1.Source source_; + /** + * + * + *
+   * The Source being created, only the display_name and description will be
+   * used. All other fields will be ignored.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public boolean hasSource() { + return source_ != null; + } + /** + * + * + *
+   * The Source being created, only the display_name and description will be
+   * used. All other fields will be ignored.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public com.google.cloud.securitycenter.v1.Source getSource() { + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; + } + /** + * + * + *
+   * The Source being created, only the display_name and description will be
+   * used. All other fields will be ignored.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { + return getSource(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (source_ != null) { + output.writeMessage(2, getSource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateSourceRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.CreateSourceRequest other = + (com.google.cloud.securitycenter.v1.CreateSourceRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasSource() == other.hasSource()); + if (hasSource()) { + result = result && getSource().equals(other.getSource()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.CreateSourceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for creating a source.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CreateSourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateSourceRequest) + com.google.cloud.securitycenter.v1.CreateSourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CreateSourceRequest.class, + com.google.cloud.securitycenter.v1.CreateSourceRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.CreateSourceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (sourceBuilder_ == null) { + source_ = null; + } else { + source_ = null; + sourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateSourceRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.CreateSourceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateSourceRequest build() { + com.google.cloud.securitycenter.v1.CreateSourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateSourceRequest buildPartial() { + com.google.cloud.securitycenter.v1.CreateSourceRequest result = + new com.google.cloud.securitycenter.v1.CreateSourceRequest(this); + result.parent_ = parent_; + if (sourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = sourceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.CreateSourceRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.CreateSourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateSourceRequest other) { + if (other == com.google.cloud.securitycenter.v1.CreateSourceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasSource()) { + mergeSource(other.getSource()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.CreateSourceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.CreateSourceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Resource name of the new source's parent. Its format should be
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of the new source's parent. Its format should be
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of the new source's parent. Its format should be
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the new source's parent. Its format should be
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the new source's parent. Its format should be
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.securitycenter.v1.Source source_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> + sourceBuilder_; + /** + * + * + *
+     * The Source being created, only the display_name and description will be
+     * used. All other fields will be ignored.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public boolean hasSource() { + return sourceBuilder_ != null || source_ != null; + } + /** + * + * + *
+     * The Source being created, only the display_name and description will be
+     * used. All other fields will be ignored.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public com.google.cloud.securitycenter.v1.Source getSource() { + if (sourceBuilder_ == null) { + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The Source being created, only the display_name and description will be
+     * used. All other fields will be ignored.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + sourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The Source being created, only the display_name and description will be
+     * used. All other fields will be ignored.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The Source being created, only the display_name and description will be
+     * used. All other fields will be ignored.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { + if (sourceBuilder_ == null) { + if (source_ != null) { + source_ = + com.google.cloud.securitycenter.v1.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + sourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The Source being created, only the display_name and description will be
+     * used. All other fields will be ignored.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public Builder clearSource() { + if (sourceBuilder_ == null) { + source_ = null; + onChanged(); + } else { + source_ = null; + sourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The Source being created, only the display_name and description will be
+     * used. All other fields will be ignored.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public com.google.cloud.securitycenter.v1.Source.Builder getSourceBuilder() { + + onChanged(); + return getSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Source being created, only the display_name and description will be
+     * used. All other fields will be ignored.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; + } + } + /** + * + * + *
+     * The Source being created, only the display_name and description will be
+     * used. All other fields will be ignored.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> + getSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); + source_ = null; + } + return sourceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateSourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateSourceRequest) + private static final com.google.cloud.securitycenter.v1.CreateSourceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateSourceRequest(); + } + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSourceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateSourceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java new file mode 100644 index 000000000000..c6a0268c14ea --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface CreateSourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of the new source's parent. Its format should be
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Resource name of the new source's parent. Its format should be
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The Source being created, only the display_name and description will be
+   * used. All other fields will be ignored.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + boolean hasSource(); + /** + * + * + *
+   * The Source being created, only the display_name and description will be
+   * used. All other fields will be ignored.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + com.google.cloud.securitycenter.v1.Source getSource(); + /** + * + * + *
+   * The Source being created, only the display_name and description will be
+   * used. All other fields will be ignored.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 2; + */ + com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java new file mode 100644 index 000000000000..5a46dc0570b1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java @@ -0,0 +1,2828 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/finding.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Cloud Security Command Center (Cloud SCC) finding.
+ * A finding is a record of assessment data (security, risk, health or privacy)
+ * ingested into Cloud SCC for presentation, notification, analysis,
+ * policy testing, and enforcement. For example, an XSS vulnerability in an
+ * App Engine application is a finding.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Finding} + */ +public final class Finding extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Finding) + FindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Finding.newBuilder() to construct. + private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Finding() { + name_ = ""; + parent_ = ""; + resourceName_ = ""; + state_ = 0; + category_ = ""; + externalUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Finding( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + category_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + externalUri_ = s; + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + sourceProperties_ = + com.google.protobuf.MapField.newMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000040; + } + com.google.protobuf.MapEntry + sourceProperties__ = + input.readMessage( + SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + sourceProperties_ + .getMutableMap() + .put(sourceProperties__.getKey(), sourceProperties__.getValue()); + break; + } + case 66: + { + com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null; + if (securityMarks_ != null) { + subBuilder = securityMarks_.toBuilder(); + } + securityMarks_ = + input.readMessage( + com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityMarks_); + securityMarks_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (eventTime_ != null) { + subBuilder = eventTime_.toBuilder(); + } + eventTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventTime_); + eventTime_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.FindingOuterClass + .internal_static_google_cloud_securitycenter_v1_Finding_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetSourceProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.FindingOuterClass + .internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Finding.class, + com.google.cloud.securitycenter.v1.Finding.Builder.class); + } + + /** + * + * + *
+   * The state of the finding.
+   * 
+ * + * Protobuf enum {@code google.cloud.securitycenter.v1.Finding.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The finding requires attention and has not been addressed yet.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * The finding has been fixed, triaged as a non-issue or otherwise addressed
+     * and is no longer active.
+     * 
+ * + * INACTIVE = 2; + */ + INACTIVE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The finding requires attention and has not been addressed yet.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+     * The finding has been fixed, triaged as a non-issue or otherwise addressed
+     * and is no longer active.
+     * 
+ * + * INACTIVE = 2; + */ + public static final int INACTIVE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return INACTIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.Finding.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.Finding.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The relative resource name of this finding. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456/findings/789"
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The relative resource name of this finding. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456/findings/789"
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 2; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The relative resource name of the source the finding belongs to. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * This field is immutable after creation time.
+   * For example:
+   * "organizations/123/sources/456"
+   * 
+ * + * string parent = 2; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The relative resource name of the source the finding belongs to. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * This field is immutable after creation time.
+   * For example:
+   * "organizations/123/sources/456"
+   * 
+ * + * string parent = 2; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object resourceName_; + /** + * + * + *
+   * The full resource name of the Google Cloud Platform (GCP) resource this
+   * finding is for. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * This field is immutable after creation time.
+   * 
+ * + * string resource_name = 3; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + * + * + *
+   * The full resource name of the Google Cloud Platform (GCP) resource this
+   * finding is for. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * This field is immutable after creation time.
+   * 
+ * + * string resource_name = 3; + */ + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_; + /** + * + * + *
+   * The state of the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 4; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The state of the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 4; + */ + public com.google.cloud.securitycenter.v1.Finding.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1.Finding.State result = + com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED : result; + } + + public static final int CATEGORY_FIELD_NUMBER = 5; + private volatile java.lang.Object category_; + /** + * + * + *
+   * The additional taxonomy group within findings from a given source.
+   * This field is immutable after creation time.
+   * Example: "XSS_FLASH_INJECTION"
+   * 
+ * + * string category = 5; + */ + public java.lang.String getCategory() { + java.lang.Object ref = category_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + category_ = s; + return s; + } + } + /** + * + * + *
+   * The additional taxonomy group within findings from a given source.
+   * This field is immutable after creation time.
+   * Example: "XSS_FLASH_INJECTION"
+   * 
+ * + * string category = 5; + */ + public com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_URI_FIELD_NUMBER = 6; + private volatile java.lang.Object externalUri_; + /** + * + * + *
+   * The URI that, if available, points to a web page outside of Cloud SCC
+   * where additional information about the finding can be found. This field is
+   * guaranteed to be either empty or a well formed URL.
+   * 
+ * + * string external_uri = 6; + */ + public java.lang.String getExternalUri() { + java.lang.Object ref = externalUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalUri_ = s; + return s; + } + } + /** + * + * + *
+   * The URI that, if available, points to a web page outside of Cloud SCC
+   * where additional information about the finding can be found. This field is
+   * guaranteed to be either empty or a well formed URL.
+   * 
+ * + * string external_uri = 6; + */ + public com.google.protobuf.ByteString getExternalUriBytes() { + java.lang.Object ref = externalUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 7; + + private static final class SourcePropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.securitycenter.v1.FindingOuterClass + .internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField + sourceProperties_; + + private com.google.protobuf.MapField + internalGetSourceProperties() { + if (sourceProperties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); + } + return sourceProperties_; + } + + public int getSourcePropertiesCount() { + return internalGetSourceProperties().getMap().size(); + } + /** + * + * + *
+   * Source specific properties. These properties are managed by the source
+   * that writes the finding. The key names in the source_properties map must be
+   * between 1 and 255 characters, and must start with a letter and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public boolean containsSourceProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetSourceProperties().getMap().containsKey(key); + } + /** Use {@link #getSourcePropertiesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getSourceProperties() { + return getSourcePropertiesMap(); + } + /** + * + * + *
+   * Source specific properties. These properties are managed by the source
+   * that writes the finding. The key names in the source_properties map must be
+   * between 1 and 255 characters, and must start with a letter and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public java.util.Map getSourcePropertiesMap() { + return internalGetSourceProperties().getMap(); + } + /** + * + * + *
+   * Source specific properties. These properties are managed by the source
+   * that writes the finding. The key names in the source_properties map must be
+   * between 1 and 255 characters, and must start with a letter and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public com.google.protobuf.Value getSourcePropertiesOrDefault( + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetSourceProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Source specific properties. These properties are managed by the source
+   * that writes the finding. The key names in the source_properties map must be
+   * between 1 and 255 characters, and must start with a letter and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetSourceProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SECURITY_MARKS_FIELD_NUMBER = 8; + private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_; + /** + * + * + *
+   * Output only. User specified security marks. These marks are entirely
+   * managed by the user and come from the SecurityMarks resource that belongs
+   * to the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public boolean hasSecurityMarks() { + return securityMarks_ != null; + } + /** + * + * + *
+   * Output only. User specified security marks. These marks are entirely
+   * managed by the user and come from the SecurityMarks resource that belongs
+   * to the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; + } + /** + * + * + *
+   * Output only. User specified security marks. These marks are entirely
+   * managed by the user and come from the SecurityMarks resource that belongs
+   * to the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + return getSecurityMarks(); + } + + public static final int EVENT_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp eventTime_; + /** + * + * + *
+   * The time at which the event took place. For example, if the finding
+   * represents an open firewall it would capture the time the open firewall was
+   * detected.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public boolean hasEventTime() { + return eventTime_ != null; + } + /** + * + * + *
+   * The time at which the event took place. For example, if the finding
+   * represents an open firewall it would capture the time the open firewall was
+   * detected.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + /** + * + * + *
+   * The time at which the event took place. For example, if the finding
+   * represents an open firewall it would capture the time the open firewall was
+   * detected.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return getEventTime(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * The time at which the finding was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * The time at which the finding was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * The time at which the finding was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceName_); + } + if (state_ != com.google.cloud.securitycenter.v1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (!getCategoryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, category_); + } + if (!getExternalUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, externalUri_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 7); + if (securityMarks_ != null) { + output.writeMessage(8, getSecurityMarks()); + } + if (eventTime_ != null) { + output.writeMessage(9, getEventTime()); + } + if (createTime_ != null) { + output.writeMessage(10, getCreateTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceName_); + } + if (state_ != com.google.cloud.securitycenter.v1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (!getCategoryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, category_); + } + if (!getExternalUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, externalUri_); + } + for (java.util.Map.Entry entry : + internalGetSourceProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry sourceProperties__ = + SourcePropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, sourceProperties__); + } + if (securityMarks_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); + } + if (eventTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getEventTime()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.Finding)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.Finding other = + (com.google.cloud.securitycenter.v1.Finding) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getParent().equals(other.getParent()); + result = result && getResourceName().equals(other.getResourceName()); + result = result && state_ == other.state_; + result = result && getCategory().equals(other.getCategory()); + result = result && getExternalUri().equals(other.getExternalUri()); + result = result && internalGetSourceProperties().equals(other.internalGetSourceProperties()); + result = result && (hasSecurityMarks() == other.hasSecurityMarks()); + if (hasSecurityMarks()) { + result = result && getSecurityMarks().equals(other.getSecurityMarks()); + } + result = result && (hasEventTime() == other.hasEventTime()); + if (hasEventTime()) { + result = result && getEventTime().equals(other.getEventTime()); + } + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime().equals(other.getCreateTime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getCategory().hashCode(); + hash = (37 * hash) + EXTERNAL_URI_FIELD_NUMBER; + hash = (53 * hash) + getExternalUri().hashCode(); + if (!internalGetSourceProperties().getMap().isEmpty()) { + hash = (37 * hash) + SOURCE_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetSourceProperties().hashCode(); + } + if (hasSecurityMarks()) { + hash = (37 * hash) + SECURITY_MARKS_FIELD_NUMBER; + hash = (53 * hash) + getSecurityMarks().hashCode(); + } + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.Finding parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Finding parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Finding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Finding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Finding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Finding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Finding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Finding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Finding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Finding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Finding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Finding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Finding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Cloud Security Command Center (Cloud SCC) finding.
+   * A finding is a record of assessment data (security, risk, health or privacy)
+   * ingested into Cloud SCC for presentation, notification, analysis,
+   * policy testing, and enforcement. For example, an XSS vulnerability in an
+   * App Engine application is a finding.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Finding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Finding) + com.google.cloud.securitycenter.v1.FindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.FindingOuterClass + .internal_static_google_cloud_securitycenter_v1_Finding_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetSourceProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 7: + return internalGetMutableSourceProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.FindingOuterClass + .internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Finding.class, + com.google.cloud.securitycenter.v1.Finding.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.Finding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + parent_ = ""; + + resourceName_ = ""; + + state_ = 0; + + category_ = ""; + + externalUri_ = ""; + + internalGetMutableSourceProperties().clear(); + if (securityMarksBuilder_ == null) { + securityMarks_ = null; + } else { + securityMarks_ = null; + securityMarksBuilder_ = null; + } + if (eventTimeBuilder_ == null) { + eventTime_ = null; + } else { + eventTime_ = null; + eventTimeBuilder_ = null; + } + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.FindingOuterClass + .internal_static_google_cloud_securitycenter_v1_Finding_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Finding getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Finding build() { + com.google.cloud.securitycenter.v1.Finding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Finding buildPartial() { + com.google.cloud.securitycenter.v1.Finding result = + new com.google.cloud.securitycenter.v1.Finding(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.parent_ = parent_; + result.resourceName_ = resourceName_; + result.state_ = state_; + result.category_ = category_; + result.externalUri_ = externalUri_; + result.sourceProperties_ = internalGetSourceProperties(); + result.sourceProperties_.makeImmutable(); + if (securityMarksBuilder_ == null) { + result.securityMarks_ = securityMarks_; + } else { + result.securityMarks_ = securityMarksBuilder_.build(); + } + if (eventTimeBuilder_ == null) { + result.eventTime_ = eventTime_; + } else { + result.eventTime_ = eventTimeBuilder_.build(); + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.Finding) { + return mergeFrom((com.google.cloud.securitycenter.v1.Finding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { + if (other == com.google.cloud.securitycenter.v1.Finding.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getCategory().isEmpty()) { + category_ = other.category_; + onChanged(); + } + if (!other.getExternalUri().isEmpty()) { + externalUri_ = other.externalUri_; + onChanged(); + } + internalGetMutableSourceProperties().mergeFrom(other.internalGetSourceProperties()); + if (other.hasSecurityMarks()) { + mergeSecurityMarks(other.getSecurityMarks()); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.Finding parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.securitycenter.v1.Finding) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The relative resource name of this finding. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456/findings/789"
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The relative resource name of this finding. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456/findings/789"
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The relative resource name of this finding. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456/findings/789"
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of this finding. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456/findings/789"
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of this finding. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456/findings/789"
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The relative resource name of the source the finding belongs to. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * This field is immutable after creation time.
+     * For example:
+     * "organizations/123/sources/456"
+     * 
+ * + * string parent = 2; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The relative resource name of the source the finding belongs to. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * This field is immutable after creation time.
+     * For example:
+     * "organizations/123/sources/456"
+     * 
+ * + * string parent = 2; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The relative resource name of the source the finding belongs to. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * This field is immutable after creation time.
+     * For example:
+     * "organizations/123/sources/456"
+     * 
+ * + * string parent = 2; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of the source the finding belongs to. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * This field is immutable after creation time.
+     * For example:
+     * "organizations/123/sources/456"
+     * 
+ * + * string parent = 2; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of the source the finding belongs to. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * This field is immutable after creation time.
+     * For example:
+     * "organizations/123/sources/456"
+     * 
+ * + * string parent = 2; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + * + * + *
+     * The full resource name of the Google Cloud Platform (GCP) resource this
+     * finding is for. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * This field is immutable after creation time.
+     * 
+ * + * string resource_name = 3; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The full resource name of the Google Cloud Platform (GCP) resource this
+     * finding is for. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * This field is immutable after creation time.
+     * 
+ * + * string resource_name = 3; + */ + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The full resource name of the Google Cloud Platform (GCP) resource this
+     * finding is for. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * This field is immutable after creation time.
+     * 
+ * + * string resource_name = 3; + */ + public Builder setResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of the Google Cloud Platform (GCP) resource this
+     * finding is for. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * This field is immutable after creation time.
+     * 
+ * + * string resource_name = 3; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of the Google Cloud Platform (GCP) resource this
+     * finding is for. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * This field is immutable after creation time.
+     * 
+ * + * string resource_name = 3; + */ + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * The state of the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 4; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The state of the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 4; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 4; + */ + public com.google.cloud.securitycenter.v1.Finding.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1.Finding.State result = + com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The state of the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 4; + */ + public Builder setState(com.google.cloud.securitycenter.v1.Finding.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The state of the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 4; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object category_ = ""; + /** + * + * + *
+     * The additional taxonomy group within findings from a given source.
+     * This field is immutable after creation time.
+     * Example: "XSS_FLASH_INJECTION"
+     * 
+ * + * string category = 5; + */ + public java.lang.String getCategory() { + java.lang.Object ref = category_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + category_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The additional taxonomy group within findings from a given source.
+     * This field is immutable after creation time.
+     * Example: "XSS_FLASH_INJECTION"
+     * 
+ * + * string category = 5; + */ + public com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The additional taxonomy group within findings from a given source.
+     * This field is immutable after creation time.
+     * Example: "XSS_FLASH_INJECTION"
+     * 
+ * + * string category = 5; + */ + public Builder setCategory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + category_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The additional taxonomy group within findings from a given source.
+     * This field is immutable after creation time.
+     * Example: "XSS_FLASH_INJECTION"
+     * 
+ * + * string category = 5; + */ + public Builder clearCategory() { + + category_ = getDefaultInstance().getCategory(); + onChanged(); + return this; + } + /** + * + * + *
+     * The additional taxonomy group within findings from a given source.
+     * This field is immutable after creation time.
+     * Example: "XSS_FLASH_INJECTION"
+     * 
+ * + * string category = 5; + */ + public Builder setCategoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + category_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalUri_ = ""; + /** + * + * + *
+     * The URI that, if available, points to a web page outside of Cloud SCC
+     * where additional information about the finding can be found. This field is
+     * guaranteed to be either empty or a well formed URL.
+     * 
+ * + * string external_uri = 6; + */ + public java.lang.String getExternalUri() { + java.lang.Object ref = externalUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The URI that, if available, points to a web page outside of Cloud SCC
+     * where additional information about the finding can be found. This field is
+     * guaranteed to be either empty or a well formed URL.
+     * 
+ * + * string external_uri = 6; + */ + public com.google.protobuf.ByteString getExternalUriBytes() { + java.lang.Object ref = externalUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The URI that, if available, points to a web page outside of Cloud SCC
+     * where additional information about the finding can be found. This field is
+     * guaranteed to be either empty or a well formed URL.
+     * 
+ * + * string external_uri = 6; + */ + public Builder setExternalUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The URI that, if available, points to a web page outside of Cloud SCC
+     * where additional information about the finding can be found. This field is
+     * guaranteed to be either empty or a well formed URL.
+     * 
+ * + * string external_uri = 6; + */ + public Builder clearExternalUri() { + + externalUri_ = getDefaultInstance().getExternalUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * The URI that, if available, points to a web page outside of Cloud SCC
+     * where additional information about the finding can be found. This field is
+     * guaranteed to be either empty or a well formed URL.
+     * 
+ * + * string external_uri = 6; + */ + public Builder setExternalUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField + sourceProperties_; + + private com.google.protobuf.MapField + internalGetSourceProperties() { + if (sourceProperties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); + } + return sourceProperties_; + } + + private com.google.protobuf.MapField + internalGetMutableSourceProperties() { + onChanged(); + ; + if (sourceProperties_ == null) { + sourceProperties_ = + com.google.protobuf.MapField.newMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); + } + if (!sourceProperties_.isMutable()) { + sourceProperties_ = sourceProperties_.copy(); + } + return sourceProperties_; + } + + public int getSourcePropertiesCount() { + return internalGetSourceProperties().getMap().size(); + } + /** + * + * + *
+     * Source specific properties. These properties are managed by the source
+     * that writes the finding. The key names in the source_properties map must be
+     * between 1 and 255 characters, and must start with a letter and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public boolean containsSourceProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetSourceProperties().getMap().containsKey(key); + } + /** Use {@link #getSourcePropertiesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getSourceProperties() { + return getSourcePropertiesMap(); + } + /** + * + * + *
+     * Source specific properties. These properties are managed by the source
+     * that writes the finding. The key names in the source_properties map must be
+     * between 1 and 255 characters, and must start with a letter and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public java.util.Map getSourcePropertiesMap() { + return internalGetSourceProperties().getMap(); + } + /** + * + * + *
+     * Source specific properties. These properties are managed by the source
+     * that writes the finding. The key names in the source_properties map must be
+     * between 1 and 255 characters, and must start with a letter and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public com.google.protobuf.Value getSourcePropertiesOrDefault( + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetSourceProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Source specific properties. These properties are managed by the source
+     * that writes the finding. The key names in the source_properties map must be
+     * between 1 and 255 characters, and must start with a letter and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetSourceProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSourceProperties() { + internalGetMutableSourceProperties().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Source specific properties. These properties are managed by the source
+     * that writes the finding. The key names in the source_properties map must be
+     * between 1 and 255 characters, and must start with a letter and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public Builder removeSourceProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableSourceProperties().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableSourceProperties() { + return internalGetMutableSourceProperties().getMutableMap(); + } + /** + * + * + *
+     * Source specific properties. These properties are managed by the source
+     * that writes the finding. The key names in the source_properties map must be
+     * between 1 and 255 characters, and must start with a letter and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Value value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableSourceProperties().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Source specific properties. These properties are managed by the source
+     * that writes the finding. The key names in the source_properties map must be
+     * between 1 and 255 characters, and must start with a letter and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + public Builder putAllSourceProperties( + java.util.Map values) { + internalGetMutableSourceProperties().getMutableMap().putAll(values); + return this; + } + + private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + securityMarksBuilder_; + /** + * + * + *
+     * Output only. User specified security marks. These marks are entirely
+     * managed by the user and come from the SecurityMarks resource that belongs
+     * to the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public boolean hasSecurityMarks() { + return securityMarksBuilder_ != null || securityMarks_ != null; + } + /** + * + * + *
+     * Output only. User specified security marks. These marks are entirely
+     * managed by the user and come from the SecurityMarks resource that belongs
+     * to the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { + if (securityMarksBuilder_ == null) { + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; + } else { + return securityMarksBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. User specified security marks. These marks are entirely
+     * managed by the user and come from the SecurityMarks resource that belongs
+     * to the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { + if (securityMarksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityMarks_ = value; + onChanged(); + } else { + securityMarksBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. User specified security marks. These marks are entirely
+     * managed by the user and come from the SecurityMarks resource that belongs
+     * to the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public Builder setSecurityMarks( + com.google.cloud.securitycenter.v1.SecurityMarks.Builder builderForValue) { + if (securityMarksBuilder_ == null) { + securityMarks_ = builderForValue.build(); + onChanged(); + } else { + securityMarksBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. User specified security marks. These marks are entirely
+     * managed by the user and come from the SecurityMarks resource that belongs
+     * to the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { + if (securityMarksBuilder_ == null) { + if (securityMarks_ != null) { + securityMarks_ = + com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_) + .mergeFrom(value) + .buildPartial(); + } else { + securityMarks_ = value; + } + onChanged(); + } else { + securityMarksBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. User specified security marks. These marks are entirely
+     * managed by the user and come from the SecurityMarks resource that belongs
+     * to the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public Builder clearSecurityMarks() { + if (securityMarksBuilder_ == null) { + securityMarks_ = null; + onChanged(); + } else { + securityMarks_ = null; + securityMarksBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. User specified security marks. These marks are entirely
+     * managed by the user and come from the SecurityMarks resource that belongs
+     * to the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() { + + onChanged(); + return getSecurityMarksFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. User specified security marks. These marks are entirely
+     * managed by the user and come from the SecurityMarks resource that belongs
+     * to the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + if (securityMarksBuilder_ != null) { + return securityMarksBuilder_.getMessageOrBuilder(); + } else { + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; + } + } + /** + * + * + *
+     * Output only. User specified security marks. These marks are entirely
+     * managed by the user and come from the SecurityMarks resource that belongs
+     * to the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + getSecurityMarksFieldBuilder() { + if (securityMarksBuilder_ == null) { + securityMarksBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( + getSecurityMarks(), getParentForChildren(), isClean()); + securityMarks_ = null; + } + return securityMarksBuilder_; + } + + private com.google.protobuf.Timestamp eventTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + /** + * + * + *
+     * The time at which the event took place. For example, if the finding
+     * represents an open firewall it would capture the time the open firewall was
+     * detected.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public boolean hasEventTime() { + return eventTimeBuilder_ != null || eventTime_ != null; + } + /** + * + * + *
+     * The time at which the event took place. For example, if the finding
+     * represents an open firewall it would capture the time the open firewall was
+     * detected.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time at which the event took place. For example, if the finding
+     * represents an open firewall it would capture the time the open firewall was
+     * detected.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + onChanged(); + } else { + eventTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the event took place. For example, if the finding
+     * represents an open firewall it would capture the time the open firewall was
+     * detected.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + onChanged(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time at which the event took place. For example, if the finding
+     * represents an open firewall it would capture the time the open firewall was
+     * detected.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (eventTime_ != null) { + eventTime_ = + com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial(); + } else { + eventTime_ = value; + } + onChanged(); + } else { + eventTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the event took place. For example, if the finding
+     * represents an open firewall it would capture the time the open firewall was
+     * detected.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public Builder clearEventTime() { + if (eventTimeBuilder_ == null) { + eventTime_ = null; + onChanged(); + } else { + eventTime_ = null; + eventTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time at which the event took place. For example, if the finding
+     * represents an open firewall it would capture the time the open firewall was
+     * detected.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + + onChanged(); + return getEventTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time at which the event took place. For example, if the finding
+     * represents an open firewall it would capture the time the open firewall was
+     * detected.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + /** + * + * + *
+     * The time at which the event took place. For example, if the finding
+     * represents an open firewall it would capture the time the open firewall was
+     * detected.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * The time at which the finding was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * The time at which the finding was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time at which the finding was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the finding was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time at which the finding was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the finding was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time at which the finding was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time at which the finding was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * The time at which the finding was created in Cloud SCC.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Finding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Finding) + private static final com.google.cloud.securitycenter.v1.Finding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Finding(); + } + + public static com.google.cloud.securitycenter.v1.Finding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Finding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java new file mode 100644 index 000000000000..10ce8f0f4aca --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java @@ -0,0 +1,209 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class FindingName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/sources/{source}/findings/{finding}"); + + private volatile Map fieldValuesMap; + + private final String organization; + private final String source; + private final String finding; + + public String getOrganization() { + return organization; + } + + public String getSource() { + return source; + } + + public String getFinding() { + return finding; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private FindingName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + source = Preconditions.checkNotNull(builder.getSource()); + finding = Preconditions.checkNotNull(builder.getFinding()); + } + + public static FindingName of(String organization, String source, String finding) { + return newBuilder().setOrganization(organization).setSource(source).setFinding(finding).build(); + } + + public static String format(String organization, String source, String finding) { + return newBuilder() + .setOrganization(organization) + .setSource(source) + .setFinding(finding) + .build() + .toString(); + } + + public static FindingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "FindingName.parse: formattedString not in valid format"); + return of(matchMap.get("organization"), matchMap.get("source"), matchMap.get("finding")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (FindingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldMapBuilder.put("source", source); + fieldMapBuilder.put("finding", finding); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate( + "organization", organization, "source", source, "finding", finding); + } + + /** Builder for FindingName. */ + public static class Builder { + + private String organization; + private String source; + private String finding; + + public String getOrganization() { + return organization; + } + + public String getSource() { + return source; + } + + public String getFinding() { + return finding; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setSource(String source) { + this.source = source; + return this; + } + + public Builder setFinding(String finding) { + this.finding = finding; + return this; + } + + private Builder() {} + + private Builder(FindingName findingName) { + organization = findingName.organization; + source = findingName.source; + finding = findingName.finding; + } + + public FindingName build() { + return new FindingName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof FindingName) { + FindingName that = (FindingName) o; + return (this.organization.equals(that.organization)) + && (this.source.equals(that.source)) + && (this.finding.equals(that.finding)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + h *= 1000003; + h ^= source.hashCode(); + h *= 1000003; + h ^= finding.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java new file mode 100644 index 000000000000..67ce2d3a67e8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java @@ -0,0 +1,339 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/finding.proto + +package com.google.cloud.securitycenter.v1; + +public interface FindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Finding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The relative resource name of this finding. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456/findings/789"
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The relative resource name of this finding. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456/findings/789"
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The relative resource name of the source the finding belongs to. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * This field is immutable after creation time.
+   * For example:
+   * "organizations/123/sources/456"
+   * 
+ * + * string parent = 2; + */ + java.lang.String getParent(); + /** + * + * + *
+   * The relative resource name of the source the finding belongs to. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * This field is immutable after creation time.
+   * For example:
+   * "organizations/123/sources/456"
+   * 
+ * + * string parent = 2; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The full resource name of the Google Cloud Platform (GCP) resource this
+   * finding is for. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * This field is immutable after creation time.
+   * 
+ * + * string resource_name = 3; + */ + java.lang.String getResourceName(); + /** + * + * + *
+   * The full resource name of the Google Cloud Platform (GCP) resource this
+   * finding is for. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * This field is immutable after creation time.
+   * 
+ * + * string resource_name = 3; + */ + com.google.protobuf.ByteString getResourceNameBytes(); + + /** + * + * + *
+   * The state of the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 4; + */ + int getStateValue(); + /** + * + * + *
+   * The state of the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 4; + */ + com.google.cloud.securitycenter.v1.Finding.State getState(); + + /** + * + * + *
+   * The additional taxonomy group within findings from a given source.
+   * This field is immutable after creation time.
+   * Example: "XSS_FLASH_INJECTION"
+   * 
+ * + * string category = 5; + */ + java.lang.String getCategory(); + /** + * + * + *
+   * The additional taxonomy group within findings from a given source.
+   * This field is immutable after creation time.
+   * Example: "XSS_FLASH_INJECTION"
+   * 
+ * + * string category = 5; + */ + com.google.protobuf.ByteString getCategoryBytes(); + + /** + * + * + *
+   * The URI that, if available, points to a web page outside of Cloud SCC
+   * where additional information about the finding can be found. This field is
+   * guaranteed to be either empty or a well formed URL.
+   * 
+ * + * string external_uri = 6; + */ + java.lang.String getExternalUri(); + /** + * + * + *
+   * The URI that, if available, points to a web page outside of Cloud SCC
+   * where additional information about the finding can be found. This field is
+   * guaranteed to be either empty or a well formed URL.
+   * 
+ * + * string external_uri = 6; + */ + com.google.protobuf.ByteString getExternalUriBytes(); + + /** + * + * + *
+   * Source specific properties. These properties are managed by the source
+   * that writes the finding. The key names in the source_properties map must be
+   * between 1 and 255 characters, and must start with a letter and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + int getSourcePropertiesCount(); + /** + * + * + *
+   * Source specific properties. These properties are managed by the source
+   * that writes the finding. The key names in the source_properties map must be
+   * between 1 and 255 characters, and must start with a letter and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + boolean containsSourceProperties(java.lang.String key); + /** Use {@link #getSourcePropertiesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getSourceProperties(); + /** + * + * + *
+   * Source specific properties. These properties are managed by the source
+   * that writes the finding. The key names in the source_properties map must be
+   * between 1 and 255 characters, and must start with a letter and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + java.util.Map getSourcePropertiesMap(); + /** + * + * + *
+   * Source specific properties. These properties are managed by the source
+   * that writes the finding. The key names in the source_properties map must be
+   * between 1 and 255 characters, and must start with a letter and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + com.google.protobuf.Value getSourcePropertiesOrDefault( + java.lang.String key, com.google.protobuf.Value defaultValue); + /** + * + * + *
+   * Source specific properties. These properties are managed by the source
+   * that writes the finding. The key names in the source_properties map must be
+   * between 1 and 255 characters, and must start with a letter and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * map<string, .google.protobuf.Value> source_properties = 7; + */ + com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. User specified security marks. These marks are entirely
+   * managed by the user and come from the SecurityMarks resource that belongs
+   * to the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + boolean hasSecurityMarks(); + /** + * + * + *
+   * Output only. User specified security marks. These marks are entirely
+   * managed by the user and come from the SecurityMarks resource that belongs
+   * to the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); + /** + * + * + *
+   * Output only. User specified security marks. These marks are entirely
+   * managed by the user and come from the SecurityMarks resource that belongs
+   * to the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + */ + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); + + /** + * + * + *
+   * The time at which the event took place. For example, if the finding
+   * represents an open firewall it would capture the time the open firewall was
+   * detected.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + boolean hasEventTime(); + /** + * + * + *
+   * The time at which the event took place. For example, if the finding
+   * represents an open firewall it would capture the time the open firewall was
+   * detected.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + com.google.protobuf.Timestamp getEventTime(); + /** + * + * + *
+   * The time at which the event took place. For example, if the finding
+   * represents an open firewall it would capture the time the open firewall was
+   * detected.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 9; + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
+   * The time at which the finding was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * The time at which the finding was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * The time at which the finding was created in Cloud SCC.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java new file mode 100644 index 000000000000..18990019673b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -0,0 +1,105 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/finding.proto + +package com.google.cloud.securitycenter.v1; + +public final class FindingOuterClass { + private FindingOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Finding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/securitycenter/v1/finding" + + ".proto\022\036google.cloud.securitycenter.v1\032\034" + + "google/api/annotations.proto\0323google/clo" + + "ud/securitycenter/v1/security_marks.prot" + + "o\032\034google/protobuf/struct.proto\032\037google/" + + "protobuf/timestamp.proto\"\261\004\n\007Finding\022\014\n\004" + + "name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresource_n" + + "ame\030\003 \001(\t\022<\n\005state\030\004 \001(\0162-.google.cloud." + + "securitycenter.v1.Finding.State\022\020\n\010categ" + + "ory\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022X\n\021sourc" + + "e_properties\030\007 \003(\0132=.google.cloud.securi" + + "tycenter.v1.Finding.SourcePropertiesEntr" + + "y\022E\n\016security_marks\030\010 \001(\0132-.google.cloud" + + ".securitycenter.v1.SecurityMarks\022.\n\neven" + + "t_time\030\t \001(\0132\032.google.protobuf.Timestamp" + + "\022/\n\013create_time\030\n \001(\0132\032.google.protobuf." + + "Timestamp\032O\n\025SourcePropertiesEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" + + ".Value:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002Bt\n\"com.goog" + + "le.cloud.securitycenter.v1P\001ZLgoogle.gol" + + "ang.org/genproto/googleapis/cloud/securi" + + "tycenter/v1;securitycenterb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_securitycenter_v1_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Finding_descriptor, + new java.lang.String[] { + "Name", + "Parent", + "ResourceName", + "State", + "Category", + "ExternalUri", + "SourceProperties", + "SecurityMarks", + "EventTime", + "CreateTime", + }); + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java new file mode 100644 index 000000000000..a644f8166514 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java @@ -0,0 +1,208 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class FindingSecurityMarksName extends SecuritymarksName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/sources/{source}/findings/{finding}/securityMarks"); + + private volatile Map fieldValuesMap; + + private final String organization; + private final String source; + private final String finding; + + public String getOrganization() { + return organization; + } + + public String getSource() { + return source; + } + + public String getFinding() { + return finding; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private FindingSecurityMarksName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + source = Preconditions.checkNotNull(builder.getSource()); + finding = Preconditions.checkNotNull(builder.getFinding()); + } + + public static FindingSecurityMarksName of(String organization, String source, String finding) { + return newBuilder().setOrganization(organization).setSource(source).setFinding(finding).build(); + } + + public static String format(String organization, String source, String finding) { + return newBuilder() + .setOrganization(organization) + .setSource(source) + .setFinding(finding) + .build() + .toString(); + } + + public static FindingSecurityMarksName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "FindingSecurityMarksName.parse: formattedString not in valid format"); + return of(matchMap.get("organization"), matchMap.get("source"), matchMap.get("finding")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (FindingSecurityMarksName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldMapBuilder.put("source", source); + fieldMapBuilder.put("finding", finding); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate( + "organization", organization, "source", source, "finding", finding); + } + + /** Builder for FindingSecurityMarksName. */ + public static class Builder { + + private String organization; + private String source; + private String finding; + + public String getOrganization() { + return organization; + } + + public String getSource() { + return source; + } + + public String getFinding() { + return finding; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setSource(String source) { + this.source = source; + return this; + } + + public Builder setFinding(String finding) { + this.finding = finding; + return this; + } + + private Builder() {} + + private Builder(FindingSecurityMarksName findingSecurityMarksName) { + organization = findingSecurityMarksName.organization; + source = findingSecurityMarksName.source; + finding = findingSecurityMarksName.finding; + } + + public FindingSecurityMarksName build() { + return new FindingSecurityMarksName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof FindingSecurityMarksName) { + FindingSecurityMarksName that = (FindingSecurityMarksName) o; + return (this.organization.equals(that.organization)) + && (this.source.equals(that.source)) + && (this.finding.equals(that.finding)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + h *= 1000003; + h ^= source.hashCode(); + h *= 1000003; + h ^= finding.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java new file mode 100644 index 000000000000..b424576af0fe --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java @@ -0,0 +1,617 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for getting organization settings.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} + */ +public final class GetOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) + GetOrganizationSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOrganizationSettingsRequest.newBuilder() to construct. + private GetOrganizationSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOrganizationSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetOrganizationSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other = + (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for getting organization settings.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest build() { + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest buildPartial() { + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest result = + new com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other) { + if (other + == com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Name of the organization to get organization settings for. Its format is
+     * "organizations/[organization_id]/organizationSettings".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the organization to get organization settings for. Its format is
+     * "organizations/[organization_id]/organizationSettings".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the organization to get organization settings for. Its format is
+     * "organizations/[organization_id]/organizationSettings".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the organization to get organization settings for. Its format is
+     * "organizations/[organization_id]/organizationSettings".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the organization to get organization settings for. Its format is
+     * "organizations/[organization_id]/organizationSettings".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) + private static final com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(); + } + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrganizationSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..7fa723622083 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetOrganizationSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java new file mode 100644 index 000000000000..917d5477ce60 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java @@ -0,0 +1,606 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for getting a source.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GetSourceRequest} + */ +public final class GetSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetSourceRequest) + GetSourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSourceRequest.newBuilder() to construct. + private GetSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSourceRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetSourceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GetSourceRequest.class, + com.google.cloud.securitycenter.v1.GetSourceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.GetSourceRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.GetSourceRequest other = + (com.google.cloud.securitycenter.v1.GetSourceRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetSourceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for getting a source.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GetSourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetSourceRequest) + com.google.cloud.securitycenter.v1.GetSourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GetSourceRequest.class, + com.google.cloud.securitycenter.v1.GetSourceRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.GetSourceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetSourceRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.GetSourceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetSourceRequest build() { + com.google.cloud.securitycenter.v1.GetSourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetSourceRequest buildPartial() { + com.google.cloud.securitycenter.v1.GetSourceRequest result = + new com.google.cloud.securitycenter.v1.GetSourceRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.GetSourceRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.GetSourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetSourceRequest other) { + if (other == com.google.cloud.securitycenter.v1.GetSourceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.GetSourceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.GetSourceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Relative resource name of the source. Its format is
+     * "organizations/[organization_id]/source/[source_id]".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Relative resource name of the source. Its format is
+     * "organizations/[organization_id]/source/[source_id]".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Relative resource name of the source. Its format is
+     * "organizations/[organization_id]/source/[source_id]".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Relative resource name of the source. Its format is
+     * "organizations/[organization_id]/source/[source_id]".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Relative resource name of the source. Its format is
+     * "organizations/[organization_id]/source/[source_id]".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetSourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetSourceRequest) + private static final com.google.cloud.securitycenter.v1.GetSourceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetSourceRequest(); + } + + public static com.google.cloud.securitycenter.v1.GetSourceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSourceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetSourceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java new file mode 100644 index 000000000000..4a8bd2cdc3ae --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetSourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java new file mode 100644 index 000000000000..a6cb10133240 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java @@ -0,0 +1,2369 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for grouping by assets.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsRequest} + */ +public final class GroupAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupAssetsRequest) + GroupAssetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAssetsRequest.newBuilder() to construct. + private GroupAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroupAssetsRequest() { + parent_ = ""; + filter_ = ""; + groupBy_ = ""; + having_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GroupAssetsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + groupBy_ = s; + break; + } + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + having_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 64: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, + com.google.cloud.securitycenter.v1.GroupAssetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Name of the organization to groupBy. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the organization to groupBy. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Expression that defines the filter to apply across assets.
+   * The expression is a list of zero or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. The fields map to those
+   * defined in the Asset resource. Examples include:
+   * * name
+   * * security_center_properties.resource_name
+   * * resource_properties.a_property
+   * * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `resource_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Expression that defines the filter to apply across assets.
+   * The expression is a list of zero or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. The fields map to those
+   * defined in the Asset resource. Examples include:
+   * * name
+   * * security_center_properties.resource_name
+   * * resource_properties.a_property
+   * * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `resource_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_BY_FIELD_NUMBER = 3; + private volatile java.lang.Object groupBy_; + /** + * + * + *
+   * Expression that defines what assets fields to use for grouping. The string
+   * value should follow SQL syntax: comma separated list of fields. For
+   * example:
+   * "security_center_properties.resource_project,security_center_properties.project".
+   * The following fields are supported when compare_duration is not set:
+   * * security_center_properties.resource_project
+   * * security_center_properties.resource_type
+   * * security_center_properties.resource_parent
+   * The following fields are supported when compare_duration is set:
+   * * security_center_properties.resource_type
+   * 
+ * + * string group_by = 3; + */ + public java.lang.String getGroupBy() { + java.lang.Object ref = groupBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupBy_ = s; + return s; + } + } + /** + * + * + *
+   * Expression that defines what assets fields to use for grouping. The string
+   * value should follow SQL syntax: comma separated list of fields. For
+   * example:
+   * "security_center_properties.resource_project,security_center_properties.project".
+   * The following fields are supported when compare_duration is not set:
+   * * security_center_properties.resource_project
+   * * security_center_properties.resource_type
+   * * security_center_properties.resource_parent
+   * The following fields are supported when compare_duration is set:
+   * * security_center_properties.resource_type
+   * 
+ * + * string group_by = 3; + */ + public com.google.protobuf.ByteString getGroupByBytes() { + java.lang.Object ref = groupBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPARE_DURATION_FIELD_NUMBER = 4; + private com.google.protobuf.Duration compareDuration_; + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" property is
+   * updated to indicate whether the asset was added, removed, or remained
+   * present during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at reference_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at reference_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and reference_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all assets present at
+   * read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public boolean hasCompareDuration() { + return compareDuration_ != null; + } + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" property is
+   * updated to indicate whether the asset was added, removed, or remained
+   * present during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at reference_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at reference_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and reference_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all assets present at
+   * read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public com.google.protobuf.Duration getCompareDuration() { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" property is
+   * updated to indicate whether the asset was added, removed, or remained
+   * present during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at reference_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at reference_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and reference_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all assets present at
+   * read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { + return getCompareDuration(); + } + + public static final int READ_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp readTime_; + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public boolean hasReadTime() { + return readTime_ != null; + } + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public com.google.protobuf.Timestamp getReadTime() { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + return getReadTime(); + } + + public static final int HAVING_FIELD_NUMBER = 6; + private volatile java.lang.Object having_; + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'state_change' is supported and
+   * requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + public java.lang.String getHaving() { + java.lang.Object ref = having_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + having_ = s; + return s; + } + } + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'state_change' is supported and
+   * requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + public com.google.protobuf.ByteString getHavingBytes() { + java.lang.Object ref = having_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + having_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 7; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The value returned by the last `GroupAssetsResponse`; indicates
+   * that this is a continuation of a prior `GroupAssets` call, and that the
+   * system should return the next page of data.
+   * 
+ * + * string page_token = 7; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The value returned by the last `GroupAssetsResponse`; indicates
+   * that this is a continuation of a prior `GroupAssets` call, and that the
+   * system should return the next page of data.
+   * 
+ * + * string page_token = 7; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 8; + private int pageSize_; + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 8; + */ + public int getPageSize() { + return pageSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (!getGroupByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupBy_); + } + if (compareDuration_ != null) { + output.writeMessage(4, getCompareDuration()); + } + if (readTime_ != null) { + output.writeMessage(5, getReadTime()); + } + if (!getHavingBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(8, pageSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (!getGroupByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); + } + if (compareDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompareDuration()); + } + if (readTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadTime()); + } + if (!getHavingBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupAssetsRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.GroupAssetsRequest other = + (com.google.cloud.securitycenter.v1.GroupAssetsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && getGroupBy().equals(other.getGroupBy()); + result = result && (hasCompareDuration() == other.hasCompareDuration()); + if (hasCompareDuration()) { + result = result && getCompareDuration().equals(other.getCompareDuration()); + } + result = result && (hasReadTime() == other.hasReadTime()); + if (hasReadTime()) { + result = result && getReadTime().equals(other.getReadTime()); + } + result = result && getHaving().equals(other.getHaving()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + GROUP_BY_FIELD_NUMBER; + hash = (53 * hash) + getGroupBy().hashCode(); + if (hasCompareDuration()) { + hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getCompareDuration().hashCode(); + } + if (hasReadTime()) { + hash = (37 * hash) + READ_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReadTime().hashCode(); + } + hash = (37 * hash) + HAVING_FIELD_NUMBER; + hash = (53 * hash) + getHaving().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GroupAssetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for grouping by assets.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupAssetsRequest) + com.google.cloud.securitycenter.v1.GroupAssetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, + com.google.cloud.securitycenter.v1.GroupAssetsRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.GroupAssetsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + groupBy_ = ""; + + if (compareDurationBuilder_ == null) { + compareDuration_ = null; + } else { + compareDuration_ = null; + compareDurationBuilder_ = null; + } + if (readTimeBuilder_ == null) { + readTime_ = null; + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + having_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupAssetsRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.GroupAssetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupAssetsRequest build() { + com.google.cloud.securitycenter.v1.GroupAssetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupAssetsRequest buildPartial() { + com.google.cloud.securitycenter.v1.GroupAssetsRequest result = + new com.google.cloud.securitycenter.v1.GroupAssetsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.groupBy_ = groupBy_; + if (compareDurationBuilder_ == null) { + result.compareDuration_ = compareDuration_; + } else { + result.compareDuration_ = compareDurationBuilder_.build(); + } + if (readTimeBuilder_ == null) { + result.readTime_ = readTime_; + } else { + result.readTime_ = readTimeBuilder_.build(); + } + result.having_ = having_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.GroupAssetsRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.GroupAssetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupAssetsRequest other) { + if (other == com.google.cloud.securitycenter.v1.GroupAssetsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getGroupBy().isEmpty()) { + groupBy_ = other.groupBy_; + onChanged(); + } + if (other.hasCompareDuration()) { + mergeCompareDuration(other.getCompareDuration()); + } + if (other.hasReadTime()) { + mergeReadTime(other.getReadTime()); + } + if (!other.getHaving().isEmpty()) { + having_ = other.having_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.GroupAssetsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.GroupAssetsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Name of the organization to groupBy. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the organization to groupBy. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the organization to groupBy. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the organization to groupBy. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the organization to groupBy. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Expression that defines the filter to apply across assets.
+     * The expression is a list of zero or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. The fields map to those
+     * defined in the Asset resource. Examples include:
+     * * name
+     * * security_center_properties.resource_name
+     * * resource_properties.a_property
+     * * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `resource_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Expression that defines the filter to apply across assets.
+     * The expression is a list of zero or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. The fields map to those
+     * defined in the Asset resource. Examples include:
+     * * name
+     * * security_center_properties.resource_name
+     * * resource_properties.a_property
+     * * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `resource_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Expression that defines the filter to apply across assets.
+     * The expression is a list of zero or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. The fields map to those
+     * defined in the Asset resource. Examples include:
+     * * name
+     * * security_center_properties.resource_name
+     * * resource_properties.a_property
+     * * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `resource_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines the filter to apply across assets.
+     * The expression is a list of zero or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. The fields map to those
+     * defined in the Asset resource. Examples include:
+     * * name
+     * * security_center_properties.resource_name
+     * * resource_properties.a_property
+     * * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `resource_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines the filter to apply across assets.
+     * The expression is a list of zero or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. The fields map to those
+     * defined in the Asset resource. Examples include:
+     * * name
+     * * security_center_properties.resource_name
+     * * resource_properties.a_property
+     * * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `resource_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object groupBy_ = ""; + /** + * + * + *
+     * Expression that defines what assets fields to use for grouping. The string
+     * value should follow SQL syntax: comma separated list of fields. For
+     * example:
+     * "security_center_properties.resource_project,security_center_properties.project".
+     * The following fields are supported when compare_duration is not set:
+     * * security_center_properties.resource_project
+     * * security_center_properties.resource_type
+     * * security_center_properties.resource_parent
+     * The following fields are supported when compare_duration is set:
+     * * security_center_properties.resource_type
+     * 
+ * + * string group_by = 3; + */ + public java.lang.String getGroupBy() { + java.lang.Object ref = groupBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Expression that defines what assets fields to use for grouping. The string
+     * value should follow SQL syntax: comma separated list of fields. For
+     * example:
+     * "security_center_properties.resource_project,security_center_properties.project".
+     * The following fields are supported when compare_duration is not set:
+     * * security_center_properties.resource_project
+     * * security_center_properties.resource_type
+     * * security_center_properties.resource_parent
+     * The following fields are supported when compare_duration is set:
+     * * security_center_properties.resource_type
+     * 
+ * + * string group_by = 3; + */ + public com.google.protobuf.ByteString getGroupByBytes() { + java.lang.Object ref = groupBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Expression that defines what assets fields to use for grouping. The string
+     * value should follow SQL syntax: comma separated list of fields. For
+     * example:
+     * "security_center_properties.resource_project,security_center_properties.project".
+     * The following fields are supported when compare_duration is not set:
+     * * security_center_properties.resource_project
+     * * security_center_properties.resource_type
+     * * security_center_properties.resource_parent
+     * The following fields are supported when compare_duration is set:
+     * * security_center_properties.resource_type
+     * 
+ * + * string group_by = 3; + */ + public Builder setGroupBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + groupBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines what assets fields to use for grouping. The string
+     * value should follow SQL syntax: comma separated list of fields. For
+     * example:
+     * "security_center_properties.resource_project,security_center_properties.project".
+     * The following fields are supported when compare_duration is not set:
+     * * security_center_properties.resource_project
+     * * security_center_properties.resource_type
+     * * security_center_properties.resource_parent
+     * The following fields are supported when compare_duration is set:
+     * * security_center_properties.resource_type
+     * 
+ * + * string group_by = 3; + */ + public Builder clearGroupBy() { + + groupBy_ = getDefaultInstance().getGroupBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines what assets fields to use for grouping. The string
+     * value should follow SQL syntax: comma separated list of fields. For
+     * example:
+     * "security_center_properties.resource_project,security_center_properties.project".
+     * The following fields are supported when compare_duration is not set:
+     * * security_center_properties.resource_project
+     * * security_center_properties.resource_type
+     * * security_center_properties.resource_parent
+     * The following fields are supported when compare_duration is set:
+     * * security_center_properties.resource_type
+     * 
+ * + * string group_by = 3; + */ + public Builder setGroupByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Duration compareDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + compareDurationBuilder_; + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" property is
+     * updated to indicate whether the asset was added, removed, or remained
+     * present during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at reference_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at reference_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and reference_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all assets present at
+     * read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public boolean hasCompareDuration() { + return compareDurationBuilder_ != null || compareDuration_ != null; + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" property is
+     * updated to indicate whether the asset was added, removed, or remained
+     * present during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at reference_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at reference_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and reference_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all assets present at
+     * read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public com.google.protobuf.Duration getCompareDuration() { + if (compareDurationBuilder_ == null) { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } else { + return compareDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" property is
+     * updated to indicate whether the asset was added, removed, or remained
+     * present during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at reference_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at reference_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and reference_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all assets present at
+     * read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public Builder setCompareDuration(com.google.protobuf.Duration value) { + if (compareDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compareDuration_ = value; + onChanged(); + } else { + compareDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" property is
+     * updated to indicate whether the asset was added, removed, or remained
+     * present during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at reference_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at reference_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and reference_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all assets present at
+     * read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (compareDurationBuilder_ == null) { + compareDuration_ = builderForValue.build(); + onChanged(); + } else { + compareDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" property is
+     * updated to indicate whether the asset was added, removed, or remained
+     * present during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at reference_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at reference_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and reference_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all assets present at
+     * read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public Builder mergeCompareDuration(com.google.protobuf.Duration value) { + if (compareDurationBuilder_ == null) { + if (compareDuration_ != null) { + compareDuration_ = + com.google.protobuf.Duration.newBuilder(compareDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + compareDuration_ = value; + } + onChanged(); + } else { + compareDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" property is
+     * updated to indicate whether the asset was added, removed, or remained
+     * present during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at reference_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at reference_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and reference_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all assets present at
+     * read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public Builder clearCompareDuration() { + if (compareDurationBuilder_ == null) { + compareDuration_ = null; + onChanged(); + } else { + compareDuration_ = null; + compareDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" property is
+     * updated to indicate whether the asset was added, removed, or remained
+     * present during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at reference_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at reference_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and reference_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all assets present at
+     * read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public com.google.protobuf.Duration.Builder getCompareDurationBuilder() { + + onChanged(); + return getCompareDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" property is
+     * updated to indicate whether the asset was added, removed, or remained
+     * present during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at reference_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at reference_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and reference_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all assets present at
+     * read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { + if (compareDurationBuilder_ != null) { + return compareDurationBuilder_.getMessageOrBuilder(); + } else { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" property is
+     * updated to indicate whether the asset was added, removed, or remained
+     * present during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at reference_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at reference_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and reference_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all assets present at
+     * read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getCompareDurationFieldBuilder() { + if (compareDurationBuilder_ == null) { + compareDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getCompareDuration(), getParentForChildren(), isClean()); + compareDuration_ = null; + } + return compareDurationBuilder_; + } + + private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public boolean hasReadTime() { + return readTimeBuilder_ != null || readTime_ != null; + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public com.google.protobuf.Timestamp getReadTime() { + if (readTimeBuilder_ == null) { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } else { + return readTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public Builder setReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readTime_ = value; + onChanged(); + } else { + readTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (readTimeBuilder_ == null) { + readTime_ = builderForValue.build(); + onChanged(); + } else { + readTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public Builder mergeReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (readTime_ != null) { + readTime_ = + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + } else { + readTime_ = value; + } + onChanged(); + } else { + readTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public Builder clearReadTime() { + if (readTimeBuilder_ == null) { + readTime_ = null; + onChanged(); + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { + + onChanged(); + return getReadTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + if (readTimeBuilder_ != null) { + return readTimeBuilder_.getMessageOrBuilder(); + } else { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReadTimeFieldBuilder() { + if (readTimeBuilder_ == null) { + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); + readTime_ = null; + } + return readTimeBuilder_; + } + + private java.lang.Object having_ = ""; + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'state_change' is supported and
+     * requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public java.lang.String getHaving() { + java.lang.Object ref = having_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + having_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'state_change' is supported and
+     * requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public com.google.protobuf.ByteString getHavingBytes() { + java.lang.Object ref = having_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + having_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'state_change' is supported and
+     * requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder setHaving(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + having_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'state_change' is supported and
+     * requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder clearHaving() { + + having_ = getDefaultInstance().getHaving(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'state_change' is supported and
+     * requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder setHavingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + having_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The value returned by the last `GroupAssetsResponse`; indicates
+     * that this is a continuation of a prior `GroupAssets` call, and that the
+     * system should return the next page of data.
+     * 
+ * + * string page_token = 7; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The value returned by the last `GroupAssetsResponse`; indicates
+     * that this is a continuation of a prior `GroupAssets` call, and that the
+     * system should return the next page of data.
+     * 
+ * + * string page_token = 7; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The value returned by the last `GroupAssetsResponse`; indicates
+     * that this is a continuation of a prior `GroupAssets` call, and that the
+     * system should return the next page of data.
+     * 
+ * + * string page_token = 7; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `GroupAssetsResponse`; indicates
+     * that this is a continuation of a prior `GroupAssets` call, and that the
+     * system should return the next page of data.
+     * 
+ * + * string page_token = 7; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `GroupAssetsResponse`; indicates
+     * that this is a continuation of a prior `GroupAssets` call, and that the
+     * system should return the next page of data.
+     * 
+ * + * string page_token = 7; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 8; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 8; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 8; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupAssetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupAssetsRequest) + private static final com.google.cloud.securitycenter.v1.GroupAssetsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupAssetsRequest(); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupAssetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java new file mode 100644 index 000000000000..d213fa6fb270 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java @@ -0,0 +1,327 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GroupAssetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupAssetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the organization to groupBy. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Name of the organization to groupBy. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Expression that defines the filter to apply across assets.
+   * The expression is a list of zero or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. The fields map to those
+   * defined in the Asset resource. Examples include:
+   * * name
+   * * security_center_properties.resource_name
+   * * resource_properties.a_property
+   * * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `resource_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Expression that defines the filter to apply across assets.
+   * The expression is a list of zero or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. The fields map to those
+   * defined in the Asset resource. Examples include:
+   * * name
+   * * security_center_properties.resource_name
+   * * resource_properties.a_property
+   * * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `resource_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Expression that defines what assets fields to use for grouping. The string
+   * value should follow SQL syntax: comma separated list of fields. For
+   * example:
+   * "security_center_properties.resource_project,security_center_properties.project".
+   * The following fields are supported when compare_duration is not set:
+   * * security_center_properties.resource_project
+   * * security_center_properties.resource_type
+   * * security_center_properties.resource_parent
+   * The following fields are supported when compare_duration is set:
+   * * security_center_properties.resource_type
+   * 
+ * + * string group_by = 3; + */ + java.lang.String getGroupBy(); + /** + * + * + *
+   * Expression that defines what assets fields to use for grouping. The string
+   * value should follow SQL syntax: comma separated list of fields. For
+   * example:
+   * "security_center_properties.resource_project,security_center_properties.project".
+   * The following fields are supported when compare_duration is not set:
+   * * security_center_properties.resource_project
+   * * security_center_properties.resource_type
+   * * security_center_properties.resource_parent
+   * The following fields are supported when compare_duration is set:
+   * * security_center_properties.resource_type
+   * 
+ * + * string group_by = 3; + */ + com.google.protobuf.ByteString getGroupByBytes(); + + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" property is
+   * updated to indicate whether the asset was added, removed, or remained
+   * present during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at reference_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at reference_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and reference_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all assets present at
+   * read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + boolean hasCompareDuration(); + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" property is
+   * updated to indicate whether the asset was added, removed, or remained
+   * present during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at reference_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at reference_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and reference_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all assets present at
+   * read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + com.google.protobuf.Duration getCompareDuration(); + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" property is
+   * updated to indicate whether the asset was added, removed, or remained
+   * present during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at reference_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at reference_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and reference_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all assets present at
+   * read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 4; + */ + com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder(); + + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + boolean hasReadTime(); + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + com.google.protobuf.Timestamp getReadTime(); + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); + + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'state_change' is supported and
+   * requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + java.lang.String getHaving(); + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'state_change' is supported and
+   * requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + com.google.protobuf.ByteString getHavingBytes(); + + /** + * + * + *
+   * The value returned by the last `GroupAssetsResponse`; indicates
+   * that this is a continuation of a prior `GroupAssets` call, and that the
+   * system should return the next page of data.
+   * 
+ * + * string page_token = 7; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The value returned by the last `GroupAssetsResponse`; indicates
+   * that this is a continuation of a prior `GroupAssets` call, and that the
+   * system should return the next page of data.
+   * 
+ * + * string page_token = 7; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 8; + */ + int getPageSize(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java new file mode 100644 index 000000000000..f73e8559a7c0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java @@ -0,0 +1,1492 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Response message for grouping by assets.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsResponse} + */ +public final class GroupAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupAssetsResponse) + GroupAssetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupAssetsResponse.newBuilder() to construct. + private GroupAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroupAssetsResponse() { + groupByResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + totalSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GroupAssetsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + groupByResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + groupByResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.GroupResult.parser(), extensionRegistry)); + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, + com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); + } + + private int bitField0_; + public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; + private java.util.List groupByResults_; + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public java.util.List getGroupByResultsList() { + return groupByResults_; + } + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public java.util.List + getGroupByResultsOrBuilderList() { + return groupByResults_; + } + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public int getGroupByResultsCount() { + return groupByResults_.size(); + } + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index) { + return groupByResults_.get(index); + } + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder( + int index) { + return groupByResults_.get(index); + } + + public static final int READ_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp readTime_; + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public boolean hasReadTime() { + return readTime_ != null; + } + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp getReadTime() { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + return getReadTime(); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 4; + private int totalSize_; + /** + * + * + *
+   * The total number of results matching the query.
+   * 
+ * + * int32 total_size = 4; + */ + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < groupByResults_.size(); i++) { + output.writeMessage(1, groupByResults_.get(i)); + } + if (readTime_ != null) { + output.writeMessage(2, getReadTime()); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(4, totalSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < groupByResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); + } + if (readTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupAssetsResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.GroupAssetsResponse other = + (com.google.cloud.securitycenter.v1.GroupAssetsResponse) obj; + + boolean result = true; + result = result && getGroupByResultsList().equals(other.getGroupByResultsList()); + result = result && (hasReadTime() == other.hasReadTime()); + if (hasReadTime()) { + result = result && getReadTime().equals(other.getReadTime()); + } + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (getTotalSize() == other.getTotalSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGroupByResultsCount() > 0) { + hash = (37 * hash) + GROUP_BY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getGroupByResultsList().hashCode(); + } + if (hasReadTime()) { + hash = (37 * hash) + READ_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReadTime().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GroupAssetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for grouping by assets.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupAssetsResponse) + com.google.cloud.securitycenter.v1.GroupAssetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, + com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.GroupAssetsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGroupByResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (groupByResultsBuilder_ == null) { + groupByResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + groupByResultsBuilder_.clear(); + } + if (readTimeBuilder_ == null) { + readTime_ = null; + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + nextPageToken_ = ""; + + totalSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupAssetsResponse getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.GroupAssetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupAssetsResponse build() { + com.google.cloud.securitycenter.v1.GroupAssetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupAssetsResponse buildPartial() { + com.google.cloud.securitycenter.v1.GroupAssetsResponse result = + new com.google.cloud.securitycenter.v1.GroupAssetsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (groupByResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.groupByResults_ = groupByResults_; + } else { + result.groupByResults_ = groupByResultsBuilder_.build(); + } + if (readTimeBuilder_ == null) { + result.readTime_ = readTime_; + } else { + result.readTime_ = readTimeBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.totalSize_ = totalSize_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.GroupAssetsResponse) { + return mergeFrom((com.google.cloud.securitycenter.v1.GroupAssetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupAssetsResponse other) { + if (other == com.google.cloud.securitycenter.v1.GroupAssetsResponse.getDefaultInstance()) + return this; + if (groupByResultsBuilder_ == null) { + if (!other.groupByResults_.isEmpty()) { + if (groupByResults_.isEmpty()) { + groupByResults_ = other.groupByResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGroupByResultsIsMutable(); + groupByResults_.addAll(other.groupByResults_); + } + onChanged(); + } + } else { + if (!other.groupByResults_.isEmpty()) { + if (groupByResultsBuilder_.isEmpty()) { + groupByResultsBuilder_.dispose(); + groupByResultsBuilder_ = null; + groupByResults_ = other.groupByResults_; + bitField0_ = (bitField0_ & ~0x00000001); + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupByResultsFieldBuilder() + : null; + } else { + groupByResultsBuilder_.addAllMessages(other.groupByResults_); + } + } + } + if (other.hasReadTime()) { + mergeReadTime(other.getReadTime()); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.GroupAssetsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.GroupAssetsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List groupByResults_ = + java.util.Collections.emptyList(); + + private void ensureGroupByResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + groupByResults_ = + new java.util.ArrayList( + groupByResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.GroupResult, + com.google.cloud.securitycenter.v1.GroupResult.Builder, + com.google.cloud.securitycenter.v1.GroupResultOrBuilder> + groupByResultsBuilder_; + + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public java.util.List getGroupByResultsList() { + if (groupByResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groupByResults_); + } else { + return groupByResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public int getGroupByResultsCount() { + if (groupByResultsBuilder_ == null) { + return groupByResults_.size(); + } else { + return groupByResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index) { + if (groupByResultsBuilder_ == null) { + return groupByResults_.get(index); + } else { + return groupByResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder setGroupByResults( + int index, com.google.cloud.securitycenter.v1.GroupResult value) { + if (groupByResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupByResultsIsMutable(); + groupByResults_.set(index, value); + onChanged(); + } else { + groupByResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder setGroupByResults( + int index, com.google.cloud.securitycenter.v1.GroupResult.Builder builderForValue) { + if (groupByResultsBuilder_ == null) { + ensureGroupByResultsIsMutable(); + groupByResults_.set(index, builderForValue.build()); + onChanged(); + } else { + groupByResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder addGroupByResults(com.google.cloud.securitycenter.v1.GroupResult value) { + if (groupByResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupByResultsIsMutable(); + groupByResults_.add(value); + onChanged(); + } else { + groupByResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder addGroupByResults( + int index, com.google.cloud.securitycenter.v1.GroupResult value) { + if (groupByResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupByResultsIsMutable(); + groupByResults_.add(index, value); + onChanged(); + } else { + groupByResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder addGroupByResults( + com.google.cloud.securitycenter.v1.GroupResult.Builder builderForValue) { + if (groupByResultsBuilder_ == null) { + ensureGroupByResultsIsMutable(); + groupByResults_.add(builderForValue.build()); + onChanged(); + } else { + groupByResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder addGroupByResults( + int index, com.google.cloud.securitycenter.v1.GroupResult.Builder builderForValue) { + if (groupByResultsBuilder_ == null) { + ensureGroupByResultsIsMutable(); + groupByResults_.add(index, builderForValue.build()); + onChanged(); + } else { + groupByResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder addAllGroupByResults( + java.lang.Iterable values) { + if (groupByResultsBuilder_ == null) { + ensureGroupByResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_); + onChanged(); + } else { + groupByResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder clearGroupByResults() { + if (groupByResultsBuilder_ == null) { + groupByResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + groupByResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder removeGroupByResults(int index) { + if (groupByResultsBuilder_ == null) { + ensureGroupByResultsIsMutable(); + groupByResults_.remove(index); + onChanged(); + } else { + groupByResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResult.Builder getGroupByResultsBuilder( + int index) { + return getGroupByResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder( + int index) { + if (groupByResultsBuilder_ == null) { + return groupByResults_.get(index); + } else { + return groupByResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public java.util.List + getGroupByResultsOrBuilderList() { + if (groupByResultsBuilder_ != null) { + return groupByResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groupByResults_); + } + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder() { + return getGroupByResultsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance()); + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder( + int index) { + return getGroupByResultsFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance()); + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public java.util.List + getGroupByResultsBuilderList() { + return getGroupByResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.GroupResult, + com.google.cloud.securitycenter.v1.GroupResult.Builder, + com.google.cloud.securitycenter.v1.GroupResultOrBuilder> + getGroupByResultsFieldBuilder() { + if (groupByResultsBuilder_ == null) { + groupByResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.GroupResult, + com.google.cloud.securitycenter.v1.GroupResult.Builder, + com.google.cloud.securitycenter.v1.GroupResultOrBuilder>( + groupByResults_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + groupByResults_ = null; + } + return groupByResultsBuilder_; + } + + private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public boolean hasReadTime() { + return readTimeBuilder_ != null || readTime_ != null; + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp getReadTime() { + if (readTimeBuilder_ == null) { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } else { + return readTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder setReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readTime_ = value; + onChanged(); + } else { + readTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (readTimeBuilder_ == null) { + readTime_ = builderForValue.build(); + onChanged(); + } else { + readTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder mergeReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (readTime_ != null) { + readTime_ = + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + } else { + readTime_ = value; + } + onChanged(); + } else { + readTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder clearReadTime() { + if (readTimeBuilder_ == null) { + readTime_ = null; + onChanged(); + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { + + onChanged(); + return getReadTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + if (readTimeBuilder_ != null) { + return readTimeBuilder_.getMessageOrBuilder(); + } else { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReadTimeFieldBuilder() { + if (readTimeBuilder_ == null) { + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); + readTime_ = null; + } + return readTimeBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private int totalSize_; + /** + * + * + *
+     * The total number of results matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public int getTotalSize() { + return totalSize_; + } + /** + * + * + *
+     * The total number of results matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of results matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public Builder clearTotalSize() { + + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupAssetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupAssetsResponse) + private static final com.google.cloud.securitycenter.v1.GroupAssetsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupAssetsResponse(); + } + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupAssetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java new file mode 100644 index 000000000000..e5c95b50c821 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GroupAssetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupAssetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + java.util.List getGroupByResultsList(); + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index); + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + int getGroupByResultsCount(); + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + java.util.List + getGroupByResultsOrBuilderList(); + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(int index); + + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + boolean hasReadTime(); + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + com.google.protobuf.Timestamp getReadTime(); + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * The total number of results matching the query.
+   * 
+ * + * int32 total_size = 4; + */ + int getTotalSize(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java new file mode 100644 index 000000000000..35bbf22866a8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java @@ -0,0 +1,2350 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for grouping by findings.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsRequest} + */ +public final class GroupFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupFindingsRequest) + GroupFindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupFindingsRequest.newBuilder() to construct. + private GroupFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroupFindingsRequest() { + parent_ = ""; + filter_ = ""; + groupBy_ = ""; + having_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GroupFindingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + groupBy_ = s; + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + having_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 64: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, + com.google.cloud.securitycenter.v1.GroupFindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Name of the source to groupBy. Its format is
+   * "organizations/[organization_id]/sources/[source_id]". To groupBy across
+   * all sources provide a source_id of `-`. For example:
+   * organizations/123/sources/-
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the source to groupBy. Its format is
+   * "organizations/[organization_id]/sources/[source_id]". To groupBy across
+   * all sources provide a source_id of `-`. For example:
+   * organizations/123/sources/-
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Expression that defines the filter to apply across findings.
+   * The expression is a list of one or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. Examples include:
+   *  * name
+   *  * source_properties.a_property
+   *  * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `source_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Expression that defines the filter to apply across findings.
+   * The expression is a list of one or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. Examples include:
+   *  * name
+   *  * source_properties.a_property
+   *  * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `source_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_BY_FIELD_NUMBER = 3; + private volatile java.lang.Object groupBy_; + /** + * + * + *
+   * Expression that defines what assets fields to use for grouping (including
+   * `state_change`). The string value should follow SQL syntax: comma separated
+   * list of fields. For example: "parent,resource_name".
+   * The following fields are supported:
+   * * resource_name
+   * * category
+   * * state
+   * * state_change
+   * * parent
+   * 
+ * + * string group_by = 3; + */ + public java.lang.String getGroupBy() { + java.lang.Object ref = groupBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupBy_ = s; + return s; + } + } + /** + * + * + *
+   * Expression that defines what assets fields to use for grouping (including
+   * `state_change`). The string value should follow SQL syntax: comma separated
+   * list of fields. For example: "parent,resource_name".
+   * The following fields are supported:
+   * * resource_name
+   * * category
+   * * state
+   * * state_change
+   * * parent
+   * 
+ * + * string group_by = 3; + */ + public com.google.protobuf.ByteString getGroupByBytes() { + java.lang.Object ref = groupBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp readTime_; + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public boolean hasReadTime() { + return readTime_ != null; + } + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.Timestamp getReadTime() { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + return getReadTime(); + } + + public static final int COMPARE_DURATION_FIELD_NUMBER = 5; + private com.google.protobuf.Duration compareDuration_; + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" attribute is
+   * updated to indicate whether the finding had its state changed, the
+   * finding's state remained unchanged, or if the finding was added during the
+   * compare_duration period of time that precedes the read_time. This is the
+   * time between (read_time - compare_duration) and read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all findings present
+   * at read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public boolean hasCompareDuration() { + return compareDuration_ != null; + } + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" attribute is
+   * updated to indicate whether the finding had its state changed, the
+   * finding's state remained unchanged, or if the finding was added during the
+   * compare_duration period of time that precedes the read_time. This is the
+   * time between (read_time - compare_duration) and read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all findings present
+   * at read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.Duration getCompareDuration() { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" attribute is
+   * updated to indicate whether the finding had its state changed, the
+   * finding's state remained unchanged, or if the finding was added during the
+   * compare_duration period of time that precedes the read_time. This is the
+   * time between (read_time - compare_duration) and read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all findings present
+   * at read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { + return getCompareDuration(); + } + + public static final int HAVING_FIELD_NUMBER = 6; + private volatile java.lang.Object having_; + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'finding.state' and 'state_change'
+   * are supported and requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + public java.lang.String getHaving() { + java.lang.Object ref = having_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + having_ = s; + return s; + } + } + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'finding.state' and 'state_change'
+   * are supported and requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + public com.google.protobuf.ByteString getHavingBytes() { + java.lang.Object ref = having_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + having_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 7; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The value returned by the last `GroupFindingsResponse`; indicates
+   * that this is a continuation of a prior `GroupFindings` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 7; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The value returned by the last `GroupFindingsResponse`; indicates
+   * that this is a continuation of a prior `GroupFindings` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 7; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 8; + private int pageSize_; + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 8; + */ + public int getPageSize() { + return pageSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (!getGroupByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupBy_); + } + if (readTime_ != null) { + output.writeMessage(4, getReadTime()); + } + if (compareDuration_ != null) { + output.writeMessage(5, getCompareDuration()); + } + if (!getHavingBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(8, pageSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (!getGroupByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); + } + if (readTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + } + if (compareDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); + } + if (!getHavingBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupFindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.GroupFindingsRequest other = + (com.google.cloud.securitycenter.v1.GroupFindingsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && getGroupBy().equals(other.getGroupBy()); + result = result && (hasReadTime() == other.hasReadTime()); + if (hasReadTime()) { + result = result && getReadTime().equals(other.getReadTime()); + } + result = result && (hasCompareDuration() == other.hasCompareDuration()); + if (hasCompareDuration()) { + result = result && getCompareDuration().equals(other.getCompareDuration()); + } + result = result && getHaving().equals(other.getHaving()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + GROUP_BY_FIELD_NUMBER; + hash = (53 * hash) + getGroupBy().hashCode(); + if (hasReadTime()) { + hash = (37 * hash) + READ_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReadTime().hashCode(); + } + if (hasCompareDuration()) { + hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getCompareDuration().hashCode(); + } + hash = (37 * hash) + HAVING_FIELD_NUMBER; + hash = (53 * hash) + getHaving().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GroupFindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for grouping by findings.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupFindingsRequest) + com.google.cloud.securitycenter.v1.GroupFindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, + com.google.cloud.securitycenter.v1.GroupFindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.GroupFindingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + groupBy_ = ""; + + if (readTimeBuilder_ == null) { + readTime_ = null; + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + if (compareDurationBuilder_ == null) { + compareDuration_ = null; + } else { + compareDuration_ = null; + compareDurationBuilder_ = null; + } + having_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupFindingsRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.GroupFindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupFindingsRequest build() { + com.google.cloud.securitycenter.v1.GroupFindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupFindingsRequest buildPartial() { + com.google.cloud.securitycenter.v1.GroupFindingsRequest result = + new com.google.cloud.securitycenter.v1.GroupFindingsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.groupBy_ = groupBy_; + if (readTimeBuilder_ == null) { + result.readTime_ = readTime_; + } else { + result.readTime_ = readTimeBuilder_.build(); + } + if (compareDurationBuilder_ == null) { + result.compareDuration_ = compareDuration_; + } else { + result.compareDuration_ = compareDurationBuilder_.build(); + } + result.having_ = having_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.GroupFindingsRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.GroupFindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupFindingsRequest other) { + if (other == com.google.cloud.securitycenter.v1.GroupFindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getGroupBy().isEmpty()) { + groupBy_ = other.groupBy_; + onChanged(); + } + if (other.hasReadTime()) { + mergeReadTime(other.getReadTime()); + } + if (other.hasCompareDuration()) { + mergeCompareDuration(other.getCompareDuration()); + } + if (!other.getHaving().isEmpty()) { + having_ = other.having_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.GroupFindingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.GroupFindingsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Name of the source to groupBy. Its format is
+     * "organizations/[organization_id]/sources/[source_id]". To groupBy across
+     * all sources provide a source_id of `-`. For example:
+     * organizations/123/sources/-
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the source to groupBy. Its format is
+     * "organizations/[organization_id]/sources/[source_id]". To groupBy across
+     * all sources provide a source_id of `-`. For example:
+     * organizations/123/sources/-
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the source to groupBy. Its format is
+     * "organizations/[organization_id]/sources/[source_id]". To groupBy across
+     * all sources provide a source_id of `-`. For example:
+     * organizations/123/sources/-
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the source to groupBy. Its format is
+     * "organizations/[organization_id]/sources/[source_id]". To groupBy across
+     * all sources provide a source_id of `-`. For example:
+     * organizations/123/sources/-
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the source to groupBy. Its format is
+     * "organizations/[organization_id]/sources/[source_id]". To groupBy across
+     * all sources provide a source_id of `-`. For example:
+     * organizations/123/sources/-
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Expression that defines the filter to apply across findings.
+     * The expression is a list of one or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. Examples include:
+     *  * name
+     *  * source_properties.a_property
+     *  * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `source_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Expression that defines the filter to apply across findings.
+     * The expression is a list of one or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. Examples include:
+     *  * name
+     *  * source_properties.a_property
+     *  * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `source_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Expression that defines the filter to apply across findings.
+     * The expression is a list of one or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. Examples include:
+     *  * name
+     *  * source_properties.a_property
+     *  * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `source_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines the filter to apply across findings.
+     * The expression is a list of one or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. Examples include:
+     *  * name
+     *  * source_properties.a_property
+     *  * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `source_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines the filter to apply across findings.
+     * The expression is a list of one or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. Examples include:
+     *  * name
+     *  * source_properties.a_property
+     *  * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `source_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object groupBy_ = ""; + /** + * + * + *
+     * Expression that defines what assets fields to use for grouping (including
+     * `state_change`). The string value should follow SQL syntax: comma separated
+     * list of fields. For example: "parent,resource_name".
+     * The following fields are supported:
+     * * resource_name
+     * * category
+     * * state
+     * * state_change
+     * * parent
+     * 
+ * + * string group_by = 3; + */ + public java.lang.String getGroupBy() { + java.lang.Object ref = groupBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Expression that defines what assets fields to use for grouping (including
+     * `state_change`). The string value should follow SQL syntax: comma separated
+     * list of fields. For example: "parent,resource_name".
+     * The following fields are supported:
+     * * resource_name
+     * * category
+     * * state
+     * * state_change
+     * * parent
+     * 
+ * + * string group_by = 3; + */ + public com.google.protobuf.ByteString getGroupByBytes() { + java.lang.Object ref = groupBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Expression that defines what assets fields to use for grouping (including
+     * `state_change`). The string value should follow SQL syntax: comma separated
+     * list of fields. For example: "parent,resource_name".
+     * The following fields are supported:
+     * * resource_name
+     * * category
+     * * state
+     * * state_change
+     * * parent
+     * 
+ * + * string group_by = 3; + */ + public Builder setGroupBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + groupBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines what assets fields to use for grouping (including
+     * `state_change`). The string value should follow SQL syntax: comma separated
+     * list of fields. For example: "parent,resource_name".
+     * The following fields are supported:
+     * * resource_name
+     * * category
+     * * state
+     * * state_change
+     * * parent
+     * 
+ * + * string group_by = 3; + */ + public Builder clearGroupBy() { + + groupBy_ = getDefaultInstance().getGroupBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines what assets fields to use for grouping (including
+     * `state_change`). The string value should follow SQL syntax: comma separated
+     * list of fields. For example: "parent,resource_name".
+     * The following fields are supported:
+     * * resource_name
+     * * category
+     * * state
+     * * state_change
+     * * parent
+     * 
+ * + * string group_by = 3; + */ + public Builder setGroupByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public boolean hasReadTime() { + return readTimeBuilder_ != null || readTime_ != null; + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.Timestamp getReadTime() { + if (readTimeBuilder_ == null) { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } else { + return readTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder setReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readTime_ = value; + onChanged(); + } else { + readTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (readTimeBuilder_ == null) { + readTime_ = builderForValue.build(); + onChanged(); + } else { + readTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder mergeReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (readTime_ != null) { + readTime_ = + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + } else { + readTime_ = value; + } + onChanged(); + } else { + readTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder clearReadTime() { + if (readTimeBuilder_ == null) { + readTime_ = null; + onChanged(); + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { + + onChanged(); + return getReadTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + if (readTimeBuilder_ != null) { + return readTimeBuilder_.getMessageOrBuilder(); + } else { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReadTimeFieldBuilder() { + if (readTimeBuilder_ == null) { + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); + readTime_ = null; + } + return readTimeBuilder_; + } + + private com.google.protobuf.Duration compareDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + compareDurationBuilder_; + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" attribute is
+     * updated to indicate whether the finding had its state changed, the
+     * finding's state remained unchanged, or if the finding was added during the
+     * compare_duration period of time that precedes the read_time. This is the
+     * time between (read_time - compare_duration) and read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all findings present
+     * at read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public boolean hasCompareDuration() { + return compareDurationBuilder_ != null || compareDuration_ != null; + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" attribute is
+     * updated to indicate whether the finding had its state changed, the
+     * finding's state remained unchanged, or if the finding was added during the
+     * compare_duration period of time that precedes the read_time. This is the
+     * time between (read_time - compare_duration) and read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all findings present
+     * at read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.Duration getCompareDuration() { + if (compareDurationBuilder_ == null) { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } else { + return compareDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" attribute is
+     * updated to indicate whether the finding had its state changed, the
+     * finding's state remained unchanged, or if the finding was added during the
+     * compare_duration period of time that precedes the read_time. This is the
+     * time between (read_time - compare_duration) and read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all findings present
+     * at read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder setCompareDuration(com.google.protobuf.Duration value) { + if (compareDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compareDuration_ = value; + onChanged(); + } else { + compareDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" attribute is
+     * updated to indicate whether the finding had its state changed, the
+     * finding's state remained unchanged, or if the finding was added during the
+     * compare_duration period of time that precedes the read_time. This is the
+     * time between (read_time - compare_duration) and read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all findings present
+     * at read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (compareDurationBuilder_ == null) { + compareDuration_ = builderForValue.build(); + onChanged(); + } else { + compareDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" attribute is
+     * updated to indicate whether the finding had its state changed, the
+     * finding's state remained unchanged, or if the finding was added during the
+     * compare_duration period of time that precedes the read_time. This is the
+     * time between (read_time - compare_duration) and read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all findings present
+     * at read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder mergeCompareDuration(com.google.protobuf.Duration value) { + if (compareDurationBuilder_ == null) { + if (compareDuration_ != null) { + compareDuration_ = + com.google.protobuf.Duration.newBuilder(compareDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + compareDuration_ = value; + } + onChanged(); + } else { + compareDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" attribute is
+     * updated to indicate whether the finding had its state changed, the
+     * finding's state remained unchanged, or if the finding was added during the
+     * compare_duration period of time that precedes the read_time. This is the
+     * time between (read_time - compare_duration) and read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all findings present
+     * at read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder clearCompareDuration() { + if (compareDurationBuilder_ == null) { + compareDuration_ = null; + onChanged(); + } else { + compareDuration_ = null; + compareDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" attribute is
+     * updated to indicate whether the finding had its state changed, the
+     * finding's state remained unchanged, or if the finding was added during the
+     * compare_duration period of time that precedes the read_time. This is the
+     * time between (read_time - compare_duration) and read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all findings present
+     * at read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.Duration.Builder getCompareDurationBuilder() { + + onChanged(); + return getCompareDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" attribute is
+     * updated to indicate whether the finding had its state changed, the
+     * finding's state remained unchanged, or if the finding was added during the
+     * compare_duration period of time that precedes the read_time. This is the
+     * time between (read_time - compare_duration) and read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all findings present
+     * at read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { + if (compareDurationBuilder_ != null) { + return compareDurationBuilder_.getMessageOrBuilder(); + } else { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } + } + /** + * + * + *
+     * When compare_duration is set, the GroupResult's "state_change" attribute is
+     * updated to indicate whether the finding had its state changed, the
+     * finding's state remained unchanged, or if the finding was added during the
+     * compare_duration period of time that precedes the read_time. This is the
+     * time between (read_time - compare_duration) and read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all findings present
+     * at read_time.
+     * If this field is set then `state_change` must be a specified field in
+     * `group_by`.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getCompareDurationFieldBuilder() { + if (compareDurationBuilder_ == null) { + compareDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getCompareDuration(), getParentForChildren(), isClean()); + compareDuration_ = null; + } + return compareDurationBuilder_; + } + + private java.lang.Object having_ = ""; + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'finding.state' and 'state_change'
+     * are supported and requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public java.lang.String getHaving() { + java.lang.Object ref = having_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + having_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'finding.state' and 'state_change'
+     * are supported and requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public com.google.protobuf.ByteString getHavingBytes() { + java.lang.Object ref = having_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + having_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'finding.state' and 'state_change'
+     * are supported and requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder setHaving(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + having_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'finding.state' and 'state_change'
+     * are supported and requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder clearHaving() { + + having_ = getDefaultInstance().getHaving(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'finding.state' and 'state_change'
+     * are supported and requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder setHavingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + having_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The value returned by the last `GroupFindingsResponse`; indicates
+     * that this is a continuation of a prior `GroupFindings` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 7; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The value returned by the last `GroupFindingsResponse`; indicates
+     * that this is a continuation of a prior `GroupFindings` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 7; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The value returned by the last `GroupFindingsResponse`; indicates
+     * that this is a continuation of a prior `GroupFindings` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 7; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `GroupFindingsResponse`; indicates
+     * that this is a continuation of a prior `GroupFindings` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 7; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `GroupFindingsResponse`; indicates
+     * that this is a continuation of a prior `GroupFindings` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 7; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 8; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 8; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 8; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupFindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupFindingsRequest) + private static final com.google.cloud.securitycenter.v1.GroupFindingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupFindingsRequest(); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupFindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java new file mode 100644 index 000000000000..7f6ed23a6616 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java @@ -0,0 +1,322 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GroupFindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupFindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the source to groupBy. Its format is
+   * "organizations/[organization_id]/sources/[source_id]". To groupBy across
+   * all sources provide a source_id of `-`. For example:
+   * organizations/123/sources/-
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Name of the source to groupBy. Its format is
+   * "organizations/[organization_id]/sources/[source_id]". To groupBy across
+   * all sources provide a source_id of `-`. For example:
+   * organizations/123/sources/-
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Expression that defines the filter to apply across findings.
+   * The expression is a list of one or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. Examples include:
+   *  * name
+   *  * source_properties.a_property
+   *  * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `source_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Expression that defines the filter to apply across findings.
+   * The expression is a list of one or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. Examples include:
+   *  * name
+   *  * source_properties.a_property
+   *  * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `source_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Expression that defines what assets fields to use for grouping (including
+   * `state_change`). The string value should follow SQL syntax: comma separated
+   * list of fields. For example: "parent,resource_name".
+   * The following fields are supported:
+   * * resource_name
+   * * category
+   * * state
+   * * state_change
+   * * parent
+   * 
+ * + * string group_by = 3; + */ + java.lang.String getGroupBy(); + /** + * + * + *
+   * Expression that defines what assets fields to use for grouping (including
+   * `state_change`). The string value should follow SQL syntax: comma separated
+   * list of fields. For example: "parent,resource_name".
+   * The following fields are supported:
+   * * resource_name
+   * * category
+   * * state
+   * * state_change
+   * * parent
+   * 
+ * + * string group_by = 3; + */ + com.google.protobuf.ByteString getGroupByBytes(); + + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + boolean hasReadTime(); + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + com.google.protobuf.Timestamp getReadTime(); + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); + + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" attribute is
+   * updated to indicate whether the finding had its state changed, the
+   * finding's state remained unchanged, or if the finding was added during the
+   * compare_duration period of time that precedes the read_time. This is the
+   * time between (read_time - compare_duration) and read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all findings present
+   * at read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + boolean hasCompareDuration(); + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" attribute is
+   * updated to indicate whether the finding had its state changed, the
+   * finding's state remained unchanged, or if the finding was added during the
+   * compare_duration period of time that precedes the read_time. This is the
+   * time between (read_time - compare_duration) and read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all findings present
+   * at read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + com.google.protobuf.Duration getCompareDuration(); + /** + * + * + *
+   * When compare_duration is set, the GroupResult's "state_change" attribute is
+   * updated to indicate whether the finding had its state changed, the
+   * finding's state remained unchanged, or if the finding was added during the
+   * compare_duration period of time that precedes the read_time. This is the
+   * time between (read_time - compare_duration) and read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all findings present
+   * at read_time.
+   * If this field is set then `state_change` must be a specified field in
+   * `group_by`.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder(); + + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'finding.state' and 'state_change'
+   * are supported and requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + java.lang.String getHaving(); + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'finding.state' and 'state_change'
+   * are supported and requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + com.google.protobuf.ByteString getHavingBytes(); + + /** + * + * + *
+   * The value returned by the last `GroupFindingsResponse`; indicates
+   * that this is a continuation of a prior `GroupFindings` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 7; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The value returned by the last `GroupFindingsResponse`; indicates
+   * that this is a continuation of a prior `GroupFindings` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 7; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 8; + */ + int getPageSize(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java new file mode 100644 index 000000000000..1d75196fe8a2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java @@ -0,0 +1,1492 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Response message for group by findings.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsResponse} + */ +public final class GroupFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupFindingsResponse) + GroupFindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupFindingsResponse.newBuilder() to construct. + private GroupFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroupFindingsResponse() { + groupByResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + totalSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GroupFindingsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + groupByResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + groupByResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.GroupResult.parser(), extensionRegistry)); + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, + com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); + } + + private int bitField0_; + public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; + private java.util.List groupByResults_; + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public java.util.List getGroupByResultsList() { + return groupByResults_; + } + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public java.util.List + getGroupByResultsOrBuilderList() { + return groupByResults_; + } + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public int getGroupByResultsCount() { + return groupByResults_.size(); + } + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index) { + return groupByResults_.get(index); + } + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder( + int index) { + return groupByResults_.get(index); + } + + public static final int READ_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp readTime_; + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public boolean hasReadTime() { + return readTime_ != null; + } + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp getReadTime() { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + return getReadTime(); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 4; + private int totalSize_; + /** + * + * + *
+   * The total number of results matching the query.
+   * 
+ * + * int32 total_size = 4; + */ + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < groupByResults_.size(); i++) { + output.writeMessage(1, groupByResults_.get(i)); + } + if (readTime_ != null) { + output.writeMessage(2, getReadTime()); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(4, totalSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < groupByResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); + } + if (readTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupFindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.GroupFindingsResponse other = + (com.google.cloud.securitycenter.v1.GroupFindingsResponse) obj; + + boolean result = true; + result = result && getGroupByResultsList().equals(other.getGroupByResultsList()); + result = result && (hasReadTime() == other.hasReadTime()); + if (hasReadTime()) { + result = result && getReadTime().equals(other.getReadTime()); + } + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (getTotalSize() == other.getTotalSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGroupByResultsCount() > 0) { + hash = (37 * hash) + GROUP_BY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getGroupByResultsList().hashCode(); + } + if (hasReadTime()) { + hash = (37 * hash) + READ_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReadTime().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GroupFindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for group by findings.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupFindingsResponse) + com.google.cloud.securitycenter.v1.GroupFindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, + com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.GroupFindingsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGroupByResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (groupByResultsBuilder_ == null) { + groupByResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + groupByResultsBuilder_.clear(); + } + if (readTimeBuilder_ == null) { + readTime_ = null; + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + nextPageToken_ = ""; + + totalSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupFindingsResponse getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.GroupFindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupFindingsResponse build() { + com.google.cloud.securitycenter.v1.GroupFindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupFindingsResponse buildPartial() { + com.google.cloud.securitycenter.v1.GroupFindingsResponse result = + new com.google.cloud.securitycenter.v1.GroupFindingsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (groupByResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.groupByResults_ = groupByResults_; + } else { + result.groupByResults_ = groupByResultsBuilder_.build(); + } + if (readTimeBuilder_ == null) { + result.readTime_ = readTime_; + } else { + result.readTime_ = readTimeBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.totalSize_ = totalSize_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.GroupFindingsResponse) { + return mergeFrom((com.google.cloud.securitycenter.v1.GroupFindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupFindingsResponse other) { + if (other == com.google.cloud.securitycenter.v1.GroupFindingsResponse.getDefaultInstance()) + return this; + if (groupByResultsBuilder_ == null) { + if (!other.groupByResults_.isEmpty()) { + if (groupByResults_.isEmpty()) { + groupByResults_ = other.groupByResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGroupByResultsIsMutable(); + groupByResults_.addAll(other.groupByResults_); + } + onChanged(); + } + } else { + if (!other.groupByResults_.isEmpty()) { + if (groupByResultsBuilder_.isEmpty()) { + groupByResultsBuilder_.dispose(); + groupByResultsBuilder_ = null; + groupByResults_ = other.groupByResults_; + bitField0_ = (bitField0_ & ~0x00000001); + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupByResultsFieldBuilder() + : null; + } else { + groupByResultsBuilder_.addAllMessages(other.groupByResults_); + } + } + } + if (other.hasReadTime()) { + mergeReadTime(other.getReadTime()); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.GroupFindingsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.GroupFindingsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List groupByResults_ = + java.util.Collections.emptyList(); + + private void ensureGroupByResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + groupByResults_ = + new java.util.ArrayList( + groupByResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.GroupResult, + com.google.cloud.securitycenter.v1.GroupResult.Builder, + com.google.cloud.securitycenter.v1.GroupResultOrBuilder> + groupByResultsBuilder_; + + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public java.util.List getGroupByResultsList() { + if (groupByResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groupByResults_); + } else { + return groupByResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public int getGroupByResultsCount() { + if (groupByResultsBuilder_ == null) { + return groupByResults_.size(); + } else { + return groupByResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index) { + if (groupByResultsBuilder_ == null) { + return groupByResults_.get(index); + } else { + return groupByResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder setGroupByResults( + int index, com.google.cloud.securitycenter.v1.GroupResult value) { + if (groupByResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupByResultsIsMutable(); + groupByResults_.set(index, value); + onChanged(); + } else { + groupByResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder setGroupByResults( + int index, com.google.cloud.securitycenter.v1.GroupResult.Builder builderForValue) { + if (groupByResultsBuilder_ == null) { + ensureGroupByResultsIsMutable(); + groupByResults_.set(index, builderForValue.build()); + onChanged(); + } else { + groupByResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder addGroupByResults(com.google.cloud.securitycenter.v1.GroupResult value) { + if (groupByResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupByResultsIsMutable(); + groupByResults_.add(value); + onChanged(); + } else { + groupByResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder addGroupByResults( + int index, com.google.cloud.securitycenter.v1.GroupResult value) { + if (groupByResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupByResultsIsMutable(); + groupByResults_.add(index, value); + onChanged(); + } else { + groupByResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder addGroupByResults( + com.google.cloud.securitycenter.v1.GroupResult.Builder builderForValue) { + if (groupByResultsBuilder_ == null) { + ensureGroupByResultsIsMutable(); + groupByResults_.add(builderForValue.build()); + onChanged(); + } else { + groupByResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder addGroupByResults( + int index, com.google.cloud.securitycenter.v1.GroupResult.Builder builderForValue) { + if (groupByResultsBuilder_ == null) { + ensureGroupByResultsIsMutable(); + groupByResults_.add(index, builderForValue.build()); + onChanged(); + } else { + groupByResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder addAllGroupByResults( + java.lang.Iterable values) { + if (groupByResultsBuilder_ == null) { + ensureGroupByResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_); + onChanged(); + } else { + groupByResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder clearGroupByResults() { + if (groupByResultsBuilder_ == null) { + groupByResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + groupByResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public Builder removeGroupByResults(int index) { + if (groupByResultsBuilder_ == null) { + ensureGroupByResultsIsMutable(); + groupByResults_.remove(index); + onChanged(); + } else { + groupByResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResult.Builder getGroupByResultsBuilder( + int index) { + return getGroupByResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder( + int index) { + if (groupByResultsBuilder_ == null) { + return groupByResults_.get(index); + } else { + return groupByResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public java.util.List + getGroupByResultsOrBuilderList() { + if (groupByResultsBuilder_ != null) { + return groupByResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groupByResults_); + } + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder() { + return getGroupByResultsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance()); + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder( + int index) { + return getGroupByResultsFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance()); + } + /** + * + * + *
+     * Group results. There exists an element for each existing unique
+     * combination of property/values. The element contains a count for the number
+     * of times those specific property/values appear.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + public java.util.List + getGroupByResultsBuilderList() { + return getGroupByResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.GroupResult, + com.google.cloud.securitycenter.v1.GroupResult.Builder, + com.google.cloud.securitycenter.v1.GroupResultOrBuilder> + getGroupByResultsFieldBuilder() { + if (groupByResultsBuilder_ == null) { + groupByResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.GroupResult, + com.google.cloud.securitycenter.v1.GroupResult.Builder, + com.google.cloud.securitycenter.v1.GroupResultOrBuilder>( + groupByResults_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + groupByResults_ = null; + } + return groupByResultsBuilder_; + } + + private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public boolean hasReadTime() { + return readTimeBuilder_ != null || readTime_ != null; + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp getReadTime() { + if (readTimeBuilder_ == null) { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } else { + return readTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder setReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readTime_ = value; + onChanged(); + } else { + readTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (readTimeBuilder_ == null) { + readTime_ = builderForValue.build(); + onChanged(); + } else { + readTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder mergeReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (readTime_ != null) { + readTime_ = + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + } else { + readTime_ = value; + } + onChanged(); + } else { + readTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder clearReadTime() { + if (readTimeBuilder_ == null) { + readTime_ = null; + onChanged(); + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { + + onChanged(); + return getReadTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + if (readTimeBuilder_ != null) { + return readTimeBuilder_.getMessageOrBuilder(); + } else { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + } + /** + * + * + *
+     * Time used for executing the groupBy request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReadTimeFieldBuilder() { + if (readTimeBuilder_ == null) { + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); + readTime_ = null; + } + return readTimeBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private int totalSize_; + /** + * + * + *
+     * The total number of results matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public int getTotalSize() { + return totalSize_; + } + /** + * + * + *
+     * The total number of results matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of results matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public Builder clearTotalSize() { + + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupFindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupFindingsResponse) + private static final com.google.cloud.securitycenter.v1.GroupFindingsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupFindingsResponse(); + } + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupFindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java new file mode 100644 index 000000000000..89a012a7db0d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GroupFindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupFindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + java.util.List getGroupByResultsList(); + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index); + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + int getGroupByResultsCount(); + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + java.util.List + getGroupByResultsOrBuilderList(); + /** + * + * + *
+   * Group results. There exists an element for each existing unique
+   * combination of property/values. The element contains a count for the number
+   * of times those specific property/values appear.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; + */ + com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(int index); + + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + boolean hasReadTime(); + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + com.google.protobuf.Timestamp getReadTime(); + /** + * + * + *
+   * Time used for executing the groupBy request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * The total number of results matching the query.
+   * 
+ * + * int32 total_size = 4; + */ + int getTotalSize(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java new file mode 100644 index 000000000000..10bb48d35108 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java @@ -0,0 +1,847 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Result containing the properties and count of a groupBy request.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupResult} + */ +public final class GroupResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupResult) + GroupResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupResult.newBuilder() to construct. + private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroupResult() { + count_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GroupResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + properties_ = + com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); + break; + } + case 16: + { + count_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupResult.class, + com.google.cloud.securitycenter.v1.GroupResult.Builder.class); + } + + private int bitField0_; + public static final int PROPERTIES_FIELD_NUMBER = 1; + + private static final class PropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField + internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + /** + * + * + *
+   * Properties matching the groupBy fields in the request.
+   * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetProperties().getMap().containsKey(key); + } + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + /** + * + * + *
+   * Properties matching the groupBy fields in the request.
+   * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + /** + * + * + *
+   * Properties matching the groupBy fields in the request.
+   * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public com.google.protobuf.Value getPropertiesOrDefault( + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Properties matching the groupBy fields in the request.
+   * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int COUNT_FIELD_NUMBER = 2; + private long count_; + /** + * + * + *
+   * Total count of resources for the given properties.
+   * 
+ * + * int64 count = 2; + */ + public long getCount() { + return count_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 1); + if (count_ != 0L) { + output.writeInt64(2, count_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties__); + } + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupResult)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.GroupResult other = + (com.google.cloud.securitycenter.v1.GroupResult) obj; + + boolean result = true; + result = result && internalGetProperties().equals(other.internalGetProperties()); + result = result && (getCount() == other.getCount()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetProperties().getMap().isEmpty()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetProperties().hashCode(); + } + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Result containing the properties and count of a groupBy request.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupResult) + com.google.cloud.securitycenter.v1.GroupResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupResult.class, + com.google.cloud.securitycenter.v1.GroupResult.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.GroupResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableProperties().clear(); + count_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupResult getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupResult build() { + com.google.cloud.securitycenter.v1.GroupResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupResult buildPartial() { + com.google.cloud.securitycenter.v1.GroupResult result = + new com.google.cloud.securitycenter.v1.GroupResult(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.properties_ = internalGetProperties(); + result.properties_.makeImmutable(); + result.count_ = count_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.GroupResult) { + return mergeFrom((com.google.cloud.securitycenter.v1.GroupResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupResult other) { + if (other == com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance()) return this; + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.GroupResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.securitycenter.v1.GroupResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField + internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + private com.google.protobuf.MapField + internalGetMutableProperties() { + onChanged(); + ; + if (properties_ == null) { + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + if (!properties_.isMutable()) { + properties_ = properties_.copy(); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + /** + * + * + *
+     * Properties matching the groupBy fields in the request.
+     * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetProperties().getMap().containsKey(key); + } + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + /** + * + * + *
+     * Properties matching the groupBy fields in the request.
+     * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + /** + * + * + *
+     * Properties matching the groupBy fields in the request.
+     * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public com.google.protobuf.Value getPropertiesOrDefault( + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Properties matching the groupBy fields in the request.
+     * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearProperties() { + internalGetMutableProperties().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Properties matching the groupBy fields in the request.
+     * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableProperties().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableProperties() { + return internalGetMutableProperties().getMutableMap(); + } + /** + * + * + *
+     * Properties matching the groupBy fields in the request.
+     * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public Builder putProperties(java.lang.String key, com.google.protobuf.Value value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableProperties().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Properties matching the groupBy fields in the request.
+     * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); + return this; + } + + private long count_; + /** + * + * + *
+     * Total count of resources for the given properties.
+     * 
+ * + * int64 count = 2; + */ + public long getCount() { + return count_; + } + /** + * + * + *
+     * Total count of resources for the given properties.
+     * 
+ * + * int64 count = 2; + */ + public Builder setCount(long value) { + + count_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Total count of resources for the given properties.
+     * 
+ * + * int64 count = 2; + */ + public Builder clearCount() { + + count_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupResult) + private static final com.google.cloud.securitycenter.v1.GroupResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupResult(); + } + + public static com.google.cloud.securitycenter.v1.GroupResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java new file mode 100644 index 000000000000..fbdd393c5a4d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GroupResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Properties matching the groupBy fields in the request.
+   * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + int getPropertiesCount(); + /** + * + * + *
+   * Properties matching the groupBy fields in the request.
+   * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getProperties(); + /** + * + * + *
+   * Properties matching the groupBy fields in the request.
+   * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + java.util.Map getPropertiesMap(); + /** + * + * + *
+   * Properties matching the groupBy fields in the request.
+   * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + com.google.protobuf.Value getPropertiesOrDefault( + java.lang.String key, com.google.protobuf.Value defaultValue); + /** + * + * + *
+   * Properties matching the groupBy fields in the request.
+   * 
+ * + * map<string, .google.protobuf.Value> properties = 1; + */ + com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Total count of resources for the given properties.
+   * 
+ * + * int64 count = 2; + */ + long getCount(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java new file mode 100644 index 000000000000..89f6093979cf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java @@ -0,0 +1,2623 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for listing assets.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsRequest} + */ +public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListAssetsRequest) + ListAssetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAssetsRequest.newBuilder() to construct. + private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAssetsRequest() { + parent_ = ""; + filter_ = ""; + orderBy_ = ""; + having_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListAssetsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + having_ = s; + break; + } + case 58: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 72: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListAssetsRequest.class, + com.google.cloud.securitycenter.v1.ListAssetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Name of the organization assets should belong to. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the organization assets should belong to. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Expression that defines the filter to apply across assets.
+   * The expression is a list of zero or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. The fields map to those
+   * defined in the Asset resource. Examples include:
+   * * name
+   * * security_center_properties.resource_name
+   * * resource_properties.a_property
+   * * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `resource_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Expression that defines the filter to apply across assets.
+   * The expression is a list of zero or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. The fields map to those
+   * defined in the Asset resource. Examples include:
+   * * name
+   * * security_center_properties.resource_name
+   * * resource_properties.a_property
+   * * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `resource_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 3; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Expression that defines what fields and order to use for sorting. The
+   * string value should follow SQL syntax: comma separated list of fields. For
+   * example: "name,resource_properties.a_property". The default sorting order
+   * is ascending. To specify descending order for a field, a suffix " desc"
+   * should be appended to the field name. For example: "name
+   * desc,resource_properties.a_property". Redundant space characters in the
+   * syntax are insignificant. "name desc,resource_properties.a_property" and "
+   * name     desc  ,   resource_properties.a_property  " are equivalent.
+   * 
+ * + * string order_by = 3; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Expression that defines what fields and order to use for sorting. The
+   * string value should follow SQL syntax: comma separated list of fields. For
+   * example: "name,resource_properties.a_property". The default sorting order
+   * is ascending. To specify descending order for a field, a suffix " desc"
+   * should be appended to the field name. For example: "name
+   * desc,resource_properties.a_property". Redundant space characters in the
+   * syntax are insignificant. "name desc,resource_properties.a_property" and "
+   * name     desc  ,   resource_properties.a_property  " are equivalent.
+   * 
+ * + * string order_by = 3; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp readTime_; + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public boolean hasReadTime() { + return readTime_ != null; + } + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.Timestamp getReadTime() { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + return getReadTime(); + } + + public static final int COMPARE_DURATION_FIELD_NUMBER = 5; + private com.google.protobuf.Duration compareDuration_; + /** + * + * + *
+   * When compare_duration is set, the ListAssetsResult's "state_change"
+   * attribute is updated to indicate whether the asset was added, removed, or
+   * remained present during the compare_duration period of time that precedes
+   * the read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at read_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at read_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all assets present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public boolean hasCompareDuration() { + return compareDuration_ != null; + } + /** + * + * + *
+   * When compare_duration is set, the ListAssetsResult's "state_change"
+   * attribute is updated to indicate whether the asset was added, removed, or
+   * remained present during the compare_duration period of time that precedes
+   * the read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at read_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at read_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all assets present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.Duration getCompareDuration() { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } + /** + * + * + *
+   * When compare_duration is set, the ListAssetsResult's "state_change"
+   * attribute is updated to indicate whether the asset was added, removed, or
+   * remained present during the compare_duration period of time that precedes
+   * the read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at read_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at read_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all assets present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { + return getCompareDuration(); + } + + public static final int HAVING_FIELD_NUMBER = 6; + private volatile java.lang.Object having_; + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'state_change' is supported and
+   * requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + public java.lang.String getHaving() { + java.lang.Object ref = having_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + having_ = s; + return s; + } + } + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'state_change' is supported and
+   * requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + public com.google.protobuf.ByteString getHavingBytes() { + java.lang.Object ref = having_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + having_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_MASK_FIELD_NUMBER = 7; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Optional.
+   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 8; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The value returned by the last `ListAssetsResponse`; indicates
+   * that this is a continuation of a prior `ListAssets` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 8; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The value returned by the last `ListAssetsResponse`; indicates
+   * that this is a continuation of a prior `ListAssets` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 8; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 9; + private int pageSize_; + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 9; + */ + public int getPageSize() { + return pageSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, orderBy_); + } + if (readTime_ != null) { + output.writeMessage(4, getReadTime()); + } + if (compareDuration_ != null) { + output.writeMessage(5, getCompareDuration()); + } + if (!getHavingBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); + } + if (fieldMask_ != null) { + output.writeMessage(7, getFieldMask()); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(9, pageSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); + } + if (readTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + } + if (compareDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); + } + if (!getHavingBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.ListAssetsRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListAssetsRequest other = + (com.google.cloud.securitycenter.v1.ListAssetsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && getOrderBy().equals(other.getOrderBy()); + result = result && (hasReadTime() == other.hasReadTime()); + if (hasReadTime()) { + result = result && getReadTime().equals(other.getReadTime()); + } + result = result && (hasCompareDuration() == other.hasCompareDuration()); + if (hasCompareDuration()) { + result = result && getCompareDuration().equals(other.getCompareDuration()); + } + result = result && getHaving().equals(other.getHaving()); + result = result && (hasFieldMask() == other.hasFieldMask()); + if (hasFieldMask()) { + result = result && getFieldMask().equals(other.getFieldMask()); + } + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasReadTime()) { + hash = (37 * hash) + READ_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReadTime().hashCode(); + } + if (hasCompareDuration()) { + hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getCompareDuration().hashCode(); + } + hash = (37 * hash) + HAVING_FIELD_NUMBER; + hash = (53 * hash) + getHaving().hashCode(); + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListAssetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for listing assets.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListAssetsRequest) + com.google.cloud.securitycenter.v1.ListAssetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListAssetsRequest.class, + com.google.cloud.securitycenter.v1.ListAssetsRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.ListAssetsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + if (readTimeBuilder_ == null) { + readTime_ = null; + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + if (compareDurationBuilder_ == null) { + compareDuration_ = null; + } else { + compareDuration_ = null; + compareDurationBuilder_ = null; + } + having_ = ""; + + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + pageToken_ = ""; + + pageSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListAssetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsRequest build() { + com.google.cloud.securitycenter.v1.ListAssetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsRequest buildPartial() { + com.google.cloud.securitycenter.v1.ListAssetsRequest result = + new com.google.cloud.securitycenter.v1.ListAssetsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + if (readTimeBuilder_ == null) { + result.readTime_ = readTime_; + } else { + result.readTime_ = readTimeBuilder_.build(); + } + if (compareDurationBuilder_ == null) { + result.compareDuration_ = compareDuration_; + } else { + result.compareDuration_ = compareDurationBuilder_.build(); + } + result.having_ = having_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.ListAssetsRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsRequest other) { + if (other == com.google.cloud.securitycenter.v1.ListAssetsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.hasReadTime()) { + mergeReadTime(other.getReadTime()); + } + if (other.hasCompareDuration()) { + mergeCompareDuration(other.getCompareDuration()); + } + if (!other.getHaving().isEmpty()) { + having_ = other.having_; + onChanged(); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.ListAssetsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.ListAssetsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Name of the organization assets should belong to. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the organization assets should belong to. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the organization assets should belong to. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the organization assets should belong to. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the organization assets should belong to. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Expression that defines the filter to apply across assets.
+     * The expression is a list of zero or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. The fields map to those
+     * defined in the Asset resource. Examples include:
+     * * name
+     * * security_center_properties.resource_name
+     * * resource_properties.a_property
+     * * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `resource_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Expression that defines the filter to apply across assets.
+     * The expression is a list of zero or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. The fields map to those
+     * defined in the Asset resource. Examples include:
+     * * name
+     * * security_center_properties.resource_name
+     * * resource_properties.a_property
+     * * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `resource_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Expression that defines the filter to apply across assets.
+     * The expression is a list of zero or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. The fields map to those
+     * defined in the Asset resource. Examples include:
+     * * name
+     * * security_center_properties.resource_name
+     * * resource_properties.a_property
+     * * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `resource_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines the filter to apply across assets.
+     * The expression is a list of zero or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. The fields map to those
+     * defined in the Asset resource. Examples include:
+     * * name
+     * * security_center_properties.resource_name
+     * * resource_properties.a_property
+     * * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `resource_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines the filter to apply across assets.
+     * The expression is a list of zero or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. The fields map to those
+     * defined in the Asset resource. Examples include:
+     * * name
+     * * security_center_properties.resource_name
+     * * resource_properties.a_property
+     * * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `resource_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Expression that defines what fields and order to use for sorting. The
+     * string value should follow SQL syntax: comma separated list of fields. For
+     * example: "name,resource_properties.a_property". The default sorting order
+     * is ascending. To specify descending order for a field, a suffix " desc"
+     * should be appended to the field name. For example: "name
+     * desc,resource_properties.a_property". Redundant space characters in the
+     * syntax are insignificant. "name desc,resource_properties.a_property" and "
+     * name     desc  ,   resource_properties.a_property  " are equivalent.
+     * 
+ * + * string order_by = 3; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Expression that defines what fields and order to use for sorting. The
+     * string value should follow SQL syntax: comma separated list of fields. For
+     * example: "name,resource_properties.a_property". The default sorting order
+     * is ascending. To specify descending order for a field, a suffix " desc"
+     * should be appended to the field name. For example: "name
+     * desc,resource_properties.a_property". Redundant space characters in the
+     * syntax are insignificant. "name desc,resource_properties.a_property" and "
+     * name     desc  ,   resource_properties.a_property  " are equivalent.
+     * 
+ * + * string order_by = 3; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Expression that defines what fields and order to use for sorting. The
+     * string value should follow SQL syntax: comma separated list of fields. For
+     * example: "name,resource_properties.a_property". The default sorting order
+     * is ascending. To specify descending order for a field, a suffix " desc"
+     * should be appended to the field name. For example: "name
+     * desc,resource_properties.a_property". Redundant space characters in the
+     * syntax are insignificant. "name desc,resource_properties.a_property" and "
+     * name     desc  ,   resource_properties.a_property  " are equivalent.
+     * 
+ * + * string order_by = 3; + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines what fields and order to use for sorting. The
+     * string value should follow SQL syntax: comma separated list of fields. For
+     * example: "name,resource_properties.a_property". The default sorting order
+     * is ascending. To specify descending order for a field, a suffix " desc"
+     * should be appended to the field name. For example: "name
+     * desc,resource_properties.a_property". Redundant space characters in the
+     * syntax are insignificant. "name desc,resource_properties.a_property" and "
+     * name     desc  ,   resource_properties.a_property  " are equivalent.
+     * 
+ * + * string order_by = 3; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines what fields and order to use for sorting. The
+     * string value should follow SQL syntax: comma separated list of fields. For
+     * example: "name,resource_properties.a_property". The default sorting order
+     * is ascending. To specify descending order for a field, a suffix " desc"
+     * should be appended to the field name. For example: "name
+     * desc,resource_properties.a_property". Redundant space characters in the
+     * syntax are insignificant. "name desc,resource_properties.a_property" and "
+     * name     desc  ,   resource_properties.a_property  " are equivalent.
+     * 
+ * + * string order_by = 3; + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public boolean hasReadTime() { + return readTimeBuilder_ != null || readTime_ != null; + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.Timestamp getReadTime() { + if (readTimeBuilder_ == null) { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } else { + return readTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder setReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readTime_ = value; + onChanged(); + } else { + readTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (readTimeBuilder_ == null) { + readTime_ = builderForValue.build(); + onChanged(); + } else { + readTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder mergeReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (readTime_ != null) { + readTime_ = + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + } else { + readTime_ = value; + } + onChanged(); + } else { + readTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder clearReadTime() { + if (readTimeBuilder_ == null) { + readTime_ = null; + onChanged(); + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { + + onChanged(); + return getReadTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + if (readTimeBuilder_ != null) { + return readTimeBuilder_.getMessageOrBuilder(); + } else { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + } + /** + * + * + *
+     * Time used as a reference point when filtering assets. The filter is limited
+     * to assets existing at the supplied time and their values are those at that
+     * specific time. Absence of this field will default to the API's version of
+     * NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReadTimeFieldBuilder() { + if (readTimeBuilder_ == null) { + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); + readTime_ = null; + } + return readTimeBuilder_; + } + + private com.google.protobuf.Duration compareDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + compareDurationBuilder_; + /** + * + * + *
+     * When compare_duration is set, the ListAssetsResult's "state_change"
+     * attribute is updated to indicate whether the asset was added, removed, or
+     * remained present during the compare_duration period of time that precedes
+     * the read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at read_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at read_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all assets present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public boolean hasCompareDuration() { + return compareDurationBuilder_ != null || compareDuration_ != null; + } + /** + * + * + *
+     * When compare_duration is set, the ListAssetsResult's "state_change"
+     * attribute is updated to indicate whether the asset was added, removed, or
+     * remained present during the compare_duration period of time that precedes
+     * the read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at read_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at read_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all assets present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.Duration getCompareDuration() { + if (compareDurationBuilder_ == null) { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } else { + return compareDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * When compare_duration is set, the ListAssetsResult's "state_change"
+     * attribute is updated to indicate whether the asset was added, removed, or
+     * remained present during the compare_duration period of time that precedes
+     * the read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at read_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at read_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all assets present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder setCompareDuration(com.google.protobuf.Duration value) { + if (compareDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compareDuration_ = value; + onChanged(); + } else { + compareDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the ListAssetsResult's "state_change"
+     * attribute is updated to indicate whether the asset was added, removed, or
+     * remained present during the compare_duration period of time that precedes
+     * the read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at read_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at read_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all assets present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (compareDurationBuilder_ == null) { + compareDuration_ = builderForValue.build(); + onChanged(); + } else { + compareDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the ListAssetsResult's "state_change"
+     * attribute is updated to indicate whether the asset was added, removed, or
+     * remained present during the compare_duration period of time that precedes
+     * the read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at read_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at read_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all assets present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder mergeCompareDuration(com.google.protobuf.Duration value) { + if (compareDurationBuilder_ == null) { + if (compareDuration_ != null) { + compareDuration_ = + com.google.protobuf.Duration.newBuilder(compareDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + compareDuration_ = value; + } + onChanged(); + } else { + compareDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the ListAssetsResult's "state_change"
+     * attribute is updated to indicate whether the asset was added, removed, or
+     * remained present during the compare_duration period of time that precedes
+     * the read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at read_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at read_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all assets present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder clearCompareDuration() { + if (compareDurationBuilder_ == null) { + compareDuration_ = null; + onChanged(); + } else { + compareDuration_ = null; + compareDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the ListAssetsResult's "state_change"
+     * attribute is updated to indicate whether the asset was added, removed, or
+     * remained present during the compare_duration period of time that precedes
+     * the read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at read_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at read_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all assets present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.Duration.Builder getCompareDurationBuilder() { + + onChanged(); + return getCompareDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * When compare_duration is set, the ListAssetsResult's "state_change"
+     * attribute is updated to indicate whether the asset was added, removed, or
+     * remained present during the compare_duration period of time that precedes
+     * the read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at read_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at read_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all assets present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { + if (compareDurationBuilder_ != null) { + return compareDurationBuilder_.getMessageOrBuilder(); + } else { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } + } + /** + * + * + *
+     * When compare_duration is set, the ListAssetsResult's "state_change"
+     * attribute is updated to indicate whether the asset was added, removed, or
+     * remained present during the compare_duration period of time that precedes
+     * the read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence of the asset at the
+     * two points in time. Intermediate state changes between the two times don't
+     * affect the result. For example, the results aren't affected if the asset is
+     * removed and re-created again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "ADDED":   indicates that the asset was not present at the start of
+     *                compare_duration, but present at read_time.
+     * * "REMOVED": indicates that the asset was present at the start of
+     *                compare_duration, but not present at read_time.
+     * * "ACTIVE":  indicates that the asset was present at both the
+     *                start and the end of the time period defined by
+     *                compare_duration and read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED",  which will be the state_change set for all assets present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getCompareDurationFieldBuilder() { + if (compareDurationBuilder_ == null) { + compareDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getCompareDuration(), getParentForChildren(), isClean()); + compareDuration_ = null; + } + return compareDurationBuilder_; + } + + private java.lang.Object having_ = ""; + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'state_change' is supported and
+     * requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public java.lang.String getHaving() { + java.lang.Object ref = having_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + having_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'state_change' is supported and
+     * requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public com.google.protobuf.ByteString getHavingBytes() { + java.lang.Object ref = having_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + having_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'state_change' is supported and
+     * requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder setHaving(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + having_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'state_change' is supported and
+     * requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder clearHaving() { + + having_ = getDefaultInstance().getHaving(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'state_change' is supported and
+     * requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder setHavingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + having_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Optional.
+     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The value returned by the last `ListAssetsResponse`; indicates
+     * that this is a continuation of a prior `ListAssets` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 8; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The value returned by the last `ListAssetsResponse`; indicates
+     * that this is a continuation of a prior `ListAssets` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 8; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The value returned by the last `ListAssetsResponse`; indicates
+     * that this is a continuation of a prior `ListAssets` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 8; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `ListAssetsResponse`; indicates
+     * that this is a continuation of a prior `ListAssets` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 8; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `ListAssetsResponse`; indicates
+     * that this is a continuation of a prior `ListAssets` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 8; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 9; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 9; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 9; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListAssetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListAssetsRequest) + private static final com.google.cloud.securitycenter.v1.ListAssetsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListAssetsRequest(); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java new file mode 100644 index 000000000000..f66ea585751b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java @@ -0,0 +1,357 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListAssetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListAssetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the organization assets should belong to. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Name of the organization assets should belong to. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Expression that defines the filter to apply across assets.
+   * The expression is a list of zero or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. The fields map to those
+   * defined in the Asset resource. Examples include:
+   * * name
+   * * security_center_properties.resource_name
+   * * resource_properties.a_property
+   * * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `resource_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Expression that defines the filter to apply across assets.
+   * The expression is a list of zero or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. The fields map to those
+   * defined in the Asset resource. Examples include:
+   * * name
+   * * security_center_properties.resource_name
+   * * resource_properties.a_property
+   * * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `resource_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Expression that defines what fields and order to use for sorting. The
+   * string value should follow SQL syntax: comma separated list of fields. For
+   * example: "name,resource_properties.a_property". The default sorting order
+   * is ascending. To specify descending order for a field, a suffix " desc"
+   * should be appended to the field name. For example: "name
+   * desc,resource_properties.a_property". Redundant space characters in the
+   * syntax are insignificant. "name desc,resource_properties.a_property" and "
+   * name     desc  ,   resource_properties.a_property  " are equivalent.
+   * 
+ * + * string order_by = 3; + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Expression that defines what fields and order to use for sorting. The
+   * string value should follow SQL syntax: comma separated list of fields. For
+   * example: "name,resource_properties.a_property". The default sorting order
+   * is ascending. To specify descending order for a field, a suffix " desc"
+   * should be appended to the field name. For example: "name
+   * desc,resource_properties.a_property". Redundant space characters in the
+   * syntax are insignificant. "name desc,resource_properties.a_property" and "
+   * name     desc  ,   resource_properties.a_property  " are equivalent.
+   * 
+ * + * string order_by = 3; + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + boolean hasReadTime(); + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + com.google.protobuf.Timestamp getReadTime(); + /** + * + * + *
+   * Time used as a reference point when filtering assets. The filter is limited
+   * to assets existing at the supplied time and their values are those at that
+   * specific time. Absence of this field will default to the API's version of
+   * NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); + + /** + * + * + *
+   * When compare_duration is set, the ListAssetsResult's "state_change"
+   * attribute is updated to indicate whether the asset was added, removed, or
+   * remained present during the compare_duration period of time that precedes
+   * the read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at read_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at read_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all assets present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + boolean hasCompareDuration(); + /** + * + * + *
+   * When compare_duration is set, the ListAssetsResult's "state_change"
+   * attribute is updated to indicate whether the asset was added, removed, or
+   * remained present during the compare_duration period of time that precedes
+   * the read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at read_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at read_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all assets present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + com.google.protobuf.Duration getCompareDuration(); + /** + * + * + *
+   * When compare_duration is set, the ListAssetsResult's "state_change"
+   * attribute is updated to indicate whether the asset was added, removed, or
+   * remained present during the compare_duration period of time that precedes
+   * the read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence of the asset at the
+   * two points in time. Intermediate state changes between the two times don't
+   * affect the result. For example, the results aren't affected if the asset is
+   * removed and re-created again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "ADDED":   indicates that the asset was not present at the start of
+   *                compare_duration, but present at read_time.
+   * * "REMOVED": indicates that the asset was present at the start of
+   *                compare_duration, but not present at read_time.
+   * * "ACTIVE":  indicates that the asset was present at both the
+   *                start and the end of the time period defined by
+   *                compare_duration and read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED",  which will be the state_change set for all assets present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder(); + + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'state_change' is supported and
+   * requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + java.lang.String getHaving(); + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'state_change' is supported and
+   * requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + com.google.protobuf.ByteString getHavingBytes(); + + /** + * + * + *
+   * Optional.
+   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); + + /** + * + * + *
+   * The value returned by the last `ListAssetsResponse`; indicates
+   * that this is a continuation of a prior `ListAssets` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 8; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The value returned by the last `ListAssetsResponse`; indicates
+   * that this is a continuation of a prior `ListAssets` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 8; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 9; + */ + int getPageSize(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java new file mode 100644 index 000000000000..0522e4f487f6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java @@ -0,0 +1,2640 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Response message for listing assets.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse} + */ +public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListAssetsResponse) + ListAssetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAssetsResponse.newBuilder() to construct. + private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAssetsResponse() { + listAssetsResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + totalSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListAssetsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + listAssetsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult>(); + mutable_bitField0_ |= 0x00000001; + } + listAssetsResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .parser(), + extensionRegistry)); + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListAssetsResponse.class, + com.google.cloud.securitycenter.v1.ListAssetsResponse.Builder.class); + } + + public interface ListAssetsResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Asset matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + boolean hasAsset(); + /** + * + * + *
+     * Asset matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + com.google.cloud.securitycenter.v1.Asset getAsset(); + /** + * + * + *
+     * Asset matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder(); + + /** + * + * + *
+     * State change of the asset between the points in time.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + */ + int getStateChangeValue(); + /** + * + * + *
+     * State change of the asset between the points in time.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + */ + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + getStateChange(); + } + /** + * + * + *
+   * Result containing the Asset and its State.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult} + */ + public static final class ListAssetsResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) + ListAssetsResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAssetsResult.newBuilder() to construct. + private ListAssetsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAssetsResult() { + stateChange_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListAssetsResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycenter.v1.Asset.Builder subBuilder = null; + if (asset_ != null) { + subBuilder = asset_.toBuilder(); + } + asset_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Asset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(asset_); + asset_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + int rawValue = input.readEnum(); + + stateChange_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.class, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder.class); + } + + /** + * + * + *
+     * The change in state of the asset.
+     * When querying across two points in time this describes
+     * the change between the two points: ADDED, REMOVED, or ACTIVE.
+     * If there was no compare_duration supplied in the request the state change
+     * will be: UNUSED
+     * 
+ * + * Protobuf enum {@code + * google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange} + */ + public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * State change is unused, this is the canonical default for this enum.
+       * 
+ * + * UNUSED = 0; + */ + UNUSED(0), + /** + * + * + *
+       * Asset was added between the points in time.
+       * 
+ * + * ADDED = 1; + */ + ADDED(1), + /** + * + * + *
+       * Asset was removed between the points in time.
+       * 
+ * + * REMOVED = 2; + */ + REMOVED(2), + /** + * + * + *
+       * Asset was present at both point(s) in time.
+       * 
+ * + * ACTIVE = 3; + */ + ACTIVE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * State change is unused, this is the canonical default for this enum.
+       * 
+ * + * UNUSED = 0; + */ + public static final int UNUSED_VALUE = 0; + /** + * + * + *
+       * Asset was added between the points in time.
+       * 
+ * + * ADDED = 1; + */ + public static final int ADDED_VALUE = 1; + /** + * + * + *
+       * Asset was removed between the points in time.
+       * 
+ * + * REMOVED = 2; + */ + public static final int REMOVED_VALUE = 2; + /** + * + * + *
+       * Asset was present at both point(s) in time.
+       * 
+ * + * ACTIVE = 3; + */ + public static final int ACTIVE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static StateChange valueOf(int value) { + return forNumber(value); + } + + public static StateChange forNumber(int value) { + switch (value) { + case 0: + return UNUSED; + case 1: + return ADDED; + case 2: + return REMOVED; + case 3: + return ACTIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StateChange findValueByNumber(int number) { + return StateChange.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StateChange[] VALUES = values(); + + public static StateChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private StateChange(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange) + } + + public static final int ASSET_FIELD_NUMBER = 1; + private com.google.cloud.securitycenter.v1.Asset asset_; + /** + * + * + *
+     * Asset matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public boolean hasAsset() { + return asset_ != null; + } + /** + * + * + *
+     * Asset matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public com.google.cloud.securitycenter.v1.Asset getAsset() { + return asset_ == null + ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() + : asset_; + } + /** + * + * + *
+     * Asset matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { + return getAsset(); + } + + public static final int STATE_CHANGE_FIELD_NUMBER = 2; + private int stateChange_; + /** + * + * + *
+     * State change of the asset between the points in time.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + */ + public int getStateChangeValue() { + return stateChange_; + } + /** + * + * + *
+     * State change of the asset between the points in time.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + getStateChange() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange result = + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (asset_ != null) { + output.writeMessage(1, getAsset()); + } + if (stateChange_ + != com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .UNUSED + .getNumber()) { + output.writeEnum(2, stateChange_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (asset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAsset()); + } + if (stateChange_ + != com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .UNUSED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other = + (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) obj; + + boolean result = true; + result = result && (hasAsset() == other.hasAsset()); + if (hasAsset()) { + result = result && getAsset().equals(other.getAsset()); + } + result = result && stateChange_ == other.stateChange_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAsset()) { + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + } + hash = (37 * hash) + STATE_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + stateChange_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Result containing the Asset and its State.
+     * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.class, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + .class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (assetBuilder_ == null) { + asset_ = null; + } else { + asset_ = null; + assetBuilder_ = null; + } + stateChange_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult build() { + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult buildPartial() { + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult result = + new com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult(this); + if (assetBuilder_ == null) { + result.asset_ = asset_; + } else { + result.asset_ = assetBuilder_.build(); + } + result.stateChange_ = stateChange_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other) { + if (other + == com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()) return this; + if (other.hasAsset()) { + mergeAsset(other.getAsset()); + } + if (other.stateChange_ != 0) { + setStateChangeValue(other.getStateChangeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.securitycenter.v1.Asset asset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset, + com.google.cloud.securitycenter.v1.Asset.Builder, + com.google.cloud.securitycenter.v1.AssetOrBuilder> + assetBuilder_; + /** + * + * + *
+       * Asset matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public boolean hasAsset() { + return assetBuilder_ != null || asset_ != null; + } + /** + * + * + *
+       * Asset matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public com.google.cloud.securitycenter.v1.Asset getAsset() { + if (assetBuilder_ == null) { + return asset_ == null + ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() + : asset_; + } else { + return assetBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Asset matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public Builder setAsset(com.google.cloud.securitycenter.v1.Asset value) { + if (assetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + asset_ = value; + onChanged(); + } else { + assetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Asset matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public Builder setAsset(com.google.cloud.securitycenter.v1.Asset.Builder builderForValue) { + if (assetBuilder_ == null) { + asset_ = builderForValue.build(); + onChanged(); + } else { + assetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Asset matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public Builder mergeAsset(com.google.cloud.securitycenter.v1.Asset value) { + if (assetBuilder_ == null) { + if (asset_ != null) { + asset_ = + com.google.cloud.securitycenter.v1.Asset.newBuilder(asset_) + .mergeFrom(value) + .buildPartial(); + } else { + asset_ = value; + } + onChanged(); + } else { + assetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Asset matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public Builder clearAsset() { + if (assetBuilder_ == null) { + asset_ = null; + onChanged(); + } else { + asset_ = null; + assetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Asset matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public com.google.cloud.securitycenter.v1.Asset.Builder getAssetBuilder() { + + onChanged(); + return getAssetFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Asset matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { + if (assetBuilder_ != null) { + return assetBuilder_.getMessageOrBuilder(); + } else { + return asset_ == null + ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() + : asset_; + } + } + /** + * + * + *
+       * Asset matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Asset asset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset, + com.google.cloud.securitycenter.v1.Asset.Builder, + com.google.cloud.securitycenter.v1.AssetOrBuilder> + getAssetFieldBuilder() { + if (assetBuilder_ == null) { + assetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset, + com.google.cloud.securitycenter.v1.Asset.Builder, + com.google.cloud.securitycenter.v1.AssetOrBuilder>( + getAsset(), getParentForChildren(), isClean()); + asset_ = null; + } + return assetBuilder_; + } + + private int stateChange_ = 0; + /** + * + * + *
+       * State change of the asset between the points in time.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + */ + public int getStateChangeValue() { + return stateChange_; + } + /** + * + * + *
+       * State change of the asset between the points in time.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + */ + public Builder setStateChangeValue(int value) { + stateChange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * State change of the asset between the points in time.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + getStateChange() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange result = + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * State change of the asset between the points in time.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + */ + public Builder setStateChange( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + value) { + if (value == null) { + throw new NullPointerException(); + } + + stateChange_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * State change of the asset between the points in time.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + */ + public Builder clearStateChange() { + + stateChange_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) + private static final com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult(); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int LIST_ASSETS_RESULTS_FIELD_NUMBER = 1; + private java.util.List + listAssetsResults_; + /** + * + * + *
+   * Assets matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public java.util.List + getListAssetsResultsList() { + return listAssetsResults_; + } + /** + * + * + *
+   * Assets matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + getListAssetsResultsOrBuilderList() { + return listAssetsResults_; + } + /** + * + * + *
+   * Assets matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public int getListAssetsResultsCount() { + return listAssetsResults_.size(); + } + /** + * + * + *
+   * Assets matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + getListAssetsResults(int index) { + return listAssetsResults_.get(index); + } + /** + * + * + *
+   * Assets matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index) { + return listAssetsResults_.get(index); + } + + public static final int READ_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp readTime_; + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public boolean hasReadTime() { + return readTime_ != null; + } + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp getReadTime() { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + return getReadTime(); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 4; + private int totalSize_; + /** + * + * + *
+   * The total number of assets matching the query.
+   * 
+ * + * int32 total_size = 4; + */ + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < listAssetsResults_.size(); i++) { + output.writeMessage(1, listAssetsResults_.get(i)); + } + if (readTime_ != null) { + output.writeMessage(2, getReadTime()); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(4, totalSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < listAssetsResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, listAssetsResults_.get(i)); + } + if (readTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListAssetsResponse other = + (com.google.cloud.securitycenter.v1.ListAssetsResponse) obj; + + boolean result = true; + result = result && getListAssetsResultsList().equals(other.getListAssetsResultsList()); + result = result && (hasReadTime() == other.hasReadTime()); + if (hasReadTime()) { + result = result && getReadTime().equals(other.getReadTime()); + } + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (getTotalSize() == other.getTotalSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getListAssetsResultsCount() > 0) { + hash = (37 * hash) + LIST_ASSETS_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getListAssetsResultsList().hashCode(); + } + if (hasReadTime()) { + hash = (37 * hash) + READ_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReadTime().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListAssetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for listing assets.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListAssetsResponse) + com.google.cloud.securitycenter.v1.ListAssetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListAssetsResponse.class, + com.google.cloud.securitycenter.v1.ListAssetsResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.ListAssetsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getListAssetsResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (listAssetsResultsBuilder_ == null) { + listAssetsResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + listAssetsResultsBuilder_.clear(); + } + if (readTimeBuilder_ == null) { + readTime_ = null; + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + nextPageToken_ = ""; + + totalSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsResponse getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListAssetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsResponse build() { + com.google.cloud.securitycenter.v1.ListAssetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsResponse buildPartial() { + com.google.cloud.securitycenter.v1.ListAssetsResponse result = + new com.google.cloud.securitycenter.v1.ListAssetsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (listAssetsResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.listAssetsResults_ = listAssetsResults_; + } else { + result.listAssetsResults_ = listAssetsResultsBuilder_.build(); + } + if (readTimeBuilder_ == null) { + result.readTime_ = readTime_; + } else { + result.readTime_ = readTimeBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.totalSize_ = totalSize_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse) { + return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsResponse other) { + if (other == com.google.cloud.securitycenter.v1.ListAssetsResponse.getDefaultInstance()) + return this; + if (listAssetsResultsBuilder_ == null) { + if (!other.listAssetsResults_.isEmpty()) { + if (listAssetsResults_.isEmpty()) { + listAssetsResults_ = other.listAssetsResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureListAssetsResultsIsMutable(); + listAssetsResults_.addAll(other.listAssetsResults_); + } + onChanged(); + } + } else { + if (!other.listAssetsResults_.isEmpty()) { + if (listAssetsResultsBuilder_.isEmpty()) { + listAssetsResultsBuilder_.dispose(); + listAssetsResultsBuilder_ = null; + listAssetsResults_ = other.listAssetsResults_; + bitField0_ = (bitField0_ & ~0x00000001); + listAssetsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getListAssetsResultsFieldBuilder() + : null; + } else { + listAssetsResultsBuilder_.addAllMessages(other.listAssetsResults_); + } + } + } + if (other.hasReadTime()) { + mergeReadTime(other.getReadTime()); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.ListAssetsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.ListAssetsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + listAssetsResults_ = java.util.Collections.emptyList(); + + private void ensureListAssetsResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + listAssetsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult>( + listAssetsResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + listAssetsResultsBuilder_; + + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public java.util.List + getListAssetsResultsList() { + if (listAssetsResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(listAssetsResults_); + } else { + return listAssetsResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public int getListAssetsResultsCount() { + if (listAssetsResultsBuilder_ == null) { + return listAssetsResults_.size(); + } else { + return listAssetsResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + getListAssetsResults(int index) { + if (listAssetsResultsBuilder_ == null) { + return listAssetsResults_.get(index); + } else { + return listAssetsResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public Builder setListAssetsResults( + int index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { + if (listAssetsResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListAssetsResultsIsMutable(); + listAssetsResults_.set(index, value); + onChanged(); + } else { + listAssetsResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public Builder setListAssetsResults( + int index, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { + if (listAssetsResultsBuilder_ == null) { + ensureListAssetsResultsIsMutable(); + listAssetsResults_.set(index, builderForValue.build()); + onChanged(); + } else { + listAssetsResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public Builder addListAssetsResults( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { + if (listAssetsResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListAssetsResultsIsMutable(); + listAssetsResults_.add(value); + onChanged(); + } else { + listAssetsResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public Builder addListAssetsResults( + int index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { + if (listAssetsResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListAssetsResultsIsMutable(); + listAssetsResults_.add(index, value); + onChanged(); + } else { + listAssetsResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public Builder addListAssetsResults( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { + if (listAssetsResultsBuilder_ == null) { + ensureListAssetsResultsIsMutable(); + listAssetsResults_.add(builderForValue.build()); + onChanged(); + } else { + listAssetsResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public Builder addListAssetsResults( + int index, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { + if (listAssetsResultsBuilder_ == null) { + ensureListAssetsResultsIsMutable(); + listAssetsResults_.add(index, builderForValue.build()); + onChanged(); + } else { + listAssetsResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public Builder addAllListAssetsResults( + java.lang.Iterable< + ? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult> + values) { + if (listAssetsResultsBuilder_ == null) { + ensureListAssetsResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listAssetsResults_); + onChanged(); + } else { + listAssetsResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public Builder clearListAssetsResults() { + if (listAssetsResultsBuilder_ == null) { + listAssetsResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + listAssetsResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public Builder removeListAssetsResults(int index) { + if (listAssetsResultsBuilder_ == null) { + ensureListAssetsResultsIsMutable(); + listAssetsResults_.remove(index); + onChanged(); + } else { + listAssetsResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + getListAssetsResultsBuilder(int index) { + return getListAssetsResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index) { + if (listAssetsResultsBuilder_ == null) { + return listAssetsResults_.get(index); + } else { + return listAssetsResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + getListAssetsResultsOrBuilderList() { + if (listAssetsResultsBuilder_ != null) { + return listAssetsResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(listAssetsResults_); + } + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + addListAssetsResultsBuilder() { + return getListAssetsResultsFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()); + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + addListAssetsResultsBuilder(int index) { + return getListAssetsResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()); + } + /** + * + * + *
+     * Assets matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + public java.util.List< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder> + getListAssetsResultsBuilderList() { + return getListAssetsResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + getListAssetsResultsFieldBuilder() { + if (listAssetsResultsBuilder_ == null) { + listAssetsResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder>( + listAssetsResults_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + listAssetsResults_ = null; + } + return listAssetsResultsBuilder_; + } + + private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public boolean hasReadTime() { + return readTimeBuilder_ != null || readTime_ != null; + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp getReadTime() { + if (readTimeBuilder_ == null) { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } else { + return readTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder setReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readTime_ = value; + onChanged(); + } else { + readTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (readTimeBuilder_ == null) { + readTime_ = builderForValue.build(); + onChanged(); + } else { + readTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder mergeReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (readTime_ != null) { + readTime_ = + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + } else { + readTime_ = value; + } + onChanged(); + } else { + readTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder clearReadTime() { + if (readTimeBuilder_ == null) { + readTime_ = null; + onChanged(); + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { + + onChanged(); + return getReadTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + if (readTimeBuilder_ != null) { + return readTimeBuilder_.getMessageOrBuilder(); + } else { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReadTimeFieldBuilder() { + if (readTimeBuilder_ == null) { + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); + readTime_ = null; + } + return readTimeBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private int totalSize_; + /** + * + * + *
+     * The total number of assets matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public int getTotalSize() { + return totalSize_; + } + /** + * + * + *
+     * The total number of assets matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of assets matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public Builder clearTotalSize() { + + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListAssetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListAssetsResponse) + private static final com.google.cloud.securitycenter.v1.ListAssetsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListAssetsResponse(); + } + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java new file mode 100644 index 000000000000..494f98a791ef --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java @@ -0,0 +1,141 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListAssetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListAssetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Assets matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + java.util.List + getListAssetsResultsList(); + /** + * + * + *
+   * Assets matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAssetsResults( + int index); + /** + * + * + *
+   * Assets matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + int getListAssetsResultsCount(); + /** + * + * + *
+   * Assets matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + java.util.List< + ? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + getListAssetsResultsOrBuilderList(); + /** + * + * + *
+   * Assets matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + */ + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index); + + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + boolean hasReadTime(); + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + com.google.protobuf.Timestamp getReadTime(); + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * The total number of assets matching the query.
+   * 
+ * + * int32 total_size = 4; + */ + int getTotalSize(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java new file mode 100644 index 000000000000..0987f9b8273a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java @@ -0,0 +1,2612 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for listing findings.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsRequest} + */ +public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsRequest) + ListFindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFindingsRequest.newBuilder() to construct. + private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFindingsRequest() { + parent_ = ""; + filter_ = ""; + orderBy_ = ""; + having_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFindingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + having_ = s; + break; + } + case 58: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 72: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListFindingsRequest.class, + com.google.cloud.securitycenter.v1.ListFindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Name of the source the findings belong to. Its format is
+   * "organizations/[organization_id]/sources/[source_id]". To list across all
+   * sources provide a source_id of `-`. For example:
+   * organizations/123/sources/-
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the source the findings belong to. Its format is
+   * "organizations/[organization_id]/sources/[source_id]". To list across all
+   * sources provide a source_id of `-`. For example:
+   * organizations/123/sources/-
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Expression that defines the filter to apply across findings.
+   * The expression is a list of one or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. Examples include:
+   *  * name
+   *  * source_properties.a_property
+   *  * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `source_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Expression that defines the filter to apply across findings.
+   * The expression is a list of one or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. Examples include:
+   *  * name
+   *  * source_properties.a_property
+   *  * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `source_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 3; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Expression that defines what fields and order to use for sorting. The
+   * string value should follow SQL syntax: comma separated list of fields. For
+   * example: "name,resource_properties.a_property". The default sorting order
+   * is ascending. To specify descending order for a field, a suffix " desc"
+   * should be appended to the field name. For example: "name
+   * desc,source_properties.a_property". Redundant space characters in the
+   * syntax are insignificant. "name desc,source_properties.a_property" and "
+   * name     desc  ,   source_properties.a_property  " are equivalent.
+   * 
+ * + * string order_by = 3; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Expression that defines what fields and order to use for sorting. The
+   * string value should follow SQL syntax: comma separated list of fields. For
+   * example: "name,resource_properties.a_property". The default sorting order
+   * is ascending. To specify descending order for a field, a suffix " desc"
+   * should be appended to the field name. For example: "name
+   * desc,source_properties.a_property". Redundant space characters in the
+   * syntax are insignificant. "name desc,source_properties.a_property" and "
+   * name     desc  ,   source_properties.a_property  " are equivalent.
+   * 
+ * + * string order_by = 3; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp readTime_; + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public boolean hasReadTime() { + return readTime_ != null; + } + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.Timestamp getReadTime() { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + return getReadTime(); + } + + public static final int COMPARE_DURATION_FIELD_NUMBER = 5; + private com.google.protobuf.Duration compareDuration_; + /** + * + * + *
+   * When compare_duration is set, the ListFindingsResult's "state_change"
+   * attribute is updated to indicate whether the finding had its state changed,
+   * the finding's state remained unchanged, or if the finding was added in any
+   * state during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all findings present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public boolean hasCompareDuration() { + return compareDuration_ != null; + } + /** + * + * + *
+   * When compare_duration is set, the ListFindingsResult's "state_change"
+   * attribute is updated to indicate whether the finding had its state changed,
+   * the finding's state remained unchanged, or if the finding was added in any
+   * state during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all findings present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.Duration getCompareDuration() { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } + /** + * + * + *
+   * When compare_duration is set, the ListFindingsResult's "state_change"
+   * attribute is updated to indicate whether the finding had its state changed,
+   * the finding's state remained unchanged, or if the finding was added in any
+   * state during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all findings present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { + return getCompareDuration(); + } + + public static final int HAVING_FIELD_NUMBER = 6; + private volatile java.lang.Object having_; + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'finding.state' and 'state_change'
+   * are supported and requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + public java.lang.String getHaving() { + java.lang.Object ref = having_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + having_ = s; + return s; + } + } + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'finding.state' and 'state_change'
+   * are supported and requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + public com.google.protobuf.ByteString getHavingBytes() { + java.lang.Object ref = having_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + having_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_MASK_FIELD_NUMBER = 7; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Optional.
+   * A field mask to specify the Finding fields to be listed in the response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the Finding fields to be listed in the response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the Finding fields to be listed in the response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 8; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The value returned by the last `ListFindingsResponse`; indicates
+   * that this is a continuation of a prior `ListFindings` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 8; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The value returned by the last `ListFindingsResponse`; indicates
+   * that this is a continuation of a prior `ListFindings` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 8; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 9; + private int pageSize_; + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 9; + */ + public int getPageSize() { + return pageSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, orderBy_); + } + if (readTime_ != null) { + output.writeMessage(4, getReadTime()); + } + if (compareDuration_ != null) { + output.writeMessage(5, getCompareDuration()); + } + if (!getHavingBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); + } + if (fieldMask_ != null) { + output.writeMessage(7, getFieldMask()); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(9, pageSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); + } + if (readTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + } + if (compareDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); + } + if (!getHavingBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.ListFindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListFindingsRequest other = + (com.google.cloud.securitycenter.v1.ListFindingsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && getOrderBy().equals(other.getOrderBy()); + result = result && (hasReadTime() == other.hasReadTime()); + if (hasReadTime()) { + result = result && getReadTime().equals(other.getReadTime()); + } + result = result && (hasCompareDuration() == other.hasCompareDuration()); + if (hasCompareDuration()) { + result = result && getCompareDuration().equals(other.getCompareDuration()); + } + result = result && getHaving().equals(other.getHaving()); + result = result && (hasFieldMask() == other.hasFieldMask()); + if (hasFieldMask()) { + result = result && getFieldMask().equals(other.getFieldMask()); + } + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasReadTime()) { + hash = (37 * hash) + READ_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReadTime().hashCode(); + } + if (hasCompareDuration()) { + hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getCompareDuration().hashCode(); + } + hash = (37 * hash) + HAVING_FIELD_NUMBER; + hash = (53 * hash) + getHaving().hashCode(); + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListFindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for listing findings.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsRequest) + com.google.cloud.securitycenter.v1.ListFindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListFindingsRequest.class, + com.google.cloud.securitycenter.v1.ListFindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.ListFindingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + if (readTimeBuilder_ == null) { + readTime_ = null; + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + if (compareDurationBuilder_ == null) { + compareDuration_ = null; + } else { + compareDuration_ = null; + compareDurationBuilder_ = null; + } + having_ = ""; + + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + pageToken_ = ""; + + pageSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListFindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsRequest build() { + com.google.cloud.securitycenter.v1.ListFindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsRequest buildPartial() { + com.google.cloud.securitycenter.v1.ListFindingsRequest result = + new com.google.cloud.securitycenter.v1.ListFindingsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + if (readTimeBuilder_ == null) { + result.readTime_ = readTime_; + } else { + result.readTime_ = readTimeBuilder_.build(); + } + if (compareDurationBuilder_ == null) { + result.compareDuration_ = compareDuration_; + } else { + result.compareDuration_ = compareDurationBuilder_.build(); + } + result.having_ = having_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.ListFindingsRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsRequest other) { + if (other == com.google.cloud.securitycenter.v1.ListFindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.hasReadTime()) { + mergeReadTime(other.getReadTime()); + } + if (other.hasCompareDuration()) { + mergeCompareDuration(other.getCompareDuration()); + } + if (!other.getHaving().isEmpty()) { + having_ = other.having_; + onChanged(); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.ListFindingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.ListFindingsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Name of the source the findings belong to. Its format is
+     * "organizations/[organization_id]/sources/[source_id]". To list across all
+     * sources provide a source_id of `-`. For example:
+     * organizations/123/sources/-
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the source the findings belong to. Its format is
+     * "organizations/[organization_id]/sources/[source_id]". To list across all
+     * sources provide a source_id of `-`. For example:
+     * organizations/123/sources/-
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the source the findings belong to. Its format is
+     * "organizations/[organization_id]/sources/[source_id]". To list across all
+     * sources provide a source_id of `-`. For example:
+     * organizations/123/sources/-
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the source the findings belong to. Its format is
+     * "organizations/[organization_id]/sources/[source_id]". To list across all
+     * sources provide a source_id of `-`. For example:
+     * organizations/123/sources/-
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the source the findings belong to. Its format is
+     * "organizations/[organization_id]/sources/[source_id]". To list across all
+     * sources provide a source_id of `-`. For example:
+     * organizations/123/sources/-
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Expression that defines the filter to apply across findings.
+     * The expression is a list of one or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. Examples include:
+     *  * name
+     *  * source_properties.a_property
+     *  * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `source_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Expression that defines the filter to apply across findings.
+     * The expression is a list of one or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. Examples include:
+     *  * name
+     *  * source_properties.a_property
+     *  * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `source_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Expression that defines the filter to apply across findings.
+     * The expression is a list of one or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. Examples include:
+     *  * name
+     *  * source_properties.a_property
+     *  * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `source_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines the filter to apply across findings.
+     * The expression is a list of one or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. Examples include:
+     *  * name
+     *  * source_properties.a_property
+     *  * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `source_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines the filter to apply across findings.
+     * The expression is a list of one or more restrictions combined via logical
+     * operators `AND` and `OR`.
+     * Parentheses are supported, and `OR` has higher precedence than `AND`.
+     * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+     * character in front of them to indicate negation. Examples include:
+     *  * name
+     *  * source_properties.a_property
+     *  * security_marks.marks.marka
+     * The supported operators are:
+     * * `=` for all value types.
+     * * `>`, `<`, `>=`, `<=` for integer values.
+     * * `:`, meaning substring matching, for strings.
+     * The supported value types are:
+     * * string literals in quotes.
+     * * integer literals without quotes.
+     * * boolean literals `true` and `false` without quotes.
+     * For example, `source_properties.size = 100` is a valid filter string.
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Expression that defines what fields and order to use for sorting. The
+     * string value should follow SQL syntax: comma separated list of fields. For
+     * example: "name,resource_properties.a_property". The default sorting order
+     * is ascending. To specify descending order for a field, a suffix " desc"
+     * should be appended to the field name. For example: "name
+     * desc,source_properties.a_property". Redundant space characters in the
+     * syntax are insignificant. "name desc,source_properties.a_property" and "
+     * name     desc  ,   source_properties.a_property  " are equivalent.
+     * 
+ * + * string order_by = 3; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Expression that defines what fields and order to use for sorting. The
+     * string value should follow SQL syntax: comma separated list of fields. For
+     * example: "name,resource_properties.a_property". The default sorting order
+     * is ascending. To specify descending order for a field, a suffix " desc"
+     * should be appended to the field name. For example: "name
+     * desc,source_properties.a_property". Redundant space characters in the
+     * syntax are insignificant. "name desc,source_properties.a_property" and "
+     * name     desc  ,   source_properties.a_property  " are equivalent.
+     * 
+ * + * string order_by = 3; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Expression that defines what fields and order to use for sorting. The
+     * string value should follow SQL syntax: comma separated list of fields. For
+     * example: "name,resource_properties.a_property". The default sorting order
+     * is ascending. To specify descending order for a field, a suffix " desc"
+     * should be appended to the field name. For example: "name
+     * desc,source_properties.a_property". Redundant space characters in the
+     * syntax are insignificant. "name desc,source_properties.a_property" and "
+     * name     desc  ,   source_properties.a_property  " are equivalent.
+     * 
+ * + * string order_by = 3; + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines what fields and order to use for sorting. The
+     * string value should follow SQL syntax: comma separated list of fields. For
+     * example: "name,resource_properties.a_property". The default sorting order
+     * is ascending. To specify descending order for a field, a suffix " desc"
+     * should be appended to the field name. For example: "name
+     * desc,source_properties.a_property". Redundant space characters in the
+     * syntax are insignificant. "name desc,source_properties.a_property" and "
+     * name     desc  ,   source_properties.a_property  " are equivalent.
+     * 
+ * + * string order_by = 3; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Expression that defines what fields and order to use for sorting. The
+     * string value should follow SQL syntax: comma separated list of fields. For
+     * example: "name,resource_properties.a_property". The default sorting order
+     * is ascending. To specify descending order for a field, a suffix " desc"
+     * should be appended to the field name. For example: "name
+     * desc,source_properties.a_property". Redundant space characters in the
+     * syntax are insignificant. "name desc,source_properties.a_property" and "
+     * name     desc  ,   source_properties.a_property  " are equivalent.
+     * 
+ * + * string order_by = 3; + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public boolean hasReadTime() { + return readTimeBuilder_ != null || readTime_ != null; + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.Timestamp getReadTime() { + if (readTimeBuilder_ == null) { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } else { + return readTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder setReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readTime_ = value; + onChanged(); + } else { + readTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (readTimeBuilder_ == null) { + readTime_ = builderForValue.build(); + onChanged(); + } else { + readTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder mergeReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (readTime_ != null) { + readTime_ = + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + } else { + readTime_ = value; + } + onChanged(); + } else { + readTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public Builder clearReadTime() { + if (readTimeBuilder_ == null) { + readTime_ = null; + onChanged(); + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { + + onChanged(); + return getReadTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + if (readTimeBuilder_ != null) { + return readTimeBuilder_.getMessageOrBuilder(); + } else { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + } + /** + * + * + *
+     * Time used as a reference point when filtering findings. The filter is
+     * limited to findings existing at the supplied time and their values are
+     * those at that specific time. Absence of this field will default to the
+     * API's version of NOW.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReadTimeFieldBuilder() { + if (readTimeBuilder_ == null) { + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); + readTime_ = null; + } + return readTimeBuilder_; + } + + private com.google.protobuf.Duration compareDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + compareDurationBuilder_; + /** + * + * + *
+     * When compare_duration is set, the ListFindingsResult's "state_change"
+     * attribute is updated to indicate whether the finding had its state changed,
+     * the finding's state remained unchanged, or if the finding was added in any
+     * state during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all findings present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public boolean hasCompareDuration() { + return compareDurationBuilder_ != null || compareDuration_ != null; + } + /** + * + * + *
+     * When compare_duration is set, the ListFindingsResult's "state_change"
+     * attribute is updated to indicate whether the finding had its state changed,
+     * the finding's state remained unchanged, or if the finding was added in any
+     * state during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all findings present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.Duration getCompareDuration() { + if (compareDurationBuilder_ == null) { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } else { + return compareDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * When compare_duration is set, the ListFindingsResult's "state_change"
+     * attribute is updated to indicate whether the finding had its state changed,
+     * the finding's state remained unchanged, or if the finding was added in any
+     * state during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all findings present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder setCompareDuration(com.google.protobuf.Duration value) { + if (compareDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compareDuration_ = value; + onChanged(); + } else { + compareDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the ListFindingsResult's "state_change"
+     * attribute is updated to indicate whether the finding had its state changed,
+     * the finding's state remained unchanged, or if the finding was added in any
+     * state during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all findings present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (compareDurationBuilder_ == null) { + compareDuration_ = builderForValue.build(); + onChanged(); + } else { + compareDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the ListFindingsResult's "state_change"
+     * attribute is updated to indicate whether the finding had its state changed,
+     * the finding's state remained unchanged, or if the finding was added in any
+     * state during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all findings present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder mergeCompareDuration(com.google.protobuf.Duration value) { + if (compareDurationBuilder_ == null) { + if (compareDuration_ != null) { + compareDuration_ = + com.google.protobuf.Duration.newBuilder(compareDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + compareDuration_ = value; + } + onChanged(); + } else { + compareDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the ListFindingsResult's "state_change"
+     * attribute is updated to indicate whether the finding had its state changed,
+     * the finding's state remained unchanged, or if the finding was added in any
+     * state during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all findings present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public Builder clearCompareDuration() { + if (compareDurationBuilder_ == null) { + compareDuration_ = null; + onChanged(); + } else { + compareDuration_ = null; + compareDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * When compare_duration is set, the ListFindingsResult's "state_change"
+     * attribute is updated to indicate whether the finding had its state changed,
+     * the finding's state remained unchanged, or if the finding was added in any
+     * state during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all findings present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.Duration.Builder getCompareDurationBuilder() { + + onChanged(); + return getCompareDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * When compare_duration is set, the ListFindingsResult's "state_change"
+     * attribute is updated to indicate whether the finding had its state changed,
+     * the finding's state remained unchanged, or if the finding was added in any
+     * state during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all findings present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { + if (compareDurationBuilder_ != null) { + return compareDurationBuilder_.getMessageOrBuilder(); + } else { + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; + } + } + /** + * + * + *
+     * When compare_duration is set, the ListFindingsResult's "state_change"
+     * attribute is updated to indicate whether the finding had its state changed,
+     * the finding's state remained unchanged, or if the finding was added in any
+     * state during the compare_duration period of time that precedes the
+     * read_time. This is the time between (read_time - compare_duration) and
+     * read_time.
+     * The state_change value is derived based on the presence and state of the
+     * finding at the two points in time. Intermediate state changes between the
+     * two times don't affect the result. For example, the results aren't affected
+     * if the finding is made inactive and then active again.
+     * Possible "state_change" values when compare_duration is specified:
+     * * "CHANGED":   indicates that the finding was present at the start of
+     *                  compare_duration, but changed its state at read_time.
+     * * "UNCHANGED": indicates that the finding was present at the start of
+     *                  compare_duration and did not change state at read_time.
+     * * "ADDED":     indicates that the finding was not present at the start
+     *                  of compare_duration, but was present at read_time.
+     * If compare_duration is not specified, then the only possible state_change
+     * is "UNUSED", which will be the state_change set for all findings present at
+     * read_time.
+     * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getCompareDurationFieldBuilder() { + if (compareDurationBuilder_ == null) { + compareDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getCompareDuration(), getParentForChildren(), isClean()); + compareDuration_ = null; + } + return compareDurationBuilder_; + } + + private java.lang.Object having_ = ""; + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'finding.state' and 'state_change'
+     * are supported and requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public java.lang.String getHaving() { + java.lang.Object ref = having_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + having_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'finding.state' and 'state_change'
+     * are supported and requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public com.google.protobuf.ByteString getHavingBytes() { + java.lang.Object ref = having_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + having_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'finding.state' and 'state_change'
+     * are supported and requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder setHaving(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + having_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'finding.state' and 'state_change'
+     * are supported and requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder clearHaving() { + + having_ = getDefaultInstance().getHaving(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter that specifies what fields to further filter on *after* the query
+     * filter has been executed. Currently only 'finding.state' and 'state_change'
+     * are supported and requires compare_duration to be specified.
+     * 
+ * + * string having = 6; + */ + public Builder setHavingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + having_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Optional.
+     * A field mask to specify the Finding fields to be listed in the response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the Finding fields to be listed in the response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the Finding fields to be listed in the response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the Finding fields to be listed in the response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the Finding fields to be listed in the response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the Finding fields to be listed in the response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the Finding fields to be listed in the response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the Finding fields to be listed in the response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the Finding fields to be listed in the response.
+     * An empty field mask will list all fields.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The value returned by the last `ListFindingsResponse`; indicates
+     * that this is a continuation of a prior `ListFindings` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 8; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The value returned by the last `ListFindingsResponse`; indicates
+     * that this is a continuation of a prior `ListFindings` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 8; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The value returned by the last `ListFindingsResponse`; indicates
+     * that this is a continuation of a prior `ListFindings` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 8; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `ListFindingsResponse`; indicates
+     * that this is a continuation of a prior `ListFindings` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 8; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `ListFindingsResponse`; indicates
+     * that this is a continuation of a prior `ListFindings` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 8; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 9; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 9; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 9; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsRequest) + private static final com.google.cloud.securitycenter.v1.ListFindingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsRequest(); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java new file mode 100644 index 000000000000..77f4daefa6c5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java @@ -0,0 +1,354 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListFindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the source the findings belong to. Its format is
+   * "organizations/[organization_id]/sources/[source_id]". To list across all
+   * sources provide a source_id of `-`. For example:
+   * organizations/123/sources/-
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Name of the source the findings belong to. Its format is
+   * "organizations/[organization_id]/sources/[source_id]". To list across all
+   * sources provide a source_id of `-`. For example:
+   * organizations/123/sources/-
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Expression that defines the filter to apply across findings.
+   * The expression is a list of one or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. Examples include:
+   *  * name
+   *  * source_properties.a_property
+   *  * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `source_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Expression that defines the filter to apply across findings.
+   * The expression is a list of one or more restrictions combined via logical
+   * operators `AND` and `OR`.
+   * Parentheses are supported, and `OR` has higher precedence than `AND`.
+   * Restrictions have the form `<field> <operator> <value>` and may have a `-`
+   * character in front of them to indicate negation. Examples include:
+   *  * name
+   *  * source_properties.a_property
+   *  * security_marks.marks.marka
+   * The supported operators are:
+   * * `=` for all value types.
+   * * `>`, `<`, `>=`, `<=` for integer values.
+   * * `:`, meaning substring matching, for strings.
+   * The supported value types are:
+   * * string literals in quotes.
+   * * integer literals without quotes.
+   * * boolean literals `true` and `false` without quotes.
+   * For example, `source_properties.size = 100` is a valid filter string.
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Expression that defines what fields and order to use for sorting. The
+   * string value should follow SQL syntax: comma separated list of fields. For
+   * example: "name,resource_properties.a_property". The default sorting order
+   * is ascending. To specify descending order for a field, a suffix " desc"
+   * should be appended to the field name. For example: "name
+   * desc,source_properties.a_property". Redundant space characters in the
+   * syntax are insignificant. "name desc,source_properties.a_property" and "
+   * name     desc  ,   source_properties.a_property  " are equivalent.
+   * 
+ * + * string order_by = 3; + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Expression that defines what fields and order to use for sorting. The
+   * string value should follow SQL syntax: comma separated list of fields. For
+   * example: "name,resource_properties.a_property". The default sorting order
+   * is ascending. To specify descending order for a field, a suffix " desc"
+   * should be appended to the field name. For example: "name
+   * desc,source_properties.a_property". Redundant space characters in the
+   * syntax are insignificant. "name desc,source_properties.a_property" and "
+   * name     desc  ,   source_properties.a_property  " are equivalent.
+   * 
+ * + * string order_by = 3; + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + boolean hasReadTime(); + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + com.google.protobuf.Timestamp getReadTime(); + /** + * + * + *
+   * Time used as a reference point when filtering findings. The filter is
+   * limited to findings existing at the supplied time and their values are
+   * those at that specific time. Absence of this field will default to the
+   * API's version of NOW.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); + + /** + * + * + *
+   * When compare_duration is set, the ListFindingsResult's "state_change"
+   * attribute is updated to indicate whether the finding had its state changed,
+   * the finding's state remained unchanged, or if the finding was added in any
+   * state during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all findings present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + boolean hasCompareDuration(); + /** + * + * + *
+   * When compare_duration is set, the ListFindingsResult's "state_change"
+   * attribute is updated to indicate whether the finding had its state changed,
+   * the finding's state remained unchanged, or if the finding was added in any
+   * state during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all findings present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + com.google.protobuf.Duration getCompareDuration(); + /** + * + * + *
+   * When compare_duration is set, the ListFindingsResult's "state_change"
+   * attribute is updated to indicate whether the finding had its state changed,
+   * the finding's state remained unchanged, or if the finding was added in any
+   * state during the compare_duration period of time that precedes the
+   * read_time. This is the time between (read_time - compare_duration) and
+   * read_time.
+   * The state_change value is derived based on the presence and state of the
+   * finding at the two points in time. Intermediate state changes between the
+   * two times don't affect the result. For example, the results aren't affected
+   * if the finding is made inactive and then active again.
+   * Possible "state_change" values when compare_duration is specified:
+   * * "CHANGED":   indicates that the finding was present at the start of
+   *                  compare_duration, but changed its state at read_time.
+   * * "UNCHANGED": indicates that the finding was present at the start of
+   *                  compare_duration and did not change state at read_time.
+   * * "ADDED":     indicates that the finding was not present at the start
+   *                  of compare_duration, but was present at read_time.
+   * If compare_duration is not specified, then the only possible state_change
+   * is "UNUSED", which will be the state_change set for all findings present at
+   * read_time.
+   * 
+ * + * .google.protobuf.Duration compare_duration = 5; + */ + com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder(); + + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'finding.state' and 'state_change'
+   * are supported and requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + java.lang.String getHaving(); + /** + * + * + *
+   * Filter that specifies what fields to further filter on *after* the query
+   * filter has been executed. Currently only 'finding.state' and 'state_change'
+   * are supported and requires compare_duration to be specified.
+   * 
+ * + * string having = 6; + */ + com.google.protobuf.ByteString getHavingBytes(); + + /** + * + * + *
+   * Optional.
+   * A field mask to specify the Finding fields to be listed in the response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the Finding fields to be listed in the response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the Finding fields to be listed in the response.
+   * An empty field mask will list all fields.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 7; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); + + /** + * + * + *
+   * The value returned by the last `ListFindingsResponse`; indicates
+   * that this is a continuation of a prior `ListFindings` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 8; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The value returned by the last `ListFindingsResponse`; indicates
+   * that this is a continuation of a prior `ListFindings` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 8; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 9; + */ + int getPageSize(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java new file mode 100644 index 000000000000..9d5653cd55b3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java @@ -0,0 +1,2689 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Response message for listing findings.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse} + */ +public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse) + ListFindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFindingsResponse.newBuilder() to construct. + private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFindingsResponse() { + listFindingsResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + totalSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFindingsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + listFindingsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.ListFindingsResponse + .ListFindingsResult>(); + mutable_bitField0_ |= 0x00000001; + } + listFindingsResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .parser(), + extensionRegistry)); + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + listFindingsResults_ = java.util.Collections.unmodifiableList(listFindingsResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListFindingsResponse.class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); + } + + public interface ListFindingsResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Finding matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + boolean hasFinding(); + /** + * + * + *
+     * Finding matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + com.google.cloud.securitycenter.v1.Finding getFinding(); + /** + * + * + *
+     * Finding matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); + + /** + * + * + *
+     * State change of the finding between the points in time.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + */ + int getStateChangeValue(); + /** + * + * + *
+     * State change of the finding between the points in time.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + */ + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + getStateChange(); + } + /** + * + * + *
+   * Result containing the Finding and its StateChange.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult} + */ + public static final class ListFindingsResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) + ListFindingsResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFindingsResult.newBuilder() to construct. + private ListFindingsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFindingsResult() { + stateChange_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFindingsResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + int rawValue = input.readEnum(); + + stateChange_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + .class); + } + + /** + * + * + *
+     * The change in state of the finding.
+     * When querying across two points in time this describes
+     * the change in the finding between the two points: CHANGED, UNCHANGED,
+     * ADDED, or REMOVED. Findings can not be deleted, so REMOVED implies that
+     * the finding at timestamp does not match the filter specified, but it did
+     * at timestamp - compare_duration. If there was no compare_duration
+     * supplied in the request the state change will be: UNUSED
+     * 
+ * + * Protobuf enum {@code + * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange} + */ + public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * State change is unused, this is the canonical default for this enum.
+       * 
+ * + * UNUSED = 0; + */ + UNUSED(0), + /** + * + * + *
+       * The finding has changed state in some way between the points in time
+       * and existed at both points.
+       * 
+ * + * CHANGED = 1; + */ + CHANGED(1), + /** + * + * + *
+       * The finding has not changed state between the points in time and
+       * existed at both points.
+       * 
+ * + * UNCHANGED = 2; + */ + UNCHANGED(2), + /** + * + * + *
+       * The finding was created between the points in time.
+       * 
+ * + * ADDED = 3; + */ + ADDED(3), + /** + * + * + *
+       * The finding at timestamp does not match the filter specified, but it
+       * did at timestamp - compare_duration.
+       * 
+ * + * REMOVED = 4; + */ + REMOVED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * State change is unused, this is the canonical default for this enum.
+       * 
+ * + * UNUSED = 0; + */ + public static final int UNUSED_VALUE = 0; + /** + * + * + *
+       * The finding has changed state in some way between the points in time
+       * and existed at both points.
+       * 
+ * + * CHANGED = 1; + */ + public static final int CHANGED_VALUE = 1; + /** + * + * + *
+       * The finding has not changed state between the points in time and
+       * existed at both points.
+       * 
+ * + * UNCHANGED = 2; + */ + public static final int UNCHANGED_VALUE = 2; + /** + * + * + *
+       * The finding was created between the points in time.
+       * 
+ * + * ADDED = 3; + */ + public static final int ADDED_VALUE = 3; + /** + * + * + *
+       * The finding at timestamp does not match the filter specified, but it
+       * did at timestamp - compare_duration.
+       * 
+ * + * REMOVED = 4; + */ + public static final int REMOVED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static StateChange valueOf(int value) { + return forNumber(value); + } + + public static StateChange forNumber(int value) { + switch (value) { + case 0: + return UNUSED; + case 1: + return CHANGED; + case 2: + return UNCHANGED; + case 3: + return ADDED; + case 4: + return REMOVED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StateChange findValueByNumber(int number) { + return StateChange.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StateChange[] VALUES = values(); + + public static StateChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private StateChange(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange) + } + + public static final int FINDING_FIELD_NUMBER = 1; + private com.google.cloud.securitycenter.v1.Finding finding_; + /** + * + * + *
+     * Finding matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public boolean hasFinding() { + return finding_ != null; + } + /** + * + * + *
+     * Finding matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public com.google.cloud.securitycenter.v1.Finding getFinding() { + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; + } + /** + * + * + *
+     * Finding matching the search request.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { + return getFinding(); + } + + public static final int STATE_CHANGE_FIELD_NUMBER = 2; + private int stateChange_; + /** + * + * + *
+     * State change of the finding between the points in time.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + */ + public int getStateChangeValue() { + return stateChange_; + } + /** + * + * + *
+     * State change of the finding between the points in time.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + getStateChange() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + result = + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + .valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (finding_ != null) { + output.writeMessage(1, getFinding()); + } + if (stateChange_ + != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + .UNUSED + .getNumber()) { + output.writeEnum(2, stateChange_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (finding_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding()); + } + if (stateChange_ + != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + .UNUSED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other = + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) obj; + + boolean result = true; + result = result && (hasFinding() == other.hasFinding()); + if (hasFinding()) { + result = result && getFinding().equals(other.getFinding()); + } + result = result && stateChange_ == other.stateChange_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFinding()) { + hash = (37 * hash) + FINDING_FIELD_NUMBER; + hash = (53 * hash) + getFinding().hashCode(); + } + hash = (37 * hash) + STATE_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + stateChange_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Result containing the Finding and its StateChange.
+     * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + .class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (findingBuilder_ == null) { + finding_ = null; + } else { + finding_ = null; + findingBuilder_ = null; + } + stateChange_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult build() { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + buildPartial() { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = + new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(this); + if (findingBuilder_ == null) { + result.finding_ = finding_; + } else { + result.finding_ = findingBuilder_.build(); + } + result.stateChange_ = stateChange_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other) { + if (other + == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance()) return this; + if (other.hasFinding()) { + mergeFinding(other.getFinding()); + } + if (other.stateChange_ != 0) { + setStateChangeValue(other.getStateChangeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.securitycenter.v1.Finding finding_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> + findingBuilder_; + /** + * + * + *
+       * Finding matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public boolean hasFinding() { + return findingBuilder_ != null || finding_ != null; + } + /** + * + * + *
+       * Finding matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public com.google.cloud.securitycenter.v1.Finding getFinding() { + if (findingBuilder_ == null) { + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; + } else { + return findingBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Finding matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { + if (findingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + finding_ = value; + onChanged(); + } else { + findingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Finding matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public Builder setFinding( + com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { + if (findingBuilder_ == null) { + finding_ = builderForValue.build(); + onChanged(); + } else { + findingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Finding matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { + if (findingBuilder_ == null) { + if (finding_ != null) { + finding_ = + com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); + } else { + finding_ = value; + } + onChanged(); + } else { + findingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Finding matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public Builder clearFinding() { + if (findingBuilder_ == null) { + finding_ = null; + onChanged(); + } else { + finding_ = null; + findingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Finding matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { + + onChanged(); + return getFindingFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Finding matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { + if (findingBuilder_ != null) { + return findingBuilder_.getMessageOrBuilder(); + } else { + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; + } + } + /** + * + * + *
+       * Finding matching the search request.
+       * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> + getFindingFieldBuilder() { + if (findingBuilder_ == null) { + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); + finding_ = null; + } + return findingBuilder_; + } + + private int stateChange_ = 0; + /** + * + * + *
+       * State change of the finding between the points in time.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + */ + public int getStateChangeValue() { + return stateChange_; + } + /** + * + * + *
+       * State change of the finding between the points in time.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + */ + public Builder setStateChangeValue(int value) { + stateChange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * State change of the finding between the points in time.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + getStateChange() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + result = + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .StateChange.valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * State change of the finding between the points in time.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + */ + public Builder setStateChange( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + value) { + if (value == null) { + throw new NullPointerException(); + } + + stateChange_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * State change of the finding between the points in time.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + */ + public Builder clearStateChange() { + + stateChange_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) + private static final com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int LIST_FINDINGS_RESULTS_FIELD_NUMBER = 1; + private java.util.List + listFindingsResults_; + /** + * + * + *
+   * Findings matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public java.util.List + getListFindingsResultsList() { + return listFindingsResults_; + } + /** + * + * + *
+   * Findings matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + getListFindingsResultsOrBuilderList() { + return listFindingsResults_; + } + /** + * + * + *
+   * Findings matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public int getListFindingsResultsCount() { + return listFindingsResults_.size(); + } + /** + * + * + *
+   * Findings matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + getListFindingsResults(int index) { + return listFindingsResults_.get(index); + } + /** + * + * + *
+   * Findings matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder + getListFindingsResultsOrBuilder(int index) { + return listFindingsResults_.get(index); + } + + public static final int READ_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp readTime_; + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public boolean hasReadTime() { + return readTime_ != null; + } + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp getReadTime() { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + return getReadTime(); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 4; + private int totalSize_; + /** + * + * + *
+   * The total number of findings matching the query.
+   * 
+ * + * int32 total_size = 4; + */ + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < listFindingsResults_.size(); i++) { + output.writeMessage(1, listFindingsResults_.get(i)); + } + if (readTime_ != null) { + output.writeMessage(2, getReadTime()); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(4, totalSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < listFindingsResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, listFindingsResults_.get(i)); + } + if (readTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListFindingsResponse other = + (com.google.cloud.securitycenter.v1.ListFindingsResponse) obj; + + boolean result = true; + result = result && getListFindingsResultsList().equals(other.getListFindingsResultsList()); + result = result && (hasReadTime() == other.hasReadTime()); + if (hasReadTime()) { + result = result && getReadTime().equals(other.getReadTime()); + } + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (getTotalSize() == other.getTotalSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getListFindingsResultsCount() > 0) { + hash = (37 * hash) + LIST_FINDINGS_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getListFindingsResultsList().hashCode(); + } + if (hasReadTime()) { + hash = (37 * hash) + READ_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReadTime().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListFindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for listing findings.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse) + com.google.cloud.securitycenter.v1.ListFindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListFindingsResponse.class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.ListFindingsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getListFindingsResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (listFindingsResultsBuilder_ == null) { + listFindingsResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + listFindingsResultsBuilder_.clear(); + } + if (readTimeBuilder_ == null) { + readTime_ = null; + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + nextPageToken_ = ""; + + totalSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListFindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse build() { + com.google.cloud.securitycenter.v1.ListFindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse buildPartial() { + com.google.cloud.securitycenter.v1.ListFindingsResponse result = + new com.google.cloud.securitycenter.v1.ListFindingsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (listFindingsResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + listFindingsResults_ = java.util.Collections.unmodifiableList(listFindingsResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.listFindingsResults_ = listFindingsResults_; + } else { + result.listFindingsResults_ = listFindingsResultsBuilder_.build(); + } + if (readTimeBuilder_ == null) { + result.readTime_ = readTime_; + } else { + result.readTime_ = readTimeBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.totalSize_ = totalSize_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse) { + return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse other) { + if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.getDefaultInstance()) + return this; + if (listFindingsResultsBuilder_ == null) { + if (!other.listFindingsResults_.isEmpty()) { + if (listFindingsResults_.isEmpty()) { + listFindingsResults_ = other.listFindingsResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureListFindingsResultsIsMutable(); + listFindingsResults_.addAll(other.listFindingsResults_); + } + onChanged(); + } + } else { + if (!other.listFindingsResults_.isEmpty()) { + if (listFindingsResultsBuilder_.isEmpty()) { + listFindingsResultsBuilder_.dispose(); + listFindingsResultsBuilder_ = null; + listFindingsResults_ = other.listFindingsResults_; + bitField0_ = (bitField0_ & ~0x00000001); + listFindingsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getListFindingsResultsFieldBuilder() + : null; + } else { + listFindingsResultsBuilder_.addAllMessages(other.listFindingsResults_); + } + } + } + if (other.hasReadTime()) { + mergeReadTime(other.getReadTime()); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.ListFindingsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.ListFindingsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> + listFindingsResults_ = java.util.Collections.emptyList(); + + private void ensureListFindingsResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + listFindingsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult>( + listFindingsResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + listFindingsResultsBuilder_; + + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public java.util.List< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> + getListFindingsResultsList() { + if (listFindingsResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(listFindingsResults_); + } else { + return listFindingsResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public int getListFindingsResultsCount() { + if (listFindingsResultsBuilder_ == null) { + return listFindingsResults_.size(); + } else { + return listFindingsResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + getListFindingsResults(int index) { + if (listFindingsResultsBuilder_ == null) { + return listFindingsResults_.get(index); + } else { + return listFindingsResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public Builder setListFindingsResults( + int index, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { + if (listFindingsResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListFindingsResultsIsMutable(); + listFindingsResults_.set(index, value); + onChanged(); + } else { + listFindingsResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public Builder setListFindingsResults( + int index, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + builderForValue) { + if (listFindingsResultsBuilder_ == null) { + ensureListFindingsResultsIsMutable(); + listFindingsResults_.set(index, builderForValue.build()); + onChanged(); + } else { + listFindingsResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public Builder addListFindingsResults( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { + if (listFindingsResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListFindingsResultsIsMutable(); + listFindingsResults_.add(value); + onChanged(); + } else { + listFindingsResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public Builder addListFindingsResults( + int index, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { + if (listFindingsResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListFindingsResultsIsMutable(); + listFindingsResults_.add(index, value); + onChanged(); + } else { + listFindingsResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public Builder addListFindingsResults( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + builderForValue) { + if (listFindingsResultsBuilder_ == null) { + ensureListFindingsResultsIsMutable(); + listFindingsResults_.add(builderForValue.build()); + onChanged(); + } else { + listFindingsResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public Builder addListFindingsResults( + int index, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + builderForValue) { + if (listFindingsResultsBuilder_ == null) { + ensureListFindingsResultsIsMutable(); + listFindingsResults_.add(index, builderForValue.build()); + onChanged(); + } else { + listFindingsResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public Builder addAllListFindingsResults( + java.lang.Iterable< + ? extends + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> + values) { + if (listFindingsResultsBuilder_ == null) { + ensureListFindingsResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listFindingsResults_); + onChanged(); + } else { + listFindingsResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public Builder clearListFindingsResults() { + if (listFindingsResultsBuilder_ == null) { + listFindingsResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + listFindingsResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public Builder removeListFindingsResults(int index) { + if (listFindingsResultsBuilder_ == null) { + ensureListFindingsResultsIsMutable(); + listFindingsResults_.remove(index); + onChanged(); + } else { + listFindingsResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + getListFindingsResultsBuilder(int index) { + return getListFindingsResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder + getListFindingsResultsOrBuilder(int index) { + if (listFindingsResultsBuilder_ == null) { + return listFindingsResults_.get(index); + } else { + return listFindingsResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + getListFindingsResultsOrBuilderList() { + if (listFindingsResultsBuilder_ != null) { + return listFindingsResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(listFindingsResults_); + } + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + addListFindingsResultsBuilder() { + return getListFindingsResultsFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance()); + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + addListFindingsResultsBuilder(int index) { + return getListFindingsResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance()); + } + /** + * + * + *
+     * Findings matching the list request.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + public java.util.List< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder> + getListFindingsResultsBuilderList() { + return getListFindingsResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + getListFindingsResultsFieldBuilder() { + if (listFindingsResultsBuilder_ == null) { + listFindingsResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse + .ListFindingsResultOrBuilder>( + listFindingsResults_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + listFindingsResults_ = null; + } + return listFindingsResultsBuilder_; + } + + private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public boolean hasReadTime() { + return readTimeBuilder_ != null || readTime_ != null; + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp getReadTime() { + if (readTimeBuilder_ == null) { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } else { + return readTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder setReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readTime_ = value; + onChanged(); + } else { + readTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (readTimeBuilder_ == null) { + readTime_ = builderForValue.build(); + onChanged(); + } else { + readTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder mergeReadTime(com.google.protobuf.Timestamp value) { + if (readTimeBuilder_ == null) { + if (readTime_ != null) { + readTime_ = + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + } else { + readTime_ = value; + } + onChanged(); + } else { + readTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public Builder clearReadTime() { + if (readTimeBuilder_ == null) { + readTime_ = null; + onChanged(); + } else { + readTime_ = null; + readTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { + + onChanged(); + return getReadTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { + if (readTimeBuilder_ != null) { + return readTimeBuilder_.getMessageOrBuilder(); + } else { + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + } + } + /** + * + * + *
+     * Time used for executing the list request.
+     * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReadTimeFieldBuilder() { + if (readTimeBuilder_ == null) { + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); + readTime_ = null; + } + return readTimeBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private int totalSize_; + /** + * + * + *
+     * The total number of findings matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public int getTotalSize() { + return totalSize_; + } + /** + * + * + *
+     * The total number of findings matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of findings matching the query.
+     * 
+ * + * int32 total_size = 4; + */ + public Builder clearTotalSize() { + + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse) + private static final com.google.cloud.securitycenter.v1.ListFindingsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsResponse(); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java new file mode 100644 index 000000000000..f09ff9b67992 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java @@ -0,0 +1,142 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListFindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Findings matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + java.util.List + getListFindingsResultsList(); + /** + * + * + *
+   * Findings matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults( + int index); + /** + * + * + *
+   * Findings matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + int getListFindingsResultsCount(); + /** + * + * + *
+   * Findings matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + getListFindingsResultsOrBuilderList(); + /** + * + * + *
+   * Findings matching the list request.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + */ + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder + getListFindingsResultsOrBuilder(int index); + + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + boolean hasReadTime(); + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + com.google.protobuf.Timestamp getReadTime(); + /** + * + * + *
+   * Time used for executing the list request.
+   * 
+ * + * .google.protobuf.Timestamp read_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 3; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * The total number of findings matching the query.
+   * 
+ * + * int32 total_size = 4; + */ + int getTotalSize(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java new file mode 100644 index 000000000000..5b3e6ad16115 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java @@ -0,0 +1,866 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for listing sources.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesRequest} + */ +public final class ListSourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListSourcesRequest) + ListSourcesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSourcesRequest.newBuilder() to construct. + private ListSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSourcesRequest() { + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListSourcesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 56: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListSourcesRequest.class, + com.google.cloud.securitycenter.v1.ListSourcesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Resource name of the parent of sources to list. Its format should be
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of the parent of sources to list. Its format should be
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The value returned by the last `ListSourcesResponse`; indicates
+   * that this is a continuation of a prior `ListSources` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The value returned by the last `ListSourcesResponse`; indicates
+   * that this is a continuation of a prior `ListSources` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 7; + private int pageSize_; + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 7; + */ + public int getPageSize() { + return pageSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(7, pageSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.ListSourcesRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListSourcesRequest other = + (com.google.cloud.securitycenter.v1.ListSourcesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListSourcesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for listing sources.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListSourcesRequest) + com.google.cloud.securitycenter.v1.ListSourcesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListSourcesRequest.class, + com.google.cloud.securitycenter.v1.ListSourcesRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.ListSourcesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSourcesRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListSourcesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSourcesRequest build() { + com.google.cloud.securitycenter.v1.ListSourcesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSourcesRequest buildPartial() { + com.google.cloud.securitycenter.v1.ListSourcesRequest result = + new com.google.cloud.securitycenter.v1.ListSourcesRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.ListSourcesRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.ListSourcesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListSourcesRequest other) { + if (other == com.google.cloud.securitycenter.v1.ListSourcesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.ListSourcesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.ListSourcesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Resource name of the parent of sources to list. Its format should be
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of the parent of sources to list. Its format should be
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of the parent of sources to list. Its format should be
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the parent of sources to list. Its format should be
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the parent of sources to list. Its format should be
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The value returned by the last `ListSourcesResponse`; indicates
+     * that this is a continuation of a prior `ListSources` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The value returned by the last `ListSourcesResponse`; indicates
+     * that this is a continuation of a prior `ListSources` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The value returned by the last `ListSourcesResponse`; indicates
+     * that this is a continuation of a prior `ListSources` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `ListSourcesResponse`; indicates
+     * that this is a continuation of a prior `ListSources` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `ListSourcesResponse`; indicates
+     * that this is a continuation of a prior `ListSources` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 7; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 7; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 7; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListSourcesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListSourcesRequest) + private static final com.google.cloud.securitycenter.v1.ListSourcesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListSourcesRequest(); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSourcesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java new file mode 100644 index 000000000000..16ee4ca7374d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListSourcesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListSourcesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of the parent of sources to list. Its format should be
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Resource name of the parent of sources to list. Its format should be
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The value returned by the last `ListSourcesResponse`; indicates
+   * that this is a continuation of a prior `ListSources` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The value returned by the last `ListSourcesResponse`; indicates
+   * that this is a continuation of a prior `ListSources` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 7; + */ + int getPageSize(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java new file mode 100644 index 000000000000..952930fa2f2f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java @@ -0,0 +1,1099 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Response message for listing sources.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesResponse} + */ +public final class ListSourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListSourcesResponse) + ListSourcesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSourcesResponse.newBuilder() to construct. + private ListSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSourcesResponse() { + sources_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListSourcesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + sources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sources_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + sources_ = java.util.Collections.unmodifiableList(sources_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListSourcesResponse.class, + com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); + } + + private int bitField0_; + public static final int SOURCES_FIELD_NUMBER = 1; + private java.util.List sources_; + /** + * + * + *
+   * Sources belonging to the requested parent.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public java.util.List getSourcesList() { + return sources_; + } + /** + * + * + *
+   * Sources belonging to the requested parent.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public java.util.List + getSourcesOrBuilderList() { + return sources_; + } + /** + * + * + *
+   * Sources belonging to the requested parent.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public int getSourcesCount() { + return sources_.size(); + } + /** + * + * + *
+   * Sources belonging to the requested parent.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public com.google.cloud.securitycenter.v1.Source getSources(int index) { + return sources_.get(index); + } + /** + * + * + *
+   * Sources belonging to the requested parent.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index) { + return sources_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sources_.size(); i++) { + output.writeMessage(1, sources_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.ListSourcesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListSourcesResponse other = + (com.google.cloud.securitycenter.v1.ListSourcesResponse) obj; + + boolean result = true; + result = result && getSourcesList().equals(other.getSourcesList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSourcesCount() > 0) { + hash = (37 * hash) + SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSourcesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListSourcesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for listing sources.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListSourcesResponse) + com.google.cloud.securitycenter.v1.ListSourcesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListSourcesResponse.class, + com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.ListSourcesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSourcesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (sourcesBuilder_ == null) { + sources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + sourcesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSourcesResponse getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListSourcesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSourcesResponse build() { + com.google.cloud.securitycenter.v1.ListSourcesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSourcesResponse buildPartial() { + com.google.cloud.securitycenter.v1.ListSourcesResponse result = + new com.google.cloud.securitycenter.v1.ListSourcesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (sourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + sources_ = java.util.Collections.unmodifiableList(sources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sources_ = sources_; + } else { + result.sources_ = sourcesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.ListSourcesResponse) { + return mergeFrom((com.google.cloud.securitycenter.v1.ListSourcesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListSourcesResponse other) { + if (other == com.google.cloud.securitycenter.v1.ListSourcesResponse.getDefaultInstance()) + return this; + if (sourcesBuilder_ == null) { + if (!other.sources_.isEmpty()) { + if (sources_.isEmpty()) { + sources_ = other.sources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSourcesIsMutable(); + sources_.addAll(other.sources_); + } + onChanged(); + } + } else { + if (!other.sources_.isEmpty()) { + if (sourcesBuilder_.isEmpty()) { + sourcesBuilder_.dispose(); + sourcesBuilder_ = null; + sources_ = other.sources_; + bitField0_ = (bitField0_ & ~0x00000001); + sourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSourcesFieldBuilder() + : null; + } else { + sourcesBuilder_.addAllMessages(other.sources_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.ListSourcesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.ListSourcesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List sources_ = + java.util.Collections.emptyList(); + + private void ensureSourcesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + sources_ = new java.util.ArrayList(sources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> + sourcesBuilder_; + + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public java.util.List getSourcesList() { + if (sourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sources_); + } else { + return sourcesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public int getSourcesCount() { + if (sourcesBuilder_ == null) { + return sources_.size(); + } else { + return sourcesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public com.google.cloud.securitycenter.v1.Source getSources(int index) { + if (sourcesBuilder_ == null) { + return sources_.get(index); + } else { + return sourcesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public Builder setSources(int index, com.google.cloud.securitycenter.v1.Source value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.set(index, value); + onChanged(); + } else { + sourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public Builder setSources( + int index, com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.set(index, builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public Builder addSources(com.google.cloud.securitycenter.v1.Source value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.add(value); + onChanged(); + } else { + sourcesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public Builder addSources(int index, com.google.cloud.securitycenter.v1.Source value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.add(index, value); + onChanged(); + } else { + sourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public Builder addSources(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public Builder addSources( + int index, com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(index, builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public Builder addAllSources( + java.lang.Iterable values) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); + onChanged(); + } else { + sourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public Builder clearSources() { + if (sourcesBuilder_ == null) { + sources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sourcesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public Builder removeSources(int index) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.remove(index); + onChanged(); + } else { + sourcesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public com.google.cloud.securitycenter.v1.Source.Builder getSourcesBuilder(int index) { + return getSourcesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index) { + if (sourcesBuilder_ == null) { + return sources_.get(index); + } else { + return sourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public java.util.List + getSourcesOrBuilderList() { + if (sourcesBuilder_ != null) { + return sourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sources_); + } + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder() { + return getSourcesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.Source.getDefaultInstance()); + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder(int index) { + return getSourcesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.Source.getDefaultInstance()); + } + /** + * + * + *
+     * Sources belonging to the requested parent.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + public java.util.List + getSourcesBuilderList() { + return getSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> + getSourcesFieldBuilder() { + if (sourcesBuilder_ == null) { + sourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder>( + sources_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + sources_ = null; + } + return sourcesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListSourcesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListSourcesResponse) + private static final com.google.cloud.securitycenter.v1.ListSourcesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListSourcesResponse(); + } + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSourcesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java new file mode 100644 index 000000000000..6c38c6db2712 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListSourcesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListSourcesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Sources belonging to the requested parent.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + java.util.List getSourcesList(); + /** + * + * + *
+   * Sources belonging to the requested parent.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + com.google.cloud.securitycenter.v1.Source getSources(int index); + /** + * + * + *
+   * Sources belonging to the requested parent.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + int getSourcesCount(); + /** + * + * + *
+   * Sources belonging to the requested parent.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + java.util.List + getSourcesOrBuilderList(); + /** + * + * + *
+   * Sources belonging to the requested parent.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.Source sources = 1; + */ + com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java new file mode 100644 index 000000000000..d7ca6ceebe27 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java @@ -0,0 +1,160 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class OrganizationName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}"); + + private volatile Map fieldValuesMap; + + private final String organization; + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private OrganizationName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + } + + public static OrganizationName of(String organization) { + return newBuilder().setOrganization(organization).build(); + } + + public static String format(String organization) { + return newBuilder().setOrganization(organization).build().toString(); + } + + public static OrganizationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "OrganizationName.parse: formattedString not in valid format"); + return of(matchMap.get("organization")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (OrganizationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("organization", organization); + } + + /** Builder for OrganizationName. */ + public static class Builder { + + private String organization; + + public String getOrganization() { + return organization; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + private Builder() {} + + private Builder(OrganizationName organizationName) { + organization = organizationName.organization; + } + + public OrganizationName build() { + return new OrganizationName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof OrganizationName) { + OrganizationName that = (OrganizationName) o; + return (this.organization.equals(that.organization)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java new file mode 100644 index 000000000000..78e0966aadd6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java @@ -0,0 +1,2142 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/organization_settings.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * User specified settings that are attached to the Cloud Security Command
+ * Center (Cloud SCC) organization.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings} + */ +public final class OrganizationSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.OrganizationSettings) + OrganizationSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrganizationSettings.newBuilder() to construct. + private OrganizationSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OrganizationSettings() { + name_ = ""; + enableAssetDiscovery_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OrganizationSettings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + enableAssetDiscovery_ = input.readBool(); + break; + } + case 26: + { + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder + subBuilder = null; + if (assetDiscoveryConfig_ != null) { + subBuilder = assetDiscoveryConfig_.toBuilder(); + } + assetDiscoveryConfig_ = + input.readMessage( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(assetDiscoveryConfig_); + assetDiscoveryConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.OrganizationSettings.class, + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder.class); + } + + public interface AssetDiscoveryConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The project ids to use for filtering asset discovery.
+     * 
+ * + * repeated string project_ids = 1; + */ + java.util.List getProjectIdsList(); + /** + * + * + *
+     * The project ids to use for filtering asset discovery.
+     * 
+ * + * repeated string project_ids = 1; + */ + int getProjectIdsCount(); + /** + * + * + *
+     * The project ids to use for filtering asset discovery.
+     * 
+ * + * repeated string project_ids = 1; + */ + java.lang.String getProjectIds(int index); + /** + * + * + *
+     * The project ids to use for filtering asset discovery.
+     * 
+ * + * repeated string project_ids = 1; + */ + com.google.protobuf.ByteString getProjectIdsBytes(int index); + + /** + * + * + *
+     * The mode to use for filtering asset discovery.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + */ + int getInclusionModeValue(); + /** + * + * + *
+     * The mode to use for filtering asset discovery.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + */ + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode + getInclusionMode(); + } + /** + * + * + *
+   * The configuration used for Asset Discovery runs.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig} + */ + public static final class AssetDiscoveryConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) + AssetDiscoveryConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AssetDiscoveryConfig.newBuilder() to construct. + private AssetDiscoveryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AssetDiscoveryConfig() { + projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + inclusionMode_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AssetDiscoveryConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + projectIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projectIds_.add(s); + break; + } + case 16: + { + int rawValue = input.readEnum(); + + inclusionMode_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + projectIds_ = projectIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.class, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder + .class); + } + + /** + * + * + *
+     * The mode of inclusion when running Asset Discovery.
+     * Asset discovery can be limited by explicitly identifying projects to be
+     * included or excluded. If INCLUDE_ONLY is set, then only those projects
+     * within the organization and their children are discovered during asset
+     * discovery. If EXCLUDE is set, then projects that don't match those
+     * projects are discovered during asset discovery. If neither are set, then
+     * all projects within the organization are discovered during asset
+     * discovery.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} + */ + public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified. Setting the mode with this value will disable
+       * inclusion/exclusion filtering for Asset Discovery.
+       * 
+ * + * INCLUSION_MODE_UNSPECIFIED = 0; + */ + INCLUSION_MODE_UNSPECIFIED(0), + /** + * + * + *
+       * Asset Discovery will capture only the resources within the projects
+       * specified. All other resources will be ignored.
+       * 
+ * + * INCLUDE_ONLY = 1; + */ + INCLUDE_ONLY(1), + /** + * + * + *
+       * Asset Discovery will ignore all resources under the projects specified.
+       * All other resources will be retrieved.
+       * 
+ * + * EXCLUDE = 2; + */ + EXCLUDE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified. Setting the mode with this value will disable
+       * inclusion/exclusion filtering for Asset Discovery.
+       * 
+ * + * INCLUSION_MODE_UNSPECIFIED = 0; + */ + public static final int INCLUSION_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Asset Discovery will capture only the resources within the projects
+       * specified. All other resources will be ignored.
+       * 
+ * + * INCLUDE_ONLY = 1; + */ + public static final int INCLUDE_ONLY_VALUE = 1; + /** + * + * + *
+       * Asset Discovery will ignore all resources under the projects specified.
+       * All other resources will be retrieved.
+       * 
+ * + * EXCLUDE = 2; + */ + public static final int EXCLUDE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static InclusionMode valueOf(int value) { + return forNumber(value); + } + + public static InclusionMode forNumber(int value) { + switch (value) { + case 0: + return INCLUSION_MODE_UNSPECIFIED; + case 1: + return INCLUDE_ONLY; + case 2: + return EXCLUDE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InclusionMode findValueByNumber(int number) { + return InclusionMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final InclusionMode[] VALUES = values(); + + public static InclusionMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private InclusionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode) + } + + private int bitField0_; + public static final int PROJECT_IDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList projectIds_; + /** + * + * + *
+     * The project ids to use for filtering asset discovery.
+     * 
+ * + * repeated string project_ids = 1; + */ + public com.google.protobuf.ProtocolStringList getProjectIdsList() { + return projectIds_; + } + /** + * + * + *
+     * The project ids to use for filtering asset discovery.
+     * 
+ * + * repeated string project_ids = 1; + */ + public int getProjectIdsCount() { + return projectIds_.size(); + } + /** + * + * + *
+     * The project ids to use for filtering asset discovery.
+     * 
+ * + * repeated string project_ids = 1; + */ + public java.lang.String getProjectIds(int index) { + return projectIds_.get(index); + } + /** + * + * + *
+     * The project ids to use for filtering asset discovery.
+     * 
+ * + * repeated string project_ids = 1; + */ + public com.google.protobuf.ByteString getProjectIdsBytes(int index) { + return projectIds_.getByteString(index); + } + + public static final int INCLUSION_MODE_FIELD_NUMBER = 2; + private int inclusionMode_; + /** + * + * + *
+     * The mode to use for filtering asset discovery.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + */ + public int getInclusionModeValue() { + return inclusionMode_; + } + /** + * + * + *
+     * The mode to use for filtering asset discovery.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + */ + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + getInclusionMode() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode + result = + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.valueOf(inclusionMode_); + return result == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < projectIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectIds_.getRaw(i)); + } + if (inclusionMode_ + != com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.INCLUSION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, inclusionMode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < projectIds_.size(); i++) { + dataSize += computeStringSizeNoTag(projectIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getProjectIdsList().size(); + } + if (inclusionMode_ + != com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.INCLUSION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, inclusionMode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other = + (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) obj; + + boolean result = true; + result = result && getProjectIdsList().equals(other.getProjectIdsList()); + result = result && inclusionMode_ == other.inclusionMode_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProjectIdsCount() > 0) { + hash = (37 * hash) + PROJECT_IDS_FIELD_NUMBER; + hash = (53 * hash) + getProjectIdsList().hashCode(); + } + hash = (37 * hash) + INCLUSION_MODE_FIELD_NUMBER; + hash = (53 * hash) + inclusionMode_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The configuration used for Asset Discovery runs.
+     * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.class, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + inclusionMode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig build() { + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + buildPartial() { + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = + new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + projectIds_ = projectIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.projectIds_ = projectIds_; + result.inclusionMode_ = inclusionMode_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other) { + if (other + == com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance()) return this; + if (!other.projectIds_.isEmpty()) { + if (projectIds_.isEmpty()) { + projectIds_ = other.projectIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProjectIdsIsMutable(); + projectIds_.addAll(other.projectIds_); + } + onChanged(); + } + if (other.inclusionMode_ != 0) { + setInclusionModeValue(other.getInclusionModeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList projectIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureProjectIdsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + projectIds_ = new com.google.protobuf.LazyStringArrayList(projectIds_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * The project ids to use for filtering asset discovery.
+       * 
+ * + * repeated string project_ids = 1; + */ + public com.google.protobuf.ProtocolStringList getProjectIdsList() { + return projectIds_.getUnmodifiableView(); + } + /** + * + * + *
+       * The project ids to use for filtering asset discovery.
+       * 
+ * + * repeated string project_ids = 1; + */ + public int getProjectIdsCount() { + return projectIds_.size(); + } + /** + * + * + *
+       * The project ids to use for filtering asset discovery.
+       * 
+ * + * repeated string project_ids = 1; + */ + public java.lang.String getProjectIds(int index) { + return projectIds_.get(index); + } + /** + * + * + *
+       * The project ids to use for filtering asset discovery.
+       * 
+ * + * repeated string project_ids = 1; + */ + public com.google.protobuf.ByteString getProjectIdsBytes(int index) { + return projectIds_.getByteString(index); + } + /** + * + * + *
+       * The project ids to use for filtering asset discovery.
+       * 
+ * + * repeated string project_ids = 1; + */ + public Builder setProjectIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); + projectIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * The project ids to use for filtering asset discovery.
+       * 
+ * + * repeated string project_ids = 1; + */ + public Builder addProjectIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); + projectIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * The project ids to use for filtering asset discovery.
+       * 
+ * + * repeated string project_ids = 1; + */ + public Builder addAllProjectIds(java.lang.Iterable values) { + ensureProjectIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectIds_); + onChanged(); + return this; + } + /** + * + * + *
+       * The project ids to use for filtering asset discovery.
+       * 
+ * + * repeated string project_ids = 1; + */ + public Builder clearProjectIds() { + projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The project ids to use for filtering asset discovery.
+       * 
+ * + * repeated string project_ids = 1; + */ + public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProjectIdsIsMutable(); + projectIds_.add(value); + onChanged(); + return this; + } + + private int inclusionMode_ = 0; + /** + * + * + *
+       * The mode to use for filtering asset discovery.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + */ + public int getInclusionModeValue() { + return inclusionMode_; + } + /** + * + * + *
+       * The mode to use for filtering asset discovery.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + */ + public Builder setInclusionModeValue(int value) { + inclusionMode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The mode to use for filtering asset discovery.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + */ + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + getInclusionMode() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode + result = + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.valueOf(inclusionMode_); + return result == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The mode to use for filtering asset discovery.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + */ + public Builder setInclusionMode( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode + value) { + if (value == null) { + throw new NullPointerException(); + } + + inclusionMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The mode to use for filtering asset discovery.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + */ + public Builder clearInclusionMode() { + + inclusionMode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) + private static final com.google.cloud.securitycenter.v1.OrganizationSettings + .AssetDiscoveryConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetDiscoveryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetDiscoveryConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The relative resource name of the settings. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/organizationSettings".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The relative resource name of the settings. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/organizationSettings".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_ASSET_DISCOVERY_FIELD_NUMBER = 2; + private boolean enableAssetDiscovery_; + /** + * + * + *
+   * A flag that indicates if Asset Discovery should be enabled. If the flag is
+   * set to `true`, then discovery of assets will occur. If it is set to `false,
+   * all historical assets will remain, but discovery of future assets will not
+   * occur.
+   * 
+ * + * bool enable_asset_discovery = 2; + */ + public boolean getEnableAssetDiscovery() { + return enableAssetDiscovery_; + } + + public static final int ASSET_DISCOVERY_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + assetDiscoveryConfig_; + /** + * + * + *
+   * The configuration used for Asset Discovery runs.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public boolean hasAssetDiscoveryConfig() { + return assetDiscoveryConfig_ != null; + } + /** + * + * + *
+   * The configuration used for Asset Discovery runs.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig() { + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; + } + /** + * + * + *
+   * The configuration used for Asset Discovery runs.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder() { + return getAssetDiscoveryConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (enableAssetDiscovery_ != false) { + output.writeBool(2, enableAssetDiscovery_); + } + if (assetDiscoveryConfig_ != null) { + output.writeMessage(3, getAssetDiscoveryConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (enableAssetDiscovery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableAssetDiscovery_); + } + if (assetDiscoveryConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAssetDiscoveryConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.OrganizationSettings)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.OrganizationSettings other = + (com.google.cloud.securitycenter.v1.OrganizationSettings) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && (getEnableAssetDiscovery() == other.getEnableAssetDiscovery()); + result = result && (hasAssetDiscoveryConfig() == other.hasAssetDiscoveryConfig()); + if (hasAssetDiscoveryConfig()) { + result = result && getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ENABLE_ASSET_DISCOVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAssetDiscovery()); + if (hasAssetDiscoveryConfig()) { + hash = (37 * hash) + ASSET_DISCOVERY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAssetDiscoveryConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.OrganizationSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * User specified settings that are attached to the Cloud Security Command
+   * Center (Cloud SCC) organization.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.OrganizationSettings) + com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.OrganizationSettings.class, + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.OrganizationSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + enableAssetDiscovery_ = false; + + if (assetDiscoveryConfigBuilder_ == null) { + assetDiscoveryConfig_ = null; + } else { + assetDiscoveryConfig_ = null; + assetDiscoveryConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.OrganizationSettings getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.OrganizationSettings build() { + com.google.cloud.securitycenter.v1.OrganizationSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.OrganizationSettings buildPartial() { + com.google.cloud.securitycenter.v1.OrganizationSettings result = + new com.google.cloud.securitycenter.v1.OrganizationSettings(this); + result.name_ = name_; + result.enableAssetDiscovery_ = enableAssetDiscovery_; + if (assetDiscoveryConfigBuilder_ == null) { + result.assetDiscoveryConfig_ = assetDiscoveryConfig_; + } else { + result.assetDiscoveryConfig_ = assetDiscoveryConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.OrganizationSettings) { + return mergeFrom((com.google.cloud.securitycenter.v1.OrganizationSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.OrganizationSettings other) { + if (other == com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getEnableAssetDiscovery() != false) { + setEnableAssetDiscovery(other.getEnableAssetDiscovery()); + } + if (other.hasAssetDiscoveryConfig()) { + mergeAssetDiscoveryConfig(other.getAssetDiscoveryConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.OrganizationSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.OrganizationSettings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The relative resource name of the settings. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/organizationSettings".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The relative resource name of the settings. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/organizationSettings".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The relative resource name of the settings. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/organizationSettings".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of the settings. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/organizationSettings".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of the settings. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/organizationSettings".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean enableAssetDiscovery_; + /** + * + * + *
+     * A flag that indicates if Asset Discovery should be enabled. If the flag is
+     * set to `true`, then discovery of assets will occur. If it is set to `false,
+     * all historical assets will remain, but discovery of future assets will not
+     * occur.
+     * 
+ * + * bool enable_asset_discovery = 2; + */ + public boolean getEnableAssetDiscovery() { + return enableAssetDiscovery_; + } + /** + * + * + *
+     * A flag that indicates if Asset Discovery should be enabled. If the flag is
+     * set to `true`, then discovery of assets will occur. If it is set to `false,
+     * all historical assets will remain, but discovery of future assets will not
+     * occur.
+     * 
+ * + * bool enable_asset_discovery = 2; + */ + public Builder setEnableAssetDiscovery(boolean value) { + + enableAssetDiscovery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A flag that indicates if Asset Discovery should be enabled. If the flag is
+     * set to `true`, then discovery of assets will occur. If it is set to `false,
+     * all historical assets will remain, but discovery of future assets will not
+     * occur.
+     * 
+ * + * bool enable_asset_discovery = 2; + */ + public Builder clearEnableAssetDiscovery() { + + enableAssetDiscovery_ = false; + onChanged(); + return this; + } + + private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + assetDiscoveryConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> + assetDiscoveryConfigBuilder_; + /** + * + * + *
+     * The configuration used for Asset Discovery runs.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public boolean hasAssetDiscoveryConfig() { + return assetDiscoveryConfigBuilder_ != null || assetDiscoveryConfig_ != null; + } + /** + * + * + *
+     * The configuration used for Asset Discovery runs.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig() { + if (assetDiscoveryConfigBuilder_ == null) { + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; + } else { + return assetDiscoveryConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The configuration used for Asset Discovery runs.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public Builder setAssetDiscoveryConfig( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig value) { + if (assetDiscoveryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assetDiscoveryConfig_ = value; + onChanged(); + } else { + assetDiscoveryConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The configuration used for Asset Discovery runs.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public Builder setAssetDiscoveryConfig( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder + builderForValue) { + if (assetDiscoveryConfigBuilder_ == null) { + assetDiscoveryConfig_ = builderForValue.build(); + onChanged(); + } else { + assetDiscoveryConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The configuration used for Asset Discovery runs.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public Builder mergeAssetDiscoveryConfig( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig value) { + if (assetDiscoveryConfigBuilder_ == null) { + if (assetDiscoveryConfig_ != null) { + assetDiscoveryConfig_ = + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .newBuilder(assetDiscoveryConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + assetDiscoveryConfig_ = value; + } + onChanged(); + } else { + assetDiscoveryConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The configuration used for Asset Discovery runs.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public Builder clearAssetDiscoveryConfig() { + if (assetDiscoveryConfigBuilder_ == null) { + assetDiscoveryConfig_ = null; + onChanged(); + } else { + assetDiscoveryConfig_ = null; + assetDiscoveryConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The configuration used for Asset Discovery runs.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder + getAssetDiscoveryConfigBuilder() { + + onChanged(); + return getAssetDiscoveryConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The configuration used for Asset Discovery runs.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder() { + if (assetDiscoveryConfigBuilder_ != null) { + return assetDiscoveryConfigBuilder_.getMessageOrBuilder(); + } else { + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; + } + } + /** + * + * + *
+     * The configuration used for Asset Discovery runs.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> + getAssetDiscoveryConfigFieldBuilder() { + if (assetDiscoveryConfigBuilder_ == null) { + assetDiscoveryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .Builder, + com.google.cloud.securitycenter.v1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder>( + getAssetDiscoveryConfig(), getParentForChildren(), isClean()); + assetDiscoveryConfig_ = null; + } + return assetDiscoveryConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.OrganizationSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.OrganizationSettings) + private static final com.google.cloud.securitycenter.v1.OrganizationSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.OrganizationSettings(); + } + + public static com.google.cloud.securitycenter.v1.OrganizationSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OrganizationSettings(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.OrganizationSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java new file mode 100644 index 000000000000..7c2b4cda4eda --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java @@ -0,0 +1,160 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class OrganizationSettingsName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/organizationSettings"); + + private volatile Map fieldValuesMap; + + private final String organization; + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private OrganizationSettingsName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + } + + public static OrganizationSettingsName of(String organization) { + return newBuilder().setOrganization(organization).build(); + } + + public static String format(String organization) { + return newBuilder().setOrganization(organization).build().toString(); + } + + public static OrganizationSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "OrganizationSettingsName.parse: formattedString not in valid format"); + return of(matchMap.get("organization")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (OrganizationSettingsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("organization", organization); + } + + /** Builder for OrganizationSettingsName. */ + public static class Builder { + + private String organization; + + public String getOrganization() { + return organization; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + private Builder() {} + + private Builder(OrganizationSettingsName organizationSettingsName) { + organization = organizationSettingsName.organization; + } + + public OrganizationSettingsName build() { + return new OrganizationSettingsName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof OrganizationSettingsName) { + OrganizationSettingsName that = (OrganizationSettingsName) o; + return (this.organization.equals(that.organization)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java new file mode 100644 index 000000000000..3414ac9d8917 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/organization_settings.proto + +package com.google.cloud.securitycenter.v1; + +public interface OrganizationSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.OrganizationSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The relative resource name of the settings. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/organizationSettings".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The relative resource name of the settings. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/organizationSettings".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * A flag that indicates if Asset Discovery should be enabled. If the flag is
+   * set to `true`, then discovery of assets will occur. If it is set to `false,
+   * all historical assets will remain, but discovery of future assets will not
+   * occur.
+   * 
+ * + * bool enable_asset_discovery = 2; + */ + boolean getEnableAssetDiscovery(); + + /** + * + * + *
+   * The configuration used for Asset Discovery runs.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + boolean hasAssetDiscoveryConfig(); + /** + * + * + *
+   * The configuration used for Asset Discovery runs.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig(); + /** + * + * + *
+   * The configuration used for Asset Discovery runs.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + */ + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java new file mode 100644 index 000000000000..b207cead2503 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/organization_settings.proto + +package com.google.cloud.securitycenter.v1; + +public final class OrganizationSettingsOuterClass { + private OrganizationSettingsOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/securitycenter/v1/organiz" + + "ation_settings.proto\022\036google.cloud.secur" + + "itycenter.v1\032\034google/api/annotations.pro" + + "to\"\252\003\n\024OrganizationSettings\022\014\n\004name\030\001 \001(" + + "\t\022\036\n\026enable_asset_discovery\030\002 \001(\010\022i\n\026ass" + + "et_discovery_config\030\003 \001(\0132I.google.cloud" + + ".securitycenter.v1.OrganizationSettings." + + "AssetDiscoveryConfig\032\354\001\n\024AssetDiscoveryC" + + "onfig\022\023\n\013project_ids\030\001 \003(\t\022o\n\016inclusion_" + + "mode\030\002 \001(\0162W.google.cloud.securitycenter" + + ".v1.OrganizationSettings.AssetDiscoveryC" + + "onfig.InclusionMode\"N\n\rInclusionMode\022\036\n\032" + + "INCLUSION_MODE_UNSPECIFIED\020\000\022\020\n\014INCLUDE_" + + "ONLY\020\001\022\013\n\007EXCLUDE\020\002J\004\010\004\020\005J\004\010\005\020\006Bt\n\"com.g" + + "oogle.cloud.securitycenter.v1P\001ZLgoogle." + + "golang.org/genproto/googleapis/cloud/sec" + + "uritycenter/v1;securitycenterb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor, + new java.lang.String[] { + "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", + }); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor = + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor, + new java.lang.String[] { + "ProjectIds", "InclusionMode", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSourcesName.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSourcesName.java new file mode 100644 index 000000000000..bb919d8360c5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSourcesName.java @@ -0,0 +1,160 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class OrganizationSourcesName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/sources/-"); + + private volatile Map fieldValuesMap; + + private final String organization; + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private OrganizationSourcesName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + } + + public static OrganizationSourcesName of(String organization) { + return newBuilder().setOrganization(organization).build(); + } + + public static String format(String organization) { + return newBuilder().setOrganization(organization).build().toString(); + } + + public static OrganizationSourcesName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "OrganizationSourcesName.parse: formattedString not in valid format"); + return of(matchMap.get("organization")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (OrganizationSourcesName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("organization", organization); + } + + /** Builder for OrganizationSourcesName. */ + public static class Builder { + + private String organization; + + public String getOrganization() { + return organization; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + private Builder() {} + + private Builder(OrganizationSourcesName organizationSourcesName) { + organization = organizationSourcesName.organization; + } + + public OrganizationSourcesName build() { + return new OrganizationSourcesName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof OrganizationSourcesName) { + OrganizationSourcesName that = (OrganizationSourcesName) o; + return (this.organization.equals(that.organization)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java new file mode 100644 index 000000000000..6ed8a96581aa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for running asset discovery for an organization.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryRequest} + */ +public final class RunAssetDiscoveryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) + RunAssetDiscoveryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunAssetDiscoveryRequest.newBuilder() to construct. + private RunAssetDiscoveryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunAssetDiscoveryRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunAssetDiscoveryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest other = + (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for running asset discovery for an organization.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest build() { + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest buildPartial() { + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest result = + new com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest other) { + if (other == com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Name of the organization to run asset discovery for. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the organization to run asset discovery for. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the organization to run asset discovery for. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the organization to run asset discovery for. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the organization to run asset discovery for. Its format is
+     * "organizations/[organization_id]".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) + private static final com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest(); + } + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java new file mode 100644 index 000000000000..af7c129b2b32 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface RunAssetDiscoveryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java new file mode 100644 index 000000000000..d49a7015afdc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java @@ -0,0 +1,1013 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_marks.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * User specified security marks that are attached to the parent Cloud Security
+ * Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
+ * SCC organization -- they can be modified and viewed by all users who have
+ * proper permissions on the organization.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.SecurityMarks} + */ +public final class SecurityMarks extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SecurityMarks) + SecurityMarksOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityMarks.newBuilder() to construct. + private SecurityMarks(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecurityMarks() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SecurityMarks( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + marks_ = + com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry marks__ = + input.readMessage( + MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + marks_.getMutableMap().put(marks__.getKey(), marks__.getValue()); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass + .internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetMarks(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass + .internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SecurityMarks.class, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The relative resource name of the SecurityMarks. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Examples:
+   * "organizations/123/assets/456/securityMarks"
+   * "organizations/123/sources/456/findings/789/securityMarks".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The relative resource name of the SecurityMarks. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Examples:
+   * "organizations/123/assets/456/securityMarks"
+   * "organizations/123/sources/456/findings/789/securityMarks".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MARKS_FIELD_NUMBER = 2; + + private static final class MarksDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass + .internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField marks_; + + private com.google.protobuf.MapField internalGetMarks() { + if (marks_ == null) { + return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); + } + return marks_; + } + + public int getMarksCount() { + return internalGetMarks().getMap().size(); + } + /** + * + * + *
+   * Mutable user specified security marks belonging to the parent resource.
+   * Constraints are as follows:
+   *   - Keys and values are treated as case insensitive
+   *   - Keys must be between 1 - 256 characters (inclusive)
+   *   - Keys must be letters, numbers, underscores, or dashes
+   *   - Values have leading and trailing whitespace trimmed, remaining
+   *     characters must be between 1 - 4096 characters (inclusive)
+   * 
+ * + * map<string, string> marks = 2; + */ + public boolean containsMarks(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetMarks().getMap().containsKey(key); + } + /** Use {@link #getMarksMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getMarks() { + return getMarksMap(); + } + /** + * + * + *
+   * Mutable user specified security marks belonging to the parent resource.
+   * Constraints are as follows:
+   *   - Keys and values are treated as case insensitive
+   *   - Keys must be between 1 - 256 characters (inclusive)
+   *   - Keys must be letters, numbers, underscores, or dashes
+   *   - Values have leading and trailing whitespace trimmed, remaining
+   *     characters must be between 1 - 4096 characters (inclusive)
+   * 
+ * + * map<string, string> marks = 2; + */ + public java.util.Map getMarksMap() { + return internalGetMarks().getMap(); + } + /** + * + * + *
+   * Mutable user specified security marks belonging to the parent resource.
+   * Constraints are as follows:
+   *   - Keys and values are treated as case insensitive
+   *   - Keys must be between 1 - 256 characters (inclusive)
+   *   - Keys must be letters, numbers, underscores, or dashes
+   *   - Values have leading and trailing whitespace trimmed, remaining
+   *     characters must be between 1 - 4096 characters (inclusive)
+   * 
+ * + * map<string, string> marks = 2; + */ + public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMarks().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Mutable user specified security marks belonging to the parent resource.
+   * Constraints are as follows:
+   *   - Keys and values are treated as case insensitive
+   *   - Keys must be between 1 - 256 characters (inclusive)
+   *   - Keys must be letters, numbers, underscores, or dashes
+   *   - Values have leading and trailing whitespace trimmed, remaining
+   *     characters must be between 1 - 4096 characters (inclusive)
+   * 
+ * + * map<string, string> marks = 2; + */ + public java.lang.String getMarksOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMarks().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMarks(), MarksDefaultEntryHolder.defaultEntry, 2); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (java.util.Map.Entry entry : + internalGetMarks().getMap().entrySet()) { + com.google.protobuf.MapEntry marks__ = + MarksDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, marks__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.SecurityMarks)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.SecurityMarks other = + (com.google.cloud.securitycenter.v1.SecurityMarks) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && internalGetMarks().equals(other.internalGetMarks()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetMarks().getMap().isEmpty()) { + hash = (37 * hash) + MARKS_FIELD_NUMBER; + hash = (53 * hash) + internalGetMarks().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.SecurityMarks prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * User specified security marks that are attached to the parent Cloud Security
+   * Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
+   * SCC organization -- they can be modified and viewed by all users who have
+   * proper permissions on the organization.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.SecurityMarks} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SecurityMarks) + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass + .internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetMarks(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 2: + return internalGetMutableMarks(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass + .internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SecurityMarks.class, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + internalGetMutableMarks().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass + .internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityMarks getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityMarks build() { + com.google.cloud.securitycenter.v1.SecurityMarks result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityMarks buildPartial() { + com.google.cloud.securitycenter.v1.SecurityMarks result = + new com.google.cloud.securitycenter.v1.SecurityMarks(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.marks_ = internalGetMarks(); + result.marks_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.SecurityMarks) { + return mergeFrom((com.google.cloud.securitycenter.v1.SecurityMarks) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.SecurityMarks other) { + if (other == com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + internalGetMutableMarks().mergeFrom(other.internalGetMarks()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.SecurityMarks parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.securitycenter.v1.SecurityMarks) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The relative resource name of the SecurityMarks. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Examples:
+     * "organizations/123/assets/456/securityMarks"
+     * "organizations/123/sources/456/findings/789/securityMarks".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The relative resource name of the SecurityMarks. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Examples:
+     * "organizations/123/assets/456/securityMarks"
+     * "organizations/123/sources/456/findings/789/securityMarks".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The relative resource name of the SecurityMarks. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Examples:
+     * "organizations/123/assets/456/securityMarks"
+     * "organizations/123/sources/456/findings/789/securityMarks".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of the SecurityMarks. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Examples:
+     * "organizations/123/assets/456/securityMarks"
+     * "organizations/123/sources/456/findings/789/securityMarks".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of the SecurityMarks. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Examples:
+     * "organizations/123/assets/456/securityMarks"
+     * "organizations/123/sources/456/findings/789/securityMarks".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField marks_; + + private com.google.protobuf.MapField internalGetMarks() { + if (marks_ == null) { + return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); + } + return marks_; + } + + private com.google.protobuf.MapField + internalGetMutableMarks() { + onChanged(); + ; + if (marks_ == null) { + marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); + } + if (!marks_.isMutable()) { + marks_ = marks_.copy(); + } + return marks_; + } + + public int getMarksCount() { + return internalGetMarks().getMap().size(); + } + /** + * + * + *
+     * Mutable user specified security marks belonging to the parent resource.
+     * Constraints are as follows:
+     *   - Keys and values are treated as case insensitive
+     *   - Keys must be between 1 - 256 characters (inclusive)
+     *   - Keys must be letters, numbers, underscores, or dashes
+     *   - Values have leading and trailing whitespace trimmed, remaining
+     *     characters must be between 1 - 4096 characters (inclusive)
+     * 
+ * + * map<string, string> marks = 2; + */ + public boolean containsMarks(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetMarks().getMap().containsKey(key); + } + /** Use {@link #getMarksMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getMarks() { + return getMarksMap(); + } + /** + * + * + *
+     * Mutable user specified security marks belonging to the parent resource.
+     * Constraints are as follows:
+     *   - Keys and values are treated as case insensitive
+     *   - Keys must be between 1 - 256 characters (inclusive)
+     *   - Keys must be letters, numbers, underscores, or dashes
+     *   - Values have leading and trailing whitespace trimmed, remaining
+     *     characters must be between 1 - 4096 characters (inclusive)
+     * 
+ * + * map<string, string> marks = 2; + */ + public java.util.Map getMarksMap() { + return internalGetMarks().getMap(); + } + /** + * + * + *
+     * Mutable user specified security marks belonging to the parent resource.
+     * Constraints are as follows:
+     *   - Keys and values are treated as case insensitive
+     *   - Keys must be between 1 - 256 characters (inclusive)
+     *   - Keys must be letters, numbers, underscores, or dashes
+     *   - Values have leading and trailing whitespace trimmed, remaining
+     *     characters must be between 1 - 4096 characters (inclusive)
+     * 
+ * + * map<string, string> marks = 2; + */ + public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMarks().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Mutable user specified security marks belonging to the parent resource.
+     * Constraints are as follows:
+     *   - Keys and values are treated as case insensitive
+     *   - Keys must be between 1 - 256 characters (inclusive)
+     *   - Keys must be letters, numbers, underscores, or dashes
+     *   - Values have leading and trailing whitespace trimmed, remaining
+     *     characters must be between 1 - 4096 characters (inclusive)
+     * 
+ * + * map<string, string> marks = 2; + */ + public java.lang.String getMarksOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMarks().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMarks() { + internalGetMutableMarks().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Mutable user specified security marks belonging to the parent resource.
+     * Constraints are as follows:
+     *   - Keys and values are treated as case insensitive
+     *   - Keys must be between 1 - 256 characters (inclusive)
+     *   - Keys must be letters, numbers, underscores, or dashes
+     *   - Values have leading and trailing whitespace trimmed, remaining
+     *     characters must be between 1 - 4096 characters (inclusive)
+     * 
+ * + * map<string, string> marks = 2; + */ + public Builder removeMarks(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMarks().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableMarks() { + return internalGetMutableMarks().getMutableMap(); + } + /** + * + * + *
+     * Mutable user specified security marks belonging to the parent resource.
+     * Constraints are as follows:
+     *   - Keys and values are treated as case insensitive
+     *   - Keys must be between 1 - 256 characters (inclusive)
+     *   - Keys must be letters, numbers, underscores, or dashes
+     *   - Values have leading and trailing whitespace trimmed, remaining
+     *     characters must be between 1 - 4096 characters (inclusive)
+     * 
+ * + * map<string, string> marks = 2; + */ + public Builder putMarks(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMarks().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Mutable user specified security marks belonging to the parent resource.
+     * Constraints are as follows:
+     *   - Keys and values are treated as case insensitive
+     *   - Keys must be between 1 - 256 characters (inclusive)
+     *   - Keys must be letters, numbers, underscores, or dashes
+     *   - Values have leading and trailing whitespace trimmed, remaining
+     *     characters must be between 1 - 4096 characters (inclusive)
+     * 
+ * + * map<string, string> marks = 2; + */ + public Builder putAllMarks(java.util.Map values) { + internalGetMutableMarks().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SecurityMarks) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SecurityMarks) + private static final com.google.cloud.securitycenter.v1.SecurityMarks DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.SecurityMarks(); + } + + public static com.google.cloud.securitycenter.v1.SecurityMarks getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityMarks parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityMarks(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityMarks getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java new file mode 100644 index 000000000000..eddcf5950cc8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_marks.proto + +package com.google.cloud.securitycenter.v1; + +public interface SecurityMarksOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SecurityMarks) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The relative resource name of the SecurityMarks. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Examples:
+   * "organizations/123/assets/456/securityMarks"
+   * "organizations/123/sources/456/findings/789/securityMarks".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The relative resource name of the SecurityMarks. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Examples:
+   * "organizations/123/assets/456/securityMarks"
+   * "organizations/123/sources/456/findings/789/securityMarks".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Mutable user specified security marks belonging to the parent resource.
+   * Constraints are as follows:
+   *   - Keys and values are treated as case insensitive
+   *   - Keys must be between 1 - 256 characters (inclusive)
+   *   - Keys must be letters, numbers, underscores, or dashes
+   *   - Values have leading and trailing whitespace trimmed, remaining
+   *     characters must be between 1 - 4096 characters (inclusive)
+   * 
+ * + * map<string, string> marks = 2; + */ + int getMarksCount(); + /** + * + * + *
+   * Mutable user specified security marks belonging to the parent resource.
+   * Constraints are as follows:
+   *   - Keys and values are treated as case insensitive
+   *   - Keys must be between 1 - 256 characters (inclusive)
+   *   - Keys must be letters, numbers, underscores, or dashes
+   *   - Values have leading and trailing whitespace trimmed, remaining
+   *     characters must be between 1 - 4096 characters (inclusive)
+   * 
+ * + * map<string, string> marks = 2; + */ + boolean containsMarks(java.lang.String key); + /** Use {@link #getMarksMap()} instead. */ + @java.lang.Deprecated + java.util.Map getMarks(); + /** + * + * + *
+   * Mutable user specified security marks belonging to the parent resource.
+   * Constraints are as follows:
+   *   - Keys and values are treated as case insensitive
+   *   - Keys must be between 1 - 256 characters (inclusive)
+   *   - Keys must be letters, numbers, underscores, or dashes
+   *   - Values have leading and trailing whitespace trimmed, remaining
+   *     characters must be between 1 - 4096 characters (inclusive)
+   * 
+ * + * map<string, string> marks = 2; + */ + java.util.Map getMarksMap(); + /** + * + * + *
+   * Mutable user specified security marks belonging to the parent resource.
+   * Constraints are as follows:
+   *   - Keys and values are treated as case insensitive
+   *   - Keys must be between 1 - 256 characters (inclusive)
+   *   - Keys must be letters, numbers, underscores, or dashes
+   *   - Values have leading and trailing whitespace trimmed, remaining
+   *     characters must be between 1 - 4096 characters (inclusive)
+   * 
+ * + * map<string, string> marks = 2; + */ + java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Mutable user specified security marks belonging to the parent resource.
+   * Constraints are as follows:
+   *   - Keys and values are treated as case insensitive
+   *   - Keys must be between 1 - 256 characters (inclusive)
+   *   - Keys must be letters, numbers, underscores, or dashes
+   *   - Values have leading and trailing whitespace trimmed, remaining
+   *     characters must be between 1 - 4096 characters (inclusive)
+   * 
+ * + * map<string, string> marks = 2; + */ + java.lang.String getMarksOrThrow(java.lang.String key); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java new file mode 100644 index 000000000000..214907fe85f3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_marks.proto + +package com.google.cloud.securitycenter.v1; + +public final class SecurityMarksOuterClass { + private SecurityMarksOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/securitycenter/v1/securit" + + "y_marks.proto\022\036google.cloud.securitycent" + + "er.v1\032\034google/api/annotations.proto\"\224\001\n\r" + + "SecurityMarks\022\014\n\004name\030\001 \001(\t\022G\n\005marks\030\002 \003" + + "(\01328.google.cloud.securitycenter.v1.Secu" + + "rityMarks.MarksEntry\032,\n\nMarksEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bt\n\"com.google" + + ".cloud.securitycenter.v1P\001ZLgoogle.golan" + + "g.org/genproto/googleapis/cloud/security" + + "center/v1;securitycenterb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor, + new java.lang.String[] { + "Name", "Marks", + }); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java new file mode 100644 index 000000000000..b8c7ec2b685c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java @@ -0,0 +1,596 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public final class SecuritycenterService { + private SecuritycenterService() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/securitycenter/v1/securit" + + "ycenter_service.proto\022\036google.cloud.secu" + + "ritycenter.v1\032\034google/api/annotations.pr" + + "oto\032*google/cloud/securitycenter/v1/asse" + + "t.proto\032,google/cloud/securitycenter/v1/" + + "finding.proto\032:google/cloud/securitycent" + + "er/v1/organization_settings.proto\0323googl" + + "e/cloud/securitycenter/v1/security_marks" + + ".proto\032+google/cloud/securitycenter/v1/s" + + "ource.proto\032\036google/iam/v1/iam_policy.pr" + + "oto\032\032google/iam/v1/policy.proto\032#google/" + + "longrunning/operations.proto\032\036google/pro" + + "tobuf/duration.proto\032\033google/protobuf/em" + + "pty.proto\032 google/protobuf/field_mask.pr" + + "oto\032\034google/protobuf/struct.proto\032\037googl" + + "e/protobuf/timestamp.proto\"t\n\024CreateFind" + + "ingRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\nfinding_id" + + "\030\002 \001(\t\0228\n\007finding\030\003 \001(\0132\'.google.cloud.s" + + "ecuritycenter.v1.Finding\"]\n\023CreateSource" + + "Request\022\016\n\006parent\030\001 \001(\t\0226\n\006source\030\002 \001(\0132" + + "&.google.cloud.securitycenter.v1.Source\"" + + ".\n\036GetOrganizationSettingsRequest\022\014\n\004nam" + + "e\030\001 \001(\t\" \n\020GetSourceRequest\022\014\n\004name\030\001 \001(" + + "\t\"\341\001\n\022GroupAssetsRequest\022\016\n\006parent\030\001 \001(\t" + + "\022\016\n\006filter\030\002 \001(\t\022\020\n\010group_by\030\003 \001(\t\0223\n\020co" + + "mpare_duration\030\004 \001(\0132\031.google.protobuf.D" + + "uration\022-\n\tread_time\030\005 \001(\0132\032.google.prot" + + "obuf.Timestamp\022\016\n\006having\030\006 \001(\t\022\022\n\npage_t" + + "oken\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\270\001\n\023GroupA" + + "ssetsResponse\022E\n\020group_by_results\030\001 \003(\0132" + + "+.google.cloud.securitycenter.v1.GroupRe" + + "sult\022-\n\tread_time\030\002 \001(\0132\032.google.protobu" + + "f.Timestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\n" + + "total_size\030\004 \001(\005\"\343\001\n\024GroupFindingsReques" + + "t\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010gro" + + "up_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google." + + "protobuf.Timestamp\0223\n\020compare_duration\030\005" + + " \001(\0132\031.google.protobuf.Duration\022\016\n\006havin" + + "g\030\006 \001(\t\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_size" + + "\030\010 \001(\005\"\272\001\n\025GroupFindingsResponse\022E\n\020grou" + + "p_by_results\030\001 \003(\0132+.google.cloud.securi" + + "tycenter.v1.GroupResult\022-\n\tread_time\030\002 \001" + + "(\0132\032.google.protobuf.Timestamp\022\027\n\017next_p" + + "age_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\270\001\n\013" + + "GroupResult\022O\n\nproperties\030\001 \003(\0132;.google" + + ".cloud.securitycenter.v1.GroupResult.Pro" + + "pertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Propertie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + + "gle.protobuf.Value:\0028\001\"K\n\022ListSourcesReq" + + "uest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t" + + "\022\021\n\tpage_size\030\007 \001(\005\"g\n\023ListSourcesRespon" + + "se\0227\n\007sources\030\001 \003(\0132&.google.cloud.secur" + + "itycenter.v1.Source\022\027\n\017next_page_token\030\002" + + " \001(\t\"\220\002\n\021ListAssetsRequest\022\016\n\006parent\030\001 \001" + + "(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\t" + + "read_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "amp\0223\n\020compare_duration\030\005 \001(\0132\031.google.p" + + "rotobuf.Duration\022\016\n\006having\030\006 \001(\t\022.\n\nfiel" + + "d_mask\030\007 \001(\0132\032.google.protobuf.FieldMask" + + "\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"" + + "\303\003\n\022ListAssetsResponse\022`\n\023list_assets_re" + + "sults\030\001 \003(\0132C.google.cloud.securitycente" + + "r.v1.ListAssetsResponse.ListAssetsResult" + + "\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntota" + + "l_size\030\004 \001(\005\032\356\001\n\020ListAssetsResult\0224\n\005ass" + + "et\030\001 \001(\0132%.google.cloud.securitycenter.v" + + "1.Asset\022e\n\014state_change\030\002 \001(\0162O.google.c" + + "loud.securitycenter.v1.ListAssetsRespons" + + "e.ListAssetsResult.StateChange\"=\n\013StateC" + + "hange\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020" + + "\002\022\n\n\006ACTIVE\020\003\"\222\002\n\023ListFindingsRequest\022\016\n" + + "\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_b" + + "y\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.prot" + + "obuf.Timestamp\0223\n\020compare_duration\030\005 \001(\013" + + "2\031.google.protobuf.Duration\022\016\n\006having\030\006 " + + "\001(\t\022.\n\nfield_mask\030\007 \001(\0132\032.google.protobu" + + "f.FieldMask\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_" + + "size\030\t \001(\005\"\345\003\n\024ListFindingsResponse\022f\n\025l" + + "ist_findings_results\030\001 \003(\0132G.google.clou" + + "d.securitycenter.v1.ListFindingsResponse" + + ".ListFindingsResult\022-\n\tread_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\022\027\n\017next_page_" + + "token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032\210\002\n\022List" + + "FindingsResult\0228\n\007finding\030\001 \001(\0132\'.google" + + ".cloud.securitycenter.v1.Finding\022i\n\014stat" + + "e_change\030\002 \001(\0162S.google.cloud.securityce" + + "nter.v1.ListFindingsResponse.ListFinding" + + "sResult.StateChange\"M\n\013StateChange\022\n\n\006UN" + + "USED\020\000\022\013\n\007CHANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005AD" + + "DED\020\003\022\013\n\007REMOVED\020\004\"\224\001\n\026SetFindingStateRe" + + "quest\022\014\n\004name\030\001 \001(\t\022<\n\005state\030\002 \001(\0162-.goo" + + "gle.cloud.securitycenter.v1.Finding.Stat" + + "e\022.\n\nstart_time\030\003 \001(\0132\032.google.protobuf." + + "Timestamp\"*\n\030RunAssetDiscoveryRequest\022\016\n" + + "\006parent\030\001 \001(\t\"\201\001\n\024UpdateFindingRequest\0228" + + "\n\007finding\030\001 \001(\0132\'.google.cloud.securityc" + + "enter.v1.Finding\022/\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMask\"\251\001\n!UpdateOrga" + + "nizationSettingsRequest\022S\n\025organization_" + + "settings\030\001 \001(\01324.google.cloud.securityce" + + "nter.v1.OrganizationSettings\022/\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"~\n" + + "\023UpdateSourceRequest\0226\n\006source\030\001 \001(\0132&.g" + + "oogle.cloud.securitycenter.v1.Source\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"\304\001\n\032UpdateSecurityMarksRequest\022E\n\016" + + "security_marks\030\001 \001(\0132-.google.cloud.secu" + + "ritycenter.v1.SecurityMarks\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\022.\n\n" + + "start_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp2\220\032\n\016SecurityCenter\022\241\001\n\014CreateSource" + + "\0223.google.cloud.securitycenter.v1.Create" + + "SourceRequest\032&.google.cloud.securitycen" + + "ter.v1.Source\"4\202\323\344\223\002.\"$/v1/{parent=organ" + + "izations/*}/sources:\006source\022\260\001\n\rCreateFi" + + "nding\0224.google.cloud.securitycenter.v1.C" + + "reateFindingRequest\032\'.google.cloud.secur" + + "itycenter.v1.Finding\"@\202\323\344\223\002:\"//v1/{paren" + + "t=organizations/*/sources/*}/findings:\007f" + + "inding\022\213\001\n\014GetIamPolicy\022\".google.iam.v1." + + "GetIamPolicyRequest\032\025.google.iam.v1.Poli" + + "cy\"@\202\323\344\223\002:\"5/v1/{resource=organizations/" + + "*/sources/*}:getIamPolicy:\001*\022\310\001\n\027GetOrga" + + "nizationSettings\022>.google.cloud.security" + + "center.v1.GetOrganizationSettingsRequest" + + "\0324.google.cloud.securitycenter.v1.Organi" + + "zationSettings\"7\202\323\344\223\0021\022//v1/{name=organi" + + "zations/*/organizationSettings}\022\223\001\n\tGetS" + + "ource\0220.google.cloud.securitycenter.v1.G" + + "etSourceRequest\032&.google.cloud.securityc" + + "enter.v1.Source\",\202\323\344\223\002&\022$/v1/{name=organ" + + "izations/*/sources/*}\022\254\001\n\013GroupAssets\0222." + + "google.cloud.securitycenter.v1.GroupAsse" + + "tsRequest\0323.google.cloud.securitycenter." + + "v1.GroupAssetsResponse\"4\202\323\344\223\002.\")/v1/{par" + + "ent=organizations/*}/assets:group:\001*\022\276\001\n" + + "\rGroupFindings\0224.google.cloud.securityce" + + "nter.v1.GroupFindingsRequest\0325.google.cl" + + "oud.securitycenter.v1.GroupFindingsRespo" + + "nse\"@\202\323\344\223\002:\"5/v1/{parent=organizations/*" + + "/sources/*}/findings:group:\001*\022\240\001\n\nListAs" + + "sets\0221.google.cloud.securitycenter.v1.Li" + + "stAssetsRequest\0322.google.cloud.securityc" + + "enter.v1.ListAssetsResponse\"+\202\323\344\223\002%\022#/v1" + + "/{parent=organizations/*}/assets\022\262\001\n\014Lis" + + "tFindings\0223.google.cloud.securitycenter." + + "v1.ListFindingsRequest\0324.google.cloud.se" + + "curitycenter.v1.ListFindingsResponse\"7\202\323" + + "\344\223\0021\022//v1/{parent=organizations/*/source" + + "s/*}/findings\022\244\001\n\013ListSources\0222.google.c" + + "loud.securitycenter.v1.ListSourcesReques" + + "t\0323.google.cloud.securitycenter.v1.ListS" + + "ourcesResponse\",\202\323\344\223\002&\022$/v1/{parent=orga" + + "nizations/*}/sources\022\251\001\n\021RunAssetDiscove" + + "ry\0228.google.cloud.securitycenter.v1.RunA" + + "ssetDiscoveryRequest\032\035.google.longrunnin" + + "g.Operation\";\202\323\344\223\0025\"0/v1/{parent=organiz" + + "ations/*}/assets:runDiscovery:\001*\022\267\001\n\017Set" + + "FindingState\0226.google.cloud.securitycent" + + "er.v1.SetFindingStateRequest\032\'.google.cl" + + "oud.securitycenter.v1.Finding\"C\202\323\344\223\002=\"8/" + + "v1/{name=organizations/*/sources/*/findi" + + "ngs/*}:setState:\001*\022\213\001\n\014SetIamPolicy\022\".go" + + "ogle.iam.v1.SetIamPolicyRequest\032\025.google" + + ".iam.v1.Policy\"@\202\323\344\223\002:\"5/v1/{resource=or" + + "ganizations/*/sources/*}:setIamPolicy:\001*" + + "\022\261\001\n\022TestIamPermissions\022(.google.iam.v1." + + "TestIamPermissionsRequest\032).google.iam.v" + + "1.TestIamPermissionsResponse\"F\202\323\344\223\002@\";/v" + + "1/{resource=organizations/*/sources/*}:t" + + "estIamPermissions:\001*\022\270\001\n\rUpdateFinding\0224" + + ".google.cloud.securitycenter.v1.UpdateFi" + + "ndingRequest\032\'.google.cloud.securitycent" + + "er.v1.Finding\"H\202\323\344\223\002B27/v1/{finding.name" + + "=organizations/*/sources/*/findings/*}:\007" + + "finding\022\373\001\n\032UpdateOrganizationSettings\022A" + + ".google.cloud.securitycenter.v1.UpdateOr" + + "ganizationSettingsRequest\0324.google.cloud" + + ".securitycenter.v1.OrganizationSettings\"" + + "d\202\323\344\223\002^2E/v1/{organization_settings.name" + + "=organizations/*/organizationSettings}:\025" + + "organization_settings\022\250\001\n\014UpdateSource\0223" + + ".google.cloud.securitycenter.v1.UpdateSo" + + "urceRequest\032&.google.cloud.securitycente" + + "r.v1.Source\";\202\323\344\223\00252+/v1/{source.name=or" + + "ganizations/*/sources/*}:\006source\022\274\002\n\023Upd" + + "ateSecurityMarks\022:.google.cloud.security" + + "center.v1.UpdateSecurityMarksRequest\032-.g" + + "oogle.cloud.securitycenter.v1.SecurityMa" + + "rks\"\271\001\202\323\344\223\002\262\0012@/v1/{security_marks.name=" + + "organizations/*/assets/*/securityMarks}:" + + "\016security_marksZ^2L/v1/{security_marks.n" + + "ame=organizations/*/sources/*/findings/*" + + "/securityMarks}:\016security_marksBt\n\"com.g" + + "oogle.cloud.securitycenter.v1P\001ZLgoogle." + + "golang.org/genproto/googleapis/cloud/sec" + + "uritycenter/v1;securitycenterb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor, + new java.lang.String[] { + "Parent", "FindingId", "Finding", + }); + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor, + new java.lang.String[] { + "Parent", "Source", + }); + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", + "Filter", + "GroupBy", + "CompareDuration", + "ReadTime", + "Having", + "PageToken", + "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor, + new java.lang.String[] { + "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor, + new java.lang.String[] { + "Parent", + "Filter", + "GroupBy", + "ReadTime", + "CompareDuration", + "Having", + "PageToken", + "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor, + new java.lang.String[] { + "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor, + new java.lang.String[] { + "Properties", "Count", + }); + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor, + new java.lang.String[] { + "Sources", "NextPageToken", + }); + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", + "Filter", + "OrderBy", + "ReadTime", + "CompareDuration", + "Having", + "FieldMask", + "PageToken", + "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor, + new java.lang.String[] { + "ListAssetsResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor = + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor, + new java.lang.String[] { + "Asset", "StateChange", + }); + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor, + new java.lang.String[] { + "Parent", + "Filter", + "OrderBy", + "ReadTime", + "CompareDuration", + "Having", + "FieldMask", + "PageToken", + "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor, + new java.lang.String[] { + "ListFindingsResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor = + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor, + new java.lang.String[] { + "Finding", "StateChange", + }); + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor, + new java.lang.String[] { + "Name", "State", "StartTime", + }); + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor, + new java.lang.String[] { + "Finding", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor, + new java.lang.String[] { + "OrganizationSettings", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor, + new java.lang.String[] { + "Source", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor, + new java.lang.String[] { + "SecurityMarks", "UpdateMask", "StartTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksName.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksName.java new file mode 100644 index 000000000000..85bd38c1acf4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksName.java @@ -0,0 +1,23 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.resourcenames.ResourceName; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public abstract class SecuritymarksName implements ResourceName { + protected SecuritymarksName() {} +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksNames.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksNames.java new file mode 100644 index 000000000000..a412ddeff96a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksNames.java @@ -0,0 +1,31 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.securitycenter.v1; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class SecuritymarksNames { + private SecuritymarksNames() {} + + public static SecuritymarksName parse(String resourceNameString) { + if (AssetSecurityMarksName.isParsableFrom(resourceNameString)) { + return AssetSecurityMarksName.parse(resourceNameString); + } + if (FindingSecurityMarksName.isParsableFrom(resourceNameString)) { + return FindingSecurityMarksName.parse(resourceNameString); + } + return UntypedSecuritymarksName.parse(resourceNameString); + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java new file mode 100644 index 000000000000..eafdc874786b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java @@ -0,0 +1,1009 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for updating a finding's state.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.SetFindingStateRequest} + */ +public final class SetFindingStateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SetFindingStateRequest) + SetFindingStateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetFindingStateRequest.newBuilder() to construct. + private SetFindingStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetFindingStateRequest() { + name_ = ""; + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetFindingStateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, + com.google.cloud.securitycenter.v1.SetFindingStateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The relative resource name of the finding. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456/finding/789".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The relative resource name of the finding. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456/finding/789".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + * + * + *
+   * The desired State of the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 2; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The desired State of the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 2; + */ + public com.google.cloud.securitycenter.v1.Finding.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1.Finding.State result = + com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time at which the updated state takes effect.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time at which the updated state takes effect.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time at which the updated state takes effect.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (state_ != com.google.cloud.securitycenter.v1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + if (startTime_ != null) { + output.writeMessage(3, getStartTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (state_ != com.google.cloud.securitycenter.v1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.SetFindingStateRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.SetFindingStateRequest other = + (com.google.cloud.securitycenter.v1.SetFindingStateRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && state_ == other.state_; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.SetFindingStateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for updating a finding's state.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.SetFindingStateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SetFindingStateRequest) + com.google.cloud.securitycenter.v1.SetFindingStateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, + com.google.cloud.securitycenter.v1.SetFindingStateRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.SetFindingStateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + state_ = 0; + + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SetFindingStateRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.SetFindingStateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SetFindingStateRequest build() { + com.google.cloud.securitycenter.v1.SetFindingStateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SetFindingStateRequest buildPartial() { + com.google.cloud.securitycenter.v1.SetFindingStateRequest result = + new com.google.cloud.securitycenter.v1.SetFindingStateRequest(this); + result.name_ = name_; + result.state_ = state_; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.SetFindingStateRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.SetFindingStateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.SetFindingStateRequest other) { + if (other == com.google.cloud.securitycenter.v1.SetFindingStateRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.SetFindingStateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.SetFindingStateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The relative resource name of the finding. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456/finding/789".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The relative resource name of the finding. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456/finding/789".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The relative resource name of the finding. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456/finding/789".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of the finding. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456/finding/789".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of the finding. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456/finding/789".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * The desired State of the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 2; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The desired State of the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 2; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired State of the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 2; + */ + public com.google.cloud.securitycenter.v1.Finding.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1.Finding.State result = + com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The desired State of the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 2; + */ + public Builder setState(com.google.cloud.securitycenter.v1.Finding.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired State of the finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 2; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time at which the updated state takes effect.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time at which the updated state takes effect.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time at which the updated state takes effect.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the updated state takes effect.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time at which the updated state takes effect.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the updated state takes effect.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time at which the updated state takes effect.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time at which the updated state takes effect.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time at which the updated state takes effect.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SetFindingStateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SetFindingStateRequest) + private static final com.google.cloud.securitycenter.v1.SetFindingStateRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.SetFindingStateRequest(); + } + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetFindingStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetFindingStateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SetFindingStateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java new file mode 100644 index 000000000000..ce327a031c83 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java @@ -0,0 +1,89 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface SetFindingStateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SetFindingStateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The relative resource name of the finding. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456/finding/789".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The relative resource name of the finding. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456/finding/789".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The desired State of the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 2; + */ + int getStateValue(); + /** + * + * + *
+   * The desired State of the finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding.State state = 2; + */ + com.google.cloud.securitycenter.v1.Finding.State getState(); + + /** + * + * + *
+   * The time at which the updated state takes effect.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time at which the updated state takes effect.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time at which the updated state takes effect.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java new file mode 100644 index 000000000000..0e374f38d4a1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java @@ -0,0 +1,1028 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/source.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+ * is an entity or a mechanism that can produce a finding. A source is like a
+ * container of findings that come from the same scanner, logger, monitor, etc.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Source} + */ +public final class Source extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Source) + SourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Source.newBuilder() to construct. + private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Source() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Source( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SourceOuterClass + .internal_static_google_cloud_securitycenter_v1_Source_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SourceOuterClass + .internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Source.class, + com.google.cloud.securitycenter.v1.Source.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The relative resource name of this source. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456"
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The relative resource name of this source. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456"
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * The source’s display name.
+   * A source’s display name must be unique amongst its siblings, for example,
+   * two sources with the same parent can't share the same display name.
+   * The display name must start and end with a letter or digit, may contain
+   * letters, digits, spaces, hyphens, and underscores, and can be no longer
+   * than 32 characters. This is captured by the regular expression:
+   * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+   * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The source’s display name.
+   * A source’s display name must be unique amongst its siblings, for example,
+   * two sources with the same parent can't share the same display name.
+   * The display name must start and end with a letter or digit, may contain
+   * letters, digits, spaces, hyphens, and underscores, and can be no longer
+   * than 32 characters. This is captured by the regular expression:
+   * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+   * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * The description of the source (max of 1024 characters).
+   * Example:
+   * "Cloud Security Scanner is a web security scanner for common
+   * vulnerabilities in App Engine applications. It can automatically
+   * scan and detect four common vulnerabilities, including cross-site-scripting
+   * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
+   * outdated/insecure libraries."
+   * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * The description of the source (max of 1024 characters).
+   * Example:
+   * "Cloud Security Scanner is a web security scanner for common
+   * vulnerabilities in App Engine applications. It can automatically
+   * scan and detect four common vulnerabilities, including cross-site-scripting
+   * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
+   * outdated/insecure libraries."
+   * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.Source)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.Source other = + (com.google.cloud.securitycenter.v1.Source) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && getDescription().equals(other.getDescription()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.Source parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Source parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Source parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Source parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Source parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Source parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Source parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Source parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Source parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Source parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Source parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Source parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Source prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+   * is an entity or a mechanism that can produce a finding. A source is like a
+   * container of findings that come from the same scanner, logger, monitor, etc.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Source} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Source) + com.google.cloud.securitycenter.v1.SourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SourceOuterClass + .internal_static_google_cloud_securitycenter_v1_Source_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SourceOuterClass + .internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Source.class, + com.google.cloud.securitycenter.v1.Source.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.Source.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SourceOuterClass + .internal_static_google_cloud_securitycenter_v1_Source_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Source getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.Source.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Source build() { + com.google.cloud.securitycenter.v1.Source result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Source buildPartial() { + com.google.cloud.securitycenter.v1.Source result = + new com.google.cloud.securitycenter.v1.Source(this); + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.Source) { + return mergeFrom((com.google.cloud.securitycenter.v1.Source) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.Source other) { + if (other == com.google.cloud.securitycenter.v1.Source.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.Source parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.securitycenter.v1.Source) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The relative resource name of this source. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456"
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The relative resource name of this source. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456"
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The relative resource name of this source. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456"
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of this source. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456"
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The relative resource name of this source. See:
+     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+     * Example:
+     * "organizations/123/sources/456"
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The source’s display name.
+     * A source’s display name must be unique amongst its siblings, for example,
+     * two sources with the same parent can't share the same display name.
+     * The display name must start and end with a letter or digit, may contain
+     * letters, digits, spaces, hyphens, and underscores, and can be no longer
+     * than 32 characters. This is captured by the regular expression:
+     * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+     * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The source’s display name.
+     * A source’s display name must be unique amongst its siblings, for example,
+     * two sources with the same parent can't share the same display name.
+     * The display name must start and end with a letter or digit, may contain
+     * letters, digits, spaces, hyphens, and underscores, and can be no longer
+     * than 32 characters. This is captured by the regular expression:
+     * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+     * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The source’s display name.
+     * A source’s display name must be unique amongst its siblings, for example,
+     * two sources with the same parent can't share the same display name.
+     * The display name must start and end with a letter or digit, may contain
+     * letters, digits, spaces, hyphens, and underscores, and can be no longer
+     * than 32 characters. This is captured by the regular expression:
+     * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The source’s display name.
+     * A source’s display name must be unique amongst its siblings, for example,
+     * two sources with the same parent can't share the same display name.
+     * The display name must start and end with a letter or digit, may contain
+     * letters, digits, spaces, hyphens, and underscores, and can be no longer
+     * than 32 characters. This is captured by the regular expression:
+     * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+     * 
+ * + * string display_name = 2; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The source’s display name.
+     * A source’s display name must be unique amongst its siblings, for example,
+     * two sources with the same parent can't share the same display name.
+     * The display name must start and end with a letter or digit, may contain
+     * letters, digits, spaces, hyphens, and underscores, and can be no longer
+     * than 32 characters. This is captured by the regular expression:
+     * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * The description of the source (max of 1024 characters).
+     * Example:
+     * "Cloud Security Scanner is a web security scanner for common
+     * vulnerabilities in App Engine applications. It can automatically
+     * scan and detect four common vulnerabilities, including cross-site-scripting
+     * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
+     * outdated/insecure libraries."
+     * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The description of the source (max of 1024 characters).
+     * Example:
+     * "Cloud Security Scanner is a web security scanner for common
+     * vulnerabilities in App Engine applications. It can automatically
+     * scan and detect four common vulnerabilities, including cross-site-scripting
+     * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
+     * outdated/insecure libraries."
+     * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The description of the source (max of 1024 characters).
+     * Example:
+     * "Cloud Security Scanner is a web security scanner for common
+     * vulnerabilities in App Engine applications. It can automatically
+     * scan and detect four common vulnerabilities, including cross-site-scripting
+     * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
+     * outdated/insecure libraries."
+     * 
+ * + * string description = 3; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the source (max of 1024 characters).
+     * Example:
+     * "Cloud Security Scanner is a web security scanner for common
+     * vulnerabilities in App Engine applications. It can automatically
+     * scan and detect four common vulnerabilities, including cross-site-scripting
+     * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
+     * outdated/insecure libraries."
+     * 
+ * + * string description = 3; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the source (max of 1024 characters).
+     * Example:
+     * "Cloud Security Scanner is a web security scanner for common
+     * vulnerabilities in App Engine applications. It can automatically
+     * scan and detect four common vulnerabilities, including cross-site-scripting
+     * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
+     * outdated/insecure libraries."
+     * 
+ * + * string description = 3; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Source) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Source) + private static final com.google.cloud.securitycenter.v1.Source DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Source(); + } + + public static com.google.cloud.securitycenter.v1.Source getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Source getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java new file mode 100644 index 000000000000..ca573eb6955c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class SourceName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/sources/{source}"); + + private volatile Map fieldValuesMap; + + private final String organization; + private final String source; + + public String getOrganization() { + return organization; + } + + public String getSource() { + return source; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private SourceName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + source = Preconditions.checkNotNull(builder.getSource()); + } + + public static SourceName of(String organization, String source) { + return newBuilder().setOrganization(organization).setSource(source).build(); + } + + public static String format(String organization, String source) { + return newBuilder().setOrganization(organization).setSource(source).build().toString(); + } + + public static SourceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "SourceName.parse: formattedString not in valid format"); + return of(matchMap.get("organization"), matchMap.get("source")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (SourceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldMapBuilder.put("source", source); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("organization", organization, "source", source); + } + + /** Builder for SourceName. */ + public static class Builder { + + private String organization; + private String source; + + public String getOrganization() { + return organization; + } + + public String getSource() { + return source; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setSource(String source) { + this.source = source; + return this; + } + + private Builder() {} + + private Builder(SourceName sourceName) { + organization = sourceName.organization; + source = sourceName.source; + } + + public SourceName build() { + return new SourceName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof SourceName) { + SourceName that = (SourceName) o; + return (this.organization.equals(that.organization)) && (this.source.equals(that.source)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + h *= 1000003; + h ^= source.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java new file mode 100644 index 000000000000..7b80d966b89d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java @@ -0,0 +1,103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/source.proto + +package com.google.cloud.securitycenter.v1; + +public interface SourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Source) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The relative resource name of this source. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456"
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The relative resource name of this source. See:
+   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
+   * Example:
+   * "organizations/123/sources/456"
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The source’s display name.
+   * A source’s display name must be unique amongst its siblings, for example,
+   * two sources with the same parent can't share the same display name.
+   * The display name must start and end with a letter or digit, may contain
+   * letters, digits, spaces, hyphens, and underscores, and can be no longer
+   * than 32 characters. This is captured by the regular expression:
+   * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+   * 
+ * + * string display_name = 2; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The source’s display name.
+   * A source’s display name must be unique amongst its siblings, for example,
+   * two sources with the same parent can't share the same display name.
+   * The display name must start and end with a letter or digit, may contain
+   * letters, digits, spaces, hyphens, and underscores, and can be no longer
+   * than 32 characters. This is captured by the regular expression:
+   * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+   * 
+ * + * string display_name = 2; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The description of the source (max of 1024 characters).
+   * Example:
+   * "Cloud Security Scanner is a web security scanner for common
+   * vulnerabilities in App Engine applications. It can automatically
+   * scan and detect four common vulnerabilities, including cross-site-scripting
+   * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
+   * outdated/insecure libraries."
+   * 
+ * + * string description = 3; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * The description of the source (max of 1024 characters).
+   * Example:
+   * "Cloud Security Scanner is a web security scanner for common
+   * vulnerabilities in App Engine applications. It can automatically
+   * scan and detect four common vulnerabilities, including cross-site-scripting
+   * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
+   * outdated/insecure libraries."
+   * 
+ * + * string description = 3; + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java new file mode 100644 index 000000000000..0402ab4bf884 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/source.proto + +package com.google.cloud.securitycenter.v1; + +public final class SourceOuterClass { + private SourceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Source_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/securitycenter/v1/source." + + "proto\022\036google.cloud.securitycenter.v1\032\034g" + + "oogle/api/annotations.proto\"G\n\006Source\022\014\n" + + "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013des" + + "cription\030\003 \001(\tJ\004\010\004\020\005Bt\n\"com.google.cloud" + + ".securitycenter.v1P\001ZLgoogle.golang.org/" + + "genproto/googleapis/cloud/securitycenter" + + "/v1;securitycenterb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_securitycenter_v1_Source_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Source_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecuritymarksName.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecuritymarksName.java new file mode 100644 index 000000000000..dcf017e6bb39 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecuritymarksName.java @@ -0,0 +1,99 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UntypedSecuritymarksName extends SecuritymarksName { + + private final String rawValue; + private Map valueMap; + + private UntypedSecuritymarksName(String rawValue) { + this.rawValue = Preconditions.checkNotNull(rawValue); + this.valueMap = ImmutableMap.of("", rawValue); + } + + public static UntypedSecuritymarksName from(ResourceName resourceName) { + return new UntypedSecuritymarksName(resourceName.toString()); + } + + public static UntypedSecuritymarksName parse(String formattedString) { + return new UntypedSecuritymarksName(formattedString); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (UntypedSecuritymarksName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return true; + } + + /** Return a map with a single value rawValue keyed on an empty String "". */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** Return the initial rawValue if @param fieldName is an empty String, else return null. */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + @Override + public String toString() { + return rawValue; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof UntypedSecuritymarksName) { + UntypedSecuritymarksName that = (UntypedSecuritymarksName) o; + return this.rawValue.equals(that.rawValue); + } + return false; + } + + @Override + public int hashCode() { + return rawValue.hashCode(); + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java new file mode 100644 index 000000000000..d6bd5900dbe9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java @@ -0,0 +1,1073 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for updating or creating a finding.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.UpdateFindingRequest} + */ +public final class UpdateFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateFindingRequest) + UpdateFindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateFindingRequest.newBuilder() to construct. + private UpdateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateFindingRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateFindingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, + com.google.cloud.securitycenter.v1.UpdateFindingRequest.Builder.class); + } + + public static final int FINDING_FIELD_NUMBER = 1; + private com.google.cloud.securitycenter.v1.Finding finding_; + /** + * + * + *
+   * The finding resource to update or create if it does not already exist.
+   * parent, security_marks, and update_time will be ignored.
+   * In the case of creation, the finding id portion of the name must be
+   * alphanumeric and less than or equal to 32 characters and greater than 0
+   * characters in length.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public boolean hasFinding() { + return finding_ != null; + } + /** + * + * + *
+   * The finding resource to update or create if it does not already exist.
+   * parent, security_marks, and update_time will be ignored.
+   * In the case of creation, the finding id portion of the name must be
+   * alphanumeric and less than or equal to 32 characters and greater than 0
+   * characters in length.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public com.google.cloud.securitycenter.v1.Finding getFinding() { + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; + } + /** + * + * + *
+   * The finding resource to update or create if it does not already exist.
+   * parent, security_marks, and update_time will be ignored.
+   * In the case of creation, the finding id portion of the name must be
+   * alphanumeric and less than or equal to 32 characters and greater than 0
+   * characters in length.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { + return getFinding(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The FieldMask to use when updating the finding resource. This field should
+   * not be specified when creating a finding.
+   * When updating a finding, an empty mask is treated as updating all mutable
+   * fields and replacing source_properties.  Individual source_properties can
+   * be added/updated by using "source_properties.<property key>" in the field
+   * mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The FieldMask to use when updating the finding resource. This field should
+   * not be specified when creating a finding.
+   * When updating a finding, an empty mask is treated as updating all mutable
+   * fields and replacing source_properties.  Individual source_properties can
+   * be added/updated by using "source_properties.<property key>" in the field
+   * mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The FieldMask to use when updating the finding resource. This field should
+   * not be specified when creating a finding.
+   * When updating a finding, an empty mask is treated as updating all mutable
+   * fields and replacing source_properties.  Individual source_properties can
+   * be added/updated by using "source_properties.<property key>" in the field
+   * mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (finding_ != null) { + output.writeMessage(1, getFinding()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (finding_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateFindingRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.UpdateFindingRequest other = + (com.google.cloud.securitycenter.v1.UpdateFindingRequest) obj; + + boolean result = true; + result = result && (hasFinding() == other.hasFinding()); + if (hasFinding()) { + result = result && getFinding().equals(other.getFinding()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFinding()) { + hash = (37 * hash) + FINDING_FIELD_NUMBER; + hash = (53 * hash) + getFinding().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.UpdateFindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for updating or creating a finding.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.UpdateFindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateFindingRequest) + com.google.cloud.securitycenter.v1.UpdateFindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, + com.google.cloud.securitycenter.v1.UpdateFindingRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.UpdateFindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (findingBuilder_ == null) { + finding_ = null; + } else { + finding_ = null; + findingBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateFindingRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.UpdateFindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateFindingRequest build() { + com.google.cloud.securitycenter.v1.UpdateFindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateFindingRequest buildPartial() { + com.google.cloud.securitycenter.v1.UpdateFindingRequest result = + new com.google.cloud.securitycenter.v1.UpdateFindingRequest(this); + if (findingBuilder_ == null) { + result.finding_ = finding_; + } else { + result.finding_ = findingBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.UpdateFindingRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateFindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateFindingRequest other) { + if (other == com.google.cloud.securitycenter.v1.UpdateFindingRequest.getDefaultInstance()) + return this; + if (other.hasFinding()) { + mergeFinding(other.getFinding()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.UpdateFindingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateFindingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.securitycenter.v1.Finding finding_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> + findingBuilder_; + /** + * + * + *
+     * The finding resource to update or create if it does not already exist.
+     * parent, security_marks, and update_time will be ignored.
+     * In the case of creation, the finding id portion of the name must be
+     * alphanumeric and less than or equal to 32 characters and greater than 0
+     * characters in length.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public boolean hasFinding() { + return findingBuilder_ != null || finding_ != null; + } + /** + * + * + *
+     * The finding resource to update or create if it does not already exist.
+     * parent, security_marks, and update_time will be ignored.
+     * In the case of creation, the finding id portion of the name must be
+     * alphanumeric and less than or equal to 32 characters and greater than 0
+     * characters in length.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public com.google.cloud.securitycenter.v1.Finding getFinding() { + if (findingBuilder_ == null) { + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; + } else { + return findingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The finding resource to update or create if it does not already exist.
+     * parent, security_marks, and update_time will be ignored.
+     * In the case of creation, the finding id portion of the name must be
+     * alphanumeric and less than or equal to 32 characters and greater than 0
+     * characters in length.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { + if (findingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + finding_ = value; + onChanged(); + } else { + findingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The finding resource to update or create if it does not already exist.
+     * parent, security_marks, and update_time will be ignored.
+     * In the case of creation, the finding id portion of the name must be
+     * alphanumeric and less than or equal to 32 characters and greater than 0
+     * characters in length.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { + if (findingBuilder_ == null) { + finding_ = builderForValue.build(); + onChanged(); + } else { + findingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The finding resource to update or create if it does not already exist.
+     * parent, security_marks, and update_time will be ignored.
+     * In the case of creation, the finding id portion of the name must be
+     * alphanumeric and less than or equal to 32 characters and greater than 0
+     * characters in length.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { + if (findingBuilder_ == null) { + if (finding_ != null) { + finding_ = + com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); + } else { + finding_ = value; + } + onChanged(); + } else { + findingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The finding resource to update or create if it does not already exist.
+     * parent, security_marks, and update_time will be ignored.
+     * In the case of creation, the finding id portion of the name must be
+     * alphanumeric and less than or equal to 32 characters and greater than 0
+     * characters in length.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public Builder clearFinding() { + if (findingBuilder_ == null) { + finding_ = null; + onChanged(); + } else { + finding_ = null; + findingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The finding resource to update or create if it does not already exist.
+     * parent, security_marks, and update_time will be ignored.
+     * In the case of creation, the finding id portion of the name must be
+     * alphanumeric and less than or equal to 32 characters and greater than 0
+     * characters in length.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { + + onChanged(); + return getFindingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The finding resource to update or create if it does not already exist.
+     * parent, security_marks, and update_time will be ignored.
+     * In the case of creation, the finding id portion of the name must be
+     * alphanumeric and less than or equal to 32 characters and greater than 0
+     * characters in length.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { + if (findingBuilder_ != null) { + return findingBuilder_.getMessageOrBuilder(); + } else { + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; + } + } + /** + * + * + *
+     * The finding resource to update or create if it does not already exist.
+     * parent, security_marks, and update_time will be ignored.
+     * In the case of creation, the finding id portion of the name must be
+     * alphanumeric and less than or equal to 32 characters and greater than 0
+     * characters in length.
+     * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> + getFindingFieldBuilder() { + if (findingBuilder_ == null) { + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); + finding_ = null; + } + return findingBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The FieldMask to use when updating the finding resource. This field should
+     * not be specified when creating a finding.
+     * When updating a finding, an empty mask is treated as updating all mutable
+     * fields and replacing source_properties.  Individual source_properties can
+     * be added/updated by using "source_properties.<property key>" in the field
+     * mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * The FieldMask to use when updating the finding resource. This field should
+     * not be specified when creating a finding.
+     * When updating a finding, an empty mask is treated as updating all mutable
+     * fields and replacing source_properties.  Individual source_properties can
+     * be added/updated by using "source_properties.<property key>" in the field
+     * mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The FieldMask to use when updating the finding resource. This field should
+     * not be specified when creating a finding.
+     * When updating a finding, an empty mask is treated as updating all mutable
+     * fields and replacing source_properties.  Individual source_properties can
+     * be added/updated by using "source_properties.<property key>" in the field
+     * mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the finding resource. This field should
+     * not be specified when creating a finding.
+     * When updating a finding, an empty mask is treated as updating all mutable
+     * fields and replacing source_properties.  Individual source_properties can
+     * be added/updated by using "source_properties.<property key>" in the field
+     * mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the finding resource. This field should
+     * not be specified when creating a finding.
+     * When updating a finding, an empty mask is treated as updating all mutable
+     * fields and replacing source_properties.  Individual source_properties can
+     * be added/updated by using "source_properties.<property key>" in the field
+     * mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the finding resource. This field should
+     * not be specified when creating a finding.
+     * When updating a finding, an empty mask is treated as updating all mutable
+     * fields and replacing source_properties.  Individual source_properties can
+     * be added/updated by using "source_properties.<property key>" in the field
+     * mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the finding resource. This field should
+     * not be specified when creating a finding.
+     * When updating a finding, an empty mask is treated as updating all mutable
+     * fields and replacing source_properties.  Individual source_properties can
+     * be added/updated by using "source_properties.<property key>" in the field
+     * mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FieldMask to use when updating the finding resource. This field should
+     * not be specified when creating a finding.
+     * When updating a finding, an empty mask is treated as updating all mutable
+     * fields and replacing source_properties.  Individual source_properties can
+     * be added/updated by using "source_properties.<property key>" in the field
+     * mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The FieldMask to use when updating the finding resource. This field should
+     * not be specified when creating a finding.
+     * When updating a finding, an empty mask is treated as updating all mutable
+     * fields and replacing source_properties.  Individual source_properties can
+     * be added/updated by using "source_properties.<property key>" in the field
+     * mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateFindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateFindingRequest) + private static final com.google.cloud.securitycenter.v1.UpdateFindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateFindingRequest(); + } + + public static com.google.cloud.securitycenter.v1.UpdateFindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFindingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateFindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java new file mode 100644 index 000000000000..b63d251256af --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface UpdateFindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateFindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The finding resource to update or create if it does not already exist.
+   * parent, security_marks, and update_time will be ignored.
+   * In the case of creation, the finding id portion of the name must be
+   * alphanumeric and less than or equal to 32 characters and greater than 0
+   * characters in length.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + boolean hasFinding(); + /** + * + * + *
+   * The finding resource to update or create if it does not already exist.
+   * parent, security_marks, and update_time will be ignored.
+   * In the case of creation, the finding id portion of the name must be
+   * alphanumeric and less than or equal to 32 characters and greater than 0
+   * characters in length.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + com.google.cloud.securitycenter.v1.Finding getFinding(); + /** + * + * + *
+   * The finding resource to update or create if it does not already exist.
+   * parent, security_marks, and update_time will be ignored.
+   * In the case of creation, the finding id portion of the name must be
+   * alphanumeric and less than or equal to 32 characters and greater than 0
+   * characters in length.
+   * 
+ * + * .google.cloud.securitycenter.v1.Finding finding = 1; + */ + com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); + + /** + * + * + *
+   * The FieldMask to use when updating the finding resource. This field should
+   * not be specified when creating a finding.
+   * When updating a finding, an empty mask is treated as updating all mutable
+   * fields and replacing source_properties.  Individual source_properties can
+   * be added/updated by using "source_properties.<property key>" in the field
+   * mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The FieldMask to use when updating the finding resource. This field should
+   * not be specified when creating a finding.
+   * When updating a finding, an empty mask is treated as updating all mutable
+   * fields and replacing source_properties.  Individual source_properties can
+   * be added/updated by using "source_properties.<property key>" in the field
+   * mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The FieldMask to use when updating the finding resource. This field should
+   * not be specified when creating a finding.
+   * When updating a finding, an empty mask is treated as updating all mutable
+   * fields and replacing source_properties.  Individual source_properties can
+   * be added/updated by using "source_properties.<property key>" in the field
+   * mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java new file mode 100644 index 000000000000..ae17df86fa4b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java @@ -0,0 +1,998 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for updating an organization's settings.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest} + */ +public final class UpdateOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) + UpdateOrganizationSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateOrganizationSettingsRequest.newBuilder() to construct. + private UpdateOrganizationSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateOrganizationSettingsRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateOrganizationSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder subBuilder = null; + if (organizationSettings_ != null) { + subBuilder = organizationSettings_.toBuilder(); + } + organizationSettings_ = + input.readMessage( + com.google.cloud.securitycenter.v1.OrganizationSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(organizationSettings_); + organizationSettings_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.Builder.class); + } + + public static final int ORGANIZATION_SETTINGS_FIELD_NUMBER = 1; + private com.google.cloud.securitycenter.v1.OrganizationSettings organizationSettings_; + /** + * + * + *
+   * The organization settings resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public boolean hasOrganizationSettings() { + return organizationSettings_ != null; + } + /** + * + * + *
+   * The organization settings resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings() { + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; + } + /** + * + * + *
+   * The organization settings resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder() { + return getOrganizationSettings(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The FieldMask to use when updating the settings resource.
+   *  If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The FieldMask to use when updating the settings resource.
+   *  If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The FieldMask to use when updating the settings resource.
+   *  If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (organizationSettings_ != null) { + output.writeMessage(1, getOrganizationSettings()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (organizationSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrganizationSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other = + (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) obj; + + boolean result = true; + result = result && (hasOrganizationSettings() == other.hasOrganizationSettings()); + if (hasOrganizationSettings()) { + result = result && getOrganizationSettings().equals(other.getOrganizationSettings()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOrganizationSettings()) { + hash = (37 * hash) + ORGANIZATION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for updating an organization's settings.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (organizationSettingsBuilder_ == null) { + organizationSettings_ = null; + } else { + organizationSettings_ = null; + organizationSettingsBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest build() { + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest buildPartial() { + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest result = + new com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest(this); + if (organizationSettingsBuilder_ == null) { + result.organizationSettings_ = organizationSettings_; + } else { + result.organizationSettings_ = organizationSettingsBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other) { + if (other + == com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + .getDefaultInstance()) return this; + if (other.hasOrganizationSettings()) { + mergeOrganizationSettings(other.getOrganizationSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.securitycenter.v1.OrganizationSettings organizationSettings_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.OrganizationSettings, + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder> + organizationSettingsBuilder_; + /** + * + * + *
+     * The organization settings resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public boolean hasOrganizationSettings() { + return organizationSettingsBuilder_ != null || organizationSettings_ != null; + } + /** + * + * + *
+     * The organization settings resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings() { + if (organizationSettingsBuilder_ == null) { + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; + } else { + return organizationSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The organization settings resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public Builder setOrganizationSettings( + com.google.cloud.securitycenter.v1.OrganizationSettings value) { + if (organizationSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + organizationSettings_ = value; + onChanged(); + } else { + organizationSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The organization settings resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public Builder setOrganizationSettings( + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder builderForValue) { + if (organizationSettingsBuilder_ == null) { + organizationSettings_ = builderForValue.build(); + onChanged(); + } else { + organizationSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The organization settings resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public Builder mergeOrganizationSettings( + com.google.cloud.securitycenter.v1.OrganizationSettings value) { + if (organizationSettingsBuilder_ == null) { + if (organizationSettings_ != null) { + organizationSettings_ = + com.google.cloud.securitycenter.v1.OrganizationSettings.newBuilder( + organizationSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + organizationSettings_ = value; + } + onChanged(); + } else { + organizationSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The organization settings resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public Builder clearOrganizationSettings() { + if (organizationSettingsBuilder_ == null) { + organizationSettings_ = null; + onChanged(); + } else { + organizationSettings_ = null; + organizationSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The organization settings resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public com.google.cloud.securitycenter.v1.OrganizationSettings.Builder + getOrganizationSettingsBuilder() { + + onChanged(); + return getOrganizationSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The organization settings resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder() { + if (organizationSettingsBuilder_ != null) { + return organizationSettingsBuilder_.getMessageOrBuilder(); + } else { + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; + } + } + /** + * + * + *
+     * The organization settings resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.OrganizationSettings, + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder> + getOrganizationSettingsFieldBuilder() { + if (organizationSettingsBuilder_ == null) { + organizationSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.OrganizationSettings, + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder>( + getOrganizationSettings(), getParentForChildren(), isClean()); + organizationSettings_ = null; + } + return organizationSettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The FieldMask to use when updating the settings resource.
+     *  If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * The FieldMask to use when updating the settings resource.
+     *  If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The FieldMask to use when updating the settings resource.
+     *  If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the settings resource.
+     *  If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the settings resource.
+     *  If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the settings resource.
+     *  If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the settings resource.
+     *  If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FieldMask to use when updating the settings resource.
+     *  If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The FieldMask to use when updating the settings resource.
+     *  If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) + private static final com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest(); + } + + public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateOrganizationSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..e48c9b564746 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface UpdateOrganizationSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The organization settings resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + boolean hasOrganizationSettings(); + /** + * + * + *
+   * The organization settings resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings(); + /** + * + * + *
+   * The organization settings resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + */ + com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder(); + + /** + * + * + *
+   * The FieldMask to use when updating the settings resource.
+   *  If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The FieldMask to use when updating the settings resource.
+   *  If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The FieldMask to use when updating the settings resource.
+   *  If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java new file mode 100644 index 000000000000..d26e93c8aa28 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java @@ -0,0 +1,1287 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for updating a SecurityMarks resource.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSecurityMarksRequest} + */ +public final class UpdateSecurityMarksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) + UpdateSecurityMarksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSecurityMarksRequest.newBuilder() to construct. + private UpdateSecurityMarksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSecurityMarksRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateSecurityMarksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null; + if (securityMarks_ != null) { + subBuilder = securityMarks_.toBuilder(); + } + securityMarks_ = + input.readMessage( + com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityMarks_); + securityMarks_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.Builder.class); + } + + public static final int SECURITY_MARKS_FIELD_NUMBER = 1; + private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_; + /** + * + * + *
+   * The security marks resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public boolean hasSecurityMarks() { + return securityMarks_ != null; + } + /** + * + * + *
+   * The security marks resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; + } + /** + * + * + *
+   * The security marks resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + return getSecurityMarks(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The FieldMask to use when updating the security marks resource.
+   * The field mask must not contain duplicate fields.
+   * If empty or set to "marks", all marks will be replaced.  Individual
+   * marks can be updated using "marks.<mark_key>".
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The FieldMask to use when updating the security marks resource.
+   * The field mask must not contain duplicate fields.
+   * If empty or set to "marks", all marks will be replaced.  Individual
+   * marks can be updated using "marks.<mark_key>".
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The FieldMask to use when updating the security marks resource.
+   * The field mask must not contain duplicate fields.
+   * If empty or set to "marks", all marks will be replaced.  Individual
+   * marks can be updated using "marks.<mark_key>".
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time at which the updated SecurityMarks take effect.
+   * If not set uses current server time.  Updates will be applied to the
+   * SecurityMarks that are active immediately preceding this time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time at which the updated SecurityMarks take effect.
+   * If not set uses current server time.  Updates will be applied to the
+   * SecurityMarks that are active immediately preceding this time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time at which the updated SecurityMarks take effect.
+   * If not set uses current server time.  Updates will be applied to the
+   * SecurityMarks that are active immediately preceding this time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (securityMarks_ != null) { + output.writeMessage(1, getSecurityMarks()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (startTime_ != null) { + output.writeMessage(3, getStartTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (securityMarks_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecurityMarks()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest other = + (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) obj; + + boolean result = true; + result = result && (hasSecurityMarks() == other.hasSecurityMarks()); + if (hasSecurityMarks()) { + result = result && getSecurityMarks().equals(other.getSecurityMarks()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSecurityMarks()) { + hash = (37 * hash) + SECURITY_MARKS_FIELD_NUMBER; + hash = (53 * hash) + getSecurityMarks().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for updating a SecurityMarks resource.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSecurityMarksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (securityMarksBuilder_ == null) { + securityMarks_ = null; + } else { + securityMarks_ = null; + securityMarksBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest build() { + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest buildPartial() { + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest result = + new com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest(this); + if (securityMarksBuilder_ == null) { + result.securityMarks_ = securityMarks_; + } else { + result.securityMarks_ = securityMarksBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest other) { + if (other + == com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.getDefaultInstance()) + return this; + if (other.hasSecurityMarks()) { + mergeSecurityMarks(other.getSecurityMarks()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + securityMarksBuilder_; + /** + * + * + *
+     * The security marks resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public boolean hasSecurityMarks() { + return securityMarksBuilder_ != null || securityMarks_ != null; + } + /** + * + * + *
+     * The security marks resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { + if (securityMarksBuilder_ == null) { + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; + } else { + return securityMarksBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The security marks resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { + if (securityMarksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityMarks_ = value; + onChanged(); + } else { + securityMarksBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The security marks resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public Builder setSecurityMarks( + com.google.cloud.securitycenter.v1.SecurityMarks.Builder builderForValue) { + if (securityMarksBuilder_ == null) { + securityMarks_ = builderForValue.build(); + onChanged(); + } else { + securityMarksBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The security marks resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { + if (securityMarksBuilder_ == null) { + if (securityMarks_ != null) { + securityMarks_ = + com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_) + .mergeFrom(value) + .buildPartial(); + } else { + securityMarks_ = value; + } + onChanged(); + } else { + securityMarksBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The security marks resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public Builder clearSecurityMarks() { + if (securityMarksBuilder_ == null) { + securityMarks_ = null; + onChanged(); + } else { + securityMarks_ = null; + securityMarksBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The security marks resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() { + + onChanged(); + return getSecurityMarksFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The security marks resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + if (securityMarksBuilder_ != null) { + return securityMarksBuilder_.getMessageOrBuilder(); + } else { + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; + } + } + /** + * + * + *
+     * The security marks resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + getSecurityMarksFieldBuilder() { + if (securityMarksBuilder_ == null) { + securityMarksBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( + getSecurityMarks(), getParentForChildren(), isClean()); + securityMarks_ = null; + } + return securityMarksBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The FieldMask to use when updating the security marks resource.
+     * The field mask must not contain duplicate fields.
+     * If empty or set to "marks", all marks will be replaced.  Individual
+     * marks can be updated using "marks.<mark_key>".
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * The FieldMask to use when updating the security marks resource.
+     * The field mask must not contain duplicate fields.
+     * If empty or set to "marks", all marks will be replaced.  Individual
+     * marks can be updated using "marks.<mark_key>".
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The FieldMask to use when updating the security marks resource.
+     * The field mask must not contain duplicate fields.
+     * If empty or set to "marks", all marks will be replaced.  Individual
+     * marks can be updated using "marks.<mark_key>".
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the security marks resource.
+     * The field mask must not contain duplicate fields.
+     * If empty or set to "marks", all marks will be replaced.  Individual
+     * marks can be updated using "marks.<mark_key>".
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the security marks resource.
+     * The field mask must not contain duplicate fields.
+     * If empty or set to "marks", all marks will be replaced.  Individual
+     * marks can be updated using "marks.<mark_key>".
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the security marks resource.
+     * The field mask must not contain duplicate fields.
+     * If empty or set to "marks", all marks will be replaced.  Individual
+     * marks can be updated using "marks.<mark_key>".
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the security marks resource.
+     * The field mask must not contain duplicate fields.
+     * If empty or set to "marks", all marks will be replaced.  Individual
+     * marks can be updated using "marks.<mark_key>".
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FieldMask to use when updating the security marks resource.
+     * The field mask must not contain duplicate fields.
+     * If empty or set to "marks", all marks will be replaced.  Individual
+     * marks can be updated using "marks.<mark_key>".
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The FieldMask to use when updating the security marks resource.
+     * The field mask must not contain duplicate fields.
+     * If empty or set to "marks", all marks will be replaced.  Individual
+     * marks can be updated using "marks.<mark_key>".
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time at which the updated SecurityMarks take effect.
+     * If not set uses current server time.  Updates will be applied to the
+     * SecurityMarks that are active immediately preceding this time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time at which the updated SecurityMarks take effect.
+     * If not set uses current server time.  Updates will be applied to the
+     * SecurityMarks that are active immediately preceding this time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time at which the updated SecurityMarks take effect.
+     * If not set uses current server time.  Updates will be applied to the
+     * SecurityMarks that are active immediately preceding this time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the updated SecurityMarks take effect.
+     * If not set uses current server time.  Updates will be applied to the
+     * SecurityMarks that are active immediately preceding this time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time at which the updated SecurityMarks take effect.
+     * If not set uses current server time.  Updates will be applied to the
+     * SecurityMarks that are active immediately preceding this time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time at which the updated SecurityMarks take effect.
+     * If not set uses current server time.  Updates will be applied to the
+     * SecurityMarks that are active immediately preceding this time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time at which the updated SecurityMarks take effect.
+     * If not set uses current server time.  Updates will be applied to the
+     * SecurityMarks that are active immediately preceding this time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time at which the updated SecurityMarks take effect.
+     * If not set uses current server time.  Updates will be applied to the
+     * SecurityMarks that are active immediately preceding this time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time at which the updated SecurityMarks take effect.
+     * If not set uses current server time.  Updates will be applied to the
+     * SecurityMarks that are active immediately preceding this time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) + private static final com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest(); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSecurityMarksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSecurityMarksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java new file mode 100644 index 000000000000..90bf7a6b3314 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java @@ -0,0 +1,118 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface UpdateSecurityMarksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The security marks resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + boolean hasSecurityMarks(); + /** + * + * + *
+   * The security marks resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); + /** + * + * + *
+   * The security marks resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + */ + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); + + /** + * + * + *
+   * The FieldMask to use when updating the security marks resource.
+   * The field mask must not contain duplicate fields.
+   * If empty or set to "marks", all marks will be replaced.  Individual
+   * marks can be updated using "marks.<mark_key>".
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The FieldMask to use when updating the security marks resource.
+   * The field mask must not contain duplicate fields.
+   * If empty or set to "marks", all marks will be replaced.  Individual
+   * marks can be updated using "marks.<mark_key>".
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The FieldMask to use when updating the security marks resource.
+   * The field mask must not contain duplicate fields.
+   * If empty or set to "marks", all marks will be replaced.  Individual
+   * marks can be updated using "marks.<mark_key>".
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * The time at which the updated SecurityMarks take effect.
+   * If not set uses current server time.  Updates will be applied to the
+   * SecurityMarks that are active immediately preceding this time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time at which the updated SecurityMarks take effect.
+   * If not set uses current server time.  Updates will be applied to the
+   * SecurityMarks that are active immediately preceding this time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time at which the updated SecurityMarks take effect.
+   * If not set uses current server time.  Updates will be applied to the
+   * SecurityMarks that are active immediately preceding this time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java new file mode 100644 index 000000000000..400e07512106 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java @@ -0,0 +1,977 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for updating a source.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSourceRequest} + */ +public final class UpdateSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateSourceRequest) + UpdateSourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSourceRequest.newBuilder() to construct. + private UpdateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSourceRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateSourceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycenter.v1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, + com.google.cloud.securitycenter.v1.UpdateSourceRequest.Builder.class); + } + + public static final int SOURCE_FIELD_NUMBER = 1; + private com.google.cloud.securitycenter.v1.Source source_; + /** + * + * + *
+   * The source resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public boolean hasSource() { + return source_ != null; + } + /** + * + * + *
+   * The source resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public com.google.cloud.securitycenter.v1.Source getSource() { + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; + } + /** + * + * + *
+   * The source resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { + return getSource(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The FieldMask to use when updating the source resource.
+   * If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The FieldMask to use when updating the source resource.
+   * If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The FieldMask to use when updating the source resource.
+   * If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (source_ != null) { + output.writeMessage(1, getSource()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateSourceRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.UpdateSourceRequest other = + (com.google.cloud.securitycenter.v1.UpdateSourceRequest) obj; + + boolean result = true; + result = result && (hasSource() == other.hasSource()); + if (hasSource()) { + result = result && getSource().equals(other.getSource()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.UpdateSourceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for updating a source.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateSourceRequest) + com.google.cloud.securitycenter.v1.UpdateSourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, + com.google.cloud.securitycenter.v1.UpdateSourceRequest.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.UpdateSourceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (sourceBuilder_ == null) { + source_ = null; + } else { + source_ = null; + sourceBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSourceRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.UpdateSourceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSourceRequest build() { + com.google.cloud.securitycenter.v1.UpdateSourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSourceRequest buildPartial() { + com.google.cloud.securitycenter.v1.UpdateSourceRequest result = + new com.google.cloud.securitycenter.v1.UpdateSourceRequest(this); + if (sourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = sourceBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.UpdateSourceRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateSourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateSourceRequest other) { + if (other == com.google.cloud.securitycenter.v1.UpdateSourceRequest.getDefaultInstance()) + return this; + if (other.hasSource()) { + mergeSource(other.getSource()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.UpdateSourceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateSourceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.securitycenter.v1.Source source_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> + sourceBuilder_; + /** + * + * + *
+     * The source resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public boolean hasSource() { + return sourceBuilder_ != null || source_ != null; + } + /** + * + * + *
+     * The source resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public com.google.cloud.securitycenter.v1.Source getSource() { + if (sourceBuilder_ == null) { + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The source resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + sourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The source resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The source resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { + if (sourceBuilder_ == null) { + if (source_ != null) { + source_ = + com.google.cloud.securitycenter.v1.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + sourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The source resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public Builder clearSource() { + if (sourceBuilder_ == null) { + source_ = null; + onChanged(); + } else { + source_ = null; + sourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The source resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public com.google.cloud.securitycenter.v1.Source.Builder getSourceBuilder() { + + onChanged(); + return getSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The source resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; + } + } + /** + * + * + *
+     * The source resource to update.
+     * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> + getSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); + source_ = null; + } + return sourceBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The FieldMask to use when updating the source resource.
+     * If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * The FieldMask to use when updating the source resource.
+     * If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The FieldMask to use when updating the source resource.
+     * If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the source resource.
+     * If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the source resource.
+     * If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the source resource.
+     * If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The FieldMask to use when updating the source resource.
+     * If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FieldMask to use when updating the source resource.
+     * If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The FieldMask to use when updating the source resource.
+     * If empty all mutable fields will be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateSourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateSourceRequest) + private static final com.google.cloud.securitycenter.v1.UpdateSourceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateSourceRequest(); + } + + public static com.google.cloud.securitycenter.v1.UpdateSourceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSourceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSourceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java new file mode 100644 index 000000000000..db5f008060e8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface UpdateSourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The source resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + boolean hasSource(); + /** + * + * + *
+   * The source resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + com.google.cloud.securitycenter.v1.Source getSource(); + /** + * + * + *
+   * The source resource to update.
+   * 
+ * + * .google.cloud.securitycenter.v1.Source source = 1; + */ + com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder(); + + /** + * + * + *
+   * The FieldMask to use when updating the source resource.
+   * If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The FieldMask to use when updating the source resource.
+   * If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The FieldMask to use when updating the source resource.
+   * If empty all mutable fields will be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto new file mode 100644 index 000000000000..7508fc62afb7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto @@ -0,0 +1,101 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/annotations.proto"; +import "google/cloud/securitycenter/v1/security_marks.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option java_multiple_files = true; +option java_package = "com.google.cloud.securitycenter.v1"; + +// Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud +// Platform (GCP) resource. +// +// The Asset is a Cloud SCC resource that captures information about a single +// GCP resource. All modifications to an Asset are only within the context of +// Cloud SCC and don't affect the referenced GCP resource. +message Asset { + // Cloud SCC managed properties. These properties are managed by Cloud SCC and + // cannot be modified by the user. + message SecurityCenterProperties { + // The full resource name of the GCP resource this asset + // represents. This field is immutable after create time. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + string resource_name = 1; + + // The type of the GCP resource. Examples include: APPLICATION, + // PROJECT, and ORGANIZATION. This is a case insensitive field defined by + // Cloud SCC and/or the producer of the resource and is immutable + // after create time. + string resource_type = 2; + + // The full resource name of the immediate parent of the resource. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + string resource_parent = 3; + + // The full resource name of the project the resource belongs to. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + string resource_project = 4; + + // Owners of the Google Cloud resource. + repeated string resource_owners = 5; + } + + // IAM Policy information associated with the GCP resource described by the + // Cloud SCC asset. This information is managed and defined by the GCP + // resource and cannot be modified by the user. + message IamPolicy { + // The JSON representation of the Policy associated with the asset. + // See https://cloud.google.com/iam/reference/rest/v1/Policy for format + // details. + string policy_blob = 1; + } + + // The relative resource name of this asset. See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: + // "organizations/123/assets/456". + string name = 1; + + // Cloud SCC managed properties. These properties are managed by + // Cloud SCC and cannot be modified by the user. + SecurityCenterProperties security_center_properties = 2; + + // Resource managed properties. These properties are managed and defined by + // the GCP resource and cannot be modified by the user. + map resource_properties = 7; + + // User specified security marks. These marks are entirely managed by the user + // and come from the SecurityMarks resource that belongs to the asset. + SecurityMarks security_marks = 8; + + // The time at which the asset was created in Cloud SCC. + google.protobuf.Timestamp create_time = 9; + + // The time at which the asset was last updated, added, or deleted in Cloud + // SCC. + google.protobuf.Timestamp update_time = 10; + + // IAM Policy information associated with the GCP resource described by the + // Cloud SCC asset. This information is managed and defined by the GCP + // resource and cannot be modified by the user. + IamPolicy iam_policy = 11; +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto new file mode 100644 index 000000000000..992598cffb18 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto @@ -0,0 +1,99 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/annotations.proto"; +import "google/cloud/securitycenter/v1/security_marks.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option java_multiple_files = true; +option java_package = "com.google.cloud.securitycenter.v1"; + +// Cloud Security Command Center (Cloud SCC) finding. +// +// A finding is a record of assessment data (security, risk, health or privacy) +// ingested into Cloud SCC for presentation, notification, analysis, +// policy testing, and enforcement. For example, an XSS vulnerability in an +// App Engine application is a finding. +message Finding { + // The state of the finding. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // The finding requires attention and has not been addressed yet. + ACTIVE = 1; + + // The finding has been fixed, triaged as a non-issue or otherwise addressed + // and is no longer active. + INACTIVE = 2; + } + + // The relative resource name of this finding. See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: + // "organizations/123/sources/456/findings/789" + string name = 1; + + // The relative resource name of the source the finding belongs to. See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // This field is immutable after creation time. + // For example: + // "organizations/123/sources/456" + string parent = 2; + + // The full resource name of the Google Cloud Platform (GCP) resource this + // finding is for. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + // This field is immutable after creation time. + string resource_name = 3; + + // The state of the finding. + State state = 4; + + // The additional taxonomy group within findings from a given source. + // This field is immutable after creation time. + // Example: "XSS_FLASH_INJECTION" + string category = 5; + + // The URI that, if available, points to a web page outside of Cloud SCC + // where additional information about the finding can be found. This field is + // guaranteed to be either empty or a well formed URL. + string external_uri = 6; + + // Source specific properties. These properties are managed by the source + // that writes the finding. The key names in the source_properties map must be + // between 1 and 255 characters, and must start with a letter and contain + // alphanumeric characters or underscores only. + map source_properties = 7; + + // Output only. User specified security marks. These marks are entirely + // managed by the user and come from the SecurityMarks resource that belongs + // to the finding. + SecurityMarks security_marks = 8; + + // The time at which the event took place. For example, if the finding + // represents an open firewall it would capture the time the open firewall was + // detected. + google.protobuf.Timestamp event_time = 9; + + // The time at which the finding was created in Cloud SCC. + google.protobuf.Timestamp create_time = 10; +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto new file mode 100644 index 000000000000..c3c12a28172f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto @@ -0,0 +1,76 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option java_multiple_files = true; +option java_package = "com.google.cloud.securitycenter.v1"; + +// User specified settings that are attached to the Cloud Security Command +// Center (Cloud SCC) organization. +message OrganizationSettings { + // The configuration used for Asset Discovery runs. + message AssetDiscoveryConfig { + // The mode of inclusion when running Asset Discovery. + // Asset discovery can be limited by explicitly identifying projects to be + // included or excluded. If INCLUDE_ONLY is set, then only those projects + // within the organization and their children are discovered during asset + // discovery. If EXCLUDE is set, then projects that don't match those + // projects are discovered during asset discovery. If neither are set, then + // all projects within the organization are discovered during asset + // discovery. + enum InclusionMode { + // Unspecified. Setting the mode with this value will disable + // inclusion/exclusion filtering for Asset Discovery. + INCLUSION_MODE_UNSPECIFIED = 0; + + // Asset Discovery will capture only the resources within the projects + // specified. All other resources will be ignored. + INCLUDE_ONLY = 1; + + // Asset Discovery will ignore all resources under the projects specified. + // All other resources will be retrieved. + EXCLUDE = 2; + } + + // The project ids to use for filtering asset discovery. + repeated string project_ids = 1; + + // The mode to use for filtering asset discovery. + InclusionMode inclusion_mode = 2; + } + + // The relative resource name of the settings. See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: + // "organizations/123/organizationSettings". + string name = 1; + + // A flag that indicates if Asset Discovery should be enabled. If the flag is + // set to `true`, then discovery of assets will occur. If it is set to `false, + // all historical assets will remain, but discovery of future assets will not + // occur. + bool enable_asset_discovery = 2; + + // The configuration used for Asset Discovery runs. + AssetDiscoveryConfig asset_discovery_config = 3; + + reserved 4, 5; +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto new file mode 100644 index 000000000000..b4197e74e4ba --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto @@ -0,0 +1,46 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option java_multiple_files = true; +option java_package = "com.google.cloud.securitycenter.v1"; + +// User specified security marks that are attached to the parent Cloud Security +// Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud +// SCC organization -- they can be modified and viewed by all users who have +// proper permissions on the organization. +message SecurityMarks { + // The relative resource name of the SecurityMarks. See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Examples: + // "organizations/123/assets/456/securityMarks" + // "organizations/123/sources/456/findings/789/securityMarks". + string name = 1; + + // Mutable user specified security marks belonging to the parent resource. + // Constraints are as follows: + // - Keys and values are treated as case insensitive + // - Keys must be between 1 - 256 characters (inclusive) + // - Keys must be letters, numbers, underscores, or dashes + // - Values have leading and trailing whitespace trimmed, remaining + // characters must be between 1 - 4096 characters (inclusive) + map marks = 2; +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto new file mode 100644 index 000000000000..a8a05993a48e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -0,0 +1,891 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/annotations.proto"; +import "google/cloud/securitycenter/v1/asset.proto"; +import "google/cloud/securitycenter/v1/finding.proto"; +import "google/cloud/securitycenter/v1/organization_settings.proto"; +import "google/cloud/securitycenter/v1/security_marks.proto"; +import "google/cloud/securitycenter/v1/source.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option java_multiple_files = true; +option java_package = "com.google.cloud.securitycenter.v1"; + +// V1 APIs for Security Center service. +service SecurityCenter { + // Creates a source. + rpc CreateSource(CreateSourceRequest) returns (Source) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*}/sources" + body: "source" + }; + } + + // Creates a finding. The corresponding source must exist for finding creation + // to succeed. + rpc CreateFinding(CreateFindingRequest) returns (Finding) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*/sources/*}/findings" + body: "finding" + }; + } + + // Gets the access control policy on the specified Source. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1/{resource=organizations/*/sources/*}:getIamPolicy" + body: "*" + }; + } + + // Gets the settings for an organization. + rpc GetOrganizationSettings(GetOrganizationSettingsRequest) + returns (OrganizationSettings) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/organizationSettings}" + }; + } + + // Gets a source. + rpc GetSource(GetSourceRequest) returns (Source) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/sources/*}" + }; + } + + // Filters an organization's assets and groups them by their specified + // properties. + rpc GroupAssets(GroupAssetsRequest) returns (GroupAssetsResponse) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*}/assets:group" + body: "*" + }; + } + + // Filters an organization or source's findings and groups them by their + // specified properties. + // + // To group across all sources provide a `-` as the source id. + // Example: /v1/organizations/123/sources/-/findings + rpc GroupFindings(GroupFindingsRequest) returns (GroupFindingsResponse) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*/sources/*}/findings:group" + body: "*" + }; + } + + // Lists an organization's assets. + rpc ListAssets(ListAssetsRequest) returns (ListAssetsResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*}/assets" + }; + } + + // Lists an organization or source's findings. + // + // To list across all sources provide a `-` as the source id. + // Example: /v1/organizations/123/sources/-/findings + rpc ListFindings(ListFindingsRequest) returns (ListFindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/sources/*}/findings" + }; + } + + // Lists all sources belonging to an organization. + rpc ListSources(ListSourcesRequest) returns (ListSourcesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*}/sources" + }; + } + + // Runs asset discovery. The discovery is tracked with a long-running + // operation. + // + // This API can only be called with limited frequency for an organization. If + // it is called too frequently the caller will receive a TOO_MANY_REQUESTS + // error. + rpc RunAssetDiscovery(RunAssetDiscoveryRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*}/assets:runDiscovery" + body: "*" + }; + } + + // Updates the state of a finding. + rpc SetFindingState(SetFindingStateRequest) returns (Finding) { + option (google.api.http) = { + post: "/v1/{name=organizations/*/sources/*/findings/*}:setState" + body: "*" + }; + } + + // Sets the access control policy on the specified Source. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1/{resource=organizations/*/sources/*}:setIamPolicy" + body: "*" + }; + } + + // Returns the permissions that a caller has on the specified source. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v1/{resource=organizations/*/sources/*}:testIamPermissions" + body: "*" + }; + } + + // Creates or updates a finding. The corresponding source must exist for a + // finding creation to succeed. + rpc UpdateFinding(UpdateFindingRequest) returns (Finding) { + option (google.api.http) = { + patch: "/v1/{finding.name=organizations/*/sources/*/findings/*}" + body: "finding" + }; + } + + // Updates an organization's settings. + rpc UpdateOrganizationSettings(UpdateOrganizationSettingsRequest) + returns (OrganizationSettings) { + option (google.api.http) = { + patch: "/v1/{organization_settings.name=organizations/*/organizationSettings}" + body: "organization_settings" + }; + } + + // Updates a source. + rpc UpdateSource(UpdateSourceRequest) returns (Source) { + option (google.api.http) = { + patch: "/v1/{source.name=organizations/*/sources/*}" + body: "source" + }; + } + + // Updates security marks. + rpc UpdateSecurityMarks(UpdateSecurityMarksRequest) returns (SecurityMarks) { + option (google.api.http) = { + patch: "/v1/{security_marks.name=organizations/*/assets/*/securityMarks}" + body: "security_marks" + additional_bindings { + patch: "/v1/{security_marks.name=organizations/*/sources/*/findings/*/securityMarks}" + body: "security_marks" + } + }; + } +} + +// Request message for creating a finding. +message CreateFindingRequest { + // Resource name of the new finding's parent. Its format should be + // "organizations/[organization_id]/sources/[source_id]". + string parent = 1; + + // Unique identifier provided by the client within the parent scope. + // It must be alphanumeric and less than or equal to 32 characters and + // greater than 0 characters in length. + string finding_id = 2; + + // The Finding being created. The name and security_marks will be ignored as + // they are both output only fields on this resource. + Finding finding = 3; +} + +// Request message for creating a source. +message CreateSourceRequest { + // Resource name of the new source's parent. Its format should be + // "organizations/[organization_id]". + string parent = 1; + + // The Source being created, only the display_name and description will be + // used. All other fields will be ignored. + Source source = 2; +} + +// Request message for getting organization settings. +message GetOrganizationSettingsRequest { + // Name of the organization to get organization settings for. Its format is + // "organizations/[organization_id]/organizationSettings". + string name = 1; +} + +// Request message for getting a source. +message GetSourceRequest { + // Relative resource name of the source. Its format is + // "organizations/[organization_id]/source/[source_id]". + string name = 1; +} + +// Request message for grouping by assets. +message GroupAssetsRequest { + // Name of the organization to groupBy. Its format is + // "organizations/[organization_id]". + string parent = 1; + + // Expression that defines the filter to apply across assets. + // The expression is a list of zero or more restrictions combined via logical + // operators `AND` and `OR`. + // Parentheses are supported, and `OR` has higher precedence than `AND`. + // + // Restrictions have the form ` ` and may have a `-` + // character in front of them to indicate negation. The fields map to those + // defined in the Asset resource. Examples include: + // + // * name + // * security_center_properties.resource_name + // * resource_properties.a_property + // * security_marks.marks.marka + // + // The supported operators are: + // + // * `=` for all value types. + // * `>`, `<`, `>=`, `<=` for integer values. + // * `:`, meaning substring matching, for strings. + // + // The supported value types are: + // + // * string literals in quotes. + // * integer literals without quotes. + // * boolean literals `true` and `false` without quotes. + // + // For example, `resource_properties.size = 100` is a valid filter string. + string filter = 2; + + // Expression that defines what assets fields to use for grouping. The string + // value should follow SQL syntax: comma separated list of fields. For + // example: + // "security_center_properties.resource_project,security_center_properties.project". + // + // The following fields are supported when compare_duration is not set: + // + // * security_center_properties.resource_project + // * security_center_properties.resource_type + // * security_center_properties.resource_parent + // + // The following fields are supported when compare_duration is set: + // + // * security_center_properties.resource_type + string group_by = 3; + + // When compare_duration is set, the GroupResult's "state_change" property is + // updated to indicate whether the asset was added, removed, or remained + // present during the compare_duration period of time that precedes the + // read_time. This is the time between (read_time - compare_duration) and + // read_time. + // + // The state change value is derived based on the presence of the asset at the + // two points in time. Intermediate state changes between the two times don't + // affect the result. For example, the results aren't affected if the asset is + // removed and re-created again. + // + // Possible "state_change" values when compare_duration is specified: + // + // * "ADDED": indicates that the asset was not present at the start of + // compare_duration, but present at reference_time. + // * "REMOVED": indicates that the asset was present at the start of + // compare_duration, but not present at reference_time. + // * "ACTIVE": indicates that the asset was present at both the + // start and the end of the time period defined by + // compare_duration and reference_time. + // + // If compare_duration is not specified, then the only possible state_change + // is "UNUSED", which will be the state_change set for all assets present at + // read_time. + // + // If this field is set then `state_change` must be a specified field in + // `group_by`. + google.protobuf.Duration compare_duration = 4; + + // Time used as a reference point when filtering assets. The filter is limited + // to assets existing at the supplied time and their values are those at that + // specific time. Absence of this field will default to the API's version of + // NOW. + google.protobuf.Timestamp read_time = 5; + + // Filter that specifies what fields to further filter on *after* the query + // filter has been executed. Currently only 'state_change' is supported and + // requires compare_duration to be specified. + string having = 6; + + // The value returned by the last `GroupAssetsResponse`; indicates + // that this is a continuation of a prior `GroupAssets` call, and that the + // system should return the next page of data. + string page_token = 7; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 8; +} + +// Response message for grouping by assets. +message GroupAssetsResponse { + // Group results. There exists an element for each existing unique + // combination of property/values. The element contains a count for the number + // of times those specific property/values appear. + repeated GroupResult group_by_results = 1; + + // Time used for executing the groupBy request. + google.protobuf.Timestamp read_time = 2; + + // Token to retrieve the next page of results, or empty if there are no more + // results. + string next_page_token = 3; + + // The total number of results matching the query. + int32 total_size = 4; +} + +// Request message for grouping by findings. +message GroupFindingsRequest { + // Name of the source to groupBy. Its format is + // "organizations/[organization_id]/sources/[source_id]". To groupBy across + // all sources provide a source_id of `-`. For example: + // organizations/123/sources/- + string parent = 1; + + // Expression that defines the filter to apply across findings. + // The expression is a list of one or more restrictions combined via logical + // operators `AND` and `OR`. + // Parentheses are supported, and `OR` has higher precedence than `AND`. + // + // Restrictions have the form ` ` and may have a `-` + // character in front of them to indicate negation. Examples include: + // + // * name + // * source_properties.a_property + // * security_marks.marks.marka + // + // The supported operators are: + // + // * `=` for all value types. + // * `>`, `<`, `>=`, `<=` for integer values. + // * `:`, meaning substring matching, for strings. + // + // The supported value types are: + // + // * string literals in quotes. + // * integer literals without quotes. + // * boolean literals `true` and `false` without quotes. + // + // For example, `source_properties.size = 100` is a valid filter string. + string filter = 2; + + // Expression that defines what assets fields to use for grouping (including + // `state_change`). The string value should follow SQL syntax: comma separated + // list of fields. For example: "parent,resource_name". + // + // The following fields are supported: + // + // * resource_name + // * category + // * state + // * state_change + // * parent + string group_by = 3; + + // Time used as a reference point when filtering findings. The filter is + // limited to findings existing at the supplied time and their values are + // those at that specific time. Absence of this field will default to the + // API's version of NOW. + google.protobuf.Timestamp read_time = 4; + + // When compare_duration is set, the GroupResult's "state_change" attribute is + // updated to indicate whether the finding had its state changed, the + // finding's state remained unchanged, or if the finding was added during the + // compare_duration period of time that precedes the read_time. This is the + // time between (read_time - compare_duration) and read_time. + // + // The state_change value is derived based on the presence and state of the + // finding at the two points in time. Intermediate state changes between the + // two times don't affect the result. For example, the results aren't affected + // if the finding is made inactive and then active again. + // + // Possible "state_change" values when compare_duration is specified: + // + // * "CHANGED": indicates that the finding was present at the start of + // compare_duration, but changed its state at read_time. + // * "UNCHANGED": indicates that the finding was present at the start of + // compare_duration and did not change state at read_time. + // * "ADDED": indicates that the finding was not present at the start + // of compare_duration, but was present at read_time. + // + // If compare_duration is not specified, then the only possible state_change + // is "UNUSED", which will be the state_change set for all findings present + // at read_time. + // + // If this field is set then `state_change` must be a specified field in + // `group_by`. + google.protobuf.Duration compare_duration = 5; + + // Filter that specifies what fields to further filter on *after* the query + // filter has been executed. Currently only 'finding.state' and 'state_change' + // are supported and requires compare_duration to be specified. + string having = 6; + + // The value returned by the last `GroupFindingsResponse`; indicates + // that this is a continuation of a prior `GroupFindings` call, and + // that the system should return the next page of data. + string page_token = 7; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 8; +} + +// Response message for group by findings. +message GroupFindingsResponse { + // Group results. There exists an element for each existing unique + // combination of property/values. The element contains a count for the number + // of times those specific property/values appear. + repeated GroupResult group_by_results = 1; + + // Time used for executing the groupBy request. + google.protobuf.Timestamp read_time = 2; + + // Token to retrieve the next page of results, or empty if there are no more + // results. + string next_page_token = 3; + + // The total number of results matching the query. + int32 total_size = 4; +} + +// Result containing the properties and count of a groupBy request. +message GroupResult { + // Properties matching the groupBy fields in the request. + map properties = 1; + + // Total count of resources for the given properties. + int64 count = 2; +} + +// Request message for listing sources. +message ListSourcesRequest { + // Resource name of the parent of sources to list. Its format should be + // "organizations/[organization_id]". + string parent = 1; + + // The value returned by the last `ListSourcesResponse`; indicates + // that this is a continuation of a prior `ListSources` call, and + // that the system should return the next page of data. + string page_token = 2; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 7; +} + +// Response message for listing sources. +message ListSourcesResponse { + // Sources belonging to the requested parent. + repeated Source sources = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results. + string next_page_token = 2; +} + +// Request message for listing assets. +message ListAssetsRequest { + // Name of the organization assets should belong to. Its format is + // "organizations/[organization_id]". + string parent = 1; + + // Expression that defines the filter to apply across assets. + // The expression is a list of zero or more restrictions combined via logical + // operators `AND` and `OR`. + // Parentheses are supported, and `OR` has higher precedence than `AND`. + // + // Restrictions have the form ` ` and may have a `-` + // character in front of them to indicate negation. The fields map to those + // defined in the Asset resource. Examples include: + // + // * name + // * security_center_properties.resource_name + // * resource_properties.a_property + // * security_marks.marks.marka + // + // The supported operators are: + // + // * `=` for all value types. + // * `>`, `<`, `>=`, `<=` for integer values. + // * `:`, meaning substring matching, for strings. + // + // The supported value types are: + // + // * string literals in quotes. + // * integer literals without quotes. + // * boolean literals `true` and `false` without quotes. + // + // For example, `resource_properties.size = 100` is a valid filter string. + string filter = 2; + + // Expression that defines what fields and order to use for sorting. The + // string value should follow SQL syntax: comma separated list of fields. For + // example: "name,resource_properties.a_property". The default sorting order + // is ascending. To specify descending order for a field, a suffix " desc" + // should be appended to the field name. For example: "name + // desc,resource_properties.a_property". Redundant space characters in the + // syntax are insignificant. "name desc,resource_properties.a_property" and " + // name desc , resource_properties.a_property " are equivalent. + string order_by = 3; + + // Time used as a reference point when filtering assets. The filter is limited + // to assets existing at the supplied time and their values are those at that + // specific time. Absence of this field will default to the API's version of + // NOW. + google.protobuf.Timestamp read_time = 4; + + // When compare_duration is set, the ListAssetsResult's "state_change" + // attribute is updated to indicate whether the asset was added, removed, or + // remained present during the compare_duration period of time that precedes + // the read_time. This is the time between (read_time - compare_duration) and + // read_time. + // + // The state_change value is derived based on the presence of the asset at the + // two points in time. Intermediate state changes between the two times don't + // affect the result. For example, the results aren't affected if the asset is + // removed and re-created again. + // + // Possible "state_change" values when compare_duration is specified: + // + // * "ADDED": indicates that the asset was not present at the start of + // compare_duration, but present at read_time. + // * "REMOVED": indicates that the asset was present at the start of + // compare_duration, but not present at read_time. + // * "ACTIVE": indicates that the asset was present at both the + // start and the end of the time period defined by + // compare_duration and read_time. + // + // If compare_duration is not specified, then the only possible state_change + // is "UNUSED", which will be the state_change set for all assets present at + // read_time. + google.protobuf.Duration compare_duration = 5; + + // Filter that specifies what fields to further filter on *after* the query + // filter has been executed. Currently only 'state_change' is supported and + // requires compare_duration to be specified. + string having = 6; + + // Optional. + // + // A field mask to specify the ListAssetsResult fields to be listed in the + // response. + // An empty field mask will list all fields. + google.protobuf.FieldMask field_mask = 7; + + // The value returned by the last `ListAssetsResponse`; indicates + // that this is a continuation of a prior `ListAssets` call, and + // that the system should return the next page of data. + string page_token = 8; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 9; +} + +// Response message for listing assets. +message ListAssetsResponse { + // Result containing the Asset and its State. + message ListAssetsResult { + // The change in state of the asset. + // + // When querying across two points in time this describes + // the change between the two points: ADDED, REMOVED, or ACTIVE. + // If there was no compare_duration supplied in the request the state change + // will be: UNUSED + enum StateChange { + // State change is unused, this is the canonical default for this enum. + UNUSED = 0; + + // Asset was added between the points in time. + ADDED = 1; + + // Asset was removed between the points in time. + REMOVED = 2; + + // Asset was present at both point(s) in time. + ACTIVE = 3; + } + + // Asset matching the search request. + Asset asset = 1; + + // State change of the asset between the points in time. + StateChange state_change = 2; + } + + // Assets matching the list request. + repeated ListAssetsResult list_assets_results = 1; + + // Time used for executing the list request. + google.protobuf.Timestamp read_time = 2; + + // Token to retrieve the next page of results, or empty if there are no more + // results. + string next_page_token = 3; + + // The total number of assets matching the query. + int32 total_size = 4; +} + +// Request message for listing findings. +message ListFindingsRequest { + // Name of the source the findings belong to. Its format is + // "organizations/[organization_id]/sources/[source_id]". To list across all + // sources provide a source_id of `-`. For example: + // organizations/123/sources/- + string parent = 1; + + // Expression that defines the filter to apply across findings. + // The expression is a list of one or more restrictions combined via logical + // operators `AND` and `OR`. + // Parentheses are supported, and `OR` has higher precedence than `AND`. + // + // Restrictions have the form ` ` and may have a `-` + // character in front of them to indicate negation. Examples include: + // + // * name + // * source_properties.a_property + // * security_marks.marks.marka + // + // The supported operators are: + // + // * `=` for all value types. + // * `>`, `<`, `>=`, `<=` for integer values. + // * `:`, meaning substring matching, for strings. + // + // The supported value types are: + // + // * string literals in quotes. + // * integer literals without quotes. + // * boolean literals `true` and `false` without quotes. + // + // For example, `source_properties.size = 100` is a valid filter string. + string filter = 2; + + // Expression that defines what fields and order to use for sorting. The + // string value should follow SQL syntax: comma separated list of fields. For + // example: "name,resource_properties.a_property". The default sorting order + // is ascending. To specify descending order for a field, a suffix " desc" + // should be appended to the field name. For example: "name + // desc,source_properties.a_property". Redundant space characters in the + // syntax are insignificant. "name desc,source_properties.a_property" and " + // name desc , source_properties.a_property " are equivalent. + string order_by = 3; + + // Time used as a reference point when filtering findings. The filter is + // limited to findings existing at the supplied time and their values are + // those at that specific time. Absence of this field will default to the + // API's version of NOW. + google.protobuf.Timestamp read_time = 4; + + // When compare_duration is set, the ListFindingsResult's "state_change" + // attribute is updated to indicate whether the finding had its state changed, + // the finding's state remained unchanged, or if the finding was added in any + // state during the compare_duration period of time that precedes the + // read_time. This is the time between (read_time - compare_duration) and + // read_time. + // + // The state_change value is derived based on the presence and state of the + // finding at the two points in time. Intermediate state changes between the + // two times don't affect the result. For example, the results aren't affected + // if the finding is made inactive and then active again. + // + // Possible "state_change" values when compare_duration is specified: + // + // * "CHANGED": indicates that the finding was present at the start of + // compare_duration, but changed its state at read_time. + // * "UNCHANGED": indicates that the finding was present at the start of + // compare_duration and did not change state at read_time. + // * "ADDED": indicates that the finding was not present at the start + // of compare_duration, but was present at read_time. + // + // If compare_duration is not specified, then the only possible state_change + // is "UNUSED", which will be the state_change set for all findings present at + // read_time. + google.protobuf.Duration compare_duration = 5; + + // Filter that specifies what fields to further filter on *after* the query + // filter has been executed. Currently only 'finding.state' and 'state_change' + // are supported and requires compare_duration to be specified. + string having = 6; + + // Optional. + // + // A field mask to specify the Finding fields to be listed in the response. + // An empty field mask will list all fields. + google.protobuf.FieldMask field_mask = 7; + + // The value returned by the last `ListFindingsResponse`; indicates + // that this is a continuation of a prior `ListFindings` call, and + // that the system should return the next page of data. + string page_token = 8; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 9; +} + +// Response message for listing findings. +message ListFindingsResponse { + // Result containing the Finding and its StateChange. + message ListFindingsResult { + // The change in state of the finding. + // + // When querying across two points in time this describes + // the change in the finding between the two points: CHANGED, UNCHANGED, + // ADDED, or REMOVED. Findings can not be deleted, so REMOVED implies that + // the finding at timestamp does not match the filter specified, but it did + // at timestamp - compare_duration. If there was no compare_duration + // supplied in the request the state change will be: UNUSED + enum StateChange { + // State change is unused, this is the canonical default for this enum. + UNUSED = 0; + + // The finding has changed state in some way between the points in time + // and existed at both points. + CHANGED = 1; + + // The finding has not changed state between the points in time and + // existed at both points. + UNCHANGED = 2; + + // The finding was created between the points in time. + ADDED = 3; + + // The finding at timestamp does not match the filter specified, but it + // did at timestamp - compare_duration. + REMOVED = 4; + } + + // Finding matching the search request. + Finding finding = 1; + + // State change of the finding between the points in time. + StateChange state_change = 2; + } + + // Findings matching the list request. + repeated ListFindingsResult list_findings_results = 1; + + // Time used for executing the list request. + google.protobuf.Timestamp read_time = 2; + + // Token to retrieve the next page of results, or empty if there are no more + // results. + string next_page_token = 3; + + // The total number of findings matching the query. + int32 total_size = 4; +} + +// Request message for updating a finding's state. +message SetFindingStateRequest { + // The relative resource name of the finding. See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: + // "organizations/123/sources/456/finding/789". + string name = 1; + + // The desired State of the finding. + Finding.State state = 2; + + // The time at which the updated state takes effect. + google.protobuf.Timestamp start_time = 3; +} + +// Request message for running asset discovery for an organization. +message RunAssetDiscoveryRequest { + // Name of the organization to run asset discovery for. Its format is + // "organizations/[organization_id]". + string parent = 1; +} + +// Request message for updating or creating a finding. +message UpdateFindingRequest { + // The finding resource to update or create if it does not already exist. + // parent, security_marks, and update_time will be ignored. + // + // In the case of creation, the finding id portion of the name must be + // alphanumeric and less than or equal to 32 characters and greater than 0 + // characters in length. + Finding finding = 1; + + // The FieldMask to use when updating the finding resource. This field should + // not be specified when creating a finding. + // + // When updating a finding, an empty mask is treated as updating all mutable + // fields and replacing source_properties. Individual source_properties can + // be added/updated by using "source_properties." in the field + // mask. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for updating an organization's settings. +message UpdateOrganizationSettingsRequest { + // The organization settings resource to update. + OrganizationSettings organization_settings = 1; + + // The FieldMask to use when updating the settings resource. + // + // If empty all mutable fields will be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for updating a source. +message UpdateSourceRequest { + // The source resource to update. + Source source = 1; + + // The FieldMask to use when updating the source resource. + // + // If empty all mutable fields will be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for updating a SecurityMarks resource. +message UpdateSecurityMarksRequest { + // The security marks resource to update. + SecurityMarks security_marks = 1; + + // The FieldMask to use when updating the security marks resource. + // + // The field mask must not contain duplicate fields. + // If empty or set to "marks", all marks will be replaced. Individual + // marks can be updated using "marks.". + google.protobuf.FieldMask update_mask = 2; + + // The time at which the updated SecurityMarks take effect. + // If not set uses current server time. Updates will be applied to the + // SecurityMarks that are active immediately preceding this time. + google.protobuf.Timestamp start_time = 3; +} diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto new file mode 100644 index 000000000000..e58a0596d613 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto @@ -0,0 +1,55 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option java_multiple_files = true; +option java_package = "com.google.cloud.securitycenter.v1"; + +// Cloud Security Command Center's (Cloud SCC) finding source. A finding source +// is an entity or a mechanism that can produce a finding. A source is like a +// container of findings that come from the same scanner, logger, monitor, etc. +message Source { + // The relative resource name of this source. See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: + // "organizations/123/sources/456" + string name = 1; + + // The source’s display name. + // A source’s display name must be unique amongst its siblings, for example, + // two sources with the same parent can't share the same display name. + // The display name must start and end with a letter or digit, may contain + // letters, digits, spaces, hyphens, and underscores, and can be no longer + // than 32 characters. This is captured by the regular expression: + // [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + string display_name = 2; + + // The description of the source (max of 1024 characters). + // Example: + // "Cloud Security Scanner is a web security scanner for common + // vulnerabilities in App Engine applications. It can automatically + // scan and detect four common vulnerabilities, including cross-site-scripting + // (XSS), Flash injection, mixed content (HTTP in HTTPS), and + // outdated/insecure libraries." + string description = 3; + + reserved 4; +} diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index f8c29606e131..709d0a150f31 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -610,6 +610,11 @@ grpc-google-cloud-scheduler-v1beta1 0.47.1-SNAPSHOT
+ + com.google.cloud + google-cloud-securitycenter + 0.82.1-alpha-SNAPSHOT + com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 @@ -620,6 +625,16 @@ grpc-google-cloud-securitycenter-v1beta1 0.47.1-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-securitycenter-v1 + 0.47.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-securitycenter-v1 + 0.47.1-SNAPSHOT + com.google.cloud google-cloud-spanner diff --git a/google-cloud-clients/google-cloud-securitycenter/pom.xml b/google-cloud-clients/google-cloud-securitycenter/pom.xml index 18f892f868ee..0bb0fd8016af 100644 --- a/google-cloud-clients/google-cloud-securitycenter/pom.xml +++ b/google-cloud-clients/google-cloud-securitycenter/pom.xml @@ -34,6 +34,14 @@ com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 + + com.google.api.grpc + proto-google-cloud-securitycenter-v1 + + + com.google.api.grpc + grpc-google-cloud-securitycenter-v1 + io.grpc grpc-netty-shaded diff --git a/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java new file mode 100644 index 000000000000..9e1733f8f631 --- /dev/null +++ b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java @@ -0,0 +1,2471 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.securitycenter.v1.stub.SecurityCenterStub; +import com.google.cloud.securitycenter.v1.stub.SecurityCenterStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: V1 APIs for Security Center service. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+ *   Source source = Source.newBuilder().build();
+ *   Source response = securityCenterClient.createSource(parent, source);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the securityCenterClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of SecurityCenterSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * SecurityCenterSettings securityCenterSettings =
+ *     SecurityCenterSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * SecurityCenterClient securityCenterClient =
+ *     SecurityCenterClient.create(securityCenterSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * SecurityCenterSettings securityCenterSettings =
+ *     SecurityCenterSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SecurityCenterClient securityCenterClient =
+ *     SecurityCenterClient.create(securityCenterSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class SecurityCenterClient implements BackgroundResource { + private final SecurityCenterSettings settings; + private final SecurityCenterStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of SecurityCenterClient with default settings. */ + public static final SecurityCenterClient create() throws IOException { + return create(SecurityCenterSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SecurityCenterClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SecurityCenterClient create(SecurityCenterSettings settings) + throws IOException { + return new SecurityCenterClient(settings); + } + + /** + * Constructs an instance of SecurityCenterClient, using the given stub for making calls. This is + * for advanced usage - prefer to use SecurityCenterSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final SecurityCenterClient create(SecurityCenterStub stub) { + return new SecurityCenterClient(stub); + } + + /** + * Constructs an instance of SecurityCenterClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected SecurityCenterClient(SecurityCenterSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SecurityCenterStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected SecurityCenterClient(SecurityCenterStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final SecurityCenterSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public SecurityCenterStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   Source source = Source.newBuilder().build();
+   *   Source response = securityCenterClient.createSource(parent, source);
+   * }
+   * 
+ * + * @param parent Resource name of the new source's parent. Its format should be + * "organizations/[organization_id]". + * @param source The Source being created, only the display_name and description will be used. All + * other fields will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Source createSource(OrganizationName parent, Source source) { + + CreateSourceRequest request = + CreateSourceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSource(source) + .build(); + return createSource(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   Source source = Source.newBuilder().build();
+   *   Source response = securityCenterClient.createSource(parent.toString(), source);
+   * }
+   * 
+ * + * @param parent Resource name of the new source's parent. Its format should be + * "organizations/[organization_id]". + * @param source The Source being created, only the display_name and description will be used. All + * other fields will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Source createSource(String parent, Source source) { + + CreateSourceRequest request = + CreateSourceRequest.newBuilder().setParent(parent).setSource(source).build(); + return createSource(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   Source source = Source.newBuilder().build();
+   *   CreateSourceRequest request = CreateSourceRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setSource(source)
+   *     .build();
+   *   Source response = securityCenterClient.createSource(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Source createSource(CreateSourceRequest request) { + return createSourceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   Source source = Source.newBuilder().build();
+   *   CreateSourceRequest request = CreateSourceRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setSource(source)
+   *     .build();
+   *   ApiFuture<Source> future = securityCenterClient.createSourceCallable().futureCall(request);
+   *   // Do something
+   *   Source response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createSourceCallable() { + return stub.createSourceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a finding. The corresponding source must exist for finding creation to succeed. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   String findingId = "";
+   *   Finding finding = Finding.newBuilder().build();
+   *   Finding response = securityCenterClient.createFinding(parent, findingId, finding);
+   * }
+   * 
+ * + * @param parent Resource name of the new finding's parent. Its format should be + * "organizations/[organization_id]/sources/[source_id]". + * @param findingId Unique identifier provided by the client within the parent scope. It must be + * alphanumeric and less than or equal to 32 characters and greater than 0 characters in + * length. + * @param finding The Finding being created. The name and security_marks will be ignored as they + * are both output only fields on this resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Finding createFinding(SourceName parent, String findingId, Finding finding) { + + CreateFindingRequest request = + CreateFindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFindingId(findingId) + .setFinding(finding) + .build(); + return createFinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a finding. The corresponding source must exist for finding creation to succeed. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   String findingId = "";
+   *   Finding finding = Finding.newBuilder().build();
+   *   Finding response = securityCenterClient.createFinding(parent.toString(), findingId, finding);
+   * }
+   * 
+ * + * @param parent Resource name of the new finding's parent. Its format should be + * "organizations/[organization_id]/sources/[source_id]". + * @param findingId Unique identifier provided by the client within the parent scope. It must be + * alphanumeric and less than or equal to 32 characters and greater than 0 characters in + * length. + * @param finding The Finding being created. The name and security_marks will be ignored as they + * are both output only fields on this resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Finding createFinding(String parent, String findingId, Finding finding) { + + CreateFindingRequest request = + CreateFindingRequest.newBuilder() + .setParent(parent) + .setFindingId(findingId) + .setFinding(finding) + .build(); + return createFinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a finding. The corresponding source must exist for finding creation to succeed. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   String findingId = "";
+   *   Finding finding = Finding.newBuilder().build();
+   *   CreateFindingRequest request = CreateFindingRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFindingId(findingId)
+   *     .setFinding(finding)
+   *     .build();
+   *   Finding response = securityCenterClient.createFinding(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Finding createFinding(CreateFindingRequest request) { + return createFindingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a finding. The corresponding source must exist for finding creation to succeed. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   String findingId = "";
+   *   Finding finding = Finding.newBuilder().build();
+   *   CreateFindingRequest request = CreateFindingRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFindingId(findingId)
+   *     .setFinding(finding)
+   *     .build();
+   *   ApiFuture<Finding> future = securityCenterClient.createFindingCallable().futureCall(request);
+   *   // Do something
+   *   Finding response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createFindingCallable() { + return stub.createFindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy on the specified Source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   Policy response = securityCenterClient.getIamPolicy(resource);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. `resource` is + * usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(SourceName resource) { + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(resource == null ? null : resource.toString()) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy on the specified Source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   Policy response = securityCenterClient.getIamPolicy(resource.toString());
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. `resource` is + * usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String resource) { + + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy on the specified Source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .build();
+   *   Policy response = securityCenterClient.getIamPolicy(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy on the specified Source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .build();
+   *   ApiFuture<Policy> future = securityCenterClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something
+   *   Policy response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the settings for an organization. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]");
+   *   OrganizationSettings response = securityCenterClient.getOrganizationSettings(name);
+   * }
+   * 
+ * + * @param name Name of the organization to get organization settings for. Its format is + * "organizations/[organization_id]/organizationSettings". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrganizationSettings getOrganizationSettings(OrganizationSettingsName name) { + + GetOrganizationSettingsRequest request = + GetOrganizationSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getOrganizationSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the settings for an organization. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]");
+   *   OrganizationSettings response = securityCenterClient.getOrganizationSettings(name.toString());
+   * }
+   * 
+ * + * @param name Name of the organization to get organization settings for. Its format is + * "organizations/[organization_id]/organizationSettings". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrganizationSettings getOrganizationSettings(String name) { + + GetOrganizationSettingsRequest request = + GetOrganizationSettingsRequest.newBuilder().setName(name).build(); + return getOrganizationSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the settings for an organization. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]");
+   *   GetOrganizationSettingsRequest request = GetOrganizationSettingsRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   OrganizationSettings response = securityCenterClient.getOrganizationSettings(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrganizationSettings getOrganizationSettings( + GetOrganizationSettingsRequest request) { + return getOrganizationSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the settings for an organization. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]");
+   *   GetOrganizationSettingsRequest request = GetOrganizationSettingsRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<OrganizationSettings> future = securityCenterClient.getOrganizationSettingsCallable().futureCall(request);
+   *   // Do something
+   *   OrganizationSettings response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getOrganizationSettingsCallable() { + return stub.getOrganizationSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   Source response = securityCenterClient.getSource(name);
+   * }
+   * 
+ * + * @param name Relative resource name of the source. Its format is + * "organizations/[organization_id]/source/[source_id]". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Source getSource(SourceName name) { + + GetSourceRequest request = + GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSource(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   Source response = securityCenterClient.getSource(name.toString());
+   * }
+   * 
+ * + * @param name Relative resource name of the source. Its format is + * "organizations/[organization_id]/source/[source_id]". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Source getSource(String name) { + + GetSourceRequest request = GetSourceRequest.newBuilder().setName(name).build(); + return getSource(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   GetSourceRequest request = GetSourceRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Source response = securityCenterClient.getSource(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Source getSource(GetSourceRequest request) { + return getSourceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   GetSourceRequest request = GetSourceRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Source> future = securityCenterClient.getSourceCallable().futureCall(request);
+   *   // Do something
+   *   Source response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getSourceCallable() { + return stub.getSourceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Filters an organization's assets and groups them by their specified properties. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   String groupBy = "";
+   *   GroupAssetsRequest request = GroupAssetsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setGroupBy(groupBy)
+   *     .build();
+   *   for (GroupResult element : securityCenterClient.groupAssets(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GroupAssetsPagedResponse groupAssets(GroupAssetsRequest request) { + return groupAssetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Filters an organization's assets and groups them by their specified properties. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   String groupBy = "";
+   *   GroupAssetsRequest request = GroupAssetsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setGroupBy(groupBy)
+   *     .build();
+   *   ApiFuture<GroupAssetsPagedResponse> future = securityCenterClient.groupAssetsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (GroupResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + groupAssetsPagedCallable() { + return stub.groupAssetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Filters an organization's assets and groups them by their specified properties. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   String groupBy = "";
+   *   GroupAssetsRequest request = GroupAssetsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setGroupBy(groupBy)
+   *     .build();
+   *   while (true) {
+   *     GroupAssetsResponse response = securityCenterClient.groupAssetsCallable().call(request);
+   *     for (GroupResult element : response.getGroupByResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable groupAssetsCallable() { + return stub.groupAssetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Filters an organization or source's findings and groups them by their specified properties. + * + *

To group across all sources provide a `-` as the source id. Example: + * /v1/organizations/123/sources/-/findings + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   String groupBy = "";
+   *   for (GroupResult element : securityCenterClient.groupFindings(parent, groupBy).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Name of the source to groupBy. Its format is + * "organizations/[organization_id]/sources/[source_id]". To groupBy across all sources + * provide a source_id of `-`. For example: organizations/123/sources/- + * @param groupBy Expression that defines what assets fields to use for grouping (including + * `state_change`). The string value should follow SQL syntax: comma separated list of fields. + * For example: "parent,resource_name". + *

The following fields are supported: + *

* resource_name * category * state * state_change * parent + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GroupFindingsPagedResponse groupFindings(SourceName parent, String groupBy) { + GroupFindingsRequest request = + GroupFindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGroupBy(groupBy) + .build(); + return groupFindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Filters an organization or source's findings and groups them by their specified properties. + * + *

To group across all sources provide a `-` as the source id. Example: + * /v1/organizations/123/sources/-/findings + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   String groupBy = "";
+   *   for (GroupResult element : securityCenterClient.groupFindings(parent.toString(), groupBy).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Name of the source to groupBy. Its format is + * "organizations/[organization_id]/sources/[source_id]". To groupBy across all sources + * provide a source_id of `-`. For example: organizations/123/sources/- + * @param groupBy Expression that defines what assets fields to use for grouping (including + * `state_change`). The string value should follow SQL syntax: comma separated list of fields. + * For example: "parent,resource_name". + *

The following fields are supported: + *

* resource_name * category * state * state_change * parent + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GroupFindingsPagedResponse groupFindings(String parent, String groupBy) { + GroupFindingsRequest request = + GroupFindingsRequest.newBuilder().setParent(parent).setGroupBy(groupBy).build(); + return groupFindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Filters an organization or source's findings and groups them by their specified properties. + * + *

To group across all sources provide a `-` as the source id. Example: + * /v1/organizations/123/sources/-/findings + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   String groupBy = "";
+   *   GroupFindingsRequest request = GroupFindingsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setGroupBy(groupBy)
+   *     .build();
+   *   for (GroupResult element : securityCenterClient.groupFindings(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GroupFindingsPagedResponse groupFindings(GroupFindingsRequest request) { + return groupFindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Filters an organization or source's findings and groups them by their specified properties. + * + *

To group across all sources provide a `-` as the source id. Example: + * /v1/organizations/123/sources/-/findings + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   String groupBy = "";
+   *   GroupFindingsRequest request = GroupFindingsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setGroupBy(groupBy)
+   *     .build();
+   *   ApiFuture<GroupFindingsPagedResponse> future = securityCenterClient.groupFindingsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (GroupResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + groupFindingsPagedCallable() { + return stub.groupFindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Filters an organization or source's findings and groups them by their specified properties. + * + *

To group across all sources provide a `-` as the source id. Example: + * /v1/organizations/123/sources/-/findings + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   String groupBy = "";
+   *   GroupFindingsRequest request = GroupFindingsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setGroupBy(groupBy)
+   *     .build();
+   *   while (true) {
+   *     GroupFindingsResponse response = securityCenterClient.groupFindingsCallable().call(request);
+   *     for (GroupResult element : response.getGroupByResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable groupFindingsCallable() { + return stub.groupFindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists an organization's assets. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   ListAssetsRequest request = ListAssetsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (ListAssetsResponse.ListAssetsResult element : securityCenterClient.listAssets(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAssetsPagedResponse listAssets(ListAssetsRequest request) { + return listAssetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists an organization's assets. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   ListAssetsRequest request = ListAssetsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListAssetsPagedResponse> future = securityCenterClient.listAssetsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (ListAssetsResponse.ListAssetsResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listAssetsPagedCallable() { + return stub.listAssetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists an organization's assets. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   ListAssetsRequest request = ListAssetsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListAssetsResponse response = securityCenterClient.listAssetsCallable().call(request);
+   *     for (ListAssetsResponse.ListAssetsResult element : response.getListAssetsResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listAssetsCallable() { + return stub.listAssetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists an organization or source's findings. + * + *

To list across all sources provide a `-` as the source id. Example: + * /v1/organizations/123/sources/-/findings + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   ListFindingsRequest request = ListFindingsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (ListFindingsResponse.ListFindingsResult element : securityCenterClient.listFindings(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) { + return listFindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists an organization or source's findings. + * + *

To list across all sources provide a `-` as the source id. Example: + * /v1/organizations/123/sources/-/findings + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   ListFindingsRequest request = ListFindingsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListFindingsPagedResponse> future = securityCenterClient.listFindingsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (ListFindingsResponse.ListFindingsResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listFindingsPagedCallable() { + return stub.listFindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists an organization or source's findings. + * + *

To list across all sources provide a `-` as the source id. Example: + * /v1/organizations/123/sources/-/findings + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   ListFindingsRequest request = ListFindingsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListFindingsResponse response = securityCenterClient.listFindingsCallable().call(request);
+   *     for (ListFindingsResponse.ListFindingsResult element : response.getListFindingsResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listFindingsCallable() { + return stub.listFindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all sources belonging to an organization. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Resource name of the parent of sources to list. Its format should be + * "organizations/[organization_id]". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSourcesPagedResponse listSources(OrganizationName parent) { + ListSourcesRequest request = + ListSourcesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSources(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all sources belonging to an organization. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   for (Source element : securityCenterClient.listSources(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Resource name of the parent of sources to list. Its format should be + * "organizations/[organization_id]". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSourcesPagedResponse listSources(String parent) { + ListSourcesRequest request = ListSourcesRequest.newBuilder().setParent(parent).build(); + return listSources(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all sources belonging to an organization. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   ListSourcesRequest request = ListSourcesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (Source element : securityCenterClient.listSources(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSourcesPagedResponse listSources(ListSourcesRequest request) { + return listSourcesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all sources belonging to an organization. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   ListSourcesRequest request = ListSourcesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListSourcesPagedResponse> future = securityCenterClient.listSourcesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Source element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listSourcesPagedCallable() { + return stub.listSourcesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all sources belonging to an organization. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   ListSourcesRequest request = ListSourcesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListSourcesResponse response = securityCenterClient.listSourcesCallable().call(request);
+   *     for (Source element : response.getSourcesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listSourcesCallable() { + return stub.listSourcesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Runs asset discovery. The discovery is tracked with a long-running operation. + * + *

This API can only be called with limited frequency for an organization. If it is called too + * frequently the caller will receive a TOO_MANY_REQUESTS error. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   securityCenterClient.runAssetDiscoveryAsync(parent).get();
+   * }
+   * 
+ * + * @param parent Name of the organization to run asset discovery for. Its format is + * "organizations/[organization_id]". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture runAssetDiscoveryAsync(OrganizationName parent) { + + RunAssetDiscoveryRequest request = + RunAssetDiscoveryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return runAssetDiscoveryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Runs asset discovery. The discovery is tracked with a long-running operation. + * + *

This API can only be called with limited frequency for an organization. If it is called too + * frequently the caller will receive a TOO_MANY_REQUESTS error. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   securityCenterClient.runAssetDiscoveryAsync(parent.toString()).get();
+   * }
+   * 
+ * + * @param parent Name of the organization to run asset discovery for. Its format is + * "organizations/[organization_id]". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture runAssetDiscoveryAsync(String parent) { + + RunAssetDiscoveryRequest request = + RunAssetDiscoveryRequest.newBuilder().setParent(parent).build(); + return runAssetDiscoveryAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Runs asset discovery. The discovery is tracked with a long-running operation. + * + *

This API can only be called with limited frequency for an organization. If it is called too + * frequently the caller will receive a TOO_MANY_REQUESTS error. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   RunAssetDiscoveryRequest request = RunAssetDiscoveryRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   securityCenterClient.runAssetDiscoveryAsync(request).get();
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture runAssetDiscoveryAsync( + RunAssetDiscoveryRequest request) { + return runAssetDiscoveryOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Runs asset discovery. The discovery is tracked with a long-running operation. + * + *

This API can only be called with limited frequency for an organization. If it is called too + * frequently the caller will receive a TOO_MANY_REQUESTS error. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   RunAssetDiscoveryRequest request = RunAssetDiscoveryRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   OperationFuture<Empty, Empty> future = securityCenterClient.runAssetDiscoveryOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + runAssetDiscoveryOperationCallable() { + return stub.runAssetDiscoveryOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Runs asset discovery. The discovery is tracked with a long-running operation. + * + *

This API can only be called with limited frequency for an organization. If it is called too + * frequently the caller will receive a TOO_MANY_REQUESTS error. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   RunAssetDiscoveryRequest request = RunAssetDiscoveryRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<Operation> future = securityCenterClient.runAssetDiscoveryCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable runAssetDiscoveryCallable() { + return stub.runAssetDiscoveryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the state of a finding. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   FindingName name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
+   *   Finding.State state = Finding.State.STATE_UNSPECIFIED;
+   *   Timestamp startTime = Timestamp.newBuilder().build();
+   *   Finding response = securityCenterClient.setFindingState(name, state, startTime);
+   * }
+   * 
+ * + * @param name The relative resource name of the finding. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: + * "organizations/123/sources/456/finding/789". + * @param state The desired State of the finding. + * @param startTime The time at which the updated state takes effect. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Finding setFindingState(FindingName name, Finding.State state, Timestamp startTime) { + + SetFindingStateRequest request = + SetFindingStateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setState(state) + .setStartTime(startTime) + .build(); + return setFindingState(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the state of a finding. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   FindingName name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
+   *   Finding.State state = Finding.State.STATE_UNSPECIFIED;
+   *   Timestamp startTime = Timestamp.newBuilder().build();
+   *   Finding response = securityCenterClient.setFindingState(name.toString(), state, startTime);
+   * }
+   * 
+ * + * @param name The relative resource name of the finding. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: + * "organizations/123/sources/456/finding/789". + * @param state The desired State of the finding. + * @param startTime The time at which the updated state takes effect. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Finding setFindingState(String name, Finding.State state, Timestamp startTime) { + + SetFindingStateRequest request = + SetFindingStateRequest.newBuilder() + .setName(name) + .setState(state) + .setStartTime(startTime) + .build(); + return setFindingState(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the state of a finding. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   FindingName name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
+   *   Finding.State state = Finding.State.STATE_UNSPECIFIED;
+   *   Timestamp startTime = Timestamp.newBuilder().build();
+   *   SetFindingStateRequest request = SetFindingStateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setState(state)
+   *     .setStartTime(startTime)
+   *     .build();
+   *   Finding response = securityCenterClient.setFindingState(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Finding setFindingState(SetFindingStateRequest request) { + return setFindingStateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the state of a finding. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   FindingName name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
+   *   Finding.State state = Finding.State.STATE_UNSPECIFIED;
+   *   Timestamp startTime = Timestamp.newBuilder().build();
+   *   SetFindingStateRequest request = SetFindingStateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setState(state)
+   *     .setStartTime(startTime)
+   *     .build();
+   *   ApiFuture<Finding> future = securityCenterClient.setFindingStateCallable().futureCall(request);
+   *   // Do something
+   *   Finding response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable setFindingStateCallable() { + return stub.setFindingStateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified Source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   Policy response = securityCenterClient.setIamPolicy(resource, policy);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. `resource` is + * usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the + * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud + * Platform services (such as Projects) might reject them. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SourceName resource, Policy policy) { + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(resource == null ? null : resource.toString()) + .setPolicy(policy) + .build(); + return setIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified Source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   Policy response = securityCenterClient.setIamPolicy(resource.toString(), policy);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. `resource` is + * usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the + * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud + * Platform services (such as Projects) might reject them. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(String resource, Policy policy) { + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); + return setIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified Source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .setPolicy(policy)
+   *     .build();
+   *   Policy response = securityCenterClient.setIamPolicy(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified Source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .setPolicy(policy)
+   *     .build();
+   *   ApiFuture<Policy> future = securityCenterClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something
+   *   Policy response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the permissions that a caller has on the specified source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsResponse response = securityCenterClient.testIamPermissions(resource, permissions);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. + * `resource` is usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @param permissions The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions( + SourceName resource, List permissions) { + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(resource == null ? null : resource.toString()) + .addAllPermissions(permissions) + .build(); + return testIamPermissions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the permissions that a caller has on the specified source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsResponse response = securityCenterClient.testIamPermissions(resource.toString(), permissions);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. + * `resource` is usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @param permissions The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions( + String resource, List permissions) { + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(resource) + .addAllPermissions(permissions) + .build(); + return testIamPermissions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the permissions that a caller has on the specified source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .addAllPermissions(permissions)
+   *     .build();
+   *   TestIamPermissionsResponse response = securityCenterClient.testIamPermissions(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the permissions that a caller has on the specified source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .addAllPermissions(permissions)
+   *     .build();
+   *   ApiFuture<TestIamPermissionsResponse> future = securityCenterClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates a finding. The corresponding source must exist for a finding creation to + * succeed. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   Finding finding = Finding.newBuilder().build();
+   *   Finding response = securityCenterClient.updateFinding(finding);
+   * }
+   * 
+ * + * @param finding The finding resource to update or create if it does not already exist. parent, + * security_marks, and update_time will be ignored. + *

In the case of creation, the finding id portion of the name must be alphanumeric and + * less than or equal to 32 characters and greater than 0 characters in length. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Finding updateFinding(Finding finding) { + + UpdateFindingRequest request = UpdateFindingRequest.newBuilder().setFinding(finding).build(); + return updateFinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates a finding. The corresponding source must exist for a finding creation to + * succeed. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   Finding finding = Finding.newBuilder().build();
+   *   UpdateFindingRequest request = UpdateFindingRequest.newBuilder()
+   *     .setFinding(finding)
+   *     .build();
+   *   Finding response = securityCenterClient.updateFinding(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Finding updateFinding(UpdateFindingRequest request) { + return updateFindingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates a finding. The corresponding source must exist for a finding creation to + * succeed. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   Finding finding = Finding.newBuilder().build();
+   *   UpdateFindingRequest request = UpdateFindingRequest.newBuilder()
+   *     .setFinding(finding)
+   *     .build();
+   *   ApiFuture<Finding> future = securityCenterClient.updateFindingCallable().futureCall(request);
+   *   // Do something
+   *   Finding response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateFindingCallable() { + return stub.updateFindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an organization's settings. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationSettings organizationSettings = OrganizationSettings.newBuilder().build();
+   *   OrganizationSettings response = securityCenterClient.updateOrganizationSettings(organizationSettings);
+   * }
+   * 
+ * + * @param organizationSettings The organization settings resource to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrganizationSettings updateOrganizationSettings( + OrganizationSettings organizationSettings) { + + UpdateOrganizationSettingsRequest request = + UpdateOrganizationSettingsRequest.newBuilder() + .setOrganizationSettings(organizationSettings) + .build(); + return updateOrganizationSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an organization's settings. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationSettings organizationSettings = OrganizationSettings.newBuilder().build();
+   *   UpdateOrganizationSettingsRequest request = UpdateOrganizationSettingsRequest.newBuilder()
+   *     .setOrganizationSettings(organizationSettings)
+   *     .build();
+   *   OrganizationSettings response = securityCenterClient.updateOrganizationSettings(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrganizationSettings updateOrganizationSettings( + UpdateOrganizationSettingsRequest request) { + return updateOrganizationSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an organization's settings. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   OrganizationSettings organizationSettings = OrganizationSettings.newBuilder().build();
+   *   UpdateOrganizationSettingsRequest request = UpdateOrganizationSettingsRequest.newBuilder()
+   *     .setOrganizationSettings(organizationSettings)
+   *     .build();
+   *   ApiFuture<OrganizationSettings> future = securityCenterClient.updateOrganizationSettingsCallable().futureCall(request);
+   *   // Do something
+   *   OrganizationSettings response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + updateOrganizationSettingsCallable() { + return stub.updateOrganizationSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   Source source = Source.newBuilder().build();
+   *   Source response = securityCenterClient.updateSource(source);
+   * }
+   * 
+ * + * @param source The source resource to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Source updateSource(Source source) { + + UpdateSourceRequest request = UpdateSourceRequest.newBuilder().setSource(source).build(); + return updateSource(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   Source source = Source.newBuilder().build();
+   *   UpdateSourceRequest request = UpdateSourceRequest.newBuilder()
+   *     .setSource(source)
+   *     .build();
+   *   Source response = securityCenterClient.updateSource(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Source updateSource(UpdateSourceRequest request) { + return updateSourceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a source. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   Source source = Source.newBuilder().build();
+   *   UpdateSourceRequest request = UpdateSourceRequest.newBuilder()
+   *     .setSource(source)
+   *     .build();
+   *   ApiFuture<Source> future = securityCenterClient.updateSourceCallable().futureCall(request);
+   *   // Do something
+   *   Source response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateSourceCallable() { + return stub.updateSourceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates security marks. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SecurityMarks securityMarks = SecurityMarks.newBuilder().build();
+   *   SecurityMarks response = securityCenterClient.updateSecurityMarks(securityMarks);
+   * }
+   * 
+ * + * @param securityMarks The security marks resource to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityMarks updateSecurityMarks(SecurityMarks securityMarks) { + + UpdateSecurityMarksRequest request = + UpdateSecurityMarksRequest.newBuilder().setSecurityMarks(securityMarks).build(); + return updateSecurityMarks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates security marks. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SecurityMarks securityMarks = SecurityMarks.newBuilder().build();
+   *   UpdateSecurityMarksRequest request = UpdateSecurityMarksRequest.newBuilder()
+   *     .setSecurityMarks(securityMarks)
+   *     .build();
+   *   SecurityMarks response = securityCenterClient.updateSecurityMarks(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityMarks updateSecurityMarks(UpdateSecurityMarksRequest request) { + return updateSecurityMarksCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates security marks. + * + *

Sample code: + * + *


+   * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+   *   SecurityMarks securityMarks = SecurityMarks.newBuilder().build();
+   *   UpdateSecurityMarksRequest request = UpdateSecurityMarksRequest.newBuilder()
+   *     .setSecurityMarks(securityMarks)
+   *     .build();
+   *   ApiFuture<SecurityMarks> future = securityCenterClient.updateSecurityMarksCallable().futureCall(request);
+   *   // Do something
+   *   SecurityMarks response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + updateSecurityMarksCallable() { + return stub.updateSecurityMarksCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class GroupAssetsPagedResponse + extends AbstractPagedListResponse< + GroupAssetsRequest, + GroupAssetsResponse, + GroupResult, + GroupAssetsPage, + GroupAssetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + GroupAssetsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public GroupAssetsPagedResponse apply(GroupAssetsPage input) { + return new GroupAssetsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private GroupAssetsPagedResponse(GroupAssetsPage page) { + super(page, GroupAssetsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class GroupAssetsPage + extends AbstractPage { + + private GroupAssetsPage( + PageContext context, + GroupAssetsResponse response) { + super(context, response); + } + + private static GroupAssetsPage createEmptyPage() { + return new GroupAssetsPage(null, null); + } + + @Override + protected GroupAssetsPage createPage( + PageContext context, + GroupAssetsResponse response) { + return new GroupAssetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class GroupAssetsFixedSizeCollection + extends AbstractFixedSizeCollection< + GroupAssetsRequest, + GroupAssetsResponse, + GroupResult, + GroupAssetsPage, + GroupAssetsFixedSizeCollection> { + + private GroupAssetsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static GroupAssetsFixedSizeCollection createEmptyCollection() { + return new GroupAssetsFixedSizeCollection(null, 0); + } + + @Override + protected GroupAssetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new GroupAssetsFixedSizeCollection(pages, collectionSize); + } + } + + public static class GroupFindingsPagedResponse + extends AbstractPagedListResponse< + GroupFindingsRequest, + GroupFindingsResponse, + GroupResult, + GroupFindingsPage, + GroupFindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + GroupFindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public GroupFindingsPagedResponse apply(GroupFindingsPage input) { + return new GroupFindingsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private GroupFindingsPagedResponse(GroupFindingsPage page) { + super(page, GroupFindingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class GroupFindingsPage + extends AbstractPage< + GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage> { + + private GroupFindingsPage( + PageContext context, + GroupFindingsResponse response) { + super(context, response); + } + + private static GroupFindingsPage createEmptyPage() { + return new GroupFindingsPage(null, null); + } + + @Override + protected GroupFindingsPage createPage( + PageContext context, + GroupFindingsResponse response) { + return new GroupFindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class GroupFindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + GroupFindingsRequest, + GroupFindingsResponse, + GroupResult, + GroupFindingsPage, + GroupFindingsFixedSizeCollection> { + + private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static GroupFindingsFixedSizeCollection createEmptyCollection() { + return new GroupFindingsFixedSizeCollection(null, 0); + } + + @Override + protected GroupFindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new GroupFindingsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAssetsPagedResponse + extends AbstractPagedListResponse< + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, + ListAssetsPage, + ListAssetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAssetsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListAssetsPagedResponse apply(ListAssetsPage input) { + return new ListAssetsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListAssetsPagedResponse(ListAssetsPage page) { + super(page, ListAssetsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAssetsPage + extends AbstractPage< + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, + ListAssetsPage> { + + private ListAssetsPage( + PageContext + context, + ListAssetsResponse response) { + super(context, response); + } + + private static ListAssetsPage createEmptyPage() { + return new ListAssetsPage(null, null); + } + + @Override + protected ListAssetsPage createPage( + PageContext + context, + ListAssetsResponse response) { + return new ListAssetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAssetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, + ListAssetsPage, + ListAssetsFixedSizeCollection> { + + private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAssetsFixedSizeCollection createEmptyCollection() { + return new ListAssetsFixedSizeCollection(null, 0); + } + + @Override + protected ListAssetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAssetsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListFindingsPagedResponse + extends AbstractPagedListResponse< + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult, + ListFindingsPage, + ListFindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListFindingsPagedResponse apply(ListFindingsPage input) { + return new ListFindingsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListFindingsPagedResponse(ListFindingsPage page) { + super(page, ListFindingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFindingsPage + extends AbstractPage< + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult, + ListFindingsPage> { + + private ListFindingsPage( + PageContext< + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> + context, + ListFindingsResponse response) { + super(context, response); + } + + private static ListFindingsPage createEmptyPage() { + return new ListFindingsPage(null, null); + } + + @Override + protected ListFindingsPage createPage( + PageContext< + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> + context, + ListFindingsResponse response) { + return new ListFindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult, + ListFindingsPage, + ListFindingsFixedSizeCollection> { + + private ListFindingsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFindingsFixedSizeCollection createEmptyCollection() { + return new ListFindingsFixedSizeCollection(null, 0); + } + + @Override + protected ListFindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFindingsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListSourcesPagedResponse + extends AbstractPagedListResponse< + ListSourcesRequest, + ListSourcesResponse, + Source, + ListSourcesPage, + ListSourcesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSourcesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListSourcesPagedResponse apply(ListSourcesPage input) { + return new ListSourcesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListSourcesPagedResponse(ListSourcesPage page) { + super(page, ListSourcesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSourcesPage + extends AbstractPage { + + private ListSourcesPage( + PageContext context, + ListSourcesResponse response) { + super(context, response); + } + + private static ListSourcesPage createEmptyPage() { + return new ListSourcesPage(null, null); + } + + @Override + protected ListSourcesPage createPage( + PageContext context, + ListSourcesResponse response) { + return new ListSourcesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSourcesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSourcesRequest, + ListSourcesResponse, + Source, + ListSourcesPage, + ListSourcesFixedSizeCollection> { + + private ListSourcesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSourcesFixedSizeCollection createEmptyCollection() { + return new ListSourcesFixedSizeCollection(null, 0); + } + + @Override + protected ListSourcesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSourcesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java new file mode 100644 index 000000000000..6505e59bb948 --- /dev/null +++ b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java @@ -0,0 +1,399 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1; + +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.securitycenter.v1.stub.SecurityCenterStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link SecurityCenterClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createSource to 30 seconds: + * + *

+ * 
+ * SecurityCenterSettings.Builder securityCenterSettingsBuilder =
+ *     SecurityCenterSettings.newBuilder();
+ * securityCenterSettingsBuilder.createSourceSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * SecurityCenterSettings securityCenterSettings = securityCenterSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class SecurityCenterSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createSource. */ + public UnaryCallSettings createSourceSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).createSourceSettings(); + } + + /** Returns the object with the settings used for calls to createFinding. */ + public UnaryCallSettings createFindingSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).createFindingSettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((SecurityCenterStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getOrganizationSettings. */ + public UnaryCallSettings + getOrganizationSettingsSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).getOrganizationSettingsSettings(); + } + + /** Returns the object with the settings used for calls to getSource. */ + public UnaryCallSettings getSourceSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).getSourceSettings(); + } + + /** Returns the object with the settings used for calls to groupAssets. */ + public PagedCallSettings + groupAssetsSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).groupAssetsSettings(); + } + + /** Returns the object with the settings used for calls to groupFindings. */ + public PagedCallSettings + groupFindingsSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).groupFindingsSettings(); + } + + /** Returns the object with the settings used for calls to listAssets. */ + public PagedCallSettings + listAssetsSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).listAssetsSettings(); + } + + /** Returns the object with the settings used for calls to listFindings. */ + public PagedCallSettings + listFindingsSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).listFindingsSettings(); + } + + /** Returns the object with the settings used for calls to listSources. */ + public PagedCallSettings + listSourcesSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).listSourcesSettings(); + } + + /** Returns the object with the settings used for calls to runAssetDiscovery. */ + public UnaryCallSettings runAssetDiscoverySettings() { + return ((SecurityCenterStubSettings) getStubSettings()).runAssetDiscoverySettings(); + } + + /** Returns the object with the settings used for calls to runAssetDiscovery. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings + runAssetDiscoveryOperationSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).runAssetDiscoveryOperationSettings(); + } + + /** Returns the object with the settings used for calls to setFindingState. */ + public UnaryCallSettings setFindingStateSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).setFindingStateSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((SecurityCenterStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + /** Returns the object with the settings used for calls to updateFinding. */ + public UnaryCallSettings updateFindingSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).updateFindingSettings(); + } + + /** Returns the object with the settings used for calls to updateOrganizationSettings. */ + public UnaryCallSettings + updateOrganizationSettingsSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).updateOrganizationSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateSource. */ + public UnaryCallSettings updateSourceSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).updateSourceSettings(); + } + + /** Returns the object with the settings used for calls to updateSecurityMarks. */ + public UnaryCallSettings + updateSecurityMarksSettings() { + return ((SecurityCenterStubSettings) getStubSettings()).updateSecurityMarksSettings(); + } + + public static final SecurityCenterSettings create(SecurityCenterStubSettings stub) + throws IOException { + return new SecurityCenterSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SecurityCenterStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SecurityCenterStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SecurityCenterStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SecurityCenterStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SecurityCenterStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SecurityCenterStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SecurityCenterStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SecurityCenterSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SecurityCenterSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(SecurityCenterStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(SecurityCenterStubSettings.newBuilder()); + } + + protected Builder(SecurityCenterSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SecurityCenterStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public SecurityCenterStubSettings.Builder getStubSettingsBuilder() { + return ((SecurityCenterStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createSource. */ + public UnaryCallSettings.Builder createSourceSettings() { + return getStubSettingsBuilder().createSourceSettings(); + } + + /** Returns the builder for the settings used for calls to createFinding. */ + public UnaryCallSettings.Builder createFindingSettings() { + return getStubSettingsBuilder().createFindingSettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getOrganizationSettings. */ + public UnaryCallSettings.Builder + getOrganizationSettingsSettings() { + return getStubSettingsBuilder().getOrganizationSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to getSource. */ + public UnaryCallSettings.Builder getSourceSettings() { + return getStubSettingsBuilder().getSourceSettings(); + } + + /** Returns the builder for the settings used for calls to groupAssets. */ + public PagedCallSettings.Builder< + GroupAssetsRequest, GroupAssetsResponse, GroupAssetsPagedResponse> + groupAssetsSettings() { + return getStubSettingsBuilder().groupAssetsSettings(); + } + + /** Returns the builder for the settings used for calls to groupFindings. */ + public PagedCallSettings.Builder< + GroupFindingsRequest, GroupFindingsResponse, GroupFindingsPagedResponse> + groupFindingsSettings() { + return getStubSettingsBuilder().groupFindingsSettings(); + } + + /** Returns the builder for the settings used for calls to listAssets. */ + public PagedCallSettings.Builder + listAssetsSettings() { + return getStubSettingsBuilder().listAssetsSettings(); + } + + /** Returns the builder for the settings used for calls to listFindings. */ + public PagedCallSettings.Builder< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse> + listFindingsSettings() { + return getStubSettingsBuilder().listFindingsSettings(); + } + + /** Returns the builder for the settings used for calls to listSources. */ + public PagedCallSettings.Builder< + ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse> + listSourcesSettings() { + return getStubSettingsBuilder().listSourcesSettings(); + } + + /** Returns the builder for the settings used for calls to runAssetDiscovery. */ + public UnaryCallSettings.Builder + runAssetDiscoverySettings() { + return getStubSettingsBuilder().runAssetDiscoverySettings(); + } + + /** Returns the builder for the settings used for calls to runAssetDiscovery. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings.Builder + runAssetDiscoveryOperationSettings() { + return getStubSettingsBuilder().runAssetDiscoveryOperationSettings(); + } + + /** Returns the builder for the settings used for calls to setFindingState. */ + public UnaryCallSettings.Builder setFindingStateSettings() { + return getStubSettingsBuilder().setFindingStateSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + /** Returns the builder for the settings used for calls to updateFinding. */ + public UnaryCallSettings.Builder updateFindingSettings() { + return getStubSettingsBuilder().updateFindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateOrganizationSettings. */ + public UnaryCallSettings.Builder + updateOrganizationSettingsSettings() { + return getStubSettingsBuilder().updateOrganizationSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateSource. */ + public UnaryCallSettings.Builder updateSourceSettings() { + return getStubSettingsBuilder().updateSourceSettings(); + } + + /** Returns the builder for the settings used for calls to updateSecurityMarks. */ + public UnaryCallSettings.Builder + updateSecurityMarksSettings() { + return getStubSettingsBuilder().updateSecurityMarksSettings(); + } + + @Override + public SecurityCenterSettings build() throws IOException { + return new SecurityCenterSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java new file mode 100644 index 000000000000..61ff121ef5b9 --- /dev/null +++ b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java @@ -0,0 +1,38 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Security Command Center API. + * + *

The interfaces provided are listed below, along with usage samples. + * + *

==================== SecurityCenterClient ==================== + * + *

Service Description: V1 APIs for Security Center service. + * + *

Sample for SecurityCenterClient: + * + *

+ * 
+ * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+ *   Source source = Source.newBuilder().build();
+ *   Source response = securityCenterClient.createSource(parent, source);
+ * }
+ * 
+ * 
+ */ +package com.google.cloud.securitycenter.v1; diff --git a/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java new file mode 100644 index 000000000000..f60f41dea5fa --- /dev/null +++ b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Security Command Center API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcSecurityCenterCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java new file mode 100644 index 000000000000..6a0226581b62 --- /dev/null +++ b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java @@ -0,0 +1,620 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1.stub; + +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.securitycenter.v1.CreateFindingRequest; +import com.google.cloud.securitycenter.v1.CreateSourceRequest; +import com.google.cloud.securitycenter.v1.Finding; +import com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.GetSourceRequest; +import com.google.cloud.securitycenter.v1.GroupAssetsRequest; +import com.google.cloud.securitycenter.v1.GroupAssetsResponse; +import com.google.cloud.securitycenter.v1.GroupFindingsRequest; +import com.google.cloud.securitycenter.v1.GroupFindingsResponse; +import com.google.cloud.securitycenter.v1.ListAssetsRequest; +import com.google.cloud.securitycenter.v1.ListAssetsResponse; +import com.google.cloud.securitycenter.v1.ListFindingsRequest; +import com.google.cloud.securitycenter.v1.ListFindingsResponse; +import com.google.cloud.securitycenter.v1.ListSourcesRequest; +import com.google.cloud.securitycenter.v1.ListSourcesResponse; +import com.google.cloud.securitycenter.v1.OrganizationSettings; +import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest; +import com.google.cloud.securitycenter.v1.SecurityMarks; +import com.google.cloud.securitycenter.v1.SetFindingStateRequest; +import com.google.cloud.securitycenter.v1.Source; +import com.google.cloud.securitycenter.v1.UpdateFindingRequest; +import com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest; +import com.google.cloud.securitycenter.v1.UpdateSourceRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Security Command Center API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcSecurityCenterStub extends SecurityCenterStub { + + private static final MethodDescriptor createSourceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/CreateSource") + .setRequestMarshaller(ProtoUtils.marshaller(CreateSourceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Source.getDefaultInstance())) + .build(); + private static final MethodDescriptor + createFindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/CreateFinding") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateFindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Finding.getDefaultInstance())) + .build(); + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + private static final MethodDescriptor + getOrganizationSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/GetOrganizationSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(OrganizationSettings.getDefaultInstance())) + .build(); + private static final MethodDescriptor getSourceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GetSource") + .setRequestMarshaller(ProtoUtils.marshaller(GetSourceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Source.getDefaultInstance())) + .build(); + private static final MethodDescriptor + groupAssetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GroupAssets") + .setRequestMarshaller(ProtoUtils.marshaller(GroupAssetsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GroupAssetsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + groupFindingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GroupFindings") + .setRequestMarshaller( + ProtoUtils.marshaller(GroupFindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GroupFindingsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listAssetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/ListAssets") + .setRequestMarshaller(ProtoUtils.marshaller(ListAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListAssetsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listFindingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/ListFindings") + .setRequestMarshaller(ProtoUtils.marshaller(ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFindingsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listSourcesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/ListSources") + .setRequestMarshaller(ProtoUtils.marshaller(ListSourcesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSourcesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + runAssetDiscoveryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/RunAssetDiscovery") + .setRequestMarshaller( + ProtoUtils.marshaller(RunAssetDiscoveryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor + setFindingStateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/SetFindingState") + .setRequestMarshaller( + ProtoUtils.marshaller(SetFindingStateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Finding.getDefaultInstance())) + .build(); + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateFindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/UpdateFinding") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateFindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Finding.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateOrganizationSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/UpdateOrganizationSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(OrganizationSettings.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateSourceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/UpdateSource") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateSourceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Source.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateSecurityMarksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/UpdateSecurityMarks") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSecurityMarksRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SecurityMarks.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + + private final UnaryCallable createSourceCallable; + private final UnaryCallable createFindingCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + getOrganizationSettingsCallable; + private final UnaryCallable getSourceCallable; + private final UnaryCallable groupAssetsCallable; + private final UnaryCallable + groupAssetsPagedCallable; + private final UnaryCallable groupFindingsCallable; + private final UnaryCallable + groupFindingsPagedCallable; + private final UnaryCallable listAssetsCallable; + private final UnaryCallable listAssetsPagedCallable; + private final UnaryCallable listFindingsCallable; + private final UnaryCallable + listFindingsPagedCallable; + private final UnaryCallable listSourcesCallable; + private final UnaryCallable + listSourcesPagedCallable; + private final UnaryCallable runAssetDiscoveryCallable; + private final OperationCallable + runAssetDiscoveryOperationCallable; + private final UnaryCallable setFindingStateCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + private final UnaryCallable updateFindingCallable; + private final UnaryCallable + updateOrganizationSettingsCallable; + private final UnaryCallable updateSourceCallable; + private final UnaryCallable + updateSecurityMarksCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSecurityCenterStub create(SecurityCenterStubSettings settings) + throws IOException { + return new GrpcSecurityCenterStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSecurityCenterStub create(ClientContext clientContext) + throws IOException { + return new GrpcSecurityCenterStub( + SecurityCenterStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSecurityCenterStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSecurityCenterStub( + SecurityCenterStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSecurityCenterStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcSecurityCenterStub(SecurityCenterStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSecurityCenterCallableFactory()); + } + + /** + * Constructs an instance of GrpcSecurityCenterStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcSecurityCenterStub( + SecurityCenterStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createSourceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSourceMethodDescriptor) + .build(); + GrpcCallSettings createFindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFindingMethodDescriptor) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .build(); + GrpcCallSettings + getOrganizationSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOrganizationSettingsMethodDescriptor) + .build(); + GrpcCallSettings getSourceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSourceMethodDescriptor) + .build(); + GrpcCallSettings groupAssetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(groupAssetsMethodDescriptor) + .build(); + GrpcCallSettings groupFindingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(groupFindingsMethodDescriptor) + .build(); + GrpcCallSettings listAssetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAssetsMethodDescriptor) + .build(); + GrpcCallSettings listFindingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFindingsMethodDescriptor) + .build(); + GrpcCallSettings listSourcesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSourcesMethodDescriptor) + .build(); + GrpcCallSettings runAssetDiscoveryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runAssetDiscoveryMethodDescriptor) + .build(); + GrpcCallSettings setFindingStateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setFindingStateMethodDescriptor) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .build(); + GrpcCallSettings updateFindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFindingMethodDescriptor) + .build(); + GrpcCallSettings + updateOrganizationSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateOrganizationSettingsMethodDescriptor) + .build(); + GrpcCallSettings updateSourceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSourceMethodDescriptor) + .build(); + GrpcCallSettings + updateSecurityMarksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSecurityMarksMethodDescriptor) + .build(); + + this.createSourceCallable = + callableFactory.createUnaryCallable( + createSourceTransportSettings, settings.createSourceSettings(), clientContext); + this.createFindingCallable = + callableFactory.createUnaryCallable( + createFindingTransportSettings, settings.createFindingSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.getOrganizationSettingsCallable = + callableFactory.createUnaryCallable( + getOrganizationSettingsTransportSettings, + settings.getOrganizationSettingsSettings(), + clientContext); + this.getSourceCallable = + callableFactory.createUnaryCallable( + getSourceTransportSettings, settings.getSourceSettings(), clientContext); + this.groupAssetsCallable = + callableFactory.createUnaryCallable( + groupAssetsTransportSettings, settings.groupAssetsSettings(), clientContext); + this.groupAssetsPagedCallable = + callableFactory.createPagedCallable( + groupAssetsTransportSettings, settings.groupAssetsSettings(), clientContext); + this.groupFindingsCallable = + callableFactory.createUnaryCallable( + groupFindingsTransportSettings, settings.groupFindingsSettings(), clientContext); + this.groupFindingsPagedCallable = + callableFactory.createPagedCallable( + groupFindingsTransportSettings, settings.groupFindingsSettings(), clientContext); + this.listAssetsCallable = + callableFactory.createUnaryCallable( + listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); + this.listAssetsPagedCallable = + callableFactory.createPagedCallable( + listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); + this.listFindingsCallable = + callableFactory.createUnaryCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.listFindingsPagedCallable = + callableFactory.createPagedCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.listSourcesCallable = + callableFactory.createUnaryCallable( + listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); + this.listSourcesPagedCallable = + callableFactory.createPagedCallable( + listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); + this.runAssetDiscoveryCallable = + callableFactory.createUnaryCallable( + runAssetDiscoveryTransportSettings, + settings.runAssetDiscoverySettings(), + clientContext); + this.runAssetDiscoveryOperationCallable = + callableFactory.createOperationCallable( + runAssetDiscoveryTransportSettings, + settings.runAssetDiscoveryOperationSettings(), + clientContext, + this.operationsStub); + this.setFindingStateCallable = + callableFactory.createUnaryCallable( + setFindingStateTransportSettings, settings.setFindingStateSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + this.updateFindingCallable = + callableFactory.createUnaryCallable( + updateFindingTransportSettings, settings.updateFindingSettings(), clientContext); + this.updateOrganizationSettingsCallable = + callableFactory.createUnaryCallable( + updateOrganizationSettingsTransportSettings, + settings.updateOrganizationSettingsSettings(), + clientContext); + this.updateSourceCallable = + callableFactory.createUnaryCallable( + updateSourceTransportSettings, settings.updateSourceSettings(), clientContext); + this.updateSecurityMarksCallable = + callableFactory.createUnaryCallable( + updateSecurityMarksTransportSettings, + settings.updateSecurityMarksSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + public UnaryCallable createSourceCallable() { + return createSourceCallable; + } + + public UnaryCallable createFindingCallable() { + return createFindingCallable; + } + + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + public UnaryCallable + getOrganizationSettingsCallable() { + return getOrganizationSettingsCallable; + } + + public UnaryCallable getSourceCallable() { + return getSourceCallable; + } + + public UnaryCallable groupAssetsPagedCallable() { + return groupAssetsPagedCallable; + } + + public UnaryCallable groupAssetsCallable() { + return groupAssetsCallable; + } + + public UnaryCallable + groupFindingsPagedCallable() { + return groupFindingsPagedCallable; + } + + public UnaryCallable groupFindingsCallable() { + return groupFindingsCallable; + } + + public UnaryCallable listAssetsPagedCallable() { + return listAssetsPagedCallable; + } + + public UnaryCallable listAssetsCallable() { + return listAssetsCallable; + } + + public UnaryCallable listFindingsPagedCallable() { + return listFindingsPagedCallable; + } + + public UnaryCallable listFindingsCallable() { + return listFindingsCallable; + } + + public UnaryCallable listSourcesPagedCallable() { + return listSourcesPagedCallable; + } + + public UnaryCallable listSourcesCallable() { + return listSourcesCallable; + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + runAssetDiscoveryOperationCallable() { + return runAssetDiscoveryOperationCallable; + } + + public UnaryCallable runAssetDiscoveryCallable() { + return runAssetDiscoveryCallable; + } + + public UnaryCallable setFindingStateCallable() { + return setFindingStateCallable; + } + + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + public UnaryCallable updateFindingCallable() { + return updateFindingCallable; + } + + public UnaryCallable + updateOrganizationSettingsCallable() { + return updateOrganizationSettingsCallable; + } + + public UnaryCallable updateSourceCallable() { + return updateSourceCallable; + } + + public UnaryCallable updateSecurityMarksCallable() { + return updateSecurityMarksCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java new file mode 100644 index 000000000000..111898d24834 --- /dev/null +++ b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java @@ -0,0 +1,183 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1.stub; + +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.securitycenter.v1.CreateFindingRequest; +import com.google.cloud.securitycenter.v1.CreateSourceRequest; +import com.google.cloud.securitycenter.v1.Finding; +import com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.GetSourceRequest; +import com.google.cloud.securitycenter.v1.GroupAssetsRequest; +import com.google.cloud.securitycenter.v1.GroupAssetsResponse; +import com.google.cloud.securitycenter.v1.GroupFindingsRequest; +import com.google.cloud.securitycenter.v1.GroupFindingsResponse; +import com.google.cloud.securitycenter.v1.ListAssetsRequest; +import com.google.cloud.securitycenter.v1.ListAssetsResponse; +import com.google.cloud.securitycenter.v1.ListFindingsRequest; +import com.google.cloud.securitycenter.v1.ListFindingsResponse; +import com.google.cloud.securitycenter.v1.ListSourcesRequest; +import com.google.cloud.securitycenter.v1.ListSourcesResponse; +import com.google.cloud.securitycenter.v1.OrganizationSettings; +import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest; +import com.google.cloud.securitycenter.v1.SecurityMarks; +import com.google.cloud.securitycenter.v1.SetFindingStateRequest; +import com.google.cloud.securitycenter.v1.Source; +import com.google.cloud.securitycenter.v1.UpdateFindingRequest; +import com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest; +import com.google.cloud.securitycenter.v1.UpdateSourceRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Security Command Center API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class SecurityCenterStub implements BackgroundResource { + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable createSourceCallable() { + throw new UnsupportedOperationException("Not implemented: createSourceCallable()"); + } + + public UnaryCallable createFindingCallable() { + throw new UnsupportedOperationException("Not implemented: createFindingCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + getOrganizationSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: getOrganizationSettingsCallable()"); + } + + public UnaryCallable getSourceCallable() { + throw new UnsupportedOperationException("Not implemented: getSourceCallable()"); + } + + public UnaryCallable groupAssetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: groupAssetsPagedCallable()"); + } + + public UnaryCallable groupAssetsCallable() { + throw new UnsupportedOperationException("Not implemented: groupAssetsCallable()"); + } + + public UnaryCallable + groupFindingsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: groupFindingsPagedCallable()"); + } + + public UnaryCallable groupFindingsCallable() { + throw new UnsupportedOperationException("Not implemented: groupFindingsCallable()"); + } + + public UnaryCallable listAssetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAssetsPagedCallable()"); + } + + public UnaryCallable listAssetsCallable() { + throw new UnsupportedOperationException("Not implemented: listAssetsCallable()"); + } + + public UnaryCallable listFindingsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listFindingsPagedCallable()"); + } + + public UnaryCallable listFindingsCallable() { + throw new UnsupportedOperationException("Not implemented: listFindingsCallable()"); + } + + public UnaryCallable listSourcesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSourcesPagedCallable()"); + } + + public UnaryCallable listSourcesCallable() { + throw new UnsupportedOperationException("Not implemented: listSourcesCallable()"); + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + runAssetDiscoveryOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: runAssetDiscoveryOperationCallable()"); + } + + public UnaryCallable runAssetDiscoveryCallable() { + throw new UnsupportedOperationException("Not implemented: runAssetDiscoveryCallable()"); + } + + public UnaryCallable setFindingStateCallable() { + throw new UnsupportedOperationException("Not implemented: setFindingStateCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + public UnaryCallable updateFindingCallable() { + throw new UnsupportedOperationException("Not implemented: updateFindingCallable()"); + } + + public UnaryCallable + updateOrganizationSettingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateOrganizationSettingsCallable()"); + } + + public UnaryCallable updateSourceCallable() { + throw new UnsupportedOperationException("Not implemented: updateSourceCallable()"); + } + + public UnaryCallable updateSecurityMarksCallable() { + throw new UnsupportedOperationException("Not implemented: updateSecurityMarksCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java new file mode 100644 index 000000000000..e753a999c2d2 --- /dev/null +++ b/google-cloud-clients/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java @@ -0,0 +1,1082 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1.stub; + +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.securitycenter.v1.CreateFindingRequest; +import com.google.cloud.securitycenter.v1.CreateSourceRequest; +import com.google.cloud.securitycenter.v1.Finding; +import com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.GetSourceRequest; +import com.google.cloud.securitycenter.v1.GroupAssetsRequest; +import com.google.cloud.securitycenter.v1.GroupAssetsResponse; +import com.google.cloud.securitycenter.v1.GroupFindingsRequest; +import com.google.cloud.securitycenter.v1.GroupFindingsResponse; +import com.google.cloud.securitycenter.v1.GroupResult; +import com.google.cloud.securitycenter.v1.ListAssetsRequest; +import com.google.cloud.securitycenter.v1.ListAssetsResponse; +import com.google.cloud.securitycenter.v1.ListFindingsRequest; +import com.google.cloud.securitycenter.v1.ListFindingsResponse; +import com.google.cloud.securitycenter.v1.ListSourcesRequest; +import com.google.cloud.securitycenter.v1.ListSourcesResponse; +import com.google.cloud.securitycenter.v1.OrganizationSettings; +import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest; +import com.google.cloud.securitycenter.v1.SecurityMarks; +import com.google.cloud.securitycenter.v1.SetFindingStateRequest; +import com.google.cloud.securitycenter.v1.Source; +import com.google.cloud.securitycenter.v1.UpdateFindingRequest; +import com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest; +import com.google.cloud.securitycenter.v1.UpdateSourceRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link SecurityCenterStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createSource to 30 seconds: + * + *

+ * 
+ * SecurityCenterStubSettings.Builder securityCenterSettingsBuilder =
+ *     SecurityCenterStubSettings.newBuilder();
+ * securityCenterSettingsBuilder.createSourceSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * SecurityCenterStubSettings securityCenterSettings = securityCenterSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class SecurityCenterStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createSourceSettings; + private final UnaryCallSettings createFindingSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + getOrganizationSettingsSettings; + private final UnaryCallSettings getSourceSettings; + private final PagedCallSettings + groupAssetsSettings; + private final PagedCallSettings< + GroupFindingsRequest, GroupFindingsResponse, GroupFindingsPagedResponse> + groupFindingsSettings; + private final PagedCallSettings + listAssetsSettings; + private final PagedCallSettings< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse> + listFindingsSettings; + private final PagedCallSettings + listSourcesSettings; + private final UnaryCallSettings runAssetDiscoverySettings; + private final OperationCallSettings + runAssetDiscoveryOperationSettings; + private final UnaryCallSettings setFindingStateSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + private final UnaryCallSettings updateFindingSettings; + private final UnaryCallSettings + updateOrganizationSettingsSettings; + private final UnaryCallSettings updateSourceSettings; + private final UnaryCallSettings + updateSecurityMarksSettings; + + /** Returns the object with the settings used for calls to createSource. */ + public UnaryCallSettings createSourceSettings() { + return createSourceSettings; + } + + /** Returns the object with the settings used for calls to createFinding. */ + public UnaryCallSettings createFindingSettings() { + return createFindingSettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getOrganizationSettings. */ + public UnaryCallSettings + getOrganizationSettingsSettings() { + return getOrganizationSettingsSettings; + } + + /** Returns the object with the settings used for calls to getSource. */ + public UnaryCallSettings getSourceSettings() { + return getSourceSettings; + } + + /** Returns the object with the settings used for calls to groupAssets. */ + public PagedCallSettings + groupAssetsSettings() { + return groupAssetsSettings; + } + + /** Returns the object with the settings used for calls to groupFindings. */ + public PagedCallSettings + groupFindingsSettings() { + return groupFindingsSettings; + } + + /** Returns the object with the settings used for calls to listAssets. */ + public PagedCallSettings + listAssetsSettings() { + return listAssetsSettings; + } + + /** Returns the object with the settings used for calls to listFindings. */ + public PagedCallSettings + listFindingsSettings() { + return listFindingsSettings; + } + + /** Returns the object with the settings used for calls to listSources. */ + public PagedCallSettings + listSourcesSettings() { + return listSourcesSettings; + } + + /** Returns the object with the settings used for calls to runAssetDiscovery. */ + public UnaryCallSettings runAssetDiscoverySettings() { + return runAssetDiscoverySettings; + } + + /** Returns the object with the settings used for calls to runAssetDiscovery. */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings + runAssetDiscoveryOperationSettings() { + return runAssetDiscoveryOperationSettings; + } + + /** Returns the object with the settings used for calls to setFindingState. */ + public UnaryCallSettings setFindingStateSettings() { + return setFindingStateSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + /** Returns the object with the settings used for calls to updateFinding. */ + public UnaryCallSettings updateFindingSettings() { + return updateFindingSettings; + } + + /** Returns the object with the settings used for calls to updateOrganizationSettings. */ + public UnaryCallSettings + updateOrganizationSettingsSettings() { + return updateOrganizationSettingsSettings; + } + + /** Returns the object with the settings used for calls to updateSource. */ + public UnaryCallSettings updateSourceSettings() { + return updateSourceSettings; + } + + /** Returns the object with the settings used for calls to updateSecurityMarks. */ + public UnaryCallSettings + updateSecurityMarksSettings() { + return updateSecurityMarksSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public SecurityCenterStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSecurityCenterStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "securitycenter.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SecurityCenterStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SecurityCenterStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createSourceSettings = settingsBuilder.createSourceSettings().build(); + createFindingSettings = settingsBuilder.createFindingSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + getOrganizationSettingsSettings = settingsBuilder.getOrganizationSettingsSettings().build(); + getSourceSettings = settingsBuilder.getSourceSettings().build(); + groupAssetsSettings = settingsBuilder.groupAssetsSettings().build(); + groupFindingsSettings = settingsBuilder.groupFindingsSettings().build(); + listAssetsSettings = settingsBuilder.listAssetsSettings().build(); + listFindingsSettings = settingsBuilder.listFindingsSettings().build(); + listSourcesSettings = settingsBuilder.listSourcesSettings().build(); + runAssetDiscoverySettings = settingsBuilder.runAssetDiscoverySettings().build(); + runAssetDiscoveryOperationSettings = + settingsBuilder.runAssetDiscoveryOperationSettings().build(); + setFindingStateSettings = settingsBuilder.setFindingStateSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + updateFindingSettings = settingsBuilder.updateFindingSettings().build(); + updateOrganizationSettingsSettings = + settingsBuilder.updateOrganizationSettingsSettings().build(); + updateSourceSettings = settingsBuilder.updateSourceSettings().build(); + updateSecurityMarksSettings = settingsBuilder.updateSecurityMarksSettings().build(); + } + + private static final PagedListDescriptor + GROUP_ASSETS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public GroupAssetsRequest injectToken(GroupAssetsRequest payload, String token) { + return GroupAssetsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public GroupAssetsRequest injectPageSize(GroupAssetsRequest payload, int pageSize) { + return GroupAssetsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(GroupAssetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(GroupAssetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(GroupAssetsResponse payload) { + return payload.getGroupByResultsList() != null + ? payload.getGroupByResultsList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor + GROUP_FINDINGS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public GroupFindingsRequest injectToken(GroupFindingsRequest payload, String token) { + return GroupFindingsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public GroupFindingsRequest injectPageSize(GroupFindingsRequest payload, int pageSize) { + return GroupFindingsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(GroupFindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(GroupFindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(GroupFindingsResponse payload) { + return payload.getGroupByResultsList() != null + ? payload.getGroupByResultsList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult> + LIST_ASSETS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAssetsRequest injectToken(ListAssetsRequest payload, String token) { + return ListAssetsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAssetsRequest injectPageSize(ListAssetsRequest payload, int pageSize) { + return ListAssetsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAssetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAssetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAssetsResponse payload) { + return payload.getListAssetsResultsList() != null + ? payload.getListAssetsResultsList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> + LIST_FINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFindingsRequest injectToken(ListFindingsRequest payload, String token) { + return ListFindingsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFindingsRequest injectPageSize(ListFindingsRequest payload, int pageSize) { + return ListFindingsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListFindingsResponse payload) { + return payload.getListFindingsResultsList() != null + ? payload.getListFindingsResultsList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor + LIST_SOURCES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSourcesRequest injectToken(ListSourcesRequest payload, String token) { + return ListSourcesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSourcesRequest injectPageSize(ListSourcesRequest payload, int pageSize) { + return ListSourcesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSourcesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSourcesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSourcesResponse payload) { + return payload.getSourcesList() != null + ? payload.getSourcesList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + GroupAssetsRequest, GroupAssetsResponse, GroupAssetsPagedResponse> + GROUP_ASSETS_PAGE_STR_FACT = + new PagedListResponseFactory< + GroupAssetsRequest, GroupAssetsResponse, GroupAssetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + GroupAssetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, GROUP_ASSETS_PAGE_STR_DESC, request, context); + return GroupAssetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + GroupFindingsRequest, GroupFindingsResponse, GroupFindingsPagedResponse> + GROUP_FINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + GroupFindingsRequest, GroupFindingsResponse, GroupFindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + GroupFindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, GROUP_FINDINGS_PAGE_STR_DESC, request, context); + return GroupFindingsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAssetsRequest, ListAssetsResponse, ListAssetsPagedResponse> + LIST_ASSETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAssetsRequest, ListAssetsResponse, ListAssetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAssetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult> + pageContext = + PageContext.create(callable, LIST_ASSETS_PAGE_STR_DESC, request, context); + return ListAssetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse> + LIST_FINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult> + pageContext = + PageContext.create(callable, LIST_FINDINGS_PAGE_STR_DESC, request, context); + return ListFindingsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse> + LIST_SOURCES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSourcesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SOURCES_PAGE_STR_DESC, request, context); + return ListSourcesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for SecurityCenterStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createSourceSettings; + private final UnaryCallSettings.Builder createFindingSettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + getOrganizationSettingsSettings; + private final UnaryCallSettings.Builder getSourceSettings; + private final PagedCallSettings.Builder< + GroupAssetsRequest, GroupAssetsResponse, GroupAssetsPagedResponse> + groupAssetsSettings; + private final PagedCallSettings.Builder< + GroupFindingsRequest, GroupFindingsResponse, GroupFindingsPagedResponse> + groupFindingsSettings; + private final PagedCallSettings.Builder< + ListAssetsRequest, ListAssetsResponse, ListAssetsPagedResponse> + listAssetsSettings; + private final PagedCallSettings.Builder< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse> + listFindingsSettings; + private final PagedCallSettings.Builder< + ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse> + listSourcesSettings; + private final UnaryCallSettings.Builder + runAssetDiscoverySettings; + private final OperationCallSettings.Builder + runAssetDiscoveryOperationSettings; + private final UnaryCallSettings.Builder + setFindingStateSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private final UnaryCallSettings.Builder updateFindingSettings; + private final UnaryCallSettings.Builder + updateOrganizationSettingsSettings; + private final UnaryCallSettings.Builder updateSourceSettings; + private final UnaryCallSettings.Builder + updateSecurityMarksSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + createFindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getOrganizationSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + groupAssetsSettings = PagedCallSettings.newBuilder(GROUP_ASSETS_PAGE_STR_FACT); + + groupFindingsSettings = PagedCallSettings.newBuilder(GROUP_FINDINGS_PAGE_STR_FACT); + + listAssetsSettings = PagedCallSettings.newBuilder(LIST_ASSETS_PAGE_STR_FACT); + + listFindingsSettings = PagedCallSettings.newBuilder(LIST_FINDINGS_PAGE_STR_FACT); + + listSourcesSettings = PagedCallSettings.newBuilder(LIST_SOURCES_PAGE_STR_FACT); + + runAssetDiscoverySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + runAssetDiscoveryOperationSettings = OperationCallSettings.newBuilder(); + + setFindingStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateFindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateOrganizationSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateSecurityMarksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createSourceSettings, + createFindingSettings, + getIamPolicySettings, + getOrganizationSettingsSettings, + getSourceSettings, + groupAssetsSettings, + groupFindingsSettings, + listAssetsSettings, + listFindingsSettings, + listSourcesSettings, + runAssetDiscoverySettings, + setFindingStateSettings, + setIamPolicySettings, + testIamPermissionsSettings, + updateFindingSettings, + updateOrganizationSettingsSettings, + updateSourceSettings, + updateSecurityMarksSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createSourceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .createFindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getOrganizationSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getSourceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .groupAssetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .groupFindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listAssetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listFindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listSourcesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .runAssetDiscoverySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .setFindingStateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateFindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateOrganizationSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateSourceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateSecurityMarksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .runAssetDiscoveryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(5000L)) + .setInitialRpcTimeout(Duration.ZERO) // ignored + .setRpcTimeoutMultiplier(1.0) // ignored + .setMaxRpcTimeout(Duration.ZERO) // ignored + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + protected Builder(SecurityCenterStubSettings settings) { + super(settings); + + createSourceSettings = settings.createSourceSettings.toBuilder(); + createFindingSettings = settings.createFindingSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + getOrganizationSettingsSettings = settings.getOrganizationSettingsSettings.toBuilder(); + getSourceSettings = settings.getSourceSettings.toBuilder(); + groupAssetsSettings = settings.groupAssetsSettings.toBuilder(); + groupFindingsSettings = settings.groupFindingsSettings.toBuilder(); + listAssetsSettings = settings.listAssetsSettings.toBuilder(); + listFindingsSettings = settings.listFindingsSettings.toBuilder(); + listSourcesSettings = settings.listSourcesSettings.toBuilder(); + runAssetDiscoverySettings = settings.runAssetDiscoverySettings.toBuilder(); + runAssetDiscoveryOperationSettings = settings.runAssetDiscoveryOperationSettings.toBuilder(); + setFindingStateSettings = settings.setFindingStateSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + updateFindingSettings = settings.updateFindingSettings.toBuilder(); + updateOrganizationSettingsSettings = settings.updateOrganizationSettingsSettings.toBuilder(); + updateSourceSettings = settings.updateSourceSettings.toBuilder(); + updateSecurityMarksSettings = settings.updateSecurityMarksSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createSourceSettings, + createFindingSettings, + getIamPolicySettings, + getOrganizationSettingsSettings, + getSourceSettings, + groupAssetsSettings, + groupFindingsSettings, + listAssetsSettings, + listFindingsSettings, + listSourcesSettings, + runAssetDiscoverySettings, + setFindingStateSettings, + setIamPolicySettings, + testIamPermissionsSettings, + updateFindingSettings, + updateOrganizationSettingsSettings, + updateSourceSettings, + updateSecurityMarksSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createSource. */ + public UnaryCallSettings.Builder createSourceSettings() { + return createSourceSettings; + } + + /** Returns the builder for the settings used for calls to createFinding. */ + public UnaryCallSettings.Builder createFindingSettings() { + return createFindingSettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getOrganizationSettings. */ + public UnaryCallSettings.Builder + getOrganizationSettingsSettings() { + return getOrganizationSettingsSettings; + } + + /** Returns the builder for the settings used for calls to getSource. */ + public UnaryCallSettings.Builder getSourceSettings() { + return getSourceSettings; + } + + /** Returns the builder for the settings used for calls to groupAssets. */ + public PagedCallSettings.Builder< + GroupAssetsRequest, GroupAssetsResponse, GroupAssetsPagedResponse> + groupAssetsSettings() { + return groupAssetsSettings; + } + + /** Returns the builder for the settings used for calls to groupFindings. */ + public PagedCallSettings.Builder< + GroupFindingsRequest, GroupFindingsResponse, GroupFindingsPagedResponse> + groupFindingsSettings() { + return groupFindingsSettings; + } + + /** Returns the builder for the settings used for calls to listAssets. */ + public PagedCallSettings.Builder + listAssetsSettings() { + return listAssetsSettings; + } + + /** Returns the builder for the settings used for calls to listFindings. */ + public PagedCallSettings.Builder< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse> + listFindingsSettings() { + return listFindingsSettings; + } + + /** Returns the builder for the settings used for calls to listSources. */ + public PagedCallSettings.Builder< + ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse> + listSourcesSettings() { + return listSourcesSettings; + } + + /** Returns the builder for the settings used for calls to runAssetDiscovery. */ + public UnaryCallSettings.Builder + runAssetDiscoverySettings() { + return runAssetDiscoverySettings; + } + + /** Returns the builder for the settings used for calls to runAssetDiscovery. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + runAssetDiscoveryOperationSettings() { + return runAssetDiscoveryOperationSettings; + } + + /** Returns the builder for the settings used for calls to setFindingState. */ + public UnaryCallSettings.Builder setFindingStateSettings() { + return setFindingStateSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + /** Returns the builder for the settings used for calls to updateFinding. */ + public UnaryCallSettings.Builder updateFindingSettings() { + return updateFindingSettings; + } + + /** Returns the builder for the settings used for calls to updateOrganizationSettings. */ + public UnaryCallSettings.Builder + updateOrganizationSettingsSettings() { + return updateOrganizationSettingsSettings; + } + + /** Returns the builder for the settings used for calls to updateSource. */ + public UnaryCallSettings.Builder updateSourceSettings() { + return updateSourceSettings; + } + + /** Returns the builder for the settings used for calls to updateSecurityMarks. */ + public UnaryCallSettings.Builder + updateSecurityMarksSettings() { + return updateSecurityMarksSettings; + } + + @Override + public SecurityCenterStubSettings build() throws IOException { + return new SecurityCenterStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java b/google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java new file mode 100644 index 000000000000..0b288e179bf5 --- /dev/null +++ b/google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockSecurityCenter implements MockGrpcService { + private final MockSecurityCenterImpl serviceImpl; + + public MockSecurityCenter() { + serviceImpl = new MockSecurityCenterImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java b/google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java new file mode 100644 index 000000000000..a3390dc944c5 --- /dev/null +++ b/google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java @@ -0,0 +1,332 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.securitycenter.v1.SecurityCenterGrpc.SecurityCenterImplBase; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockSecurityCenterImpl extends SecurityCenterImplBase { + private ArrayList requests; + private Queue responses; + + public MockSecurityCenterImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createSource(CreateSourceRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Source) { + requests.add(request); + responseObserver.onNext((Source) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createFinding( + CreateFindingRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Finding) { + requests.add(request); + responseObserver.onNext((Finding) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext((Policy) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getOrganizationSettings( + GetOrganizationSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof OrganizationSettings) { + requests.add(request); + responseObserver.onNext((OrganizationSettings) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getSource(GetSourceRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Source) { + requests.add(request); + responseObserver.onNext((Source) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void groupAssets( + GroupAssetsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof GroupAssetsResponse) { + requests.add(request); + responseObserver.onNext((GroupAssetsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void groupFindings( + GroupFindingsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof GroupFindingsResponse) { + requests.add(request); + responseObserver.onNext((GroupFindingsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listAssets( + ListAssetsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListAssetsResponse) { + requests.add(request); + responseObserver.onNext((ListAssetsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listFindings( + ListFindingsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListFindingsResponse) { + requests.add(request); + responseObserver.onNext((ListFindingsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listSources( + ListSourcesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListSourcesResponse) { + requests.add(request); + responseObserver.onNext((ListSourcesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void runAssetDiscovery( + RunAssetDiscoveryRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void setFindingState( + SetFindingStateRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Finding) { + requests.add(request); + responseObserver.onNext((Finding) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext((Policy) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext((TestIamPermissionsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateFinding( + UpdateFindingRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Finding) { + requests.add(request); + responseObserver.onNext((Finding) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateOrganizationSettings( + UpdateOrganizationSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof OrganizationSettings) { + requests.add(request); + responseObserver.onNext((OrganizationSettings) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateSource(UpdateSourceRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Source) { + requests.add(request); + responseObserver.onNext((Source) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateSecurityMarks( + UpdateSecurityMarksRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SecurityMarks) { + requests.add(request); + responseObserver.onNext((SecurityMarks) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java new file mode 100644 index 000000000000..cc563616f1c3 --- /dev/null +++ b/google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java @@ -0,0 +1,795 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1; + +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import com.google.protobuf.Timestamp; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.ExecutionException; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class SecurityCenterClientTest { + private static MockSecurityCenter mockSecurityCenter; + private static MockServiceHelper serviceHelper; + private SecurityCenterClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockSecurityCenter = new MockSecurityCenter(); + serviceHelper = + new MockServiceHelper("in-process-1", Arrays.asList(mockSecurityCenter)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + SecurityCenterSettings settings = + SecurityCenterSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SecurityCenterClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createSourceTest() { + String name = "name3373707"; + String displayName = "displayName1615086568"; + String description = "description-1724546052"; + Source expectedResponse = + Source.newBuilder() + .setName(name) + .setDisplayName(displayName) + .setDescription(description) + .build(); + mockSecurityCenter.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Source source = Source.newBuilder().build(); + + Source actualResponse = client.createSource(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSourceRequest actualRequest = (CreateSourceRequest) actualRequests.get(0); + + Assert.assertEquals(parent, OrganizationName.parse(actualRequest.getParent())); + Assert.assertEquals(source, actualRequest.getSource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createSourceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Source source = Source.newBuilder().build(); + + client.createSource(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createFindingTest() { + String name = "name3373707"; + String parent2 = "parent21175163357"; + String resourceName = "resourceName979421212"; + String category = "category50511102"; + String externalUri = "externalUri-1385596168"; + Finding expectedResponse = + Finding.newBuilder() + .setName(name) + .setParent(parent2) + .setResourceName(resourceName) + .setCategory(category) + .setExternalUri(externalUri) + .build(); + mockSecurityCenter.addResponse(expectedResponse); + + SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + String findingId = "findingId728776081"; + Finding finding = Finding.newBuilder().build(); + + Finding actualResponse = client.createFinding(parent, findingId, finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFindingRequest actualRequest = (CreateFindingRequest) actualRequests.get(0); + + Assert.assertEquals(parent, SourceName.parse(actualRequest.getParent())); + Assert.assertEquals(findingId, actualRequest.getFindingId()); + Assert.assertEquals(finding, actualRequest.getFinding()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createFindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + String findingId = "findingId728776081"; + Finding finding = Finding.newBuilder().build(); + + client.createFinding(parent, findingId, finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getIamPolicyTest() { + int version = 351608024; + ByteString etag = ByteString.copyFromUtf8("21"); + Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build(); + mockSecurityCenter.addResponse(expectedResponse); + + SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = (GetIamPolicyRequest) actualRequests.get(0); + + Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getOrganizationSettingsTest() { + String name2 = "name2-1052831874"; + boolean enableAssetDiscovery = false; + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(name2) + .setEnableAssetDiscovery(enableAssetDiscovery) + .build(); + mockSecurityCenter.addResponse(expectedResponse); + + OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]"); + + OrganizationSettings actualResponse = client.getOrganizationSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOrganizationSettingsRequest actualRequest = + (GetOrganizationSettingsRequest) actualRequests.get(0); + + Assert.assertEquals(name, OrganizationSettingsName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getOrganizationSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]"); + + client.getOrganizationSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getSourceTest() { + String name2 = "name2-1052831874"; + String displayName = "displayName1615086568"; + String description = "description-1724546052"; + Source expectedResponse = + Source.newBuilder() + .setName(name2) + .setDisplayName(displayName) + .setDescription(description) + .build(); + mockSecurityCenter.addResponse(expectedResponse); + + SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + + Source actualResponse = client.getSource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSourceRequest actualRequest = (GetSourceRequest) actualRequests.get(0); + + Assert.assertEquals(name, SourceName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getSourceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + + client.getSource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void groupFindingsTest() { + String nextPageToken = ""; + int totalSize = 705419236; + GroupResult groupByResultsElement = GroupResult.newBuilder().build(); + List groupByResults = Arrays.asList(groupByResultsElement); + GroupFindingsResponse expectedResponse = + GroupFindingsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .setTotalSize(totalSize) + .addAllGroupByResults(groupByResults) + .build(); + mockSecurityCenter.addResponse(expectedResponse); + + SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + String groupBy = "groupBy506361367"; + + GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0)); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GroupFindingsRequest actualRequest = (GroupFindingsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, SourceName.parse(actualRequest.getParent())); + Assert.assertEquals(groupBy, actualRequest.getGroupBy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void groupFindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + String groupBy = "groupBy506361367"; + + client.groupFindings(parent, groupBy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listSourcesTest() { + String nextPageToken = ""; + Source sourcesElement = Source.newBuilder().build(); + List sources = Arrays.asList(sourcesElement); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllSources(sources) + .build(); + mockSecurityCenter.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSourcesRequest actualRequest = (ListSourcesRequest) actualRequests.get(0); + + Assert.assertEquals(parent, OrganizationName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listSourcesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void runAssetDiscoveryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runAssetDiscoveryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecurityCenter.addResponse(resultOperation); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + Empty actualResponse = client.runAssetDiscoveryAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunAssetDiscoveryRequest actualRequest = (RunAssetDiscoveryRequest) actualRequests.get(0); + + Assert.assertEquals(parent, OrganizationName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void runAssetDiscoveryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + client.runAssetDiscoveryAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + @SuppressWarnings("all") + public void setFindingStateTest() { + String name2 = "name2-1052831874"; + String parent = "parent-995424086"; + String resourceName = "resourceName979421212"; + String category = "category50511102"; + String externalUri = "externalUri-1385596168"; + Finding expectedResponse = + Finding.newBuilder() + .setName(name2) + .setParent(parent) + .setResourceName(resourceName) + .setCategory(category) + .setExternalUri(externalUri) + .build(); + mockSecurityCenter.addResponse(expectedResponse); + + FindingName name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.State state = Finding.State.STATE_UNSPECIFIED; + Timestamp startTime = Timestamp.newBuilder().build(); + + Finding actualResponse = client.setFindingState(name, state, startTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetFindingStateRequest actualRequest = (SetFindingStateRequest) actualRequests.get(0); + + Assert.assertEquals(name, FindingName.parse(actualRequest.getName())); + Assert.assertEquals(state, actualRequest.getState()); + Assert.assertEquals(startTime, actualRequest.getStartTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void setFindingStateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + FindingName name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.State state = Finding.State.STATE_UNSPECIFIED; + Timestamp startTime = Timestamp.newBuilder().build(); + + client.setFindingState(name, state, startTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void setIamPolicyTest() { + int version = 351608024; + ByteString etag = ByteString.copyFromUtf8("21"); + Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build(); + mockSecurityCenter.addResponse(expectedResponse); + + SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = (SetIamPolicyRequest) actualRequests.get(0); + + Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource())); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + Policy policy = Policy.newBuilder().build(); + + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void testIamPermissionsTest() { + TestIamPermissionsResponse expectedResponse = TestIamPermissionsResponse.newBuilder().build(); + mockSecurityCenter.addResponse(expectedResponse); + + SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = (TestIamPermissionsRequest) actualRequests.get(0); + + Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource())); + Assert.assertEquals(permissions, actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + SourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + List permissions = new ArrayList<>(); + + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateFindingTest() { + String name = "name3373707"; + String parent = "parent-995424086"; + String resourceName = "resourceName979421212"; + String category = "category50511102"; + String externalUri = "externalUri-1385596168"; + Finding expectedResponse = + Finding.newBuilder() + .setName(name) + .setParent(parent) + .setResourceName(resourceName) + .setCategory(category) + .setExternalUri(externalUri) + .build(); + mockSecurityCenter.addResponse(expectedResponse); + + Finding finding = Finding.newBuilder().build(); + + Finding actualResponse = client.updateFinding(finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFindingRequest actualRequest = (UpdateFindingRequest) actualRequests.get(0); + + Assert.assertEquals(finding, actualRequest.getFinding()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateFindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + Finding finding = Finding.newBuilder().build(); + + client.updateFinding(finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateOrganizationSettingsTest() { + String name = "name3373707"; + boolean enableAssetDiscovery = false; + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(name) + .setEnableAssetDiscovery(enableAssetDiscovery) + .build(); + mockSecurityCenter.addResponse(expectedResponse); + + OrganizationSettings organizationSettings = OrganizationSettings.newBuilder().build(); + + OrganizationSettings actualResponse = client.updateOrganizationSettings(organizationSettings); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateOrganizationSettingsRequest actualRequest = + (UpdateOrganizationSettingsRequest) actualRequests.get(0); + + Assert.assertEquals(organizationSettings, actualRequest.getOrganizationSettings()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateOrganizationSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + OrganizationSettings organizationSettings = OrganizationSettings.newBuilder().build(); + + client.updateOrganizationSettings(organizationSettings); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateSourceTest() { + String name = "name3373707"; + String displayName = "displayName1615086568"; + String description = "description-1724546052"; + Source expectedResponse = + Source.newBuilder() + .setName(name) + .setDisplayName(displayName) + .setDescription(description) + .build(); + mockSecurityCenter.addResponse(expectedResponse); + + Source source = Source.newBuilder().build(); + + Source actualResponse = client.updateSource(source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSourceRequest actualRequest = (UpdateSourceRequest) actualRequests.get(0); + + Assert.assertEquals(source, actualRequest.getSource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateSourceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + Source source = Source.newBuilder().build(); + + client.updateSource(source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateSecurityMarksTest() { + String name = "name3373707"; + SecurityMarks expectedResponse = SecurityMarks.newBuilder().setName(name).build(); + mockSecurityCenter.addResponse(expectedResponse); + + SecurityMarks securityMarks = SecurityMarks.newBuilder().build(); + + SecurityMarks actualResponse = client.updateSecurityMarks(securityMarks); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSecurityMarksRequest actualRequest = (UpdateSecurityMarksRequest) actualRequests.get(0); + + Assert.assertEquals(securityMarks, actualRequest.getSecurityMarks()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateSecurityMarksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSecurityCenter.addException(exception); + + try { + SecurityMarks securityMarks = SecurityMarks.newBuilder().build(); + + client.updateSecurityMarks(securityMarks); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-securitycenter/synth.metadata b/google-cloud-clients/google-cloud-securitycenter/synth.metadata index c17ba15545b6..a3237ad51a27 100644 --- a/google-cloud-clients/google-cloud-securitycenter/synth.metadata +++ b/google-cloud-clients/google-cloud-securitycenter/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-03-06T08:50:50.672265Z", + "updateTime": "2019-03-07T21:20:30.007235Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", - "internalRef": "236931378" + "sha": "6df9a80f147c4349949f6573b5275deebddd3ba8", + "internalRef": "237262681" } } ], @@ -27,6 +27,16 @@ "generator": "gapic", "config": "google/cloud/securitycenter/artman_securitycenter_v1beta1.yaml" } + }, + { + "client": { + "source": "googleapis", + "apiName": "securitycenter", + "apiVersion": "v1", + "language": "java", + "generator": "gapic", + "config": "google/cloud/securitycenter/artman_securitycenter_v1.yaml" + } } ] } \ No newline at end of file diff --git a/google-cloud-clients/google-cloud-securitycenter/synth.py b/google-cloud-clients/google-cloud-securitycenter/synth.py index 6a8fa74779f2..a4fe60af5a12 100644 --- a/google-cloud-clients/google-cloud-securitycenter/synth.py +++ b/google-cloud-clients/google-cloud-securitycenter/synth.py @@ -21,7 +21,7 @@ gapic = gcp.GAPICGenerator() service = 'securitycenter' -versions = ['v1beta1'] +versions = ['v1beta1', 'v1'] config_pattern = '/google/cloud/securitycenter/artman_securitycenter_{version}.yaml' for version in versions: diff --git a/versions.txt b/versions.txt index b266c1583433..5efdde243746 100644 --- a/versions.txt +++ b/versions.txt @@ -91,6 +91,7 @@ grpc-google-cloud-redis-v1:0.47.0:0.47.1-SNAPSHOT grpc-google-cloud-redis-v1beta1:0.47.0:0.47.1-SNAPSHOT grpc-google-cloud-scheduler-v1beta1:0.47.0:0.47.1-SNAPSHOT grpc-google-cloud-securitycenter-v1beta1:0.47.0:0.47.1-SNAPSHOT +grpc-google-cloud-securitycenter-v1:0.47.0:0.47.1-SNAPSHOT grpc-google-cloud-spanner-admin-database-v1:1.9.0:1.9.1-SNAPSHOT grpc-google-cloud-spanner-admin-instance-v1:1.9.0:1.9.1-SNAPSHOT grpc-google-cloud-spanner-v1:1.9.0:1.9.1-SNAPSHOT @@ -144,6 +145,7 @@ proto-google-cloud-redis-v1:0.47.0:0.47.1-SNAPSHOT proto-google-cloud-redis-v1beta1:0.47.0:0.47.1-SNAPSHOT proto-google-cloud-scheduler-v1beta1:0.47.0:0.47.1-SNAPSHOT proto-google-cloud-securitycenter-v1beta1:0.47.0:0.47.1-SNAPSHOT +proto-google-cloud-securitycenter-v1:0.47.0:0.47.1-SNAPSHOT proto-google-cloud-spanner-admin-database-v1:1.9.0:1.9.1-SNAPSHOT proto-google-cloud-spanner-admin-instance-v1:1.9.0:1.9.1-SNAPSHOT proto-google-cloud-spanner-v1:1.9.0:1.9.1-SNAPSHOT From e4c11c0ebde2647f3bed5191fe4250261d828517 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Fri, 8 Mar 2019 11:47:33 -0800 Subject: [PATCH 28/53] Adding FieldValue.increment() (#4018) * DO NOT MERGE: Adding FieldValue.increment() * Use "increment" Proto naming --- .../google/cloud/firestore/FieldValue.java | 100 ++++++++++++++++-- .../cloud/firestore/UserDataConverter.java | 2 +- .../firestore/DocumentReferenceTest.java | 25 +++++ .../google/cloud/firestore/FirestoreTest.java | 12 +++ .../cloud/firestore/LocalFirestoreHelper.java | 4 + .../cloud/firestore/it/ITSystemTest.java | 20 ++++ 6 files changed, 153 insertions(+), 10 deletions(-) diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FieldValue.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FieldValue.java index 395810a326fa..4214e6a66d7e 100644 --- a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FieldValue.java +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FieldValue.java @@ -77,6 +77,55 @@ FieldTransform toProto(FieldPath path) { } }; + static class NumericIncrementFieldValue extends FieldValue { + final Number operand; + + NumericIncrementFieldValue(Number operand) { + this.operand = operand; + } + + @Override + boolean includeInDocumentMask() { + return false; + } + + @Override + boolean includeInDocumentTransform() { + return true; + } + + @Override + String getMethodName() { + return "FieldValue.increment()"; + } + + @Override + FieldTransform toProto(FieldPath path) { + FieldTransform.Builder fieldTransform = FieldTransform.newBuilder(); + fieldTransform.setFieldPath(path.getEncodedPath()); + fieldTransform.setIncrement( + UserDataConverter.encodeValue(path, operand, UserDataConverter.ARGUMENT)); + return fieldTransform.build(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NumericIncrementFieldValue that = (NumericIncrementFieldValue) o; + return Objects.equals(operand, that.operand); + } + + @Override + public int hashCode() { + return Objects.hash(operand); + } + } + static class ArrayUnionFieldValue extends FieldValue { final List elements; @@ -205,11 +254,44 @@ public static FieldValue delete() { } /** - * Returns a special value that can be used with set() or update() that tells the server to union - * the given elements with any array value that already exists on the server. Each specified - * element that doesn't already exist in the array will be added to the end. If the field being - * modified is not already an array it will be overwritten with an array containing exactly the - * specified elements. + * Returns a special value that can be used with set(), create() or update() that tells the server + * to increment the field's current value by the given value. + * + *

If the current field value is an integer, possible integer overflows are resolved to + * Long.MAX_VALUE or Long.MIN_VALUE. If the current field value is a double, both values will be + * interpreted as doubles and the arithmetic will follow IEEE 754 semantics. + * + *

If the current field is not an integer or double, or if the field does not yet exist, the + * transformation will set the field to the given value. + * + * @return The FieldValue sentinel for use in a call to set(), create() or update(). + */ + @Nonnull + public static FieldValue increment(long l) { + return new NumericIncrementFieldValue(l); + } + + /** + * Returns a special value that can be used with set(), create() or update() that tells the server + * to increment the field's current value by the given value. + * + *

If the current value is an integer or a double, both the current and the given value will be + * interpreted as doubles and all arithmetic will follow IEEE 754 semantics. Otherwise, the + * transformation will set the field to the given value. + * + * @return The FieldValue sentinel for use in a call to set(), create() or update(). + */ + @Nonnull + public static FieldValue increment(double d) { + return new NumericIncrementFieldValue(d); + } + + /** + * Returns a special value that can be used with set(), create() or update() that tells the server + * to union the given elements with any array value that already exists on the server. Each + * specified element that doesn't already exist in the array will be added to the end. If the + * field being modified is not already an array it will be overwritten with an array containing + * exactly the specified elements. * * @param elements The elements to union into the array. * @return The FieldValue sentinel for use in a call to set() or update(). @@ -221,10 +303,10 @@ public static FieldValue arrayUnion(@Nonnull Object... elements) { } /** - * Returns a special value that can be used with set() or update() that tells the server to remove - * the given elements from any array value that already exists on the server. All instances of - * each element specified will be removed from the array. If the field being modified is not - * already an array it will be overwritten with an empty array. + * Returns a special value that can be used with set(), create() or update() that tells the server + * to remove the given elements from any array value that already exists on the server. All + * instances of each element specified will be removed from the array. If the field being modified + * is not already an array it will be overwritten with an empty array. * * @param elements The elements to remove from the array. * @return The FieldValue sentinel for use in a call to set() or update(). diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UserDataConverter.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UserDataConverter.java index 9bedd8b5d7ce..24c36e36d4c7 100644 --- a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UserDataConverter.java +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UserDataConverter.java @@ -90,7 +90,7 @@ private UserDataConverter() {} * @param path path THe field path of the object to encode. * @param sanitizedObject An Object that has been sanitized by CustomClassMapper and only contains * valid types. - * @param options Encoding opions to use for this value. + * @param options Encoding options to use for this value. * @return The Value proto. */ @Nullable diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java index a07dab86f326..f441f06efd70 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java @@ -44,6 +44,7 @@ import static com.google.cloud.firestore.LocalFirestoreHelper.delete; import static com.google.cloud.firestore.LocalFirestoreHelper.get; import static com.google.cloud.firestore.LocalFirestoreHelper.getAllResponse; +import static com.google.cloud.firestore.LocalFirestoreHelper.increment; import static com.google.cloud.firestore.LocalFirestoreHelper.map; import static com.google.cloud.firestore.LocalFirestoreHelper.object; import static com.google.cloud.firestore.LocalFirestoreHelper.serverTimestamp; @@ -408,6 +409,30 @@ public void mergeWithServerTimestamps() throws Exception { assertCommitEquals(set, commitRequests.get(1)); } + @Test + public void setWithIncrement() throws Exception { + doReturn(FIELD_TRANSFORM_COMMIT_RESPONSE) + .when(firestoreMock) + .sendRequest( + commitCapture.capture(), Matchers.>any()); + + documentReference + .set(map("integer", FieldValue.increment(1), "double", FieldValue.increment(1.1))) + .get(); + + CommitRequest set = + commit( + set(Collections.emptyMap()), + transform( + "integer", + increment(Value.newBuilder().setIntegerValue(1).build()), + "double", + increment(Value.newBuilder().setDoubleValue(1.1).build()))); + + CommitRequest commitRequest = commitCapture.getValue(); + assertCommitEquals(set, commitRequest); + } + @Test public void setWithArrayUnion() throws Exception { doReturn(FIELD_TRANSFORM_COMMIT_RESPONSE) diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/FirestoreTest.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/FirestoreTest.java index 42e4cd5e0407..f9e2e91abaa4 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/FirestoreTest.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/FirestoreTest.java @@ -157,4 +157,16 @@ public void arrayRemoveEquals() { assertNotEquals(arrayRemove1, arrayRemove3); assertNotEquals(arrayRemove1, arrayUnion); } + + @Test + public void incrementEquals() { + FieldValue increment1 = FieldValue.increment(42); + FieldValue increment2 = FieldValue.increment(42); + FieldValue increment3 = FieldValue.increment(42.0); + FieldValue increment4 = FieldValue.increment(42.0); + assertEquals(increment1, increment2); + assertEquals(increment3, increment4); + assertNotEquals(increment1, increment3); + assertNotEquals(increment2, increment4); + } } diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java index 718064bc5feb..20337f8e6095 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java @@ -272,6 +272,10 @@ public static FieldTransform serverTimestamp() { .build(); } + public static FieldTransform increment(Value value) { + return FieldTransform.newBuilder().setIncrement(value).build(); + } + public static FieldTransform arrayUnion(Value... values) { return FieldTransform.newBuilder() .setAppendMissingElements(ArrayValue.newBuilder().addAllValues(Arrays.asList(values))) diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java index c4940f6ff38b..ea9771e36602 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITSystemTest.java @@ -71,6 +71,8 @@ public class ITSystemTest { + private static final double DOUBLE_EPSILON = 0.000001; + private final Map SINGLE_FIELD_MAP = LocalFirestoreHelper.SINGLE_FIELD_MAP; private final Map ALL_SUPPORTED_TYPES_MAP = LocalFirestoreHelper.ALL_SUPPORTED_TYPES_MAP; @@ -977,4 +979,22 @@ public void arrayOperators() throws ExecutionException, InterruptedException { assertTrue(containsQuery.get().get().isEmpty()); } + + @Test + public void integerIncrement() throws ExecutionException, InterruptedException { + DocumentReference docRef = randomColl.document(); + docRef.set(Collections.singletonMap("sum", (Object) 1L)).get(); + docRef.update("sum", FieldValue.increment(2)).get(); + DocumentSnapshot docSnap = docRef.get().get(); + assertEquals(3L, docSnap.get("sum")); + } + + @Test + public void floatIncrement() throws ExecutionException, InterruptedException { + DocumentReference docRef = randomColl.document(); + docRef.set(Collections.singletonMap("sum", (Object) 1.1)).get(); + docRef.update("sum", FieldValue.increment(2.2)).get(); + DocumentSnapshot docSnap = docRef.get().get(); + assertEquals(3.3, (Double) docSnap.get("sum"), DOUBLE_EPSILON); + } } From 1835cd75804d3cd0632073afe747e6b6f08ba50d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= Date: Fri, 8 Mar 2019 21:37:02 +0100 Subject: [PATCH 29/53] Spanner: Throw exception when SSLHandshakeException occurs instead of infinite retry loop (#4663) * #3889 throw exception when an SSLHandshakeException occurs SSLHandshakeExceptions are not retryable, as it is most probably an indication that the client does not accept the server certificate. * #3889 added test for retryability of SSLHandshakeException * fixed formatting --- .../spanner/SpannerExceptionFactory.java | 15 ++++-- .../google/cloud/spanner/SpannerImplTest.java | 48 +++++++++++++++++++ 2 files changed, 60 insertions(+), 3 deletions(-) diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java index 3ff2d6749778..7577a06bfbce 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java @@ -16,10 +16,9 @@ package com.google.cloud.spanner; -import static com.google.cloud.spanner.SpannerException.DoNotConstructDirectly; - import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.rpc.ApiException; +import com.google.cloud.spanner.SpannerException.DoNotConstructDirectly; import com.google.common.base.MoreObjects; import com.google.common.base.Predicate; import io.grpc.Context; @@ -28,6 +27,7 @@ import java.util.concurrent.CancellationException; import java.util.concurrent.TimeoutException; import javax.annotation.Nullable; +import javax.net.ssl.SSLHandshakeException; /** * A factory for creating instances of {@link SpannerException} and its subtypes. All creation of @@ -168,7 +168,9 @@ private static boolean isRetryable(ErrorCode code, @Nullable Throwable cause) { case INTERNAL: return hasCauseMatching(cause, Matchers.isRetryableInternalError); case UNAVAILABLE: - return true; + // SSLHandshakeException is (probably) not retryable, as it is an indication that the server + // certificate was not accepted by the client. + return !hasCauseMatching(cause, Matchers.isSSLHandshakeException); case RESOURCE_EXHAUSTED: return SpannerException.extractRetryDelay(cause) > 0; default: @@ -211,5 +213,12 @@ public boolean apply(Throwable cause) { return false; } }; + static final Predicate isSSLHandshakeException = + new Predicate() { + @Override + public boolean apply(Throwable input) { + return input instanceof SSLHandshakeException; + } + }; } } diff --git a/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerImplTest.java b/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerImplTest.java index 8dffda872401..93c20dfb19b3 100644 --- a/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerImplTest.java +++ b/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerImplTest.java @@ -17,6 +17,8 @@ package com.google.cloud.spanner; import static com.google.common.truth.Truth.assertThat; +import static org.hamcrest.CoreMatchers.is; +import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import com.google.cloud.grpc.GrpcTransportOptions; @@ -24,6 +26,7 @@ import java.util.HashMap; import java.util.Map; import java.util.concurrent.Callable; +import javax.net.ssl.SSLHandshakeException; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -133,4 +136,49 @@ public Void call() throws Exception { assertThat(e.getMessage().contains("Unexpected exception thrown")); } } + + @Test + public void sslHandshakeExceptionIsNotRetryable() { + // Verify that a SpannerException with code UNAVAILABLE and cause SSLHandshakeException is not + // retryable. + boolean gotExpectedException = false; + try { + SpannerImpl.runWithRetries( + new Callable() { + @Override + public Void call() throws Exception { + throw SpannerExceptionFactory.newSpannerException( + ErrorCode.UNAVAILABLE, + "This exception should not be retryable", + new SSLHandshakeException("some SSL handshake exception")); + } + }); + } catch (SpannerException e) { + gotExpectedException = true; + assertThat(e.isRetryable(), is(false)); + assertThat(e.getErrorCode()).isEqualTo(ErrorCode.UNAVAILABLE); + assertThat(e.getMessage().contains("This exception should not be retryable")); + } + assertThat(gotExpectedException, is(true)); + + // Verify that any other SpannerException with code UNAVAILABLE is retryable. + SpannerImpl.runWithRetries( + new Callable() { + private boolean firstTime = true; + + @Override + public Void call() throws Exception { + // Keep track of whethr this is the first call or a subsequent call to avoid an infinite + // loop. + if (firstTime) { + firstTime = false; + throw SpannerExceptionFactory.newSpannerException( + ErrorCode.UNAVAILABLE, + "This exception should be retryable", + new Exception("some other exception")); + } + return null; + } + }); + } } From 04206ac472d8d68dd30c9dd7bbabcc89453b2d72 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Fri, 8 Mar 2019 15:48:53 -0500 Subject: [PATCH 30/53] Add Cloud Scheduler v1 API. (#4658) * Add Cloud Scheduler v1 API. * Fixes to google-cloud-bom pom.xml * Add proto to scheduler pom.xml --- .../grpc-google-cloud-scheduler-v1/pom.xml | 31 + .../scheduler/v1/CloudSchedulerGrpc.java | 1244 ++++++ google-api-grpc/pom.xml | 12 + .../proto-google-cloud-scheduler-v1/pom.xml | 31 + .../scheduler/v1/AppEngineHttpTarget.java | 1713 +++++++ .../v1/AppEngineHttpTargetOrBuilder.java | 276 ++ .../cloud/scheduler/v1/AppEngineRouting.java | 1476 ++++++ .../v1/AppEngineRoutingOrBuilder.java | 202 + .../cloud/scheduler/v1/CreateJobRequest.java | 927 ++++ .../v1/CreateJobRequestOrBuilder.java | 81 + .../cloud/scheduler/v1/DeleteJobRequest.java | 613 +++ .../v1/DeleteJobRequestOrBuilder.java | 35 + .../cloud/scheduler/v1/GetJobRequest.java | 611 +++ .../scheduler/v1/GetJobRequestOrBuilder.java | 35 + .../google/cloud/scheduler/v1/HttpMethod.java | 259 ++ .../google/cloud/scheduler/v1/HttpTarget.java | 1330 ++++++ .../scheduler/v1/HttpTargetOrBuilder.java | 196 + .../com/google/cloud/scheduler/v1/Job.java | 3978 +++++++++++++++++ .../google/cloud/scheduler/v1/JobName.java | 202 + .../cloud/scheduler/v1/JobOrBuilder.java | 453 ++ .../google/cloud/scheduler/v1/JobProto.java | 124 + .../cloud/scheduler/v1/ListJobsRequest.java | 910 ++++ .../v1/ListJobsRequestOrBuilder.java | 83 + .../cloud/scheduler/v1/ListJobsResponse.java | 1120 +++++ .../v1/ListJobsResponseOrBuilder.java | 92 + .../cloud/scheduler/v1/LocationName.java | 180 + .../cloud/scheduler/v1/PauseJobRequest.java | 611 +++ .../v1/PauseJobRequestOrBuilder.java | 35 + .../cloud/scheduler/v1/ProjectName.java | 160 + .../cloud/scheduler/v1/PubsubTarget.java | 1076 +++++ .../scheduler/v1/PubsubTargetOrBuilder.java | 120 + .../cloud/scheduler/v1/ResumeJobRequest.java | 611 +++ .../v1/ResumeJobRequestOrBuilder.java | 35 + .../cloud/scheduler/v1/RetryConfig.java | 1609 +++++++ .../scheduler/v1/RetryConfigOrBuilder.java | 178 + .../cloud/scheduler/v1/RunJobRequest.java | 613 +++ .../scheduler/v1/RunJobRequestOrBuilder.java | 35 + .../cloud/scheduler/v1/SchedulerProto.java | 214 + .../cloud/scheduler/v1/TargetProto.java | 161 + .../cloud/scheduler/v1/UpdateJobRequest.java | 988 ++++ .../v1/UpdateJobRequestOrBuilder.java | 81 + .../cloud/scheduler/v1/cloudscheduler.proto | 237 + .../proto/google/cloud/scheduler/v1/job.proto | 220 + .../google/cloud/scheduler/v1/target.proto | 291 ++ .../pom.xml | 2 +- google-cloud-bom/pom.xml | 15 + .../google-cloud-scheduler/pom.xml | 8 + .../scheduler/v1/CloudSchedulerClient.java | 1121 +++++ .../scheduler/v1/CloudSchedulerSettings.java | 251 ++ .../cloud/scheduler/v1/package-info.java | 38 + .../scheduler/v1/stub/CloudSchedulerStub.java | 84 + .../v1/stub/CloudSchedulerStubSettings.java | 503 +++ .../GrpcCloudSchedulerCallableFactory.java | 115 + .../v1/stub/GrpcCloudSchedulerStub.java | 294 ++ .../v1/CloudSchedulerClientTest.java | 455 ++ .../scheduler/v1/MockCloudScheduler.java | 57 + .../scheduler/v1/MockCloudSchedulerImpl.java | 171 + .../google-cloud-scheduler/synth.metadata | 16 +- .../google-cloud-scheduler/synth.py | 2 +- versions.txt | 2 + 60 files changed, 26618 insertions(+), 5 deletions(-) create mode 100644 google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml create mode 100644 google-api-grpc/grpc-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerGrpc.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTarget.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTargetOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRouting.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRoutingOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpMethod.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobName.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTarget.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTargetOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto create mode 100644 google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto create mode 100644 google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java create mode 100644 google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerSettings.java create mode 100644 google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/package-info.java create mode 100644 google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStub.java create mode 100644 google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java create mode 100644 google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/GrpcCloudSchedulerCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/GrpcCloudSchedulerStub.java create mode 100644 google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/CloudSchedulerClientTest.java create mode 100644 google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/MockCloudScheduler.java create mode 100644 google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/MockCloudSchedulerImpl.java diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml new file mode 100644 index 000000000000..3ba98cc0074c --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + grpc-google-cloud-scheduler-v1 + 0.47.1-SNAPSHOT + grpc-google-cloud-scheduler-v1 + GRPC library for grpc-google-cloud-scheduler-v1 + + com.google.api.grpc + google-api-grpc + 0.47.1-SNAPSHOT + + + + io.grpc + grpc-stub + compile + + + io.grpc + grpc-protobuf + compile + + + com.google.api.grpc + proto-google-cloud-scheduler-v1 + compile + + + diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerGrpc.java b/google-api-grpc/grpc-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerGrpc.java new file mode 100644 index 000000000000..eda72a2627c5 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerGrpc.java @@ -0,0 +1,1244 @@ +package com.google.cloud.scheduler.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * The Cloud Scheduler API allows external entities to reliably
+ * schedule asynchronous jobs.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/scheduler/v1/cloudscheduler.proto") +public final class CloudSchedulerGrpc { + + private CloudSchedulerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.scheduler.v1.CloudScheduler"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListJobsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse> + METHOD_LIST_JOBS = getListJobsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse> + getListJobsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse> + getListJobsMethod() { + return getListJobsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse> + getListJobsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse> + getListJobsMethod; + if ((getListJobsMethod = CloudSchedulerGrpc.getListJobsMethod) == null) { + synchronized (CloudSchedulerGrpc.class) { + if ((getListJobsMethod = CloudSchedulerGrpc.getListJobsMethod) == null) { + CloudSchedulerGrpc.getListJobsMethod = + getListJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.scheduler.v1.CloudScheduler", "ListJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.ListJobsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudSchedulerMethodDescriptorSupplier("ListJobs")) + .build(); + } + } + } + return getListJobsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.GetJobRequest, com.google.cloud.scheduler.v1.Job> + METHOD_GET_JOB = getGetJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.GetJobRequest, com.google.cloud.scheduler.v1.Job> + getGetJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.GetJobRequest, com.google.cloud.scheduler.v1.Job> + getGetJobMethod() { + return getGetJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.GetJobRequest, com.google.cloud.scheduler.v1.Job> + getGetJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.GetJobRequest, com.google.cloud.scheduler.v1.Job> + getGetJobMethod; + if ((getGetJobMethod = CloudSchedulerGrpc.getGetJobMethod) == null) { + synchronized (CloudSchedulerGrpc.class) { + if ((getGetJobMethod = CloudSchedulerGrpc.getGetJobMethod) == null) { + CloudSchedulerGrpc.getGetJobMethod = + getGetJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.scheduler.v1.CloudScheduler", "GetJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.GetJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new CloudSchedulerMethodDescriptorSupplier("GetJob")) + .build(); + } + } + } + return getGetJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.CreateJobRequest, com.google.cloud.scheduler.v1.Job> + METHOD_CREATE_JOB = getCreateJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.CreateJobRequest, com.google.cloud.scheduler.v1.Job> + getCreateJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.CreateJobRequest, com.google.cloud.scheduler.v1.Job> + getCreateJobMethod() { + return getCreateJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.CreateJobRequest, com.google.cloud.scheduler.v1.Job> + getCreateJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.CreateJobRequest, com.google.cloud.scheduler.v1.Job> + getCreateJobMethod; + if ((getCreateJobMethod = CloudSchedulerGrpc.getCreateJobMethod) == null) { + synchronized (CloudSchedulerGrpc.class) { + if ((getCreateJobMethod = CloudSchedulerGrpc.getCreateJobMethod) == null) { + CloudSchedulerGrpc.getCreateJobMethod = + getCreateJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.scheduler.v1.CloudScheduler", "CreateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.CreateJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new CloudSchedulerMethodDescriptorSupplier("CreateJob")) + .build(); + } + } + } + return getCreateJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.UpdateJobRequest, com.google.cloud.scheduler.v1.Job> + METHOD_UPDATE_JOB = getUpdateJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.UpdateJobRequest, com.google.cloud.scheduler.v1.Job> + getUpdateJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.UpdateJobRequest, com.google.cloud.scheduler.v1.Job> + getUpdateJobMethod() { + return getUpdateJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.UpdateJobRequest, com.google.cloud.scheduler.v1.Job> + getUpdateJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.UpdateJobRequest, com.google.cloud.scheduler.v1.Job> + getUpdateJobMethod; + if ((getUpdateJobMethod = CloudSchedulerGrpc.getUpdateJobMethod) == null) { + synchronized (CloudSchedulerGrpc.class) { + if ((getUpdateJobMethod = CloudSchedulerGrpc.getUpdateJobMethod) == null) { + CloudSchedulerGrpc.getUpdateJobMethod = + getUpdateJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.scheduler.v1.CloudScheduler", "UpdateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.UpdateJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new CloudSchedulerMethodDescriptorSupplier("UpdateJob")) + .build(); + } + } + } + return getUpdateJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.DeleteJobRequest, com.google.protobuf.Empty> + METHOD_DELETE_JOB = getDeleteJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod() { + return getDeleteJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod; + if ((getDeleteJobMethod = CloudSchedulerGrpc.getDeleteJobMethod) == null) { + synchronized (CloudSchedulerGrpc.class) { + if ((getDeleteJobMethod = CloudSchedulerGrpc.getDeleteJobMethod) == null) { + CloudSchedulerGrpc.getDeleteJobMethod = + getDeleteJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.scheduler.v1.CloudScheduler", "DeleteJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.DeleteJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new CloudSchedulerMethodDescriptorSupplier("DeleteJob")) + .build(); + } + } + } + return getDeleteJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getPauseJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.PauseJobRequest, com.google.cloud.scheduler.v1.Job> + METHOD_PAUSE_JOB = getPauseJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.PauseJobRequest, com.google.cloud.scheduler.v1.Job> + getPauseJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.PauseJobRequest, com.google.cloud.scheduler.v1.Job> + getPauseJobMethod() { + return getPauseJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.PauseJobRequest, com.google.cloud.scheduler.v1.Job> + getPauseJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.PauseJobRequest, com.google.cloud.scheduler.v1.Job> + getPauseJobMethod; + if ((getPauseJobMethod = CloudSchedulerGrpc.getPauseJobMethod) == null) { + synchronized (CloudSchedulerGrpc.class) { + if ((getPauseJobMethod = CloudSchedulerGrpc.getPauseJobMethod) == null) { + CloudSchedulerGrpc.getPauseJobMethod = + getPauseJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.scheduler.v1.CloudScheduler", "PauseJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.PauseJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new CloudSchedulerMethodDescriptorSupplier("PauseJob")) + .build(); + } + } + } + return getPauseJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getResumeJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ResumeJobRequest, com.google.cloud.scheduler.v1.Job> + METHOD_RESUME_JOB = getResumeJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ResumeJobRequest, com.google.cloud.scheduler.v1.Job> + getResumeJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ResumeJobRequest, com.google.cloud.scheduler.v1.Job> + getResumeJobMethod() { + return getResumeJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ResumeJobRequest, com.google.cloud.scheduler.v1.Job> + getResumeJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.ResumeJobRequest, com.google.cloud.scheduler.v1.Job> + getResumeJobMethod; + if ((getResumeJobMethod = CloudSchedulerGrpc.getResumeJobMethod) == null) { + synchronized (CloudSchedulerGrpc.class) { + if ((getResumeJobMethod = CloudSchedulerGrpc.getResumeJobMethod) == null) { + CloudSchedulerGrpc.getResumeJobMethod = + getResumeJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.scheduler.v1.CloudScheduler", "ResumeJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.ResumeJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new CloudSchedulerMethodDescriptorSupplier("ResumeJob")) + .build(); + } + } + } + return getResumeJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getRunJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.RunJobRequest, com.google.cloud.scheduler.v1.Job> + METHOD_RUN_JOB = getRunJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.RunJobRequest, com.google.cloud.scheduler.v1.Job> + getRunJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.RunJobRequest, com.google.cloud.scheduler.v1.Job> + getRunJobMethod() { + return getRunJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.RunJobRequest, com.google.cloud.scheduler.v1.Job> + getRunJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.scheduler.v1.RunJobRequest, com.google.cloud.scheduler.v1.Job> + getRunJobMethod; + if ((getRunJobMethod = CloudSchedulerGrpc.getRunJobMethod) == null) { + synchronized (CloudSchedulerGrpc.class) { + if ((getRunJobMethod = CloudSchedulerGrpc.getRunJobMethod) == null) { + CloudSchedulerGrpc.getRunJobMethod = + getRunJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.scheduler.v1.CloudScheduler", "RunJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.RunJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.scheduler.v1.Job.getDefaultInstance())) + .setSchemaDescriptor(new CloudSchedulerMethodDescriptorSupplier("RunJob")) + .build(); + } + } + } + return getRunJobMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CloudSchedulerStub newStub(io.grpc.Channel channel) { + return new CloudSchedulerStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudSchedulerBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new CloudSchedulerBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CloudSchedulerFutureStub newFutureStub(io.grpc.Channel channel) { + return new CloudSchedulerFutureStub(channel); + } + + /** + * + * + *
+   * The Cloud Scheduler API allows external entities to reliably
+   * schedule asynchronous jobs.
+   * 
+ */ + public abstract static class CloudSchedulerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists jobs.
+     * 
+ */ + public void listJobs( + com.google.cloud.scheduler.v1.ListJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListJobsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets a job.
+     * 
+ */ + public void getJob( + com.google.cloud.scheduler.v1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Creates a job.
+     * 
+ */ + public void createJob( + com.google.cloud.scheduler.v1.CreateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates a job.
+     * If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does
+     * not exist, `NOT_FOUND` is returned.
+     * If UpdateJob does not successfully return, it is possible for the
+     * job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may
+     * not be executed. If this happens, retry the UpdateJob request
+     * until a successful response is received.
+     * 
+ */ + public void updateJob( + com.google.cloud.scheduler.v1.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes a job.
+     * 
+ */ + public void deleteJob( + com.google.cloud.scheduler.v1.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Pauses a job.
+     * If a job is paused then the system will stop executing the job
+     * until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The
+     * state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it
+     * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]
+     * to be paused.
+     * 
+ */ + public void pauseJob( + com.google.cloud.scheduler.v1.PauseJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getPauseJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Resume a job.
+     * This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The
+     * state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it
+     * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in
+     * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.
+     * 
+ */ + public void resumeJob( + com.google.cloud.scheduler.v1.ResumeJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getResumeJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Forces a job to run now.
+     * When this method is called, Cloud Scheduler will dispatch the job, even
+     * if the job is already running.
+     * 
+ */ + public void runJob( + com.google.cloud.scheduler.v1.RunJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getRunJobMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListJobsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.scheduler.v1.ListJobsRequest, + com.google.cloud.scheduler.v1.ListJobsResponse>(this, METHODID_LIST_JOBS))) + .addMethod( + getGetJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.scheduler.v1.GetJobRequest, + com.google.cloud.scheduler.v1.Job>(this, METHODID_GET_JOB))) + .addMethod( + getCreateJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.scheduler.v1.CreateJobRequest, + com.google.cloud.scheduler.v1.Job>(this, METHODID_CREATE_JOB))) + .addMethod( + getUpdateJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.scheduler.v1.UpdateJobRequest, + com.google.cloud.scheduler.v1.Job>(this, METHODID_UPDATE_JOB))) + .addMethod( + getDeleteJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.scheduler.v1.DeleteJobRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_JOB))) + .addMethod( + getPauseJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.scheduler.v1.PauseJobRequest, + com.google.cloud.scheduler.v1.Job>(this, METHODID_PAUSE_JOB))) + .addMethod( + getResumeJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.scheduler.v1.ResumeJobRequest, + com.google.cloud.scheduler.v1.Job>(this, METHODID_RESUME_JOB))) + .addMethod( + getRunJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.scheduler.v1.RunJobRequest, + com.google.cloud.scheduler.v1.Job>(this, METHODID_RUN_JOB))) + .build(); + } + } + + /** + * + * + *
+   * The Cloud Scheduler API allows external entities to reliably
+   * schedule asynchronous jobs.
+   * 
+ */ + public static final class CloudSchedulerStub + extends io.grpc.stub.AbstractStub { + private CloudSchedulerStub(io.grpc.Channel channel) { + super(channel); + } + + private CloudSchedulerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudSchedulerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudSchedulerStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists jobs.
+     * 
+ */ + public void listJobs( + com.google.cloud.scheduler.v1.ListJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListJobsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a job.
+     * 
+ */ + public void getJob( + com.google.cloud.scheduler.v1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a job.
+     * 
+ */ + public void createJob( + com.google.cloud.scheduler.v1.CreateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a job.
+     * If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does
+     * not exist, `NOT_FOUND` is returned.
+     * If UpdateJob does not successfully return, it is possible for the
+     * job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may
+     * not be executed. If this happens, retry the UpdateJob request
+     * until a successful response is received.
+     * 
+ */ + public void updateJob( + com.google.cloud.scheduler.v1.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a job.
+     * 
+ */ + public void deleteJob( + com.google.cloud.scheduler.v1.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Pauses a job.
+     * If a job is paused then the system will stop executing the job
+     * until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The
+     * state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it
+     * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]
+     * to be paused.
+     * 
+ */ + public void pauseJob( + com.google.cloud.scheduler.v1.PauseJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getPauseJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Resume a job.
+     * This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The
+     * state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it
+     * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in
+     * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.
+     * 
+ */ + public void resumeJob( + com.google.cloud.scheduler.v1.ResumeJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getResumeJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Forces a job to run now.
+     * When this method is called, Cloud Scheduler will dispatch the job, even
+     * if the job is already running.
+     * 
+ */ + public void runJob( + com.google.cloud.scheduler.v1.RunJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getRunJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The Cloud Scheduler API allows external entities to reliably
+   * schedule asynchronous jobs.
+   * 
+ */ + public static final class CloudSchedulerBlockingStub + extends io.grpc.stub.AbstractStub { + private CloudSchedulerBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private CloudSchedulerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudSchedulerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudSchedulerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists jobs.
+     * 
+ */ + public com.google.cloud.scheduler.v1.ListJobsResponse listJobs( + com.google.cloud.scheduler.v1.ListJobsRequest request) { + return blockingUnaryCall(getChannel(), getListJobsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a job.
+     * 
+ */ + public com.google.cloud.scheduler.v1.Job getJob( + com.google.cloud.scheduler.v1.GetJobRequest request) { + return blockingUnaryCall(getChannel(), getGetJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a job.
+     * 
+ */ + public com.google.cloud.scheduler.v1.Job createJob( + com.google.cloud.scheduler.v1.CreateJobRequest request) { + return blockingUnaryCall(getChannel(), getCreateJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a job.
+     * If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does
+     * not exist, `NOT_FOUND` is returned.
+     * If UpdateJob does not successfully return, it is possible for the
+     * job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may
+     * not be executed. If this happens, retry the UpdateJob request
+     * until a successful response is received.
+     * 
+ */ + public com.google.cloud.scheduler.v1.Job updateJob( + com.google.cloud.scheduler.v1.UpdateJobRequest request) { + return blockingUnaryCall(getChannel(), getUpdateJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a job.
+     * 
+ */ + public com.google.protobuf.Empty deleteJob( + com.google.cloud.scheduler.v1.DeleteJobRequest request) { + return blockingUnaryCall(getChannel(), getDeleteJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Pauses a job.
+     * If a job is paused then the system will stop executing the job
+     * until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The
+     * state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it
+     * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]
+     * to be paused.
+     * 
+ */ + public com.google.cloud.scheduler.v1.Job pauseJob( + com.google.cloud.scheduler.v1.PauseJobRequest request) { + return blockingUnaryCall(getChannel(), getPauseJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Resume a job.
+     * This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The
+     * state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it
+     * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in
+     * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.
+     * 
+ */ + public com.google.cloud.scheduler.v1.Job resumeJob( + com.google.cloud.scheduler.v1.ResumeJobRequest request) { + return blockingUnaryCall(getChannel(), getResumeJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Forces a job to run now.
+     * When this method is called, Cloud Scheduler will dispatch the job, even
+     * if the job is already running.
+     * 
+ */ + public com.google.cloud.scheduler.v1.Job runJob( + com.google.cloud.scheduler.v1.RunJobRequest request) { + return blockingUnaryCall(getChannel(), getRunJobMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The Cloud Scheduler API allows external entities to reliably
+   * schedule asynchronous jobs.
+   * 
+ */ + public static final class CloudSchedulerFutureStub + extends io.grpc.stub.AbstractStub { + private CloudSchedulerFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private CloudSchedulerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudSchedulerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudSchedulerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists jobs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.scheduler.v1.ListJobsResponse> + listJobs(com.google.cloud.scheduler.v1.ListJobsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListJobsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getJob(com.google.cloud.scheduler.v1.GetJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createJob(com.google.cloud.scheduler.v1.CreateJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a job.
+     * If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does
+     * not exist, `NOT_FOUND` is returned.
+     * If UpdateJob does not successfully return, it is possible for the
+     * job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may
+     * not be executed. If this happens, retry the UpdateJob request
+     * until a successful response is received.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateJob(com.google.cloud.scheduler.v1.UpdateJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteJob( + com.google.cloud.scheduler.v1.DeleteJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Pauses a job.
+     * If a job is paused then the system will stop executing the job
+     * until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The
+     * state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it
+     * will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]
+     * to be paused.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + pauseJob(com.google.cloud.scheduler.v1.PauseJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getPauseJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Resume a job.
+     * This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The
+     * state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it
+     * will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in
+     * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resumeJob(com.google.cloud.scheduler.v1.ResumeJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getResumeJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Forces a job to run now.
+     * When this method is called, Cloud Scheduler will dispatch the job, even
+     * if the job is already running.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + runJob(com.google.cloud.scheduler.v1.RunJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getRunJobMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_JOBS = 0; + private static final int METHODID_GET_JOB = 1; + private static final int METHODID_CREATE_JOB = 2; + private static final int METHODID_UPDATE_JOB = 3; + private static final int METHODID_DELETE_JOB = 4; + private static final int METHODID_PAUSE_JOB = 5; + private static final int METHODID_RESUME_JOB = 6; + private static final int METHODID_RUN_JOB = 7; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final CloudSchedulerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudSchedulerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_JOBS: + serviceImpl.listJobs( + (com.google.cloud.scheduler.v1.ListJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_JOB: + serviceImpl.getJob( + (com.google.cloud.scheduler.v1.GetJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_JOB: + serviceImpl.createJob( + (com.google.cloud.scheduler.v1.CreateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_JOB: + serviceImpl.updateJob( + (com.google.cloud.scheduler.v1.UpdateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_JOB: + serviceImpl.deleteJob( + (com.google.cloud.scheduler.v1.DeleteJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PAUSE_JOB: + serviceImpl.pauseJob( + (com.google.cloud.scheduler.v1.PauseJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESUME_JOB: + serviceImpl.resumeJob( + (com.google.cloud.scheduler.v1.ResumeJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RUN_JOB: + serviceImpl.runJob( + (com.google.cloud.scheduler.v1.RunJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class CloudSchedulerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudSchedulerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudScheduler"); + } + } + + private static final class CloudSchedulerFileDescriptorSupplier + extends CloudSchedulerBaseDescriptorSupplier { + CloudSchedulerFileDescriptorSupplier() {} + } + + private static final class CloudSchedulerMethodDescriptorSupplier + extends CloudSchedulerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudSchedulerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CloudSchedulerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudSchedulerFileDescriptorSupplier()) + .addMethod(getListJobsMethodHelper()) + .addMethod(getGetJobMethodHelper()) + .addMethod(getCreateJobMethodHelper()) + .addMethod(getUpdateJobMethodHelper()) + .addMethod(getDeleteJobMethodHelper()) + .addMethod(getPauseJobMethodHelper()) + .addMethod(getResumeJobMethodHelper()) + .addMethod(getRunJobMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index 39cf79dfb119..5356a83c62e6 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -399,11 +399,21 @@ proto-google-cloud-scheduler-v1beta1 0.47.1-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-scheduler-v1 + 0.47.1-SNAPSHOT + com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 0.47.1-SNAPSHOT + + com.google.api.grpc + grpc-google-cloud-scheduler-v1 + 0.47.1-SNAPSHOT + com.google.api.grpc proto-google-cloud-spanner-v1 @@ -706,6 +716,7 @@ grpc-google-cloud-redis-v1beta1 grpc-google-cloud-redis-v1 grpc-google-cloud-scheduler-v1beta1 + grpc-google-cloud-scheduler-v1 grpc-google-cloud-securitycenter-v1beta1 grpc-google-cloud-securitycenter-v1 grpc-google-cloud-spanner-admin-database-v1 @@ -761,6 +772,7 @@ proto-google-cloud-redis-v1beta1 proto-google-cloud-redis-v1 proto-google-cloud-scheduler-v1beta1 + proto-google-cloud-scheduler-v1 proto-google-cloud-securitycenter-v1beta1 proto-google-cloud-securitycenter-v1 proto-google-cloud-spanner-admin-database-v1 diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml new file mode 100644 index 000000000000..f2b69ad2e223 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + proto-google-cloud-scheduler-v1 + 0.47.1-SNAPSHOT + proto-google-cloud-scheduler-v1 + PROTO library for proto-google-cloud-scheduler-v1 + + com.google.api.grpc + google-api-grpc + 0.47.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + compile + + + com.google.api + api-common + compile + + + com.google.api.grpc + proto-google-common-protos + compile + + + diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTarget.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTarget.java new file mode 100644 index 000000000000..da520bd4408d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTarget.java @@ -0,0 +1,1713 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/target.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * App Engine target. The job will be pushed to a job handler by means
+ * of an HTTP request via an [http_method][google.cloud.scheduler.v1.AppEngineHttpTarget.http_method] such
+ * as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
+ * HTTP response code in the range [200 - 299]. Error 503 is
+ * considered an App Engine system error instead of an application
+ * error. Requests returning error 503 will be retried regardless of
+ * retry configuration and not counted against retry counts. Any other
+ * response code, or a failure to receive a response before the
+ * deadline, constitutes a failed attempt.
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.AppEngineHttpTarget} + */ +public final class AppEngineHttpTarget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.AppEngineHttpTarget) + AppEngineHttpTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use AppEngineHttpTarget.newBuilder() to construct. + private AppEngineHttpTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AppEngineHttpTarget() { + httpMethod_ = 0; + relativeUri_ = ""; + body_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AppEngineHttpTarget( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + httpMethod_ = rawValue; + break; + } + case 18: + { + com.google.cloud.scheduler.v1.AppEngineRouting.Builder subBuilder = null; + if (appEngineRouting_ != null) { + subBuilder = appEngineRouting_.toBuilder(); + } + appEngineRouting_ = + input.readMessage( + com.google.cloud.scheduler.v1.AppEngineRouting.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(appEngineRouting_); + appEngineRouting_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + relativeUri_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + headers_ = + com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + headers_.getMutableMap().put(headers__.getKey(), headers__.getValue()); + break; + } + case 42: + { + body_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.AppEngineHttpTarget.class, + com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder.class); + } + + private int bitField0_; + public static final int HTTP_METHOD_FIELD_NUMBER = 1; + private int httpMethod_; + /** + * + * + *
+   * The HTTP method to use for the request. PATCH and OPTIONS are not
+   * permitted.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 1; + */ + public int getHttpMethodValue() { + return httpMethod_; + } + /** + * + * + *
+   * The HTTP method to use for the request. PATCH and OPTIONS are not
+   * permitted.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 1; + */ + public com.google.cloud.scheduler.v1.HttpMethod getHttpMethod() { + @SuppressWarnings("deprecation") + com.google.cloud.scheduler.v1.HttpMethod result = + com.google.cloud.scheduler.v1.HttpMethod.valueOf(httpMethod_); + return result == null ? com.google.cloud.scheduler.v1.HttpMethod.UNRECOGNIZED : result; + } + + public static final int APP_ENGINE_ROUTING_FIELD_NUMBER = 2; + private com.google.cloud.scheduler.v1.AppEngineRouting appEngineRouting_; + /** + * + * + *
+   * App Engine Routing setting for the job.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public boolean hasAppEngineRouting() { + return appEngineRouting_ != null; + } + /** + * + * + *
+   * App Engine Routing setting for the job.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public com.google.cloud.scheduler.v1.AppEngineRouting getAppEngineRouting() { + return appEngineRouting_ == null + ? com.google.cloud.scheduler.v1.AppEngineRouting.getDefaultInstance() + : appEngineRouting_; + } + /** + * + * + *
+   * App Engine Routing setting for the job.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() { + return getAppEngineRouting(); + } + + public static final int RELATIVE_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object relativeUri_; + /** + * + * + *
+   * The relative URI.
+   * The relative URL must begin with "/" and must be a valid HTTP relative URL.
+   * It can contain a path, query string arguments, and `#` fragments.
+   * If the relative URL is empty, then the root path "/" will be used.
+   * No spaces are allowed, and the maximum length allowed is 2083 characters.
+   * 
+ * + * string relative_uri = 3; + */ + public java.lang.String getRelativeUri() { + java.lang.Object ref = relativeUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relativeUri_ = s; + return s; + } + } + /** + * + * + *
+   * The relative URI.
+   * The relative URL must begin with "/" and must be a valid HTTP relative URL.
+   * It can contain a path, query string arguments, and `#` fragments.
+   * If the relative URL is empty, then the root path "/" will be used.
+   * No spaces are allowed, and the maximum length allowed is 2083 characters.
+   * 
+ * + * string relative_uri = 3; + */ + public com.google.protobuf.ByteString getRelativeUriBytes() { + java.lang.Object ref = relativeUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + relativeUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEADERS_FIELD_NUMBER = 4; + + private static final class HeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + * + * + *
+   * HTTP request headers.
+   * This map contains the header field names and values. Headers can be set
+   * when the job is created.
+   * Cloud Scheduler sets some headers to default values:
+   * * `User-Agent`: By default, this header is
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+   *   This header can be modified, but Cloud Scheduler will append
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+   *   modified `User-Agent`.
+   * * `X-CloudScheduler`: This header will be set to true.
+   * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+   * the following headers:
+   * * `Content-Type`: By default, the `Content-Type` header is set to
+   *   `"application/octet-stream"`. The default can be overridden by explictly
+   *   setting `Content-Type` to a particular media type when the job is
+   *   created.
+   *   For example, `Content-Type` can be set to `"application/json"`.
+   * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+   *   output only. It cannot be changed.
+   * The headers below are output only. They cannot be set or overridden:
+   * * `X-Google-*`: For Google internal use only.
+   * * `X-AppEngine-*`: For Google internal use only.
+   * In addition, some App Engine headers, which contain
+   * job-specific information, are also be sent to the job handler.
+   * 
+ * + * map<string, string> headers = 4; + */ + public boolean containsHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHeaders().getMap().containsKey(key); + } + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + * + * + *
+   * HTTP request headers.
+   * This map contains the header field names and values. Headers can be set
+   * when the job is created.
+   * Cloud Scheduler sets some headers to default values:
+   * * `User-Agent`: By default, this header is
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+   *   This header can be modified, but Cloud Scheduler will append
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+   *   modified `User-Agent`.
+   * * `X-CloudScheduler`: This header will be set to true.
+   * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+   * the following headers:
+   * * `Content-Type`: By default, the `Content-Type` header is set to
+   *   `"application/octet-stream"`. The default can be overridden by explictly
+   *   setting `Content-Type` to a particular media type when the job is
+   *   created.
+   *   For example, `Content-Type` can be set to `"application/json"`.
+   * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+   *   output only. It cannot be changed.
+   * The headers below are output only. They cannot be set or overridden:
+   * * `X-Google-*`: For Google internal use only.
+   * * `X-AppEngine-*`: For Google internal use only.
+   * In addition, some App Engine headers, which contain
+   * job-specific information, are also be sent to the job handler.
+   * 
+ * + * map<string, string> headers = 4; + */ + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + * + * + *
+   * HTTP request headers.
+   * This map contains the header field names and values. Headers can be set
+   * when the job is created.
+   * Cloud Scheduler sets some headers to default values:
+   * * `User-Agent`: By default, this header is
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+   *   This header can be modified, but Cloud Scheduler will append
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+   *   modified `User-Agent`.
+   * * `X-CloudScheduler`: This header will be set to true.
+   * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+   * the following headers:
+   * * `Content-Type`: By default, the `Content-Type` header is set to
+   *   `"application/octet-stream"`. The default can be overridden by explictly
+   *   setting `Content-Type` to a particular media type when the job is
+   *   created.
+   *   For example, `Content-Type` can be set to `"application/json"`.
+   * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+   *   output only. It cannot be changed.
+   * The headers below are output only. They cannot be set or overridden:
+   * * `X-Google-*`: For Google internal use only.
+   * * `X-AppEngine-*`: For Google internal use only.
+   * In addition, some App Engine headers, which contain
+   * job-specific information, are also be sent to the job handler.
+   * 
+ * + * map<string, string> headers = 4; + */ + public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * HTTP request headers.
+   * This map contains the header field names and values. Headers can be set
+   * when the job is created.
+   * Cloud Scheduler sets some headers to default values:
+   * * `User-Agent`: By default, this header is
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+   *   This header can be modified, but Cloud Scheduler will append
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+   *   modified `User-Agent`.
+   * * `X-CloudScheduler`: This header will be set to true.
+   * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+   * the following headers:
+   * * `Content-Type`: By default, the `Content-Type` header is set to
+   *   `"application/octet-stream"`. The default can be overridden by explictly
+   *   setting `Content-Type` to a particular media type when the job is
+   *   created.
+   *   For example, `Content-Type` can be set to `"application/json"`.
+   * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+   *   output only. It cannot be changed.
+   * The headers below are output only. They cannot be set or overridden:
+   * * `X-Google-*`: For Google internal use only.
+   * * `X-AppEngine-*`: For Google internal use only.
+   * In addition, some App Engine headers, which contain
+   * job-specific information, are also be sent to the job handler.
+   * 
+ * + * map<string, string> headers = 4; + */ + public java.lang.String getHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int BODY_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString body_; + /** + * + * + *
+   * Body.
+   * HTTP request body. A request body is allowed only if the HTTP method is
+   * POST or PUT. It will result in invalid argument error to set a body on a
+   * job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
+   * 
+ * + * bytes body = 5; + */ + public com.google.protobuf.ByteString getBody() { + return body_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (httpMethod_ + != com.google.cloud.scheduler.v1.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { + output.writeEnum(1, httpMethod_); + } + if (appEngineRouting_ != null) { + output.writeMessage(2, getAppEngineRouting()); + } + if (!getRelativeUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeUri_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 4); + if (!body_.isEmpty()) { + output.writeBytes(5, body_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (httpMethod_ + != com.google.cloud.scheduler.v1.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, httpMethod_); + } + if (appEngineRouting_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAppEngineRouting()); + } + if (!getRelativeUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeUri_); + } + for (java.util.Map.Entry entry : + internalGetHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry headers__ = + HeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, headers__); + } + if (!body_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, body_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.AppEngineHttpTarget)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.AppEngineHttpTarget other = + (com.google.cloud.scheduler.v1.AppEngineHttpTarget) obj; + + boolean result = true; + result = result && httpMethod_ == other.httpMethod_; + result = result && (hasAppEngineRouting() == other.hasAppEngineRouting()); + if (hasAppEngineRouting()) { + result = result && getAppEngineRouting().equals(other.getAppEngineRouting()); + } + result = result && getRelativeUri().equals(other.getRelativeUri()); + result = result && internalGetHeaders().equals(other.internalGetHeaders()); + result = result && getBody().equals(other.getBody()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HTTP_METHOD_FIELD_NUMBER; + hash = (53 * hash) + httpMethod_; + if (hasAppEngineRouting()) { + hash = (37 * hash) + APP_ENGINE_ROUTING_FIELD_NUMBER; + hash = (53 * hash) + getAppEngineRouting().hashCode(); + } + hash = (37 * hash) + RELATIVE_URI_FIELD_NUMBER; + hash = (53 * hash) + getRelativeUri().hashCode(); + if (!internalGetHeaders().getMap().isEmpty()) { + hash = (37 * hash) + HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetHeaders().hashCode(); + } + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.AppEngineHttpTarget prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * App Engine target. The job will be pushed to a job handler by means
+   * of an HTTP request via an [http_method][google.cloud.scheduler.v1.AppEngineHttpTarget.http_method] such
+   * as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
+   * HTTP response code in the range [200 - 299]. Error 503 is
+   * considered an App Engine system error instead of an application
+   * error. Requests returning error 503 will be retried regardless of
+   * retry configuration and not counted against retry counts. Any other
+   * response code, or a failure to receive a response before the
+   * deadline, constitutes a failed attempt.
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.AppEngineHttpTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.AppEngineHttpTarget) + com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.AppEngineHttpTarget.class, + com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.AppEngineHttpTarget.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + httpMethod_ = 0; + + if (appEngineRoutingBuilder_ == null) { + appEngineRouting_ = null; + } else { + appEngineRouting_ = null; + appEngineRoutingBuilder_ = null; + } + relativeUri_ = ""; + + internalGetMutableHeaders().clear(); + body_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.AppEngineHttpTarget getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.AppEngineHttpTarget build() { + com.google.cloud.scheduler.v1.AppEngineHttpTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.AppEngineHttpTarget buildPartial() { + com.google.cloud.scheduler.v1.AppEngineHttpTarget result = + new com.google.cloud.scheduler.v1.AppEngineHttpTarget(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.httpMethod_ = httpMethod_; + if (appEngineRoutingBuilder_ == null) { + result.appEngineRouting_ = appEngineRouting_; + } else { + result.appEngineRouting_ = appEngineRoutingBuilder_.build(); + } + result.relativeUri_ = relativeUri_; + result.headers_ = internalGetHeaders(); + result.headers_.makeImmutable(); + result.body_ = body_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.AppEngineHttpTarget) { + return mergeFrom((com.google.cloud.scheduler.v1.AppEngineHttpTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.AppEngineHttpTarget other) { + if (other == com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance()) + return this; + if (other.httpMethod_ != 0) { + setHttpMethodValue(other.getHttpMethodValue()); + } + if (other.hasAppEngineRouting()) { + mergeAppEngineRouting(other.getAppEngineRouting()); + } + if (!other.getRelativeUri().isEmpty()) { + relativeUri_ = other.relativeUri_; + onChanged(); + } + internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); + if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { + setBody(other.getBody()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.AppEngineHttpTarget parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.scheduler.v1.AppEngineHttpTarget) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int httpMethod_ = 0; + /** + * + * + *
+     * The HTTP method to use for the request. PATCH and OPTIONS are not
+     * permitted.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 1; + */ + public int getHttpMethodValue() { + return httpMethod_; + } + /** + * + * + *
+     * The HTTP method to use for the request. PATCH and OPTIONS are not
+     * permitted.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 1; + */ + public Builder setHttpMethodValue(int value) { + httpMethod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The HTTP method to use for the request. PATCH and OPTIONS are not
+     * permitted.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 1; + */ + public com.google.cloud.scheduler.v1.HttpMethod getHttpMethod() { + @SuppressWarnings("deprecation") + com.google.cloud.scheduler.v1.HttpMethod result = + com.google.cloud.scheduler.v1.HttpMethod.valueOf(httpMethod_); + return result == null ? com.google.cloud.scheduler.v1.HttpMethod.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The HTTP method to use for the request. PATCH and OPTIONS are not
+     * permitted.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 1; + */ + public Builder setHttpMethod(com.google.cloud.scheduler.v1.HttpMethod value) { + if (value == null) { + throw new NullPointerException(); + } + + httpMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The HTTP method to use for the request. PATCH and OPTIONS are not
+     * permitted.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 1; + */ + public Builder clearHttpMethod() { + + httpMethod_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.scheduler.v1.AppEngineRouting appEngineRouting_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.AppEngineRouting, + com.google.cloud.scheduler.v1.AppEngineRouting.Builder, + com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder> + appEngineRoutingBuilder_; + /** + * + * + *
+     * App Engine Routing setting for the job.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public boolean hasAppEngineRouting() { + return appEngineRoutingBuilder_ != null || appEngineRouting_ != null; + } + /** + * + * + *
+     * App Engine Routing setting for the job.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public com.google.cloud.scheduler.v1.AppEngineRouting getAppEngineRouting() { + if (appEngineRoutingBuilder_ == null) { + return appEngineRouting_ == null + ? com.google.cloud.scheduler.v1.AppEngineRouting.getDefaultInstance() + : appEngineRouting_; + } else { + return appEngineRoutingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * App Engine Routing setting for the job.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public Builder setAppEngineRouting(com.google.cloud.scheduler.v1.AppEngineRouting value) { + if (appEngineRoutingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + appEngineRouting_ = value; + onChanged(); + } else { + appEngineRoutingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * App Engine Routing setting for the job.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public Builder setAppEngineRouting( + com.google.cloud.scheduler.v1.AppEngineRouting.Builder builderForValue) { + if (appEngineRoutingBuilder_ == null) { + appEngineRouting_ = builderForValue.build(); + onChanged(); + } else { + appEngineRoutingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * App Engine Routing setting for the job.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public Builder mergeAppEngineRouting(com.google.cloud.scheduler.v1.AppEngineRouting value) { + if (appEngineRoutingBuilder_ == null) { + if (appEngineRouting_ != null) { + appEngineRouting_ = + com.google.cloud.scheduler.v1.AppEngineRouting.newBuilder(appEngineRouting_) + .mergeFrom(value) + .buildPartial(); + } else { + appEngineRouting_ = value; + } + onChanged(); + } else { + appEngineRoutingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * App Engine Routing setting for the job.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public Builder clearAppEngineRouting() { + if (appEngineRoutingBuilder_ == null) { + appEngineRouting_ = null; + onChanged(); + } else { + appEngineRouting_ = null; + appEngineRoutingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * App Engine Routing setting for the job.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public com.google.cloud.scheduler.v1.AppEngineRouting.Builder getAppEngineRoutingBuilder() { + + onChanged(); + return getAppEngineRoutingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * App Engine Routing setting for the job.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + public com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() { + if (appEngineRoutingBuilder_ != null) { + return appEngineRoutingBuilder_.getMessageOrBuilder(); + } else { + return appEngineRouting_ == null + ? com.google.cloud.scheduler.v1.AppEngineRouting.getDefaultInstance() + : appEngineRouting_; + } + } + /** + * + * + *
+     * App Engine Routing setting for the job.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.AppEngineRouting, + com.google.cloud.scheduler.v1.AppEngineRouting.Builder, + com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder> + getAppEngineRoutingFieldBuilder() { + if (appEngineRoutingBuilder_ == null) { + appEngineRoutingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.AppEngineRouting, + com.google.cloud.scheduler.v1.AppEngineRouting.Builder, + com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder>( + getAppEngineRouting(), getParentForChildren(), isClean()); + appEngineRouting_ = null; + } + return appEngineRoutingBuilder_; + } + + private java.lang.Object relativeUri_ = ""; + /** + * + * + *
+     * The relative URI.
+     * The relative URL must begin with "/" and must be a valid HTTP relative URL.
+     * It can contain a path, query string arguments, and `#` fragments.
+     * If the relative URL is empty, then the root path "/" will be used.
+     * No spaces are allowed, and the maximum length allowed is 2083 characters.
+     * 
+ * + * string relative_uri = 3; + */ + public java.lang.String getRelativeUri() { + java.lang.Object ref = relativeUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relativeUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The relative URI.
+     * The relative URL must begin with "/" and must be a valid HTTP relative URL.
+     * It can contain a path, query string arguments, and `#` fragments.
+     * If the relative URL is empty, then the root path "/" will be used.
+     * No spaces are allowed, and the maximum length allowed is 2083 characters.
+     * 
+ * + * string relative_uri = 3; + */ + public com.google.protobuf.ByteString getRelativeUriBytes() { + java.lang.Object ref = relativeUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + relativeUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The relative URI.
+     * The relative URL must begin with "/" and must be a valid HTTP relative URL.
+     * It can contain a path, query string arguments, and `#` fragments.
+     * If the relative URL is empty, then the root path "/" will be used.
+     * No spaces are allowed, and the maximum length allowed is 2083 characters.
+     * 
+ * + * string relative_uri = 3; + */ + public Builder setRelativeUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + relativeUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The relative URI.
+     * The relative URL must begin with "/" and must be a valid HTTP relative URL.
+     * It can contain a path, query string arguments, and `#` fragments.
+     * If the relative URL is empty, then the root path "/" will be used.
+     * No spaces are allowed, and the maximum length allowed is 2083 characters.
+     * 
+ * + * string relative_uri = 3; + */ + public Builder clearRelativeUri() { + + relativeUri_ = getDefaultInstance().getRelativeUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * The relative URI.
+     * The relative URL must begin with "/" and must be a valid HTTP relative URL.
+     * It can contain a path, query string arguments, and `#` fragments.
+     * If the relative URL is empty, then the root path "/" will be used.
+     * No spaces are allowed, and the maximum length allowed is 2083 characters.
+     * 
+ * + * string relative_uri = 3; + */ + public Builder setRelativeUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + relativeUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + private com.google.protobuf.MapField + internalGetMutableHeaders() { + onChanged(); + ; + if (headers_ == null) { + headers_ = com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); + } + if (!headers_.isMutable()) { + headers_ = headers_.copy(); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + * + * + *
+     * HTTP request headers.
+     * This map contains the header field names and values. Headers can be set
+     * when the job is created.
+     * Cloud Scheduler sets some headers to default values:
+     * * `User-Agent`: By default, this header is
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+     *   This header can be modified, but Cloud Scheduler will append
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+     *   modified `User-Agent`.
+     * * `X-CloudScheduler`: This header will be set to true.
+     * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+     * the following headers:
+     * * `Content-Type`: By default, the `Content-Type` header is set to
+     *   `"application/octet-stream"`. The default can be overridden by explictly
+     *   setting `Content-Type` to a particular media type when the job is
+     *   created.
+     *   For example, `Content-Type` can be set to `"application/json"`.
+     * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+     *   output only. It cannot be changed.
+     * The headers below are output only. They cannot be set or overridden:
+     * * `X-Google-*`: For Google internal use only.
+     * * `X-AppEngine-*`: For Google internal use only.
+     * In addition, some App Engine headers, which contain
+     * job-specific information, are also be sent to the job handler.
+     * 
+ * + * map<string, string> headers = 4; + */ + public boolean containsHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHeaders().getMap().containsKey(key); + } + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + * + * + *
+     * HTTP request headers.
+     * This map contains the header field names and values. Headers can be set
+     * when the job is created.
+     * Cloud Scheduler sets some headers to default values:
+     * * `User-Agent`: By default, this header is
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+     *   This header can be modified, but Cloud Scheduler will append
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+     *   modified `User-Agent`.
+     * * `X-CloudScheduler`: This header will be set to true.
+     * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+     * the following headers:
+     * * `Content-Type`: By default, the `Content-Type` header is set to
+     *   `"application/octet-stream"`. The default can be overridden by explictly
+     *   setting `Content-Type` to a particular media type when the job is
+     *   created.
+     *   For example, `Content-Type` can be set to `"application/json"`.
+     * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+     *   output only. It cannot be changed.
+     * The headers below are output only. They cannot be set or overridden:
+     * * `X-Google-*`: For Google internal use only.
+     * * `X-AppEngine-*`: For Google internal use only.
+     * In addition, some App Engine headers, which contain
+     * job-specific information, are also be sent to the job handler.
+     * 
+ * + * map<string, string> headers = 4; + */ + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + * + * + *
+     * HTTP request headers.
+     * This map contains the header field names and values. Headers can be set
+     * when the job is created.
+     * Cloud Scheduler sets some headers to default values:
+     * * `User-Agent`: By default, this header is
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+     *   This header can be modified, but Cloud Scheduler will append
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+     *   modified `User-Agent`.
+     * * `X-CloudScheduler`: This header will be set to true.
+     * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+     * the following headers:
+     * * `Content-Type`: By default, the `Content-Type` header is set to
+     *   `"application/octet-stream"`. The default can be overridden by explictly
+     *   setting `Content-Type` to a particular media type when the job is
+     *   created.
+     *   For example, `Content-Type` can be set to `"application/json"`.
+     * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+     *   output only. It cannot be changed.
+     * The headers below are output only. They cannot be set or overridden:
+     * * `X-Google-*`: For Google internal use only.
+     * * `X-AppEngine-*`: For Google internal use only.
+     * In addition, some App Engine headers, which contain
+     * job-specific information, are also be sent to the job handler.
+     * 
+ * + * map<string, string> headers = 4; + */ + public java.lang.String getHeadersOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * HTTP request headers.
+     * This map contains the header field names and values. Headers can be set
+     * when the job is created.
+     * Cloud Scheduler sets some headers to default values:
+     * * `User-Agent`: By default, this header is
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+     *   This header can be modified, but Cloud Scheduler will append
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+     *   modified `User-Agent`.
+     * * `X-CloudScheduler`: This header will be set to true.
+     * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+     * the following headers:
+     * * `Content-Type`: By default, the `Content-Type` header is set to
+     *   `"application/octet-stream"`. The default can be overridden by explictly
+     *   setting `Content-Type` to a particular media type when the job is
+     *   created.
+     *   For example, `Content-Type` can be set to `"application/json"`.
+     * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+     *   output only. It cannot be changed.
+     * The headers below are output only. They cannot be set or overridden:
+     * * `X-Google-*`: For Google internal use only.
+     * * `X-AppEngine-*`: For Google internal use only.
+     * In addition, some App Engine headers, which contain
+     * job-specific information, are also be sent to the job handler.
+     * 
+ * + * map<string, string> headers = 4; + */ + public java.lang.String getHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHeaders() { + internalGetMutableHeaders().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * HTTP request headers.
+     * This map contains the header field names and values. Headers can be set
+     * when the job is created.
+     * Cloud Scheduler sets some headers to default values:
+     * * `User-Agent`: By default, this header is
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+     *   This header can be modified, but Cloud Scheduler will append
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+     *   modified `User-Agent`.
+     * * `X-CloudScheduler`: This header will be set to true.
+     * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+     * the following headers:
+     * * `Content-Type`: By default, the `Content-Type` header is set to
+     *   `"application/octet-stream"`. The default can be overridden by explictly
+     *   setting `Content-Type` to a particular media type when the job is
+     *   created.
+     *   For example, `Content-Type` can be set to `"application/json"`.
+     * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+     *   output only. It cannot be changed.
+     * The headers below are output only. They cannot be set or overridden:
+     * * `X-Google-*`: For Google internal use only.
+     * * `X-AppEngine-*`: For Google internal use only.
+     * In addition, some App Engine headers, which contain
+     * job-specific information, are also be sent to the job handler.
+     * 
+ * + * map<string, string> headers = 4; + */ + public Builder removeHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHeaders().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableHeaders() { + return internalGetMutableHeaders().getMutableMap(); + } + /** + * + * + *
+     * HTTP request headers.
+     * This map contains the header field names and values. Headers can be set
+     * when the job is created.
+     * Cloud Scheduler sets some headers to default values:
+     * * `User-Agent`: By default, this header is
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+     *   This header can be modified, but Cloud Scheduler will append
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+     *   modified `User-Agent`.
+     * * `X-CloudScheduler`: This header will be set to true.
+     * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+     * the following headers:
+     * * `Content-Type`: By default, the `Content-Type` header is set to
+     *   `"application/octet-stream"`. The default can be overridden by explictly
+     *   setting `Content-Type` to a particular media type when the job is
+     *   created.
+     *   For example, `Content-Type` can be set to `"application/json"`.
+     * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+     *   output only. It cannot be changed.
+     * The headers below are output only. They cannot be set or overridden:
+     * * `X-Google-*`: For Google internal use only.
+     * * `X-AppEngine-*`: For Google internal use only.
+     * In addition, some App Engine headers, which contain
+     * job-specific information, are also be sent to the job handler.
+     * 
+ * + * map<string, string> headers = 4; + */ + public Builder putHeaders(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHeaders().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * HTTP request headers.
+     * This map contains the header field names and values. Headers can be set
+     * when the job is created.
+     * Cloud Scheduler sets some headers to default values:
+     * * `User-Agent`: By default, this header is
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+     *   This header can be modified, but Cloud Scheduler will append
+     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+     *   modified `User-Agent`.
+     * * `X-CloudScheduler`: This header will be set to true.
+     * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+     * the following headers:
+     * * `Content-Type`: By default, the `Content-Type` header is set to
+     *   `"application/octet-stream"`. The default can be overridden by explictly
+     *   setting `Content-Type` to a particular media type when the job is
+     *   created.
+     *   For example, `Content-Type` can be set to `"application/json"`.
+     * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+     *   output only. It cannot be changed.
+     * The headers below are output only. They cannot be set or overridden:
+     * * `X-Google-*`: For Google internal use only.
+     * * `X-AppEngine-*`: For Google internal use only.
+     * In addition, some App Engine headers, which contain
+     * job-specific information, are also be sent to the job handler.
+     * 
+ * + * map<string, string> headers = 4; + */ + public Builder putAllHeaders(java.util.Map values) { + internalGetMutableHeaders().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Body.
+     * HTTP request body. A request body is allowed only if the HTTP method is
+     * POST or PUT. It will result in invalid argument error to set a body on a
+     * job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
+     * 
+ * + * bytes body = 5; + */ + public com.google.protobuf.ByteString getBody() { + return body_; + } + /** + * + * + *
+     * Body.
+     * HTTP request body. A request body is allowed only if the HTTP method is
+     * POST or PUT. It will result in invalid argument error to set a body on a
+     * job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
+     * 
+ * + * bytes body = 5; + */ + public Builder setBody(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + body_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Body.
+     * HTTP request body. A request body is allowed only if the HTTP method is
+     * POST or PUT. It will result in invalid argument error to set a body on a
+     * job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
+     * 
+ * + * bytes body = 5; + */ + public Builder clearBody() { + + body_ = getDefaultInstance().getBody(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.AppEngineHttpTarget) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.AppEngineHttpTarget) + private static final com.google.cloud.scheduler.v1.AppEngineHttpTarget DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.AppEngineHttpTarget(); + } + + public static com.google.cloud.scheduler.v1.AppEngineHttpTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppEngineHttpTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AppEngineHttpTarget(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.AppEngineHttpTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTargetOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTargetOrBuilder.java new file mode 100644 index 000000000000..a2c37d2823ad --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTargetOrBuilder.java @@ -0,0 +1,276 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/target.proto + +package com.google.cloud.scheduler.v1; + +public interface AppEngineHttpTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.AppEngineHttpTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The HTTP method to use for the request. PATCH and OPTIONS are not
+   * permitted.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 1; + */ + int getHttpMethodValue(); + /** + * + * + *
+   * The HTTP method to use for the request. PATCH and OPTIONS are not
+   * permitted.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 1; + */ + com.google.cloud.scheduler.v1.HttpMethod getHttpMethod(); + + /** + * + * + *
+   * App Engine Routing setting for the job.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + boolean hasAppEngineRouting(); + /** + * + * + *
+   * App Engine Routing setting for the job.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + com.google.cloud.scheduler.v1.AppEngineRouting getAppEngineRouting(); + /** + * + * + *
+   * App Engine Routing setting for the job.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineRouting app_engine_routing = 2; + */ + com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder(); + + /** + * + * + *
+   * The relative URI.
+   * The relative URL must begin with "/" and must be a valid HTTP relative URL.
+   * It can contain a path, query string arguments, and `#` fragments.
+   * If the relative URL is empty, then the root path "/" will be used.
+   * No spaces are allowed, and the maximum length allowed is 2083 characters.
+   * 
+ * + * string relative_uri = 3; + */ + java.lang.String getRelativeUri(); + /** + * + * + *
+   * The relative URI.
+   * The relative URL must begin with "/" and must be a valid HTTP relative URL.
+   * It can contain a path, query string arguments, and `#` fragments.
+   * If the relative URL is empty, then the root path "/" will be used.
+   * No spaces are allowed, and the maximum length allowed is 2083 characters.
+   * 
+ * + * string relative_uri = 3; + */ + com.google.protobuf.ByteString getRelativeUriBytes(); + + /** + * + * + *
+   * HTTP request headers.
+   * This map contains the header field names and values. Headers can be set
+   * when the job is created.
+   * Cloud Scheduler sets some headers to default values:
+   * * `User-Agent`: By default, this header is
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+   *   This header can be modified, but Cloud Scheduler will append
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+   *   modified `User-Agent`.
+   * * `X-CloudScheduler`: This header will be set to true.
+   * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+   * the following headers:
+   * * `Content-Type`: By default, the `Content-Type` header is set to
+   *   `"application/octet-stream"`. The default can be overridden by explictly
+   *   setting `Content-Type` to a particular media type when the job is
+   *   created.
+   *   For example, `Content-Type` can be set to `"application/json"`.
+   * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+   *   output only. It cannot be changed.
+   * The headers below are output only. They cannot be set or overridden:
+   * * `X-Google-*`: For Google internal use only.
+   * * `X-AppEngine-*`: For Google internal use only.
+   * In addition, some App Engine headers, which contain
+   * job-specific information, are also be sent to the job handler.
+   * 
+ * + * map<string, string> headers = 4; + */ + int getHeadersCount(); + /** + * + * + *
+   * HTTP request headers.
+   * This map contains the header field names and values. Headers can be set
+   * when the job is created.
+   * Cloud Scheduler sets some headers to default values:
+   * * `User-Agent`: By default, this header is
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+   *   This header can be modified, but Cloud Scheduler will append
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+   *   modified `User-Agent`.
+   * * `X-CloudScheduler`: This header will be set to true.
+   * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+   * the following headers:
+   * * `Content-Type`: By default, the `Content-Type` header is set to
+   *   `"application/octet-stream"`. The default can be overridden by explictly
+   *   setting `Content-Type` to a particular media type when the job is
+   *   created.
+   *   For example, `Content-Type` can be set to `"application/json"`.
+   * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+   *   output only. It cannot be changed.
+   * The headers below are output only. They cannot be set or overridden:
+   * * `X-Google-*`: For Google internal use only.
+   * * `X-AppEngine-*`: For Google internal use only.
+   * In addition, some App Engine headers, which contain
+   * job-specific information, are also be sent to the job handler.
+   * 
+ * + * map<string, string> headers = 4; + */ + boolean containsHeaders(java.lang.String key); + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getHeaders(); + /** + * + * + *
+   * HTTP request headers.
+   * This map contains the header field names and values. Headers can be set
+   * when the job is created.
+   * Cloud Scheduler sets some headers to default values:
+   * * `User-Agent`: By default, this header is
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+   *   This header can be modified, but Cloud Scheduler will append
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+   *   modified `User-Agent`.
+   * * `X-CloudScheduler`: This header will be set to true.
+   * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+   * the following headers:
+   * * `Content-Type`: By default, the `Content-Type` header is set to
+   *   `"application/octet-stream"`. The default can be overridden by explictly
+   *   setting `Content-Type` to a particular media type when the job is
+   *   created.
+   *   For example, `Content-Type` can be set to `"application/json"`.
+   * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+   *   output only. It cannot be changed.
+   * The headers below are output only. They cannot be set or overridden:
+   * * `X-Google-*`: For Google internal use only.
+   * * `X-AppEngine-*`: For Google internal use only.
+   * In addition, some App Engine headers, which contain
+   * job-specific information, are also be sent to the job handler.
+   * 
+ * + * map<string, string> headers = 4; + */ + java.util.Map getHeadersMap(); + /** + * + * + *
+   * HTTP request headers.
+   * This map contains the header field names and values. Headers can be set
+   * when the job is created.
+   * Cloud Scheduler sets some headers to default values:
+   * * `User-Agent`: By default, this header is
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+   *   This header can be modified, but Cloud Scheduler will append
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+   *   modified `User-Agent`.
+   * * `X-CloudScheduler`: This header will be set to true.
+   * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+   * the following headers:
+   * * `Content-Type`: By default, the `Content-Type` header is set to
+   *   `"application/octet-stream"`. The default can be overridden by explictly
+   *   setting `Content-Type` to a particular media type when the job is
+   *   created.
+   *   For example, `Content-Type` can be set to `"application/json"`.
+   * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+   *   output only. It cannot be changed.
+   * The headers below are output only. They cannot be set or overridden:
+   * * `X-Google-*`: For Google internal use only.
+   * * `X-AppEngine-*`: For Google internal use only.
+   * In addition, some App Engine headers, which contain
+   * job-specific information, are also be sent to the job handler.
+   * 
+ * + * map<string, string> headers = 4; + */ + java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * HTTP request headers.
+   * This map contains the header field names and values. Headers can be set
+   * when the job is created.
+   * Cloud Scheduler sets some headers to default values:
+   * * `User-Agent`: By default, this header is
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
+   *   This header can be modified, but Cloud Scheduler will append
+   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
+   *   modified `User-Agent`.
+   * * `X-CloudScheduler`: This header will be set to true.
+   * If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
+   * the following headers:
+   * * `Content-Type`: By default, the `Content-Type` header is set to
+   *   `"application/octet-stream"`. The default can be overridden by explictly
+   *   setting `Content-Type` to a particular media type when the job is
+   *   created.
+   *   For example, `Content-Type` can be set to `"application/json"`.
+   * * `Content-Length`: This is computed by Cloud Scheduler. This value is
+   *   output only. It cannot be changed.
+   * The headers below are output only. They cannot be set or overridden:
+   * * `X-Google-*`: For Google internal use only.
+   * * `X-AppEngine-*`: For Google internal use only.
+   * In addition, some App Engine headers, which contain
+   * job-specific information, are also be sent to the job handler.
+   * 
+ * + * map<string, string> headers = 4; + */ + java.lang.String getHeadersOrThrow(java.lang.String key); + + /** + * + * + *
+   * Body.
+   * HTTP request body. A request body is allowed only if the HTTP method is
+   * POST or PUT. It will result in invalid argument error to set a body on a
+   * job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
+   * 
+ * + * bytes body = 5; + */ + com.google.protobuf.ByteString getBody(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRouting.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRouting.java new file mode 100644 index 000000000000..268cfacd7b27 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRouting.java @@ -0,0 +1,1476 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/target.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * App Engine Routing.
+ * For more information about services, versions, and instances see
+ * [An Overview of App
+ * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
+ * [Microservices Architecture on Google App
+ * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
+ * [App Engine Standard request
+ * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
+ * and [App Engine Flex request
+ * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.AppEngineRouting} + */ +public final class AppEngineRouting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.AppEngineRouting) + AppEngineRoutingOrBuilder { + private static final long serialVersionUID = 0L; + // Use AppEngineRouting.newBuilder() to construct. + private AppEngineRouting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AppEngineRouting() { + service_ = ""; + version_ = ""; + instance_ = ""; + host_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AppEngineRouting( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + service_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + instance_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + host_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineRouting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineRouting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.AppEngineRouting.class, + com.google.cloud.scheduler.v1.AppEngineRouting.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object service_; + /** + * + * + *
+   * App service.
+   * By default, the job is sent to the service which is the default
+   * service when the job is attempted.
+   * 
+ * + * string service = 1; + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } + } + /** + * + * + *
+   * App service.
+   * By default, the job is sent to the service which is the default
+   * service when the job is attempted.
+   * 
+ * + * string service = 1; + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + /** + * + * + *
+   * App version.
+   * By default, the job is sent to the version which is the default
+   * version when the job is attempted.
+   * 
+ * + * string version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * App version.
+   * By default, the job is sent to the version which is the default
+   * version when the job is attempted.
+   * 
+ * + * string version = 2; + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_FIELD_NUMBER = 3; + private volatile java.lang.Object instance_; + /** + * + * + *
+   * App instance.
+   * By default, the job is sent to an instance which is available when
+   * the job is attempted.
+   * Requests can only be sent to a specific instance if
+   * [manual scaling is used in App Engine
+   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
+   * App Engine Flex does not support instances. For more information, see
+   * [App Engine Standard request
+   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
+   * and [App Engine Flex request
+   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+   * 
+ * + * string instance = 3; + */ + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } + } + /** + * + * + *
+   * App instance.
+   * By default, the job is sent to an instance which is available when
+   * the job is attempted.
+   * Requests can only be sent to a specific instance if
+   * [manual scaling is used in App Engine
+   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
+   * App Engine Flex does not support instances. For more information, see
+   * [App Engine Standard request
+   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
+   * and [App Engine Flex request
+   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+   * 
+ * + * string instance = 3; + */ + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOST_FIELD_NUMBER = 4; + private volatile java.lang.Object host_; + /** + * + * + *
+   * Output only. The host that the job is sent to.
+   * For more information about how App Engine requests are routed, see
+   * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
+   * The host is constructed as:
+   * * `host = [application_domain_name]`</br>
+   *   `| [service] + '.' + [application_domain_name]`</br>
+   *   `| [version] + '.' + [application_domain_name]`</br>
+   *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
+   *   `| [instance] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
+   * * `application_domain_name` = The domain name of the app, for
+   *   example <app-id>.appspot.com, which is associated with the
+   *   job's project ID.
+   * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+   * * `version_dot_service =`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
+   * * `instance_dot_service =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `instance_dot_version =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+   * * `instance_dot_version_dot_service =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
+   * to the service which is the default service when the job is attempted.
+   * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
+   * to the version which is the default version when the job is attempted.
+   * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
+   * sent to an instance which is available when the job is attempted.
+   * If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
+   * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
+   * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
+   * to the default version of the default service when the job is attempted.
+   * 
+ * + * string host = 4; + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The host that the job is sent to.
+   * For more information about how App Engine requests are routed, see
+   * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
+   * The host is constructed as:
+   * * `host = [application_domain_name]`</br>
+   *   `| [service] + '.' + [application_domain_name]`</br>
+   *   `| [version] + '.' + [application_domain_name]`</br>
+   *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
+   *   `| [instance] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
+   * * `application_domain_name` = The domain name of the app, for
+   *   example <app-id>.appspot.com, which is associated with the
+   *   job's project ID.
+   * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+   * * `version_dot_service =`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
+   * * `instance_dot_service =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `instance_dot_version =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+   * * `instance_dot_version_dot_service =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
+   * to the service which is the default service when the job is attempted.
+   * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
+   * to the version which is the default version when the job is attempted.
+   * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
+   * sent to an instance which is available when the job is attempted.
+   * If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
+   * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
+   * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
+   * to the default version of the default service when the job is attempted.
+   * 
+ * + * string host = 4; + */ + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (!getInstanceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_); + } + if (!getHostBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (!getInstanceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_); + } + if (!getHostBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.AppEngineRouting)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.AppEngineRouting other = + (com.google.cloud.scheduler.v1.AppEngineRouting) obj; + + boolean result = true; + result = result && getService().equals(other.getService()); + result = result && getVersion().equals(other.getVersion()); + result = result && getInstance().equals(other.getInstance()); + result = result && getHost().equals(other.getHost()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.AppEngineRouting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * App Engine Routing.
+   * For more information about services, versions, and instances see
+   * [An Overview of App
+   * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
+   * [Microservices Architecture on Google App
+   * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
+   * [App Engine Standard request
+   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
+   * and [App Engine Flex request
+   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.AppEngineRouting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.AppEngineRouting) + com.google.cloud.scheduler.v1.AppEngineRoutingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineRouting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineRouting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.AppEngineRouting.class, + com.google.cloud.scheduler.v1.AppEngineRouting.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.AppEngineRouting.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + service_ = ""; + + version_ = ""; + + instance_ = ""; + + host_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_AppEngineRouting_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.AppEngineRouting getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.AppEngineRouting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.AppEngineRouting build() { + com.google.cloud.scheduler.v1.AppEngineRouting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.AppEngineRouting buildPartial() { + com.google.cloud.scheduler.v1.AppEngineRouting result = + new com.google.cloud.scheduler.v1.AppEngineRouting(this); + result.service_ = service_; + result.version_ = version_; + result.instance_ = instance_; + result.host_ = host_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.AppEngineRouting) { + return mergeFrom((com.google.cloud.scheduler.v1.AppEngineRouting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.AppEngineRouting other) { + if (other == com.google.cloud.scheduler.v1.AppEngineRouting.getDefaultInstance()) return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + onChanged(); + } + if (!other.getHost().isEmpty()) { + host_ = other.host_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.AppEngineRouting parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.AppEngineRouting) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object service_ = ""; + /** + * + * + *
+     * App service.
+     * By default, the job is sent to the service which is the default
+     * service when the job is attempted.
+     * 
+ * + * string service = 1; + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * App service.
+     * By default, the job is sent to the service which is the default
+     * service when the job is attempted.
+     * 
+ * + * string service = 1; + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * App service.
+     * By default, the job is sent to the service which is the default
+     * service when the job is attempted.
+     * 
+ * + * string service = 1; + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + service_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * App service.
+     * By default, the job is sent to the service which is the default
+     * service when the job is attempted.
+     * 
+ * + * string service = 1; + */ + public Builder clearService() { + + service_ = getDefaultInstance().getService(); + onChanged(); + return this; + } + /** + * + * + *
+     * App service.
+     * By default, the job is sent to the service which is the default
+     * service when the job is attempted.
+     * 
+ * + * string service = 1; + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + service_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * App version.
+     * By default, the job is sent to the version which is the default
+     * version when the job is attempted.
+     * 
+ * + * string version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * App version.
+     * By default, the job is sent to the version which is the default
+     * version when the job is attempted.
+     * 
+ * + * string version = 2; + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * App version.
+     * By default, the job is sent to the version which is the default
+     * version when the job is attempted.
+     * 
+ * + * string version = 2; + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * App version.
+     * By default, the job is sent to the version which is the default
+     * version when the job is attempted.
+     * 
+ * + * string version = 2; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * App version.
+     * By default, the job is sent to the version which is the default
+     * version when the job is attempted.
+     * 
+ * + * string version = 2; + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object instance_ = ""; + /** + * + * + *
+     * App instance.
+     * By default, the job is sent to an instance which is available when
+     * the job is attempted.
+     * Requests can only be sent to a specific instance if
+     * [manual scaling is used in App Engine
+     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
+     * App Engine Flex does not support instances. For more information, see
+     * [App Engine Standard request
+     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
+     * and [App Engine Flex request
+     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+     * 
+ * + * string instance = 3; + */ + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * App instance.
+     * By default, the job is sent to an instance which is available when
+     * the job is attempted.
+     * Requests can only be sent to a specific instance if
+     * [manual scaling is used in App Engine
+     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
+     * App Engine Flex does not support instances. For more information, see
+     * [App Engine Standard request
+     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
+     * and [App Engine Flex request
+     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+     * 
+ * + * string instance = 3; + */ + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * App instance.
+     * By default, the job is sent to an instance which is available when
+     * the job is attempted.
+     * Requests can only be sent to a specific instance if
+     * [manual scaling is used in App Engine
+     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
+     * App Engine Flex does not support instances. For more information, see
+     * [App Engine Standard request
+     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
+     * and [App Engine Flex request
+     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+     * 
+ * + * string instance = 3; + */ + public Builder setInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instance_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * App instance.
+     * By default, the job is sent to an instance which is available when
+     * the job is attempted.
+     * Requests can only be sent to a specific instance if
+     * [manual scaling is used in App Engine
+     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
+     * App Engine Flex does not support instances. For more information, see
+     * [App Engine Standard request
+     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
+     * and [App Engine Flex request
+     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+     * 
+ * + * string instance = 3; + */ + public Builder clearInstance() { + + instance_ = getDefaultInstance().getInstance(); + onChanged(); + return this; + } + /** + * + * + *
+     * App instance.
+     * By default, the job is sent to an instance which is available when
+     * the job is attempted.
+     * Requests can only be sent to a specific instance if
+     * [manual scaling is used in App Engine
+     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
+     * App Engine Flex does not support instances. For more information, see
+     * [App Engine Standard request
+     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
+     * and [App Engine Flex request
+     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+     * 
+ * + * string instance = 3; + */ + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instance_ = value; + onChanged(); + return this; + } + + private java.lang.Object host_ = ""; + /** + * + * + *
+     * Output only. The host that the job is sent to.
+     * For more information about how App Engine requests are routed, see
+     * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
+     * The host is constructed as:
+     * * `host = [application_domain_name]`</br>
+     *   `| [service] + '.' + [application_domain_name]`</br>
+     *   `| [version] + '.' + [application_domain_name]`</br>
+     *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
+     *   `| [instance] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
+     * * `application_domain_name` = The domain name of the app, for
+     *   example <app-id>.appspot.com, which is associated with the
+     *   job's project ID.
+     * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+     * * `version_dot_service =`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
+     * * `instance_dot_service =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `instance_dot_version =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+     * * `instance_dot_version_dot_service =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
+     * to the service which is the default service when the job is attempted.
+     * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
+     * to the version which is the default version when the job is attempted.
+     * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
+     * sent to an instance which is available when the job is attempted.
+     * If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
+     * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
+     * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
+     * to the default version of the default service when the job is attempted.
+     * 
+ * + * string host = 4; + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The host that the job is sent to.
+     * For more information about how App Engine requests are routed, see
+     * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
+     * The host is constructed as:
+     * * `host = [application_domain_name]`</br>
+     *   `| [service] + '.' + [application_domain_name]`</br>
+     *   `| [version] + '.' + [application_domain_name]`</br>
+     *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
+     *   `| [instance] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
+     * * `application_domain_name` = The domain name of the app, for
+     *   example <app-id>.appspot.com, which is associated with the
+     *   job's project ID.
+     * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+     * * `version_dot_service =`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
+     * * `instance_dot_service =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `instance_dot_version =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+     * * `instance_dot_version_dot_service =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
+     * to the service which is the default service when the job is attempted.
+     * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
+     * to the version which is the default version when the job is attempted.
+     * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
+     * sent to an instance which is available when the job is attempted.
+     * If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
+     * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
+     * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
+     * to the default version of the default service when the job is attempted.
+     * 
+ * + * string host = 4; + */ + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The host that the job is sent to.
+     * For more information about how App Engine requests are routed, see
+     * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
+     * The host is constructed as:
+     * * `host = [application_domain_name]`</br>
+     *   `| [service] + '.' + [application_domain_name]`</br>
+     *   `| [version] + '.' + [application_domain_name]`</br>
+     *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
+     *   `| [instance] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
+     * * `application_domain_name` = The domain name of the app, for
+     *   example <app-id>.appspot.com, which is associated with the
+     *   job's project ID.
+     * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+     * * `version_dot_service =`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
+     * * `instance_dot_service =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `instance_dot_version =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+     * * `instance_dot_version_dot_service =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
+     * to the service which is the default service when the job is attempted.
+     * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
+     * to the version which is the default version when the job is attempted.
+     * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
+     * sent to an instance which is available when the job is attempted.
+     * If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
+     * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
+     * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
+     * to the default version of the default service when the job is attempted.
+     * 
+ * + * string host = 4; + */ + public Builder setHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + host_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The host that the job is sent to.
+     * For more information about how App Engine requests are routed, see
+     * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
+     * The host is constructed as:
+     * * `host = [application_domain_name]`</br>
+     *   `| [service] + '.' + [application_domain_name]`</br>
+     *   `| [version] + '.' + [application_domain_name]`</br>
+     *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
+     *   `| [instance] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
+     * * `application_domain_name` = The domain name of the app, for
+     *   example <app-id>.appspot.com, which is associated with the
+     *   job's project ID.
+     * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+     * * `version_dot_service =`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
+     * * `instance_dot_service =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `instance_dot_version =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+     * * `instance_dot_version_dot_service =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
+     * to the service which is the default service when the job is attempted.
+     * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
+     * to the version which is the default version when the job is attempted.
+     * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
+     * sent to an instance which is available when the job is attempted.
+     * If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
+     * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
+     * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
+     * to the default version of the default service when the job is attempted.
+     * 
+ * + * string host = 4; + */ + public Builder clearHost() { + + host_ = getDefaultInstance().getHost(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The host that the job is sent to.
+     * For more information about how App Engine requests are routed, see
+     * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
+     * The host is constructed as:
+     * * `host = [application_domain_name]`</br>
+     *   `| [service] + '.' + [application_domain_name]`</br>
+     *   `| [version] + '.' + [application_domain_name]`</br>
+     *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
+     *   `| [instance] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
+     *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
+     * * `application_domain_name` = The domain name of the app, for
+     *   example <app-id>.appspot.com, which is associated with the
+     *   job's project ID.
+     * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+     * * `version_dot_service =`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
+     * * `instance_dot_service =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * * `instance_dot_version =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+     * * `instance_dot_version_dot_service =`
+     *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+     *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+     *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+     * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
+     * to the service which is the default service when the job is attempted.
+     * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
+     * to the version which is the default version when the job is attempted.
+     * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
+     * sent to an instance which is available when the job is attempted.
+     * If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
+     * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
+     * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
+     * to the default version of the default service when the job is attempted.
+     * 
+ * + * string host = 4; + */ + public Builder setHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + host_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.AppEngineRouting) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.AppEngineRouting) + private static final com.google.cloud.scheduler.v1.AppEngineRouting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.AppEngineRouting(); + } + + public static com.google.cloud.scheduler.v1.AppEngineRouting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppEngineRouting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AppEngineRouting(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.AppEngineRouting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRoutingOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRoutingOrBuilder.java new file mode 100644 index 000000000000..6977114c3be5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineRoutingOrBuilder.java @@ -0,0 +1,202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/target.proto + +package com.google.cloud.scheduler.v1; + +public interface AppEngineRoutingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.AppEngineRouting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * App service.
+   * By default, the job is sent to the service which is the default
+   * service when the job is attempted.
+   * 
+ * + * string service = 1; + */ + java.lang.String getService(); + /** + * + * + *
+   * App service.
+   * By default, the job is sent to the service which is the default
+   * service when the job is attempted.
+   * 
+ * + * string service = 1; + */ + com.google.protobuf.ByteString getServiceBytes(); + + /** + * + * + *
+   * App version.
+   * By default, the job is sent to the version which is the default
+   * version when the job is attempted.
+   * 
+ * + * string version = 2; + */ + java.lang.String getVersion(); + /** + * + * + *
+   * App version.
+   * By default, the job is sent to the version which is the default
+   * version when the job is attempted.
+   * 
+ * + * string version = 2; + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * App instance.
+   * By default, the job is sent to an instance which is available when
+   * the job is attempted.
+   * Requests can only be sent to a specific instance if
+   * [manual scaling is used in App Engine
+   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
+   * App Engine Flex does not support instances. For more information, see
+   * [App Engine Standard request
+   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
+   * and [App Engine Flex request
+   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+   * 
+ * + * string instance = 3; + */ + java.lang.String getInstance(); + /** + * + * + *
+   * App instance.
+   * By default, the job is sent to an instance which is available when
+   * the job is attempted.
+   * Requests can only be sent to a specific instance if
+   * [manual scaling is used in App Engine
+   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
+   * App Engine Flex does not support instances. For more information, see
+   * [App Engine Standard request
+   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
+   * and [App Engine Flex request
+   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
+   * 
+ * + * string instance = 3; + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
+   * Output only. The host that the job is sent to.
+   * For more information about how App Engine requests are routed, see
+   * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
+   * The host is constructed as:
+   * * `host = [application_domain_name]`</br>
+   *   `| [service] + '.' + [application_domain_name]`</br>
+   *   `| [version] + '.' + [application_domain_name]`</br>
+   *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
+   *   `| [instance] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
+   * * `application_domain_name` = The domain name of the app, for
+   *   example <app-id>.appspot.com, which is associated with the
+   *   job's project ID.
+   * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+   * * `version_dot_service =`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
+   * * `instance_dot_service =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `instance_dot_version =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+   * * `instance_dot_version_dot_service =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
+   * to the service which is the default service when the job is attempted.
+   * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
+   * to the version which is the default version when the job is attempted.
+   * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
+   * sent to an instance which is available when the job is attempted.
+   * If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
+   * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
+   * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
+   * to the default version of the default service when the job is attempted.
+   * 
+ * + * string host = 4; + */ + java.lang.String getHost(); + /** + * + * + *
+   * Output only. The host that the job is sent to.
+   * For more information about how App Engine requests are routed, see
+   * [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
+   * The host is constructed as:
+   * * `host = [application_domain_name]`</br>
+   *   `| [service] + '.' + [application_domain_name]`</br>
+   *   `| [version] + '.' + [application_domain_name]`</br>
+   *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
+   *   `| [instance] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
+   *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
+   * * `application_domain_name` = The domain name of the app, for
+   *   example <app-id>.appspot.com, which is associated with the
+   *   job's project ID.
+   * * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+   * * `version_dot_service =`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
+   * * `instance_dot_service =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * * `instance_dot_version =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version]
+   * * `instance_dot_version_dot_service =`
+   *   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
+   *   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
+   *   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
+   * If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
+   * to the service which is the default service when the job is attempted.
+   * If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
+   * to the version which is the default version when the job is attempted.
+   * If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
+   * sent to an instance which is available when the job is attempted.
+   * If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
+   * [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
+   * [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
+   * to the default version of the default service when the job is attempted.
+   * 
+ * + * string host = 4; + */ + com.google.protobuf.ByteString getHostBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java new file mode 100644 index 000000000000..d187c810c97d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java @@ -0,0 +1,927 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Request message for [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob].
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.CreateJobRequest} + */ +public final class CreateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.CreateJobRequest) + CreateJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateJobRequest.newBuilder() to construct. + private CreateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateJobRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.scheduler.v1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage(com.google.cloud.scheduler.v1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.CreateJobRequest.class, + com.google.cloud.scheduler.v1.CreateJobRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The location name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID`.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The location name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID`.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_FIELD_NUMBER = 2; + private com.google.cloud.scheduler.v1.Job job_; + /** + * + * + *
+   * Required.
+   * The job to add. The user can optionally specify a name for the
+   * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+   * existing job. If a name is not specified then the system will
+   * generate a random unique name that will be returned
+   * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Required.
+   * The job to add. The user can optionally specify a name for the
+   * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+   * existing job. If a name is not specified then the system will
+   * generate a random unique name that will be returned
+   * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public com.google.cloud.scheduler.v1.Job getJob() { + return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Required.
+   * The job to add. The user can optionally specify a name for the
+   * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+   * existing job. If a name is not specified then the system will
+   * generate a random unique name that will be returned
+   * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (job_ != null) { + output.writeMessage(2, getJob()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.CreateJobRequest)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.CreateJobRequest other = + (com.google.cloud.scheduler.v1.CreateJobRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.CreateJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob].
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.CreateJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.CreateJobRequest) + com.google.cloud.scheduler.v1.CreateJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.CreateJobRequest.class, + com.google.cloud.scheduler.v1.CreateJobRequest.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.CreateJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_CreateJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.CreateJobRequest getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.CreateJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.CreateJobRequest build() { + com.google.cloud.scheduler.v1.CreateJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.CreateJobRequest buildPartial() { + com.google.cloud.scheduler.v1.CreateJobRequest result = + new com.google.cloud.scheduler.v1.CreateJobRequest(this); + result.parent_ = parent_; + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.CreateJobRequest) { + return mergeFrom((com.google.cloud.scheduler.v1.CreateJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.CreateJobRequest other) { + if (other == com.google.cloud.scheduler.v1.CreateJobRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasJob()) { + mergeJob(other.getJob()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.CreateJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.CreateJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The location name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID`.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The location name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID`.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The location name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID`.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The location name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID`.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The location name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID`.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.scheduler.v1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.Job, + com.google.cloud.scheduler.v1.Job.Builder, + com.google.cloud.scheduler.v1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Required.
+     * The job to add. The user can optionally specify a name for the
+     * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+     * existing job. If a name is not specified then the system will
+     * generate a random unique name that will be returned
+     * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Required.
+     * The job to add. The user can optionally specify a name for the
+     * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+     * existing job. If a name is not specified then the system will
+     * generate a random unique name that will be returned
+     * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public com.google.cloud.scheduler.v1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The job to add. The user can optionally specify a name for the
+     * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+     * existing job. If a name is not specified then the system will
+     * generate a random unique name that will be returned
+     * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public Builder setJob(com.google.cloud.scheduler.v1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The job to add. The user can optionally specify a name for the
+     * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+     * existing job. If a name is not specified then the system will
+     * generate a random unique name that will be returned
+     * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public Builder setJob(com.google.cloud.scheduler.v1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The job to add. The user can optionally specify a name for the
+     * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+     * existing job. If a name is not specified then the system will
+     * generate a random unique name that will be returned
+     * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public Builder mergeJob(com.google.cloud.scheduler.v1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = com.google.cloud.scheduler.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The job to add. The user can optionally specify a name for the
+     * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+     * existing job. If a name is not specified then the system will
+     * generate a random unique name that will be returned
+     * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The job to add. The user can optionally specify a name for the
+     * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+     * existing job. If a name is not specified then the system will
+     * generate a random unique name that will be returned
+     * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public com.google.cloud.scheduler.v1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The job to add. The user can optionally specify a name for the
+     * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+     * existing job. If a name is not specified then the system will
+     * generate a random unique name that will be returned
+     * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Required.
+     * The job to add. The user can optionally specify a name for the
+     * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+     * existing job. If a name is not specified then the system will
+     * generate a random unique name that will be returned
+     * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.Job, + com.google.cloud.scheduler.v1.Job.Builder, + com.google.cloud.scheduler.v1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.Job, + com.google.cloud.scheduler.v1.Job.Builder, + com.google.cloud.scheduler.v1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.CreateJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.CreateJobRequest) + private static final com.google.cloud.scheduler.v1.CreateJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.CreateJobRequest(); + } + + public static com.google.cloud.scheduler.v1.CreateJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.CreateJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequestOrBuilder.java new file mode 100644 index 000000000000..5097b8906597 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequestOrBuilder.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +public interface CreateJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.CreateJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The location name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID`.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The location name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID`.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The job to add. The user can optionally specify a name for the
+   * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+   * existing job. If a name is not specified then the system will
+   * generate a random unique name that will be returned
+   * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + boolean hasJob(); + /** + * + * + *
+   * Required.
+   * The job to add. The user can optionally specify a name for the
+   * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+   * existing job. If a name is not specified then the system will
+   * generate a random unique name that will be returned
+   * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + com.google.cloud.scheduler.v1.Job getJob(); + /** + * + * + *
+   * Required.
+   * The job to add. The user can optionally specify a name for the
+   * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
+   * existing job. If a name is not specified then the system will
+   * generate a random unique name that will be returned
+   * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 2; + */ + com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java new file mode 100644 index 000000000000..2ee69dce304a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java @@ -0,0 +1,613 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Request message for deleting a job using
+ * [DeleteJob][google.cloud.scheduler.v1.CloudScheduler.DeleteJob].
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.DeleteJobRequest} + */ +public final class DeleteJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.DeleteJobRequest) + DeleteJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteJobRequest.newBuilder() to construct. + private DeleteJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.DeleteJobRequest.class, + com.google.cloud.scheduler.v1.DeleteJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.DeleteJobRequest)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.DeleteJobRequest other = + (com.google.cloud.scheduler.v1.DeleteJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.DeleteJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for deleting a job using
+   * [DeleteJob][google.cloud.scheduler.v1.CloudScheduler.DeleteJob].
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.DeleteJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.DeleteJobRequest) + com.google.cloud.scheduler.v1.DeleteJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.DeleteJobRequest.class, + com.google.cloud.scheduler.v1.DeleteJobRequest.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.DeleteJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.DeleteJobRequest getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.DeleteJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.DeleteJobRequest build() { + com.google.cloud.scheduler.v1.DeleteJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.DeleteJobRequest buildPartial() { + com.google.cloud.scheduler.v1.DeleteJobRequest result = + new com.google.cloud.scheduler.v1.DeleteJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.DeleteJobRequest) { + return mergeFrom((com.google.cloud.scheduler.v1.DeleteJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.DeleteJobRequest other) { + if (other == com.google.cloud.scheduler.v1.DeleteJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.DeleteJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.DeleteJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.DeleteJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.DeleteJobRequest) + private static final com.google.cloud.scheduler.v1.DeleteJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.DeleteJobRequest(); + } + + public static com.google.cloud.scheduler.v1.DeleteJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.DeleteJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequestOrBuilder.java new file mode 100644 index 000000000000..d9f9a92494a7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +public interface DeleteJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.DeleteJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java new file mode 100644 index 000000000000..ec4b20ae32eb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java @@ -0,0 +1,611 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Request message for [GetJob][google.cloud.scheduler.v1.CloudScheduler.GetJob].
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.GetJobRequest} + */ +public final class GetJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.GetJobRequest) + GetJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJobRequest.newBuilder() to construct. + private GetJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.GetJobRequest.class, + com.google.cloud.scheduler.v1.GetJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.GetJobRequest)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.GetJobRequest other = + (com.google.cloud.scheduler.v1.GetJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.GetJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [GetJob][google.cloud.scheduler.v1.CloudScheduler.GetJob].
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.GetJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.GetJobRequest) + com.google.cloud.scheduler.v1.GetJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.GetJobRequest.class, + com.google.cloud.scheduler.v1.GetJobRequest.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.GetJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_GetJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.GetJobRequest getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.GetJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.GetJobRequest build() { + com.google.cloud.scheduler.v1.GetJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.GetJobRequest buildPartial() { + com.google.cloud.scheduler.v1.GetJobRequest result = + new com.google.cloud.scheduler.v1.GetJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.GetJobRequest) { + return mergeFrom((com.google.cloud.scheduler.v1.GetJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.GetJobRequest other) { + if (other == com.google.cloud.scheduler.v1.GetJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.GetJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.GetJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.GetJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.GetJobRequest) + private static final com.google.cloud.scheduler.v1.GetJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.GetJobRequest(); + } + + public static com.google.cloud.scheduler.v1.GetJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.GetJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequestOrBuilder.java new file mode 100644 index 000000000000..96ef33a75a0e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +public interface GetJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.GetJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpMethod.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpMethod.java new file mode 100644 index 000000000000..b1237c181d35 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpMethod.java @@ -0,0 +1,259 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/target.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * The HTTP method used to execute the job.
+ * 
+ * + * Protobuf enum {@code google.cloud.scheduler.v1.HttpMethod} + */ +public enum HttpMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * HTTP method unspecified. Defaults to POST.
+   * 
+ * + * HTTP_METHOD_UNSPECIFIED = 0; + */ + HTTP_METHOD_UNSPECIFIED(0), + /** + * + * + *
+   * HTTP POST
+   * 
+ * + * POST = 1; + */ + POST(1), + /** + * + * + *
+   * HTTP GET
+   * 
+ * + * GET = 2; + */ + GET(2), + /** + * + * + *
+   * HTTP HEAD
+   * 
+ * + * HEAD = 3; + */ + HEAD(3), + /** + * + * + *
+   * HTTP PUT
+   * 
+ * + * PUT = 4; + */ + PUT(4), + /** + * + * + *
+   * HTTP DELETE
+   * 
+ * + * DELETE = 5; + */ + DELETE(5), + /** + * + * + *
+   * HTTP PATCH
+   * 
+ * + * PATCH = 6; + */ + PATCH(6), + /** + * + * + *
+   * HTTP OPTIONS
+   * 
+ * + * OPTIONS = 7; + */ + OPTIONS(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * HTTP method unspecified. Defaults to POST.
+   * 
+ * + * HTTP_METHOD_UNSPECIFIED = 0; + */ + public static final int HTTP_METHOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * HTTP POST
+   * 
+ * + * POST = 1; + */ + public static final int POST_VALUE = 1; + /** + * + * + *
+   * HTTP GET
+   * 
+ * + * GET = 2; + */ + public static final int GET_VALUE = 2; + /** + * + * + *
+   * HTTP HEAD
+   * 
+ * + * HEAD = 3; + */ + public static final int HEAD_VALUE = 3; + /** + * + * + *
+   * HTTP PUT
+   * 
+ * + * PUT = 4; + */ + public static final int PUT_VALUE = 4; + /** + * + * + *
+   * HTTP DELETE
+   * 
+ * + * DELETE = 5; + */ + public static final int DELETE_VALUE = 5; + /** + * + * + *
+   * HTTP PATCH
+   * 
+ * + * PATCH = 6; + */ + public static final int PATCH_VALUE = 6; + /** + * + * + *
+   * HTTP OPTIONS
+   * 
+ * + * OPTIONS = 7; + */ + public static final int OPTIONS_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static HttpMethod valueOf(int value) { + return forNumber(value); + } + + public static HttpMethod forNumber(int value) { + switch (value) { + case 0: + return HTTP_METHOD_UNSPECIFIED; + case 1: + return POST; + case 2: + return GET; + case 3: + return HEAD; + case 4: + return PUT; + case 5: + return DELETE; + case 6: + return PATCH; + case 7: + return OPTIONS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HttpMethod findValueByNumber(int number) { + return HttpMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.scheduler.v1.TargetProto.getDescriptor().getEnumTypes().get(0); + } + + private static final HttpMethod[] VALUES = values(); + + public static HttpMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HttpMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.scheduler.v1.HttpMethod) +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java new file mode 100644 index 000000000000..f23315efc174 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java @@ -0,0 +1,1330 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/target.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Http target. The job will be pushed to the job handler by means of
+ * an HTTP request via an [http_method][google.cloud.scheduler.v1.HttpTarget.http_method] such as HTTP
+ * POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
+ * response code in the range [200 - 299]. A failure to receive a response
+ * constitutes a failed execution. For a redirected request, the response
+ * returned by the redirected request is considered.
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.HttpTarget} + */ +public final class HttpTarget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.HttpTarget) + HttpTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use HttpTarget.newBuilder() to construct. + private HttpTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HttpTarget() { + uri_ = ""; + httpMethod_ = 0; + body_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HttpTarget( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + httpMethod_ = rawValue; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + headers_ = + com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + headers_.getMutableMap().put(headers__.getKey(), headers__.getValue()); + break; + } + case 34: + { + body_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_HttpTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.HttpTarget.class, + com.google.cloud.scheduler.v1.HttpTarget.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * Required.
+   * The full URI path that the request will be sent to. This string
+   * must begin with either "http://" or "https://". Some examples of
+   * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
+   * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
+   * encode some characters for safety and compatibility. The maximum allowed
+   * URL length is 2083 characters after encoding.
+   * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The full URI path that the request will be sent to. This string
+   * must begin with either "http://" or "https://". Some examples of
+   * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
+   * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
+   * encode some characters for safety and compatibility. The maximum allowed
+   * URL length is 2083 characters after encoding.
+   * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HTTP_METHOD_FIELD_NUMBER = 2; + private int httpMethod_; + /** + * + * + *
+   * Which HTTP method to use for the request.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 2; + */ + public int getHttpMethodValue() { + return httpMethod_; + } + /** + * + * + *
+   * Which HTTP method to use for the request.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 2; + */ + public com.google.cloud.scheduler.v1.HttpMethod getHttpMethod() { + @SuppressWarnings("deprecation") + com.google.cloud.scheduler.v1.HttpMethod result = + com.google.cloud.scheduler.v1.HttpMethod.valueOf(httpMethod_); + return result == null ? com.google.cloud.scheduler.v1.HttpMethod.UNRECOGNIZED : result; + } + + public static final int HEADERS_FIELD_NUMBER = 3; + + private static final class HeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + * + * + *
+   * The user can specify HTTP request headers to send with the job's
+   * HTTP request. This map contains the header field names and
+   * values. Repeated headers are not supported, but a header value can
+   * contain commas. These headers represent a subset of the headers
+   * that will accompany the job's HTTP request. Some HTTP request
+   * headers will be ignored or replaced. A partial list of headers that
+   * will be ignored or replaced is below:
+   * - Host: This will be computed by Cloud Scheduler and derived from
+   * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+   * * `Content-Length`: This will be computed by Cloud Scheduler.
+   * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+   * * `X-Google-*`: Google internal use only.
+   * * `X-AppEngine-*`: Google internal use only.
+   * The total size of headers must be less than 80KB.
+   * 
+ * + * map<string, string> headers = 3; + */ + public boolean containsHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHeaders().getMap().containsKey(key); + } + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + * + * + *
+   * The user can specify HTTP request headers to send with the job's
+   * HTTP request. This map contains the header field names and
+   * values. Repeated headers are not supported, but a header value can
+   * contain commas. These headers represent a subset of the headers
+   * that will accompany the job's HTTP request. Some HTTP request
+   * headers will be ignored or replaced. A partial list of headers that
+   * will be ignored or replaced is below:
+   * - Host: This will be computed by Cloud Scheduler and derived from
+   * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+   * * `Content-Length`: This will be computed by Cloud Scheduler.
+   * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+   * * `X-Google-*`: Google internal use only.
+   * * `X-AppEngine-*`: Google internal use only.
+   * The total size of headers must be less than 80KB.
+   * 
+ * + * map<string, string> headers = 3; + */ + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + * + * + *
+   * The user can specify HTTP request headers to send with the job's
+   * HTTP request. This map contains the header field names and
+   * values. Repeated headers are not supported, but a header value can
+   * contain commas. These headers represent a subset of the headers
+   * that will accompany the job's HTTP request. Some HTTP request
+   * headers will be ignored or replaced. A partial list of headers that
+   * will be ignored or replaced is below:
+   * - Host: This will be computed by Cloud Scheduler and derived from
+   * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+   * * `Content-Length`: This will be computed by Cloud Scheduler.
+   * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+   * * `X-Google-*`: Google internal use only.
+   * * `X-AppEngine-*`: Google internal use only.
+   * The total size of headers must be less than 80KB.
+   * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The user can specify HTTP request headers to send with the job's
+   * HTTP request. This map contains the header field names and
+   * values. Repeated headers are not supported, but a header value can
+   * contain commas. These headers represent a subset of the headers
+   * that will accompany the job's HTTP request. Some HTTP request
+   * headers will be ignored or replaced. A partial list of headers that
+   * will be ignored or replaced is below:
+   * - Host: This will be computed by Cloud Scheduler and derived from
+   * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+   * * `Content-Length`: This will be computed by Cloud Scheduler.
+   * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+   * * `X-Google-*`: Google internal use only.
+   * * `X-AppEngine-*`: Google internal use only.
+   * The total size of headers must be less than 80KB.
+   * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int BODY_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString body_; + /** + * + * + *
+   * HTTP request body. A request body is allowed only if the HTTP
+   * method is POST, PUT, or PATCH. It is an error to set body on a job with an
+   * incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
+   * 
+ * + * bytes body = 4; + */ + public com.google.protobuf.ByteString getBody() { + return body_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (httpMethod_ + != com.google.cloud.scheduler.v1.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { + output.writeEnum(2, httpMethod_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 3); + if (!body_.isEmpty()) { + output.writeBytes(4, body_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (httpMethod_ + != com.google.cloud.scheduler.v1.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, httpMethod_); + } + for (java.util.Map.Entry entry : + internalGetHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry headers__ = + HeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, headers__); + } + if (!body_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, body_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.HttpTarget)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.HttpTarget other = (com.google.cloud.scheduler.v1.HttpTarget) obj; + + boolean result = true; + result = result && getUri().equals(other.getUri()); + result = result && httpMethod_ == other.httpMethod_; + result = result && internalGetHeaders().equals(other.internalGetHeaders()); + result = result && getBody().equals(other.getBody()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + HTTP_METHOD_FIELD_NUMBER; + hash = (53 * hash) + httpMethod_; + if (!internalGetHeaders().getMap().isEmpty()) { + hash = (37 * hash) + HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetHeaders().hashCode(); + } + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.HttpTarget parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.HttpTarget prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Http target. The job will be pushed to the job handler by means of
+   * an HTTP request via an [http_method][google.cloud.scheduler.v1.HttpTarget.http_method] such as HTTP
+   * POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
+   * response code in the range [200 - 299]. A failure to receive a response
+   * constitutes a failed execution. For a redirected request, the response
+   * returned by the redirected request is considered.
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.HttpTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.HttpTarget) + com.google.cloud.scheduler.v1.HttpTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_HttpTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.HttpTarget.class, + com.google.cloud.scheduler.v1.HttpTarget.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.HttpTarget.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + uri_ = ""; + + httpMethod_ = 0; + + internalGetMutableHeaders().clear(); + body_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.HttpTarget getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.HttpTarget build() { + com.google.cloud.scheduler.v1.HttpTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.HttpTarget buildPartial() { + com.google.cloud.scheduler.v1.HttpTarget result = + new com.google.cloud.scheduler.v1.HttpTarget(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.uri_ = uri_; + result.httpMethod_ = httpMethod_; + result.headers_ = internalGetHeaders(); + result.headers_.makeImmutable(); + result.body_ = body_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.HttpTarget) { + return mergeFrom((com.google.cloud.scheduler.v1.HttpTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.HttpTarget other) { + if (other == com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.httpMethod_ != 0) { + setHttpMethodValue(other.getHttpMethodValue()); + } + internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); + if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { + setBody(other.getBody()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.HttpTarget parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.HttpTarget) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Required.
+     * The full URI path that the request will be sent to. This string
+     * must begin with either "http://" or "https://". Some examples of
+     * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
+     * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
+     * encode some characters for safety and compatibility. The maximum allowed
+     * URL length is 2083 characters after encoding.
+     * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The full URI path that the request will be sent to. This string
+     * must begin with either "http://" or "https://". Some examples of
+     * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
+     * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
+     * encode some characters for safety and compatibility. The maximum allowed
+     * URL length is 2083 characters after encoding.
+     * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The full URI path that the request will be sent to. This string
+     * must begin with either "http://" or "https://". Some examples of
+     * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
+     * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
+     * encode some characters for safety and compatibility. The maximum allowed
+     * URL length is 2083 characters after encoding.
+     * 
+ * + * string uri = 1; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The full URI path that the request will be sent to. This string
+     * must begin with either "http://" or "https://". Some examples of
+     * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
+     * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
+     * encode some characters for safety and compatibility. The maximum allowed
+     * URL length is 2083 characters after encoding.
+     * 
+ * + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The full URI path that the request will be sent to. This string
+     * must begin with either "http://" or "https://". Some examples of
+     * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
+     * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
+     * encode some characters for safety and compatibility. The maximum allowed
+     * URL length is 2083 characters after encoding.
+     * 
+ * + * string uri = 1; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private int httpMethod_ = 0; + /** + * + * + *
+     * Which HTTP method to use for the request.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 2; + */ + public int getHttpMethodValue() { + return httpMethod_; + } + /** + * + * + *
+     * Which HTTP method to use for the request.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 2; + */ + public Builder setHttpMethodValue(int value) { + httpMethod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Which HTTP method to use for the request.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 2; + */ + public com.google.cloud.scheduler.v1.HttpMethod getHttpMethod() { + @SuppressWarnings("deprecation") + com.google.cloud.scheduler.v1.HttpMethod result = + com.google.cloud.scheduler.v1.HttpMethod.valueOf(httpMethod_); + return result == null ? com.google.cloud.scheduler.v1.HttpMethod.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Which HTTP method to use for the request.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 2; + */ + public Builder setHttpMethod(com.google.cloud.scheduler.v1.HttpMethod value) { + if (value == null) { + throw new NullPointerException(); + } + + httpMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Which HTTP method to use for the request.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 2; + */ + public Builder clearHttpMethod() { + + httpMethod_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + private com.google.protobuf.MapField + internalGetMutableHeaders() { + onChanged(); + ; + if (headers_ == null) { + headers_ = com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); + } + if (!headers_.isMutable()) { + headers_ = headers_.copy(); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + * + * + *
+     * The user can specify HTTP request headers to send with the job's
+     * HTTP request. This map contains the header field names and
+     * values. Repeated headers are not supported, but a header value can
+     * contain commas. These headers represent a subset of the headers
+     * that will accompany the job's HTTP request. Some HTTP request
+     * headers will be ignored or replaced. A partial list of headers that
+     * will be ignored or replaced is below:
+     * - Host: This will be computed by Cloud Scheduler and derived from
+     * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+     * * `Content-Length`: This will be computed by Cloud Scheduler.
+     * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+     * * `X-Google-*`: Google internal use only.
+     * * `X-AppEngine-*`: Google internal use only.
+     * The total size of headers must be less than 80KB.
+     * 
+ * + * map<string, string> headers = 3; + */ + public boolean containsHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHeaders().getMap().containsKey(key); + } + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + * + * + *
+     * The user can specify HTTP request headers to send with the job's
+     * HTTP request. This map contains the header field names and
+     * values. Repeated headers are not supported, but a header value can
+     * contain commas. These headers represent a subset of the headers
+     * that will accompany the job's HTTP request. Some HTTP request
+     * headers will be ignored or replaced. A partial list of headers that
+     * will be ignored or replaced is below:
+     * - Host: This will be computed by Cloud Scheduler and derived from
+     * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+     * * `Content-Length`: This will be computed by Cloud Scheduler.
+     * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+     * * `X-Google-*`: Google internal use only.
+     * * `X-AppEngine-*`: Google internal use only.
+     * The total size of headers must be less than 80KB.
+     * 
+ * + * map<string, string> headers = 3; + */ + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + * + * + *
+     * The user can specify HTTP request headers to send with the job's
+     * HTTP request. This map contains the header field names and
+     * values. Repeated headers are not supported, but a header value can
+     * contain commas. These headers represent a subset of the headers
+     * that will accompany the job's HTTP request. Some HTTP request
+     * headers will be ignored or replaced. A partial list of headers that
+     * will be ignored or replaced is below:
+     * - Host: This will be computed by Cloud Scheduler and derived from
+     * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+     * * `Content-Length`: This will be computed by Cloud Scheduler.
+     * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+     * * `X-Google-*`: Google internal use only.
+     * * `X-AppEngine-*`: Google internal use only.
+     * The total size of headers must be less than 80KB.
+     * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The user can specify HTTP request headers to send with the job's
+     * HTTP request. This map contains the header field names and
+     * values. Repeated headers are not supported, but a header value can
+     * contain commas. These headers represent a subset of the headers
+     * that will accompany the job's HTTP request. Some HTTP request
+     * headers will be ignored or replaced. A partial list of headers that
+     * will be ignored or replaced is below:
+     * - Host: This will be computed by Cloud Scheduler and derived from
+     * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+     * * `Content-Length`: This will be computed by Cloud Scheduler.
+     * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+     * * `X-Google-*`: Google internal use only.
+     * * `X-AppEngine-*`: Google internal use only.
+     * The total size of headers must be less than 80KB.
+     * 
+ * + * map<string, string> headers = 3; + */ + public java.lang.String getHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHeaders() { + internalGetMutableHeaders().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The user can specify HTTP request headers to send with the job's
+     * HTTP request. This map contains the header field names and
+     * values. Repeated headers are not supported, but a header value can
+     * contain commas. These headers represent a subset of the headers
+     * that will accompany the job's HTTP request. Some HTTP request
+     * headers will be ignored or replaced. A partial list of headers that
+     * will be ignored or replaced is below:
+     * - Host: This will be computed by Cloud Scheduler and derived from
+     * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+     * * `Content-Length`: This will be computed by Cloud Scheduler.
+     * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+     * * `X-Google-*`: Google internal use only.
+     * * `X-AppEngine-*`: Google internal use only.
+     * The total size of headers must be less than 80KB.
+     * 
+ * + * map<string, string> headers = 3; + */ + public Builder removeHeaders(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHeaders().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableHeaders() { + return internalGetMutableHeaders().getMutableMap(); + } + /** + * + * + *
+     * The user can specify HTTP request headers to send with the job's
+     * HTTP request. This map contains the header field names and
+     * values. Repeated headers are not supported, but a header value can
+     * contain commas. These headers represent a subset of the headers
+     * that will accompany the job's HTTP request. Some HTTP request
+     * headers will be ignored or replaced. A partial list of headers that
+     * will be ignored or replaced is below:
+     * - Host: This will be computed by Cloud Scheduler and derived from
+     * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+     * * `Content-Length`: This will be computed by Cloud Scheduler.
+     * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+     * * `X-Google-*`: Google internal use only.
+     * * `X-AppEngine-*`: Google internal use only.
+     * The total size of headers must be less than 80KB.
+     * 
+ * + * map<string, string> headers = 3; + */ + public Builder putHeaders(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHeaders().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The user can specify HTTP request headers to send with the job's
+     * HTTP request. This map contains the header field names and
+     * values. Repeated headers are not supported, but a header value can
+     * contain commas. These headers represent a subset of the headers
+     * that will accompany the job's HTTP request. Some HTTP request
+     * headers will be ignored or replaced. A partial list of headers that
+     * will be ignored or replaced is below:
+     * - Host: This will be computed by Cloud Scheduler and derived from
+     * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+     * * `Content-Length`: This will be computed by Cloud Scheduler.
+     * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+     * * `X-Google-*`: Google internal use only.
+     * * `X-AppEngine-*`: Google internal use only.
+     * The total size of headers must be less than 80KB.
+     * 
+ * + * map<string, string> headers = 3; + */ + public Builder putAllHeaders(java.util.Map values) { + internalGetMutableHeaders().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * HTTP request body. A request body is allowed only if the HTTP
+     * method is POST, PUT, or PATCH. It is an error to set body on a job with an
+     * incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
+     * 
+ * + * bytes body = 4; + */ + public com.google.protobuf.ByteString getBody() { + return body_; + } + /** + * + * + *
+     * HTTP request body. A request body is allowed only if the HTTP
+     * method is POST, PUT, or PATCH. It is an error to set body on a job with an
+     * incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
+     * 
+ * + * bytes body = 4; + */ + public Builder setBody(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + body_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * HTTP request body. A request body is allowed only if the HTTP
+     * method is POST, PUT, or PATCH. It is an error to set body on a job with an
+     * incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
+     * 
+ * + * bytes body = 4; + */ + public Builder clearBody() { + + body_ = getDefaultInstance().getBody(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.HttpTarget) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.HttpTarget) + private static final com.google.cloud.scheduler.v1.HttpTarget DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.HttpTarget(); + } + + public static com.google.cloud.scheduler.v1.HttpTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpTarget(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.HttpTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java new file mode 100644 index 000000000000..67c0e7dfa7f5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java @@ -0,0 +1,196 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/target.proto + +package com.google.cloud.scheduler.v1; + +public interface HttpTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.HttpTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The full URI path that the request will be sent to. This string
+   * must begin with either "http://" or "https://". Some examples of
+   * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
+   * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
+   * encode some characters for safety and compatibility. The maximum allowed
+   * URL length is 2083 characters after encoding.
+   * 
+ * + * string uri = 1; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Required.
+   * The full URI path that the request will be sent to. This string
+   * must begin with either "http://" or "https://". Some examples of
+   * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
+   * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
+   * encode some characters for safety and compatibility. The maximum allowed
+   * URL length is 2083 characters after encoding.
+   * 
+ * + * string uri = 1; + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Which HTTP method to use for the request.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 2; + */ + int getHttpMethodValue(); + /** + * + * + *
+   * Which HTTP method to use for the request.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpMethod http_method = 2; + */ + com.google.cloud.scheduler.v1.HttpMethod getHttpMethod(); + + /** + * + * + *
+   * The user can specify HTTP request headers to send with the job's
+   * HTTP request. This map contains the header field names and
+   * values. Repeated headers are not supported, but a header value can
+   * contain commas. These headers represent a subset of the headers
+   * that will accompany the job's HTTP request. Some HTTP request
+   * headers will be ignored or replaced. A partial list of headers that
+   * will be ignored or replaced is below:
+   * - Host: This will be computed by Cloud Scheduler and derived from
+   * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+   * * `Content-Length`: This will be computed by Cloud Scheduler.
+   * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+   * * `X-Google-*`: Google internal use only.
+   * * `X-AppEngine-*`: Google internal use only.
+   * The total size of headers must be less than 80KB.
+   * 
+ * + * map<string, string> headers = 3; + */ + int getHeadersCount(); + /** + * + * + *
+   * The user can specify HTTP request headers to send with the job's
+   * HTTP request. This map contains the header field names and
+   * values. Repeated headers are not supported, but a header value can
+   * contain commas. These headers represent a subset of the headers
+   * that will accompany the job's HTTP request. Some HTTP request
+   * headers will be ignored or replaced. A partial list of headers that
+   * will be ignored or replaced is below:
+   * - Host: This will be computed by Cloud Scheduler and derived from
+   * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+   * * `Content-Length`: This will be computed by Cloud Scheduler.
+   * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+   * * `X-Google-*`: Google internal use only.
+   * * `X-AppEngine-*`: Google internal use only.
+   * The total size of headers must be less than 80KB.
+   * 
+ * + * map<string, string> headers = 3; + */ + boolean containsHeaders(java.lang.String key); + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getHeaders(); + /** + * + * + *
+   * The user can specify HTTP request headers to send with the job's
+   * HTTP request. This map contains the header field names and
+   * values. Repeated headers are not supported, but a header value can
+   * contain commas. These headers represent a subset of the headers
+   * that will accompany the job's HTTP request. Some HTTP request
+   * headers will be ignored or replaced. A partial list of headers that
+   * will be ignored or replaced is below:
+   * - Host: This will be computed by Cloud Scheduler and derived from
+   * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+   * * `Content-Length`: This will be computed by Cloud Scheduler.
+   * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+   * * `X-Google-*`: Google internal use only.
+   * * `X-AppEngine-*`: Google internal use only.
+   * The total size of headers must be less than 80KB.
+   * 
+ * + * map<string, string> headers = 3; + */ + java.util.Map getHeadersMap(); + /** + * + * + *
+   * The user can specify HTTP request headers to send with the job's
+   * HTTP request. This map contains the header field names and
+   * values. Repeated headers are not supported, but a header value can
+   * contain commas. These headers represent a subset of the headers
+   * that will accompany the job's HTTP request. Some HTTP request
+   * headers will be ignored or replaced. A partial list of headers that
+   * will be ignored or replaced is below:
+   * - Host: This will be computed by Cloud Scheduler and derived from
+   * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+   * * `Content-Length`: This will be computed by Cloud Scheduler.
+   * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+   * * `X-Google-*`: Google internal use only.
+   * * `X-AppEngine-*`: Google internal use only.
+   * The total size of headers must be less than 80KB.
+   * 
+ * + * map<string, string> headers = 3; + */ + java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The user can specify HTTP request headers to send with the job's
+   * HTTP request. This map contains the header field names and
+   * values. Repeated headers are not supported, but a header value can
+   * contain commas. These headers represent a subset of the headers
+   * that will accompany the job's HTTP request. Some HTTP request
+   * headers will be ignored or replaced. A partial list of headers that
+   * will be ignored or replaced is below:
+   * - Host: This will be computed by Cloud Scheduler and derived from
+   * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
+   * * `Content-Length`: This will be computed by Cloud Scheduler.
+   * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
+   * * `X-Google-*`: Google internal use only.
+   * * `X-AppEngine-*`: Google internal use only.
+   * The total size of headers must be less than 80KB.
+   * 
+ * + * map<string, string> headers = 3; + */ + java.lang.String getHeadersOrThrow(java.lang.String key); + + /** + * + * + *
+   * HTTP request body. A request body is allowed only if the HTTP
+   * method is POST, PUT, or PATCH. It is an error to set body on a job with an
+   * incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
+   * 
+ * + * bytes body = 4; + */ + com.google.protobuf.ByteString getBody(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java new file mode 100644 index 000000000000..c556bcc2211f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java @@ -0,0 +1,3978 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/job.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Configuration for a job.
+ * The maximum allowed size for a job is 100KB.
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.Job} + */ +public final class Job extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.Job) + JobOrBuilder { + private static final long serialVersionUID = 0L; + // Use Job.newBuilder() to construct. + private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Job() { + name_ = ""; + description_ = ""; + schedule_ = ""; + timeZone_ = ""; + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Job( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + com.google.cloud.scheduler.v1.PubsubTarget.Builder subBuilder = null; + if (targetCase_ == 4) { + subBuilder = ((com.google.cloud.scheduler.v1.PubsubTarget) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.scheduler.v1.PubsubTarget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.scheduler.v1.PubsubTarget) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 4; + break; + } + case 42: + { + com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder subBuilder = null; + if (targetCase_ == 5) { + subBuilder = + ((com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.scheduler.v1.AppEngineHttpTarget.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 5; + break; + } + case 50: + { + com.google.cloud.scheduler.v1.HttpTarget.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((com.google.cloud.scheduler.v1.HttpTarget) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.scheduler.v1.HttpTarget.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.scheduler.v1.HttpTarget) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + break; + } + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (userUpdateTime_ != null) { + subBuilder = userUpdateTime_.toBuilder(); + } + userUpdateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userUpdateTime_); + userUpdateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 80: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 90: + { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + case 138: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); + } + scheduleTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); + } + + break; + } + case 146: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastAttemptTime_ != null) { + subBuilder = lastAttemptTime_.toBuilder(); + } + lastAttemptTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastAttemptTime_); + lastAttemptTime_ = subBuilder.buildPartial(); + } + + break; + } + case 154: + { + com.google.cloud.scheduler.v1.RetryConfig.Builder subBuilder = null; + if (retryConfig_ != null) { + subBuilder = retryConfig_.toBuilder(); + } + retryConfig_ = + input.readMessage( + com.google.cloud.scheduler.v1.RetryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retryConfig_); + retryConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 162: + { + java.lang.String s = input.readStringRequireUtf8(); + + schedule_ = s; + break; + } + case 170: + { + java.lang.String s = input.readStringRequireUtf8(); + + timeZone_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_Job_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.Job.class, + com.google.cloud.scheduler.v1.Job.Builder.class); + } + + /** + * + * + *
+   * State of the job.
+   * 
+ * + * Protobuf enum {@code google.cloud.scheduler.v1.Job.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The job is executing normally.
+     * 
+ * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
+     * The job is paused by the user. It will not execute. A user can
+     * intentionally pause the job using
+     * [PauseJobRequest][google.cloud.scheduler.v1.PauseJobRequest].
+     * 
+ * + * PAUSED = 2; + */ + PAUSED(2), + /** + * + * + *
+     * The job is disabled by the system due to error. The user
+     * cannot directly set a job to be disabled.
+     * 
+ * + * DISABLED = 3; + */ + DISABLED(3), + /** + * + * + *
+     * The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]
+     * operation. To recover a job from this state, retry
+     * [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] until a successful response is received.
+     * 
+ * + * UPDATE_FAILED = 4; + */ + UPDATE_FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The job is executing normally.
+     * 
+ * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + /** + * + * + *
+     * The job is paused by the user. It will not execute. A user can
+     * intentionally pause the job using
+     * [PauseJobRequest][google.cloud.scheduler.v1.PauseJobRequest].
+     * 
+ * + * PAUSED = 2; + */ + public static final int PAUSED_VALUE = 2; + /** + * + * + *
+     * The job is disabled by the system due to error. The user
+     * cannot directly set a job to be disabled.
+     * 
+ * + * DISABLED = 3; + */ + public static final int DISABLED_VALUE = 3; + /** + * + * + *
+     * The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]
+     * operation. To recover a job from this state, retry
+     * [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] until a successful response is received.
+     * 
+ * + * UPDATE_FAILED = 4; + */ + public static final int UPDATE_FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return PAUSED; + case 3: + return DISABLED; + case 4: + return UPDATE_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.scheduler.v1.Job.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.scheduler.v1.Job.State) + } + + private int targetCase_ = 0; + private java.lang.Object target_; + + public enum TargetCase implements com.google.protobuf.Internal.EnumLite { + PUBSUB_TARGET(4), + APP_ENGINE_HTTP_TARGET(5), + HTTP_TARGET(6), + TARGET_NOT_SET(0); + private final int value; + + private TargetCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 4: + return PUBSUB_TARGET; + case 5: + return APP_ENGINE_HTTP_TARGET; + case 6: + return HTTP_TARGET; + case 0: + return TARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
+   * which it becomes output only.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
+   *    hyphens (-), colons (:), or periods (.).
+   *    For more information, see
+   *    [Identifying
+   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
+   * * `LOCATION_ID` is the canonical ID for the job's location.
+   *    The list of available locations can be obtained by calling
+   *    [ListLocations][google.cloud.location.Locations.ListLocations].
+   *    For more information, see https://cloud.google.com/about/locations/.
+   * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
+   *    hyphens (-), or underscores (_). The maximum length is 500 characters.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
+   * which it becomes output only.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
+   *    hyphens (-), colons (:), or periods (.).
+   *    For more information, see
+   *    [Identifying
+   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
+   * * `LOCATION_ID` is the canonical ID for the job's location.
+   *    The list of available locations can be obtained by calling
+   *    [ListLocations][google.cloud.location.Locations.ListLocations].
+   *    For more information, see https://cloud.google.com/about/locations/.
+   * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
+   *    hyphens (-), or underscores (_). The maximum length is 500 characters.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
+   * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+   * A human-readable description for the job. This string must not contain
+   * more than 500 characters.
+   * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
+   * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+   * A human-readable description for the job. This string must not contain
+   * more than 500 characters.
+   * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBSUB_TARGET_FIELD_NUMBER = 4; + /** + * + * + *
+   * Pub/Sub target.
+   * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public boolean hasPubsubTarget() { + return targetCase_ == 4; + } + /** + * + * + *
+   * Pub/Sub target.
+   * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public com.google.cloud.scheduler.v1.PubsubTarget getPubsubTarget() { + if (targetCase_ == 4) { + return (com.google.cloud.scheduler.v1.PubsubTarget) target_; + } + return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance(); + } + /** + * + * + *
+   * Pub/Sub target.
+   * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public com.google.cloud.scheduler.v1.PubsubTargetOrBuilder getPubsubTargetOrBuilder() { + if (targetCase_ == 4) { + return (com.google.cloud.scheduler.v1.PubsubTarget) target_; + } + return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance(); + } + + public static final int APP_ENGINE_HTTP_TARGET_FIELD_NUMBER = 5; + /** + * + * + *
+   * App Engine HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public boolean hasAppEngineHttpTarget() { + return targetCase_ == 5; + } + /** + * + * + *
+   * App Engine HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public com.google.cloud.scheduler.v1.AppEngineHttpTarget getAppEngineHttpTarget() { + if (targetCase_ == 5) { + return (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_; + } + return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance(); + } + /** + * + * + *
+   * App Engine HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder + getAppEngineHttpTargetOrBuilder() { + if (targetCase_ == 5) { + return (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_; + } + return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance(); + } + + public static final int HTTP_TARGET_FIELD_NUMBER = 6; + /** + * + * + *
+   * HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public boolean hasHttpTarget() { + return targetCase_ == 6; + } + /** + * + * + *
+   * HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public com.google.cloud.scheduler.v1.HttpTarget getHttpTarget() { + if (targetCase_ == 6) { + return (com.google.cloud.scheduler.v1.HttpTarget) target_; + } + return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance(); + } + /** + * + * + *
+   * HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public com.google.cloud.scheduler.v1.HttpTargetOrBuilder getHttpTargetOrBuilder() { + if (targetCase_ == 6) { + return (com.google.cloud.scheduler.v1.HttpTarget) target_; + } + return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance(); + } + + public static final int SCHEDULE_FIELD_NUMBER = 20; + private volatile java.lang.Object schedule_; + /** + * + * + *
+   * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+   * Describes the schedule on which the job will be executed.
+   * The schedule can be either of the following types:
+   * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
+   * * English-like
+   * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+   * As a general rule, execution `n + 1` of a job will not begin
+   * until execution `n` has finished. Cloud Scheduler will never
+   * allow two simultaneously outstanding executions. For example,
+   * this implies that if the `n+1`th execution is scheduled to run at
+   * 16:00 but the `n`th execution takes until 16:15, the `n+1`th
+   * execution will not start until `16:15`.
+   * A scheduled start time will be delayed if the previous
+   * execution has not ended when its scheduled time occurs.
+   * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
+   * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
+   * times, with exponential backoff, until the next scheduled start
+   * time.
+   * 
+ * + * string schedule = 20; + */ + public java.lang.String getSchedule() { + java.lang.Object ref = schedule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schedule_ = s; + return s; + } + } + /** + * + * + *
+   * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+   * Describes the schedule on which the job will be executed.
+   * The schedule can be either of the following types:
+   * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
+   * * English-like
+   * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+   * As a general rule, execution `n + 1` of a job will not begin
+   * until execution `n` has finished. Cloud Scheduler will never
+   * allow two simultaneously outstanding executions. For example,
+   * this implies that if the `n+1`th execution is scheduled to run at
+   * 16:00 but the `n`th execution takes until 16:15, the `n+1`th
+   * execution will not start until `16:15`.
+   * A scheduled start time will be delayed if the previous
+   * execution has not ended when its scheduled time occurs.
+   * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
+   * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
+   * times, with exponential backoff, until the next scheduled start
+   * time.
+   * 
+ * + * string schedule = 20; + */ + public com.google.protobuf.ByteString getScheduleBytes() { + java.lang.Object ref = schedule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schedule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_ZONE_FIELD_NUMBER = 21; + private volatile java.lang.Object timeZone_; + /** + * + * + *
+   * Specifies the time zone to be used in interpreting
+   * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
+   * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
+   * Note that some time zones include a provision for
+   * daylight savings time. The rules for daylight saving time are
+   * determined by the chosen tz. For UTC use the string "utc". If a
+   * time zone is not specified, the default will be in UTC (also known
+   * as GMT).
+   * 
+ * + * string time_zone = 21; + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + /** + * + * + *
+   * Specifies the time zone to be used in interpreting
+   * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
+   * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
+   * Note that some time zones include a provision for
+   * daylight savings time. The rules for daylight saving time are
+   * determined by the chosen tz. For UTC use the string "utc". If a
+   * time zone is not specified, the default will be in UTC (also known
+   * as GMT).
+   * 
+ * + * string time_zone = 21; + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_UPDATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp userUpdateTime_; + /** + * + * + *
+   * Output only. The creation time of the job.
+   * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public boolean hasUserUpdateTime() { + return userUpdateTime_ != null; + } + /** + * + * + *
+   * Output only. The creation time of the job.
+   * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public com.google.protobuf.Timestamp getUserUpdateTime() { + return userUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : userUpdateTime_; + } + /** + * + * + *
+   * Output only. The creation time of the job.
+   * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder() { + return getUserUpdateTime(); + } + + public static final int STATE_FIELD_NUMBER = 10; + private int state_; + /** + * + * + *
+   * Output only. State of the job.
+   * 
+ * + * .google.cloud.scheduler.v1.Job.State state = 10; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the job.
+   * 
+ * + * .google.cloud.scheduler.v1.Job.State state = 10; + */ + public com.google.cloud.scheduler.v1.Job.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.scheduler.v1.Job.State result = + com.google.cloud.scheduler.v1.Job.State.valueOf(state_); + return result == null ? com.google.cloud.scheduler.v1.Job.State.UNRECOGNIZED : result; + } + + public static final int STATUS_FIELD_NUMBER = 11; + private com.google.rpc.Status status_; + /** + * + * + *
+   * Output only. The response from the target for the last attempted execution.
+   * 
+ * + * .google.rpc.Status status = 11; + */ + public boolean hasStatus() { + return status_ != null; + } + /** + * + * + *
+   * Output only. The response from the target for the last attempted execution.
+   * 
+ * + * .google.rpc.Status status = 11; + */ + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + * + * + *
+   * Output only. The response from the target for the last attempted execution.
+   * 
+ * + * .google.rpc.Status status = 11; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + public static final int SCHEDULE_TIME_FIELD_NUMBER = 17; + private com.google.protobuf.Timestamp scheduleTime_; + /** + * + * + *
+   * Output only. The next time the job is scheduled. Note that this may be a
+   * retry of a previously failed attempt or the next execution time
+   * according to the schedule.
+   * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public boolean hasScheduleTime() { + return scheduleTime_ != null; + } + /** + * + * + *
+   * Output only. The next time the job is scheduled. Note that this may be a
+   * retry of a previously failed attempt or the next execution time
+   * according to the schedule.
+   * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public com.google.protobuf.Timestamp getScheduleTime() { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } + /** + * + * + *
+   * Output only. The next time the job is scheduled. Note that this may be a
+   * retry of a previously failed attempt or the next execution time
+   * according to the schedule.
+   * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { + return getScheduleTime(); + } + + public static final int LAST_ATTEMPT_TIME_FIELD_NUMBER = 18; + private com.google.protobuf.Timestamp lastAttemptTime_; + /** + * + * + *
+   * Output only. The time the last job attempt started.
+   * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public boolean hasLastAttemptTime() { + return lastAttemptTime_ != null; + } + /** + * + * + *
+   * Output only. The time the last job attempt started.
+   * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public com.google.protobuf.Timestamp getLastAttemptTime() { + return lastAttemptTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAttemptTime_; + } + /** + * + * + *
+   * Output only. The time the last job attempt started.
+   * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder() { + return getLastAttemptTime(); + } + + public static final int RETRY_CONFIG_FIELD_NUMBER = 19; + private com.google.cloud.scheduler.v1.RetryConfig retryConfig_; + /** + * + * + *
+   * Settings that determine the retry behavior.
+   * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public boolean hasRetryConfig() { + return retryConfig_ != null; + } + /** + * + * + *
+   * Settings that determine the retry behavior.
+   * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public com.google.cloud.scheduler.v1.RetryConfig getRetryConfig() { + return retryConfig_ == null + ? com.google.cloud.scheduler.v1.RetryConfig.getDefaultInstance() + : retryConfig_; + } + /** + * + * + *
+   * Settings that determine the retry behavior.
+   * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public com.google.cloud.scheduler.v1.RetryConfigOrBuilder getRetryConfigOrBuilder() { + return getRetryConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (targetCase_ == 4) { + output.writeMessage(4, (com.google.cloud.scheduler.v1.PubsubTarget) target_); + } + if (targetCase_ == 5) { + output.writeMessage(5, (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_); + } + if (targetCase_ == 6) { + output.writeMessage(6, (com.google.cloud.scheduler.v1.HttpTarget) target_); + } + if (userUpdateTime_ != null) { + output.writeMessage(9, getUserUpdateTime()); + } + if (state_ != com.google.cloud.scheduler.v1.Job.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(10, state_); + } + if (status_ != null) { + output.writeMessage(11, getStatus()); + } + if (scheduleTime_ != null) { + output.writeMessage(17, getScheduleTime()); + } + if (lastAttemptTime_ != null) { + output.writeMessage(18, getLastAttemptTime()); + } + if (retryConfig_ != null) { + output.writeMessage(19, getRetryConfig()); + } + if (!getScheduleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, schedule_); + } + if (!getTimeZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, timeZone_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (targetCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.scheduler.v1.PubsubTarget) target_); + } + if (targetCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_); + } + if (targetCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.scheduler.v1.HttpTarget) target_); + } + if (userUpdateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUserUpdateTime()); + } + if (state_ != com.google.cloud.scheduler.v1.Job.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStatus()); + } + if (scheduleTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getScheduleTime()); + } + if (lastAttemptTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLastAttemptTime()); + } + if (retryConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getRetryConfig()); + } + if (!getScheduleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, schedule_); + } + if (!getTimeZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, timeZone_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.Job)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.Job other = (com.google.cloud.scheduler.v1.Job) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getDescription().equals(other.getDescription()); + result = result && getSchedule().equals(other.getSchedule()); + result = result && getTimeZone().equals(other.getTimeZone()); + result = result && (hasUserUpdateTime() == other.hasUserUpdateTime()); + if (hasUserUpdateTime()) { + result = result && getUserUpdateTime().equals(other.getUserUpdateTime()); + } + result = result && state_ == other.state_; + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus().equals(other.getStatus()); + } + result = result && (hasScheduleTime() == other.hasScheduleTime()); + if (hasScheduleTime()) { + result = result && getScheduleTime().equals(other.getScheduleTime()); + } + result = result && (hasLastAttemptTime() == other.hasLastAttemptTime()); + if (hasLastAttemptTime()) { + result = result && getLastAttemptTime().equals(other.getLastAttemptTime()); + } + result = result && (hasRetryConfig() == other.hasRetryConfig()); + if (hasRetryConfig()) { + result = result && getRetryConfig().equals(other.getRetryConfig()); + } + result = result && getTargetCase().equals(other.getTargetCase()); + if (!result) return false; + switch (targetCase_) { + case 4: + result = result && getPubsubTarget().equals(other.getPubsubTarget()); + break; + case 5: + result = result && getAppEngineHttpTarget().equals(other.getAppEngineHttpTarget()); + break; + case 6: + result = result && getHttpTarget().equals(other.getHttpTarget()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getSchedule().hashCode(); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + if (hasUserUpdateTime()) { + hash = (37 * hash) + USER_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUserUpdateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasScheduleTime()) { + hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getScheduleTime().hashCode(); + } + if (hasLastAttemptTime()) { + hash = (37 * hash) + LAST_ATTEMPT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastAttemptTime().hashCode(); + } + if (hasRetryConfig()) { + hash = (37 * hash) + RETRY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRetryConfig().hashCode(); + } + switch (targetCase_) { + case 4: + hash = (37 * hash) + PUBSUB_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getPubsubTarget().hashCode(); + break; + case 5: + hash = (37 * hash) + APP_ENGINE_HTTP_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getAppEngineHttpTarget().hashCode(); + break; + case 6: + hash = (37 * hash) + HTTP_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getHttpTarget().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.Job parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.Job parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.Job parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.Job parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.Job parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.Job parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.Job parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.Job parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.Job parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.Job parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.Job parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.Job parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.Job prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for a job.
+   * The maximum allowed size for a job is 100KB.
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.Job} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.Job) + com.google.cloud.scheduler.v1.JobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_Job_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.Job.class, + com.google.cloud.scheduler.v1.Job.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.Job.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + schedule_ = ""; + + timeZone_ = ""; + + if (userUpdateTimeBuilder_ == null) { + userUpdateTime_ = null; + } else { + userUpdateTime_ = null; + userUpdateTimeBuilder_ = null; + } + state_ = 0; + + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + if (scheduleTimeBuilder_ == null) { + scheduleTime_ = null; + } else { + scheduleTime_ = null; + scheduleTimeBuilder_ = null; + } + if (lastAttemptTimeBuilder_ == null) { + lastAttemptTime_ = null; + } else { + lastAttemptTime_ = null; + lastAttemptTimeBuilder_ = null; + } + if (retryConfigBuilder_ == null) { + retryConfig_ = null; + } else { + retryConfig_ = null; + retryConfigBuilder_ = null; + } + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_Job_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.Job getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.Job.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.Job build() { + com.google.cloud.scheduler.v1.Job result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.Job buildPartial() { + com.google.cloud.scheduler.v1.Job result = new com.google.cloud.scheduler.v1.Job(this); + result.name_ = name_; + result.description_ = description_; + if (targetCase_ == 4) { + if (pubsubTargetBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = pubsubTargetBuilder_.build(); + } + } + if (targetCase_ == 5) { + if (appEngineHttpTargetBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = appEngineHttpTargetBuilder_.build(); + } + } + if (targetCase_ == 6) { + if (httpTargetBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = httpTargetBuilder_.build(); + } + } + result.schedule_ = schedule_; + result.timeZone_ = timeZone_; + if (userUpdateTimeBuilder_ == null) { + result.userUpdateTime_ = userUpdateTime_; + } else { + result.userUpdateTime_ = userUpdateTimeBuilder_.build(); + } + result.state_ = state_; + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + if (scheduleTimeBuilder_ == null) { + result.scheduleTime_ = scheduleTime_; + } else { + result.scheduleTime_ = scheduleTimeBuilder_.build(); + } + if (lastAttemptTimeBuilder_ == null) { + result.lastAttemptTime_ = lastAttemptTime_; + } else { + result.lastAttemptTime_ = lastAttemptTimeBuilder_.build(); + } + if (retryConfigBuilder_ == null) { + result.retryConfig_ = retryConfig_; + } else { + result.retryConfig_ = retryConfigBuilder_.build(); + } + result.targetCase_ = targetCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.Job) { + return mergeFrom((com.google.cloud.scheduler.v1.Job) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.Job other) { + if (other == com.google.cloud.scheduler.v1.Job.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getSchedule().isEmpty()) { + schedule_ = other.schedule_; + onChanged(); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + onChanged(); + } + if (other.hasUserUpdateTime()) { + mergeUserUpdateTime(other.getUserUpdateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasScheduleTime()) { + mergeScheduleTime(other.getScheduleTime()); + } + if (other.hasLastAttemptTime()) { + mergeLastAttemptTime(other.getLastAttemptTime()); + } + if (other.hasRetryConfig()) { + mergeRetryConfig(other.getRetryConfig()); + } + switch (other.getTargetCase()) { + case PUBSUB_TARGET: + { + mergePubsubTarget(other.getPubsubTarget()); + break; + } + case APP_ENGINE_HTTP_TARGET: + { + mergeAppEngineHttpTarget(other.getAppEngineHttpTarget()); + break; + } + case HTTP_TARGET: + { + mergeHttpTarget(other.getHttpTarget()); + break; + } + case TARGET_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.Job parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.Job) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int targetCase_ = 0; + private java.lang.Object target_; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
+     * which it becomes output only.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
+     *    hyphens (-), colons (:), or periods (.).
+     *    For more information, see
+     *    [Identifying
+     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
+     * * `LOCATION_ID` is the canonical ID for the job's location.
+     *    The list of available locations can be obtained by calling
+     *    [ListLocations][google.cloud.location.Locations.ListLocations].
+     *    For more information, see https://cloud.google.com/about/locations/.
+     * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
+     *    hyphens (-), or underscores (_). The maximum length is 500 characters.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
+     * which it becomes output only.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
+     *    hyphens (-), colons (:), or periods (.).
+     *    For more information, see
+     *    [Identifying
+     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
+     * * `LOCATION_ID` is the canonical ID for the job's location.
+     *    The list of available locations can be obtained by calling
+     *    [ListLocations][google.cloud.location.Locations.ListLocations].
+     *    For more information, see https://cloud.google.com/about/locations/.
+     * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
+     *    hyphens (-), or underscores (_). The maximum length is 500 characters.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
+     * which it becomes output only.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
+     *    hyphens (-), colons (:), or periods (.).
+     *    For more information, see
+     *    [Identifying
+     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
+     * * `LOCATION_ID` is the canonical ID for the job's location.
+     *    The list of available locations can be obtained by calling
+     *    [ListLocations][google.cloud.location.Locations.ListLocations].
+     *    For more information, see https://cloud.google.com/about/locations/.
+     * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
+     *    hyphens (-), or underscores (_). The maximum length is 500 characters.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
+     * which it becomes output only.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
+     *    hyphens (-), colons (:), or periods (.).
+     *    For more information, see
+     *    [Identifying
+     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
+     * * `LOCATION_ID` is the canonical ID for the job's location.
+     *    The list of available locations can be obtained by calling
+     *    [ListLocations][google.cloud.location.Locations.ListLocations].
+     *    For more information, see https://cloud.google.com/about/locations/.
+     * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
+     *    hyphens (-), or underscores (_). The maximum length is 500 characters.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
+     * which it becomes output only.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
+     *    hyphens (-), colons (:), or periods (.).
+     *    For more information, see
+     *    [Identifying
+     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
+     * * `LOCATION_ID` is the canonical ID for the job's location.
+     *    The list of available locations can be obtained by calling
+     *    [ListLocations][google.cloud.location.Locations.ListLocations].
+     *    For more information, see https://cloud.google.com/about/locations/.
+     * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
+     *    hyphens (-), or underscores (_). The maximum length is 500 characters.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
+     * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+     * A human-readable description for the job. This string must not contain
+     * more than 500 characters.
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
+     * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+     * A human-readable description for the job. This string must not contain
+     * more than 500 characters.
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
+     * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+     * A human-readable description for the job. This string must not contain
+     * more than 500 characters.
+     * 
+ * + * string description = 2; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
+     * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+     * A human-readable description for the job. This string must not contain
+     * more than 500 characters.
+     * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
+     * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+     * A human-readable description for the job. This string must not contain
+     * more than 500 characters.
+     * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.PubsubTarget, + com.google.cloud.scheduler.v1.PubsubTarget.Builder, + com.google.cloud.scheduler.v1.PubsubTargetOrBuilder> + pubsubTargetBuilder_; + /** + * + * + *
+     * Pub/Sub target.
+     * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public boolean hasPubsubTarget() { + return targetCase_ == 4; + } + /** + * + * + *
+     * Pub/Sub target.
+     * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public com.google.cloud.scheduler.v1.PubsubTarget getPubsubTarget() { + if (pubsubTargetBuilder_ == null) { + if (targetCase_ == 4) { + return (com.google.cloud.scheduler.v1.PubsubTarget) target_; + } + return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance(); + } else { + if (targetCase_ == 4) { + return pubsubTargetBuilder_.getMessage(); + } + return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance(); + } + } + /** + * + * + *
+     * Pub/Sub target.
+     * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public Builder setPubsubTarget(com.google.cloud.scheduler.v1.PubsubTarget value) { + if (pubsubTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + pubsubTargetBuilder_.setMessage(value); + } + targetCase_ = 4; + return this; + } + /** + * + * + *
+     * Pub/Sub target.
+     * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public Builder setPubsubTarget( + com.google.cloud.scheduler.v1.PubsubTarget.Builder builderForValue) { + if (pubsubTargetBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + pubsubTargetBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 4; + return this; + } + /** + * + * + *
+     * Pub/Sub target.
+     * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public Builder mergePubsubTarget(com.google.cloud.scheduler.v1.PubsubTarget value) { + if (pubsubTargetBuilder_ == null) { + if (targetCase_ == 4 + && target_ != com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance()) { + target_ = + com.google.cloud.scheduler.v1.PubsubTarget.newBuilder( + (com.google.cloud.scheduler.v1.PubsubTarget) target_) + .mergeFrom(value) + .buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 4) { + pubsubTargetBuilder_.mergeFrom(value); + } + pubsubTargetBuilder_.setMessage(value); + } + targetCase_ = 4; + return this; + } + /** + * + * + *
+     * Pub/Sub target.
+     * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public Builder clearPubsubTarget() { + if (pubsubTargetBuilder_ == null) { + if (targetCase_ == 4) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 4) { + targetCase_ = 0; + target_ = null; + } + pubsubTargetBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Pub/Sub target.
+     * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public com.google.cloud.scheduler.v1.PubsubTarget.Builder getPubsubTargetBuilder() { + return getPubsubTargetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Pub/Sub target.
+     * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + public com.google.cloud.scheduler.v1.PubsubTargetOrBuilder getPubsubTargetOrBuilder() { + if ((targetCase_ == 4) && (pubsubTargetBuilder_ != null)) { + return pubsubTargetBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 4) { + return (com.google.cloud.scheduler.v1.PubsubTarget) target_; + } + return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance(); + } + } + /** + * + * + *
+     * Pub/Sub target.
+     * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.PubsubTarget, + com.google.cloud.scheduler.v1.PubsubTarget.Builder, + com.google.cloud.scheduler.v1.PubsubTargetOrBuilder> + getPubsubTargetFieldBuilder() { + if (pubsubTargetBuilder_ == null) { + if (!(targetCase_ == 4)) { + target_ = com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance(); + } + pubsubTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.PubsubTarget, + com.google.cloud.scheduler.v1.PubsubTarget.Builder, + com.google.cloud.scheduler.v1.PubsubTargetOrBuilder>( + (com.google.cloud.scheduler.v1.PubsubTarget) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 4; + onChanged(); + ; + return pubsubTargetBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.AppEngineHttpTarget, + com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder, + com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder> + appEngineHttpTargetBuilder_; + /** + * + * + *
+     * App Engine HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public boolean hasAppEngineHttpTarget() { + return targetCase_ == 5; + } + /** + * + * + *
+     * App Engine HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public com.google.cloud.scheduler.v1.AppEngineHttpTarget getAppEngineHttpTarget() { + if (appEngineHttpTargetBuilder_ == null) { + if (targetCase_ == 5) { + return (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_; + } + return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance(); + } else { + if (targetCase_ == 5) { + return appEngineHttpTargetBuilder_.getMessage(); + } + return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance(); + } + } + /** + * + * + *
+     * App Engine HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public Builder setAppEngineHttpTarget(com.google.cloud.scheduler.v1.AppEngineHttpTarget value) { + if (appEngineHttpTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + appEngineHttpTargetBuilder_.setMessage(value); + } + targetCase_ = 5; + return this; + } + /** + * + * + *
+     * App Engine HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public Builder setAppEngineHttpTarget( + com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder builderForValue) { + if (appEngineHttpTargetBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + appEngineHttpTargetBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 5; + return this; + } + /** + * + * + *
+     * App Engine HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public Builder mergeAppEngineHttpTarget( + com.google.cloud.scheduler.v1.AppEngineHttpTarget value) { + if (appEngineHttpTargetBuilder_ == null) { + if (targetCase_ == 5 + && target_ != com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance()) { + target_ = + com.google.cloud.scheduler.v1.AppEngineHttpTarget.newBuilder( + (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_) + .mergeFrom(value) + .buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 5) { + appEngineHttpTargetBuilder_.mergeFrom(value); + } + appEngineHttpTargetBuilder_.setMessage(value); + } + targetCase_ = 5; + return this; + } + /** + * + * + *
+     * App Engine HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public Builder clearAppEngineHttpTarget() { + if (appEngineHttpTargetBuilder_ == null) { + if (targetCase_ == 5) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 5) { + targetCase_ = 0; + target_ = null; + } + appEngineHttpTargetBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * App Engine HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder + getAppEngineHttpTargetBuilder() { + return getAppEngineHttpTargetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * App Engine HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + public com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder + getAppEngineHttpTargetOrBuilder() { + if ((targetCase_ == 5) && (appEngineHttpTargetBuilder_ != null)) { + return appEngineHttpTargetBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 5) { + return (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_; + } + return com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance(); + } + } + /** + * + * + *
+     * App Engine HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.AppEngineHttpTarget, + com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder, + com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder> + getAppEngineHttpTargetFieldBuilder() { + if (appEngineHttpTargetBuilder_ == null) { + if (!(targetCase_ == 5)) { + target_ = com.google.cloud.scheduler.v1.AppEngineHttpTarget.getDefaultInstance(); + } + appEngineHttpTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.AppEngineHttpTarget, + com.google.cloud.scheduler.v1.AppEngineHttpTarget.Builder, + com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder>( + (com.google.cloud.scheduler.v1.AppEngineHttpTarget) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 5; + onChanged(); + ; + return appEngineHttpTargetBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.HttpTarget, + com.google.cloud.scheduler.v1.HttpTarget.Builder, + com.google.cloud.scheduler.v1.HttpTargetOrBuilder> + httpTargetBuilder_; + /** + * + * + *
+     * HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public boolean hasHttpTarget() { + return targetCase_ == 6; + } + /** + * + * + *
+     * HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public com.google.cloud.scheduler.v1.HttpTarget getHttpTarget() { + if (httpTargetBuilder_ == null) { + if (targetCase_ == 6) { + return (com.google.cloud.scheduler.v1.HttpTarget) target_; + } + return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance(); + } else { + if (targetCase_ == 6) { + return httpTargetBuilder_.getMessage(); + } + return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance(); + } + } + /** + * + * + *
+     * HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public Builder setHttpTarget(com.google.cloud.scheduler.v1.HttpTarget value) { + if (httpTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + httpTargetBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * + * + *
+     * HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public Builder setHttpTarget(com.google.cloud.scheduler.v1.HttpTarget.Builder builderForValue) { + if (httpTargetBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + httpTargetBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 6; + return this; + } + /** + * + * + *
+     * HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public Builder mergeHttpTarget(com.google.cloud.scheduler.v1.HttpTarget value) { + if (httpTargetBuilder_ == null) { + if (targetCase_ == 6 + && target_ != com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance()) { + target_ = + com.google.cloud.scheduler.v1.HttpTarget.newBuilder( + (com.google.cloud.scheduler.v1.HttpTarget) target_) + .mergeFrom(value) + .buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 6) { + httpTargetBuilder_.mergeFrom(value); + } + httpTargetBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * + * + *
+     * HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public Builder clearHttpTarget() { + if (httpTargetBuilder_ == null) { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + } + httpTargetBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public com.google.cloud.scheduler.v1.HttpTarget.Builder getHttpTargetBuilder() { + return getHttpTargetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + public com.google.cloud.scheduler.v1.HttpTargetOrBuilder getHttpTargetOrBuilder() { + if ((targetCase_ == 6) && (httpTargetBuilder_ != null)) { + return httpTargetBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 6) { + return (com.google.cloud.scheduler.v1.HttpTarget) target_; + } + return com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance(); + } + } + /** + * + * + *
+     * HTTP target.
+     * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.HttpTarget, + com.google.cloud.scheduler.v1.HttpTarget.Builder, + com.google.cloud.scheduler.v1.HttpTargetOrBuilder> + getHttpTargetFieldBuilder() { + if (httpTargetBuilder_ == null) { + if (!(targetCase_ == 6)) { + target_ = com.google.cloud.scheduler.v1.HttpTarget.getDefaultInstance(); + } + httpTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.HttpTarget, + com.google.cloud.scheduler.v1.HttpTarget.Builder, + com.google.cloud.scheduler.v1.HttpTargetOrBuilder>( + (com.google.cloud.scheduler.v1.HttpTarget) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 6; + onChanged(); + ; + return httpTargetBuilder_; + } + + private java.lang.Object schedule_ = ""; + /** + * + * + *
+     * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+     * Describes the schedule on which the job will be executed.
+     * The schedule can be either of the following types:
+     * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
+     * * English-like
+     * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+     * As a general rule, execution `n + 1` of a job will not begin
+     * until execution `n` has finished. Cloud Scheduler will never
+     * allow two simultaneously outstanding executions. For example,
+     * this implies that if the `n+1`th execution is scheduled to run at
+     * 16:00 but the `n`th execution takes until 16:15, the `n+1`th
+     * execution will not start until `16:15`.
+     * A scheduled start time will be delayed if the previous
+     * execution has not ended when its scheduled time occurs.
+     * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
+     * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
+     * times, with exponential backoff, until the next scheduled start
+     * time.
+     * 
+ * + * string schedule = 20; + */ + public java.lang.String getSchedule() { + java.lang.Object ref = schedule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schedule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+     * Describes the schedule on which the job will be executed.
+     * The schedule can be either of the following types:
+     * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
+     * * English-like
+     * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+     * As a general rule, execution `n + 1` of a job will not begin
+     * until execution `n` has finished. Cloud Scheduler will never
+     * allow two simultaneously outstanding executions. For example,
+     * this implies that if the `n+1`th execution is scheduled to run at
+     * 16:00 but the `n`th execution takes until 16:15, the `n+1`th
+     * execution will not start until `16:15`.
+     * A scheduled start time will be delayed if the previous
+     * execution has not ended when its scheduled time occurs.
+     * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
+     * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
+     * times, with exponential backoff, until the next scheduled start
+     * time.
+     * 
+ * + * string schedule = 20; + */ + public com.google.protobuf.ByteString getScheduleBytes() { + java.lang.Object ref = schedule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schedule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+     * Describes the schedule on which the job will be executed.
+     * The schedule can be either of the following types:
+     * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
+     * * English-like
+     * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+     * As a general rule, execution `n + 1` of a job will not begin
+     * until execution `n` has finished. Cloud Scheduler will never
+     * allow two simultaneously outstanding executions. For example,
+     * this implies that if the `n+1`th execution is scheduled to run at
+     * 16:00 but the `n`th execution takes until 16:15, the `n+1`th
+     * execution will not start until `16:15`.
+     * A scheduled start time will be delayed if the previous
+     * execution has not ended when its scheduled time occurs.
+     * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
+     * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
+     * times, with exponential backoff, until the next scheduled start
+     * time.
+     * 
+ * + * string schedule = 20; + */ + public Builder setSchedule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schedule_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+     * Describes the schedule on which the job will be executed.
+     * The schedule can be either of the following types:
+     * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
+     * * English-like
+     * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+     * As a general rule, execution `n + 1` of a job will not begin
+     * until execution `n` has finished. Cloud Scheduler will never
+     * allow two simultaneously outstanding executions. For example,
+     * this implies that if the `n+1`th execution is scheduled to run at
+     * 16:00 but the `n`th execution takes until 16:15, the `n+1`th
+     * execution will not start until `16:15`.
+     * A scheduled start time will be delayed if the previous
+     * execution has not ended when its scheduled time occurs.
+     * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
+     * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
+     * times, with exponential backoff, until the next scheduled start
+     * time.
+     * 
+ * + * string schedule = 20; + */ + public Builder clearSchedule() { + + schedule_ = getDefaultInstance().getSchedule(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+     * Describes the schedule on which the job will be executed.
+     * The schedule can be either of the following types:
+     * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
+     * * English-like
+     * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+     * As a general rule, execution `n + 1` of a job will not begin
+     * until execution `n` has finished. Cloud Scheduler will never
+     * allow two simultaneously outstanding executions. For example,
+     * this implies that if the `n+1`th execution is scheduled to run at
+     * 16:00 but the `n`th execution takes until 16:15, the `n+1`th
+     * execution will not start until `16:15`.
+     * A scheduled start time will be delayed if the previous
+     * execution has not ended when its scheduled time occurs.
+     * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
+     * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
+     * times, with exponential backoff, until the next scheduled start
+     * time.
+     * 
+ * + * string schedule = 20; + */ + public Builder setScheduleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schedule_ = value; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + /** + * + * + *
+     * Specifies the time zone to be used in interpreting
+     * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
+     * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
+     * Note that some time zones include a provision for
+     * daylight savings time. The rules for daylight saving time are
+     * determined by the chosen tz. For UTC use the string "utc". If a
+     * time zone is not specified, the default will be in UTC (also known
+     * as GMT).
+     * 
+ * + * string time_zone = 21; + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Specifies the time zone to be used in interpreting
+     * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
+     * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
+     * Note that some time zones include a provision for
+     * daylight savings time. The rules for daylight saving time are
+     * determined by the chosen tz. For UTC use the string "utc". If a
+     * time zone is not specified, the default will be in UTC (also known
+     * as GMT).
+     * 
+ * + * string time_zone = 21; + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Specifies the time zone to be used in interpreting
+     * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
+     * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
+     * Note that some time zones include a provision for
+     * daylight savings time. The rules for daylight saving time are
+     * determined by the chosen tz. For UTC use the string "utc". If a
+     * time zone is not specified, the default will be in UTC (also known
+     * as GMT).
+     * 
+ * + * string time_zone = 21; + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + timeZone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the time zone to be used in interpreting
+     * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
+     * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
+     * Note that some time zones include a provision for
+     * daylight savings time. The rules for daylight saving time are
+     * determined by the chosen tz. For UTC use the string "utc". If a
+     * time zone is not specified, the default will be in UTC (also known
+     * as GMT).
+     * 
+ * + * string time_zone = 21; + */ + public Builder clearTimeZone() { + + timeZone_ = getDefaultInstance().getTimeZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the time zone to be used in interpreting
+     * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
+     * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
+     * Note that some time zones include a provision for
+     * daylight savings time. The rules for daylight saving time are
+     * determined by the chosen tz. For UTC use the string "utc". If a
+     * time zone is not specified, the default will be in UTC (also known
+     * as GMT).
+     * 
+ * + * string time_zone = 21; + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + timeZone_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp userUpdateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + userUpdateTimeBuilder_; + /** + * + * + *
+     * Output only. The creation time of the job.
+     * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public boolean hasUserUpdateTime() { + return userUpdateTimeBuilder_ != null || userUpdateTime_ != null; + } + /** + * + * + *
+     * Output only. The creation time of the job.
+     * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public com.google.protobuf.Timestamp getUserUpdateTime() { + if (userUpdateTimeBuilder_ == null) { + return userUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : userUpdateTime_; + } else { + return userUpdateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The creation time of the job.
+     * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public Builder setUserUpdateTime(com.google.protobuf.Timestamp value) { + if (userUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userUpdateTime_ = value; + onChanged(); + } else { + userUpdateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation time of the job.
+     * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public Builder setUserUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (userUpdateTimeBuilder_ == null) { + userUpdateTime_ = builderForValue.build(); + onChanged(); + } else { + userUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation time of the job.
+     * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public Builder mergeUserUpdateTime(com.google.protobuf.Timestamp value) { + if (userUpdateTimeBuilder_ == null) { + if (userUpdateTime_ != null) { + userUpdateTime_ = + com.google.protobuf.Timestamp.newBuilder(userUpdateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + userUpdateTime_ = value; + } + onChanged(); + } else { + userUpdateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation time of the job.
+     * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public Builder clearUserUpdateTime() { + if (userUpdateTimeBuilder_ == null) { + userUpdateTime_ = null; + onChanged(); + } else { + userUpdateTime_ = null; + userUpdateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The creation time of the job.
+     * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public com.google.protobuf.Timestamp.Builder getUserUpdateTimeBuilder() { + + onChanged(); + return getUserUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The creation time of the job.
+     * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder() { + if (userUpdateTimeBuilder_ != null) { + return userUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return userUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : userUpdateTime_; + } + } + /** + * + * + *
+     * Output only. The creation time of the job.
+     * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUserUpdateTimeFieldBuilder() { + if (userUpdateTimeBuilder_ == null) { + userUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUserUpdateTime(), getParentForChildren(), isClean()); + userUpdateTime_ = null; + } + return userUpdateTimeBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the job.
+     * 
+ * + * .google.cloud.scheduler.v1.Job.State state = 10; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the job.
+     * 
+ * + * .google.cloud.scheduler.v1.Job.State state = 10; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the job.
+     * 
+ * + * .google.cloud.scheduler.v1.Job.State state = 10; + */ + public com.google.cloud.scheduler.v1.Job.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.scheduler.v1.Job.State result = + com.google.cloud.scheduler.v1.Job.State.valueOf(state_); + return result == null ? com.google.cloud.scheduler.v1.Job.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. State of the job.
+     * 
+ * + * .google.cloud.scheduler.v1.Job.State state = 10; + */ + public Builder setState(com.google.cloud.scheduler.v1.Job.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the job.
+     * 
+ * + * .google.cloud.scheduler.v1.Job.State state = 10; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.rpc.Status status_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; + /** + * + * + *
+     * Output only. The response from the target for the last attempted execution.
+     * 
+ * + * .google.rpc.Status status = 11; + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + * + * + *
+     * Output only. The response from the target for the last attempted execution.
+     * 
+ * + * .google.rpc.Status status = 11; + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The response from the target for the last attempted execution.
+     * 
+ * + * .google.rpc.Status status = 11; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The response from the target for the last attempted execution.
+     * 
+ * + * .google.rpc.Status status = 11; + */ + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The response from the target for the last attempted execution.
+     * 
+ * + * .google.rpc.Status status = 11; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The response from the target for the last attempted execution.
+     * 
+ * + * .google.rpc.Status status = 11; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The response from the target for the last attempted execution.
+     * 
+ * + * .google.rpc.Status status = 11; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The response from the target for the last attempted execution.
+     * 
+ * + * .google.rpc.Status status = 11; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + * + * + *
+     * Output only. The response from the target for the last attempted execution.
+     * 
+ * + * .google.rpc.Status status = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } + + private com.google.protobuf.Timestamp scheduleTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleTimeBuilder_; + /** + * + * + *
+     * Output only. The next time the job is scheduled. Note that this may be a
+     * retry of a previously failed attempt or the next execution time
+     * according to the schedule.
+     * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public boolean hasScheduleTime() { + return scheduleTimeBuilder_ != null || scheduleTime_ != null; + } + /** + * + * + *
+     * Output only. The next time the job is scheduled. Note that this may be a
+     * retry of a previously failed attempt or the next execution time
+     * according to the schedule.
+     * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public com.google.protobuf.Timestamp getScheduleTime() { + if (scheduleTimeBuilder_ == null) { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } else { + return scheduleTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The next time the job is scheduled. Note that this may be a
+     * retry of a previously failed attempt or the next execution time
+     * according to the schedule.
+     * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public Builder setScheduleTime(com.google.protobuf.Timestamp value) { + if (scheduleTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduleTime_ = value; + onChanged(); + } else { + scheduleTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The next time the job is scheduled. Note that this may be a
+     * retry of a previously failed attempt or the next execution time
+     * according to the schedule.
+     * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (scheduleTimeBuilder_ == null) { + scheduleTime_ = builderForValue.build(); + onChanged(); + } else { + scheduleTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The next time the job is scheduled. Note that this may be a
+     * retry of a previously failed attempt or the next execution time
+     * according to the schedule.
+     * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { + if (scheduleTimeBuilder_ == null) { + if (scheduleTime_ != null) { + scheduleTime_ = + com.google.protobuf.Timestamp.newBuilder(scheduleTime_) + .mergeFrom(value) + .buildPartial(); + } else { + scheduleTime_ = value; + } + onChanged(); + } else { + scheduleTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The next time the job is scheduled. Note that this may be a
+     * retry of a previously failed attempt or the next execution time
+     * according to the schedule.
+     * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public Builder clearScheduleTime() { + if (scheduleTimeBuilder_ == null) { + scheduleTime_ = null; + onChanged(); + } else { + scheduleTime_ = null; + scheduleTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The next time the job is scheduled. Note that this may be a
+     * retry of a previously failed attempt or the next execution time
+     * according to the schedule.
+     * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { + + onChanged(); + return getScheduleTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The next time the job is scheduled. Note that this may be a
+     * retry of a previously failed attempt or the next execution time
+     * according to the schedule.
+     * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { + if (scheduleTimeBuilder_ != null) { + return scheduleTimeBuilder_.getMessageOrBuilder(); + } else { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } + } + /** + * + * + *
+     * Output only. The next time the job is scheduled. Note that this may be a
+     * retry of a previously failed attempt or the next execution time
+     * according to the schedule.
+     * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getScheduleTimeFieldBuilder() { + if (scheduleTimeBuilder_ == null) { + scheduleTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getScheduleTime(), getParentForChildren(), isClean()); + scheduleTime_ = null; + } + return scheduleTimeBuilder_; + } + + private com.google.protobuf.Timestamp lastAttemptTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastAttemptTimeBuilder_; + /** + * + * + *
+     * Output only. The time the last job attempt started.
+     * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public boolean hasLastAttemptTime() { + return lastAttemptTimeBuilder_ != null || lastAttemptTime_ != null; + } + /** + * + * + *
+     * Output only. The time the last job attempt started.
+     * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public com.google.protobuf.Timestamp getLastAttemptTime() { + if (lastAttemptTimeBuilder_ == null) { + return lastAttemptTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAttemptTime_; + } else { + return lastAttemptTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time the last job attempt started.
+     * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public Builder setLastAttemptTime(com.google.protobuf.Timestamp value) { + if (lastAttemptTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastAttemptTime_ = value; + onChanged(); + } else { + lastAttemptTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the last job attempt started.
+     * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public Builder setLastAttemptTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastAttemptTimeBuilder_ == null) { + lastAttemptTime_ = builderForValue.build(); + onChanged(); + } else { + lastAttemptTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the last job attempt started.
+     * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public Builder mergeLastAttemptTime(com.google.protobuf.Timestamp value) { + if (lastAttemptTimeBuilder_ == null) { + if (lastAttemptTime_ != null) { + lastAttemptTime_ = + com.google.protobuf.Timestamp.newBuilder(lastAttemptTime_) + .mergeFrom(value) + .buildPartial(); + } else { + lastAttemptTime_ = value; + } + onChanged(); + } else { + lastAttemptTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the last job attempt started.
+     * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public Builder clearLastAttemptTime() { + if (lastAttemptTimeBuilder_ == null) { + lastAttemptTime_ = null; + onChanged(); + } else { + lastAttemptTime_ = null; + lastAttemptTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time the last job attempt started.
+     * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public com.google.protobuf.Timestamp.Builder getLastAttemptTimeBuilder() { + + onChanged(); + return getLastAttemptTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the last job attempt started.
+     * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + public com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder() { + if (lastAttemptTimeBuilder_ != null) { + return lastAttemptTimeBuilder_.getMessageOrBuilder(); + } else { + return lastAttemptTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAttemptTime_; + } + } + /** + * + * + *
+     * Output only. The time the last job attempt started.
+     * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastAttemptTimeFieldBuilder() { + if (lastAttemptTimeBuilder_ == null) { + lastAttemptTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastAttemptTime(), getParentForChildren(), isClean()); + lastAttemptTime_ = null; + } + return lastAttemptTimeBuilder_; + } + + private com.google.cloud.scheduler.v1.RetryConfig retryConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.RetryConfig, + com.google.cloud.scheduler.v1.RetryConfig.Builder, + com.google.cloud.scheduler.v1.RetryConfigOrBuilder> + retryConfigBuilder_; + /** + * + * + *
+     * Settings that determine the retry behavior.
+     * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public boolean hasRetryConfig() { + return retryConfigBuilder_ != null || retryConfig_ != null; + } + /** + * + * + *
+     * Settings that determine the retry behavior.
+     * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public com.google.cloud.scheduler.v1.RetryConfig getRetryConfig() { + if (retryConfigBuilder_ == null) { + return retryConfig_ == null + ? com.google.cloud.scheduler.v1.RetryConfig.getDefaultInstance() + : retryConfig_; + } else { + return retryConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Settings that determine the retry behavior.
+     * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public Builder setRetryConfig(com.google.cloud.scheduler.v1.RetryConfig value) { + if (retryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retryConfig_ = value; + onChanged(); + } else { + retryConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Settings that determine the retry behavior.
+     * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public Builder setRetryConfig( + com.google.cloud.scheduler.v1.RetryConfig.Builder builderForValue) { + if (retryConfigBuilder_ == null) { + retryConfig_ = builderForValue.build(); + onChanged(); + } else { + retryConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Settings that determine the retry behavior.
+     * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public Builder mergeRetryConfig(com.google.cloud.scheduler.v1.RetryConfig value) { + if (retryConfigBuilder_ == null) { + if (retryConfig_ != null) { + retryConfig_ = + com.google.cloud.scheduler.v1.RetryConfig.newBuilder(retryConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + retryConfig_ = value; + } + onChanged(); + } else { + retryConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Settings that determine the retry behavior.
+     * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public Builder clearRetryConfig() { + if (retryConfigBuilder_ == null) { + retryConfig_ = null; + onChanged(); + } else { + retryConfig_ = null; + retryConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Settings that determine the retry behavior.
+     * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public com.google.cloud.scheduler.v1.RetryConfig.Builder getRetryConfigBuilder() { + + onChanged(); + return getRetryConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Settings that determine the retry behavior.
+     * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + public com.google.cloud.scheduler.v1.RetryConfigOrBuilder getRetryConfigOrBuilder() { + if (retryConfigBuilder_ != null) { + return retryConfigBuilder_.getMessageOrBuilder(); + } else { + return retryConfig_ == null + ? com.google.cloud.scheduler.v1.RetryConfig.getDefaultInstance() + : retryConfig_; + } + } + /** + * + * + *
+     * Settings that determine the retry behavior.
+     * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.RetryConfig, + com.google.cloud.scheduler.v1.RetryConfig.Builder, + com.google.cloud.scheduler.v1.RetryConfigOrBuilder> + getRetryConfigFieldBuilder() { + if (retryConfigBuilder_ == null) { + retryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.RetryConfig, + com.google.cloud.scheduler.v1.RetryConfig.Builder, + com.google.cloud.scheduler.v1.RetryConfigOrBuilder>( + getRetryConfig(), getParentForChildren(), isClean()); + retryConfig_ = null; + } + return retryConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.Job) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.Job) + private static final com.google.cloud.scheduler.v1.Job DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.Job(); + } + + public static com.google.cloud.scheduler.v1.Job getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Job parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Job(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.Job getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobName.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobName.java new file mode 100644 index 000000000000..213d393f4207 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobName.java @@ -0,0 +1,202 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.scheduler.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class JobName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/jobs/{job}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + private final String job; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private JobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + job = Preconditions.checkNotNull(builder.getJob()); + } + + public static JobName of(String project, String location, String job) { + return newBuilder().setProject(project).setLocation(location).setJob(job).build(); + } + + public static String format(String project, String location, String job) { + return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); + } + + public static JobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "JobName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("job")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (JobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldMapBuilder.put("job", job); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location, "job", job); + } + + /** Builder for JobName. */ + public static class Builder { + + private String project; + private String location; + private String job; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setJob(String job) { + this.job = job; + return this; + } + + private Builder() {} + + private Builder(JobName jobName) { + project = jobName.project; + location = jobName.location; + job = jobName.job; + } + + public JobName build() { + return new JobName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof JobName) { + JobName that = (JobName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)) + && (this.job.equals(that.job)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + h *= 1000003; + h ^= job.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobOrBuilder.java new file mode 100644 index 000000000000..4815b8b73f56 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobOrBuilder.java @@ -0,0 +1,453 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/job.proto + +package com.google.cloud.scheduler.v1; + +public interface JobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.Job) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
+   * which it becomes output only.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
+   *    hyphens (-), colons (:), or periods (.).
+   *    For more information, see
+   *    [Identifying
+   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
+   * * `LOCATION_ID` is the canonical ID for the job's location.
+   *    The list of available locations can be obtained by calling
+   *    [ListLocations][google.cloud.location.Locations.ListLocations].
+   *    For more information, see https://cloud.google.com/about/locations/.
+   * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
+   *    hyphens (-), or underscores (_). The maximum length is 500 characters.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
+   * which it becomes output only.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
+   *    hyphens (-), colons (:), or periods (.).
+   *    For more information, see
+   *    [Identifying
+   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
+   * * `LOCATION_ID` is the canonical ID for the job's location.
+   *    The list of available locations can be obtained by calling
+   *    [ListLocations][google.cloud.location.Locations.ListLocations].
+   *    For more information, see https://cloud.google.com/about/locations/.
+   * * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
+   *    hyphens (-), or underscores (_). The maximum length is 500 characters.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
+   * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+   * A human-readable description for the job. This string must not contain
+   * more than 500 characters.
+   * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
+   * [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+   * A human-readable description for the job. This string must not contain
+   * more than 500 characters.
+   * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Pub/Sub target.
+   * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + boolean hasPubsubTarget(); + /** + * + * + *
+   * Pub/Sub target.
+   * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + com.google.cloud.scheduler.v1.PubsubTarget getPubsubTarget(); + /** + * + * + *
+   * Pub/Sub target.
+   * 
+ * + * .google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4; + */ + com.google.cloud.scheduler.v1.PubsubTargetOrBuilder getPubsubTargetOrBuilder(); + + /** + * + * + *
+   * App Engine HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + boolean hasAppEngineHttpTarget(); + /** + * + * + *
+   * App Engine HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + com.google.cloud.scheduler.v1.AppEngineHttpTarget getAppEngineHttpTarget(); + /** + * + * + *
+   * App Engine HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5; + */ + com.google.cloud.scheduler.v1.AppEngineHttpTargetOrBuilder getAppEngineHttpTargetOrBuilder(); + + /** + * + * + *
+   * HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + boolean hasHttpTarget(); + /** + * + * + *
+   * HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + com.google.cloud.scheduler.v1.HttpTarget getHttpTarget(); + /** + * + * + *
+   * HTTP target.
+   * 
+ * + * .google.cloud.scheduler.v1.HttpTarget http_target = 6; + */ + com.google.cloud.scheduler.v1.HttpTargetOrBuilder getHttpTargetOrBuilder(); + + /** + * + * + *
+   * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+   * Describes the schedule on which the job will be executed.
+   * The schedule can be either of the following types:
+   * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
+   * * English-like
+   * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+   * As a general rule, execution `n + 1` of a job will not begin
+   * until execution `n` has finished. Cloud Scheduler will never
+   * allow two simultaneously outstanding executions. For example,
+   * this implies that if the `n+1`th execution is scheduled to run at
+   * 16:00 but the `n`th execution takes until 16:15, the `n+1`th
+   * execution will not start until `16:15`.
+   * A scheduled start time will be delayed if the previous
+   * execution has not ended when its scheduled time occurs.
+   * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
+   * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
+   * times, with exponential backoff, until the next scheduled start
+   * time.
+   * 
+ * + * string schedule = 20; + */ + java.lang.String getSchedule(); + /** + * + * + *
+   * Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+   * Describes the schedule on which the job will be executed.
+   * The schedule can be either of the following types:
+   * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
+   * * English-like
+   * [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+   * As a general rule, execution `n + 1` of a job will not begin
+   * until execution `n` has finished. Cloud Scheduler will never
+   * allow two simultaneously outstanding executions. For example,
+   * this implies that if the `n+1`th execution is scheduled to run at
+   * 16:00 but the `n`th execution takes until 16:15, the `n+1`th
+   * execution will not start until `16:15`.
+   * A scheduled start time will be delayed if the previous
+   * execution has not ended when its scheduled time occurs.
+   * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
+   * the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
+   * times, with exponential backoff, until the next scheduled start
+   * time.
+   * 
+ * + * string schedule = 20; + */ + com.google.protobuf.ByteString getScheduleBytes(); + + /** + * + * + *
+   * Specifies the time zone to be used in interpreting
+   * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
+   * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
+   * Note that some time zones include a provision for
+   * daylight savings time. The rules for daylight saving time are
+   * determined by the chosen tz. For UTC use the string "utc". If a
+   * time zone is not specified, the default will be in UTC (also known
+   * as GMT).
+   * 
+ * + * string time_zone = 21; + */ + java.lang.String getTimeZone(); + /** + * + * + *
+   * Specifies the time zone to be used in interpreting
+   * [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
+   * zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
+   * Note that some time zones include a provision for
+   * daylight savings time. The rules for daylight saving time are
+   * determined by the chosen tz. For UTC use the string "utc". If a
+   * time zone is not specified, the default will be in UTC (also known
+   * as GMT).
+   * 
+ * + * string time_zone = 21; + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+   * Output only. The creation time of the job.
+   * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + boolean hasUserUpdateTime(); + /** + * + * + *
+   * Output only. The creation time of the job.
+   * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + com.google.protobuf.Timestamp getUserUpdateTime(); + /** + * + * + *
+   * Output only. The creation time of the job.
+   * 
+ * + * .google.protobuf.Timestamp user_update_time = 9; + */ + com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. State of the job.
+   * 
+ * + * .google.cloud.scheduler.v1.Job.State state = 10; + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the job.
+   * 
+ * + * .google.cloud.scheduler.v1.Job.State state = 10; + */ + com.google.cloud.scheduler.v1.Job.State getState(); + + /** + * + * + *
+   * Output only. The response from the target for the last attempted execution.
+   * 
+ * + * .google.rpc.Status status = 11; + */ + boolean hasStatus(); + /** + * + * + *
+   * Output only. The response from the target for the last attempted execution.
+   * 
+ * + * .google.rpc.Status status = 11; + */ + com.google.rpc.Status getStatus(); + /** + * + * + *
+   * Output only. The response from the target for the last attempted execution.
+   * 
+ * + * .google.rpc.Status status = 11; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + + /** + * + * + *
+   * Output only. The next time the job is scheduled. Note that this may be a
+   * retry of a previously failed attempt or the next execution time
+   * according to the schedule.
+   * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + boolean hasScheduleTime(); + /** + * + * + *
+   * Output only. The next time the job is scheduled. Note that this may be a
+   * retry of a previously failed attempt or the next execution time
+   * according to the schedule.
+   * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + com.google.protobuf.Timestamp getScheduleTime(); + /** + * + * + *
+   * Output only. The next time the job is scheduled. Note that this may be a
+   * retry of a previously failed attempt or the next execution time
+   * according to the schedule.
+   * 
+ * + * .google.protobuf.Timestamp schedule_time = 17; + */ + com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time the last job attempt started.
+   * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + boolean hasLastAttemptTime(); + /** + * + * + *
+   * Output only. The time the last job attempt started.
+   * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + com.google.protobuf.Timestamp getLastAttemptTime(); + /** + * + * + *
+   * Output only. The time the last job attempt started.
+   * 
+ * + * .google.protobuf.Timestamp last_attempt_time = 18; + */ + com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder(); + + /** + * + * + *
+   * Settings that determine the retry behavior.
+   * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + boolean hasRetryConfig(); + /** + * + * + *
+   * Settings that determine the retry behavior.
+   * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + com.google.cloud.scheduler.v1.RetryConfig getRetryConfig(); + /** + * + * + *
+   * Settings that determine the retry behavior.
+   * 
+ * + * .google.cloud.scheduler.v1.RetryConfig retry_config = 19; + */ + com.google.cloud.scheduler.v1.RetryConfigOrBuilder getRetryConfigOrBuilder(); + + public com.google.cloud.scheduler.v1.Job.TargetCase getTargetCase(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java new file mode 100644 index 000000000000..606acd8f2d15 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java @@ -0,0 +1,124 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/job.proto + +package com.google.cloud.scheduler.v1; + +public final class JobProto { + private JobProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_Job_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_RetryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_RetryConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n#google/cloud/scheduler/v1/job.proto\022\031g" + + "oogle.cloud.scheduler.v1\032\034google/api/ann" + + "otations.proto\032&google/cloud/scheduler/v" + + "1/target.proto\032\036google/protobuf/duration" + + ".proto\032\037google/protobuf/timestamp.proto\032" + + "\027google/rpc/status.proto\"\272\005\n\003Job\022\014\n\004name" + + "\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022@\n\rpubsub_ta" + + "rget\030\004 \001(\0132\'.google.cloud.scheduler.v1.P" + + "ubsubTargetH\000\022P\n\026app_engine_http_target\030" + + "\005 \001(\0132..google.cloud.scheduler.v1.AppEng" + + "ineHttpTargetH\000\022<\n\013http_target\030\006 \001(\0132%.g" + + "oogle.cloud.scheduler.v1.HttpTargetH\000\022\020\n" + + "\010schedule\030\024 \001(\t\022\021\n\ttime_zone\030\025 \001(\t\0224\n\020us" + + "er_update_time\030\t \001(\0132\032.google.protobuf.T" + + "imestamp\0223\n\005state\030\n \001(\0162$.google.cloud.s" + + "cheduler.v1.Job.State\022\"\n\006status\030\013 \001(\0132\022." + + "google.rpc.Status\0221\n\rschedule_time\030\021 \001(\013" + + "2\032.google.protobuf.Timestamp\0225\n\021last_att" + + "empt_time\030\022 \001(\0132\032.google.protobuf.Timest" + + "amp\022<\n\014retry_config\030\023 \001(\0132&.google.cloud" + + ".scheduler.v1.RetryConfig\"X\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\n\n\006PAUSED" + + "\020\002\022\014\n\010DISABLED\020\003\022\021\n\rUPDATE_FAILED\020\004B\010\n\006t" + + "arget\"\342\001\n\013RetryConfig\022\023\n\013retry_count\030\001 \001" + + "(\005\0225\n\022max_retry_duration\030\002 \001(\0132\031.google." + + "protobuf.Duration\0227\n\024min_backoff_duratio" + + "n\030\003 \001(\0132\031.google.protobuf.Duration\0227\n\024ma" + + "x_backoff_duration\030\004 \001(\0132\031.google.protob" + + "uf.Duration\022\025\n\rmax_doublings\030\005 \001(\005Bo\n\035co" + + "m.google.cloud.scheduler.v1B\010JobProtoP\001Z" + + "Bgoogle.golang.org/genproto/googleapis/c" + + "loud/scheduler/v1;schedulerb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.scheduler.v1.TargetProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_scheduler_v1_Job_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_scheduler_v1_Job_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_Job_descriptor, + new java.lang.String[] { + "Name", + "Description", + "PubsubTarget", + "AppEngineHttpTarget", + "HttpTarget", + "Schedule", + "TimeZone", + "UserUpdateTime", + "State", + "Status", + "ScheduleTime", + "LastAttemptTime", + "RetryConfig", + "Target", + }); + internal_static_google_cloud_scheduler_v1_RetryConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_scheduler_v1_RetryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_RetryConfig_descriptor, + new java.lang.String[] { + "RetryCount", + "MaxRetryDuration", + "MinBackoffDuration", + "MaxBackoffDuration", + "MaxDoublings", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.scheduler.v1.TargetProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java new file mode 100644 index 000000000000..490af953d652 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java @@ -0,0 +1,910 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs].
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.ListJobsRequest} + */ +public final class ListJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.ListJobsRequest) + ListJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListJobsRequest.newBuilder() to construct. + private ListJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListJobsRequest() { + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 40: + { + pageSize_ = input.readInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.ListJobsRequest.class, + com.google.cloud.scheduler.v1.ListJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The location name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID`.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The location name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID`.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 5; + private int pageSize_; + /** + * + * + *
+   * Requested page size.
+   * The maximum page size is 500. If unspecified, the page size will
+   * be the maximum. Fewer jobs than requested might be returned,
+   * even if more jobs exist; use next_page_token to determine if more
+   * jobs exist.
+   * 
+ * + * int32 page_size = 5; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 6; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A token identifying a page of results the server will return. To
+   * request the first page results, page_token must be empty. To
+   * request the next page of results, page_token must be the value of
+   * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
+   * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
+   * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
+   * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
+   * 
+ * + * string page_token = 6; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server will return. To
+   * request the first page results, page_token must be empty. To
+   * request the next page of results, page_token must be the value of
+   * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
+   * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
+   * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
+   * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
+   * 
+ * + * string page_token = 6; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(5, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.ListJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.ListJobsRequest other = + (com.google.cloud.scheduler.v1.ListJobsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (getPageSize() == other.getPageSize()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.ListJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs].
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.ListJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.ListJobsRequest) + com.google.cloud.scheduler.v1.ListJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.ListJobsRequest.class, + com.google.cloud.scheduler.v1.ListJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.ListJobsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ListJobsRequest getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.ListJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ListJobsRequest build() { + com.google.cloud.scheduler.v1.ListJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ListJobsRequest buildPartial() { + com.google.cloud.scheduler.v1.ListJobsRequest result = + new com.google.cloud.scheduler.v1.ListJobsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.ListJobsRequest) { + return mergeFrom((com.google.cloud.scheduler.v1.ListJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.ListJobsRequest other) { + if (other == com.google.cloud.scheduler.v1.ListJobsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.ListJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.ListJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The location name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID`.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The location name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID`.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The location name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID`.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The location name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID`.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The location name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID`.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Requested page size.
+     * The maximum page size is 500. If unspecified, the page size will
+     * be the maximum. Fewer jobs than requested might be returned,
+     * even if more jobs exist; use next_page_token to determine if more
+     * jobs exist.
+     * 
+ * + * int32 page_size = 5; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Requested page size.
+     * The maximum page size is 500. If unspecified, the page size will
+     * be the maximum. Fewer jobs than requested might be returned,
+     * even if more jobs exist; use next_page_token to determine if more
+     * jobs exist.
+     * 
+ * + * int32 page_size = 5; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested page size.
+     * The maximum page size is 500. If unspecified, the page size will
+     * be the maximum. Fewer jobs than requested might be returned,
+     * even if more jobs exist; use next_page_token to determine if more
+     * jobs exist.
+     * 
+ * + * int32 page_size = 5; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server will return. To
+     * request the first page results, page_token must be empty. To
+     * request the next page of results, page_token must be the value of
+     * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
+     * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
+     * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
+     * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
+     * 
+ * + * string page_token = 6; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server will return. To
+     * request the first page results, page_token must be empty. To
+     * request the next page of results, page_token must be the value of
+     * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
+     * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
+     * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
+     * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
+     * 
+ * + * string page_token = 6; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server will return. To
+     * request the first page results, page_token must be empty. To
+     * request the next page of results, page_token must be the value of
+     * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
+     * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
+     * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
+     * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
+     * 
+ * + * string page_token = 6; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server will return. To
+     * request the first page results, page_token must be empty. To
+     * request the next page of results, page_token must be the value of
+     * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
+     * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
+     * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
+     * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
+     * 
+ * + * string page_token = 6; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server will return. To
+     * request the first page results, page_token must be empty. To
+     * request the next page of results, page_token must be the value of
+     * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
+     * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
+     * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
+     * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
+     * 
+ * + * string page_token = 6; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.ListJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.ListJobsRequest) + private static final com.google.cloud.scheduler.v1.ListJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.ListJobsRequest(); + } + + public static com.google.cloud.scheduler.v1.ListJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListJobsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ListJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java new file mode 100644 index 000000000000..9f69959185c5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +public interface ListJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.ListJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The location name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID`.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The location name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID`.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Requested page size.
+   * The maximum page size is 500. If unspecified, the page size will
+   * be the maximum. Fewer jobs than requested might be returned,
+   * even if more jobs exist; use next_page_token to determine if more
+   * jobs exist.
+   * 
+ * + * int32 page_size = 5; + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results the server will return. To
+   * request the first page results, page_token must be empty. To
+   * request the next page of results, page_token must be the value of
+   * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
+   * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
+   * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
+   * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
+   * 
+ * + * string page_token = 6; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server will return. To
+   * request the first page results, page_token must be empty. To
+   * request the next page of results, page_token must be the value of
+   * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
+   * the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
+   * switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
+   * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
+   * 
+ * + * string page_token = 6; + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponse.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponse.java new file mode 100644 index 000000000000..52a15f39861e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponse.java @@ -0,0 +1,1120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs].
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.ListJobsResponse} + */ +public final class ListJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.ListJobsResponse) + ListJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListJobsResponse.newBuilder() to construct. + private ListJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListJobsResponse() { + jobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListJobsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + jobs_.add( + input.readMessage(com.google.cloud.scheduler.v1.Job.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.ListJobsResponse.class, + com.google.cloud.scheduler.v1.ListJobsResponse.Builder.class); + } + + private int bitField0_; + public static final int JOBS_FIELD_NUMBER = 1; + private java.util.List jobs_; + /** + * + * + *
+   * The list of jobs.
+   * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public java.util.List getJobsList() { + return jobs_; + } + /** + * + * + *
+   * The list of jobs.
+   * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + return jobs_; + } + /** + * + * + *
+   * The list of jobs.
+   * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+   * The list of jobs.
+   * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public com.google.cloud.scheduler.v1.Job getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+   * The list of jobs.
+   * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public com.google.cloud.scheduler.v1.JobOrBuilder getJobsOrBuilder(int index) { + return jobs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve next page of results. Pass this value in the
+   * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
+   * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
+   * If this is empty it indicates that there are no more results
+   * through which to paginate.
+   * The page token is valid for only 2 hours.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve next page of results. Pass this value in the
+   * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
+   * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
+   * If this is empty it indicates that there are no more results
+   * through which to paginate.
+   * The page token is valid for only 2 hours.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < jobs_.size(); i++) { + output.writeMessage(1, jobs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < jobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.ListJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.ListJobsResponse other = + (com.google.cloud.scheduler.v1.ListJobsResponse) obj; + + boolean result = true; + result = result && getJobsList().equals(other.getJobsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.ListJobsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs].
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.ListJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.ListJobsResponse) + com.google.cloud.scheduler.v1.ListJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.ListJobsResponse.class, + com.google.cloud.scheduler.v1.ListJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.ListJobsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getJobsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + jobsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ListJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ListJobsResponse getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.ListJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ListJobsResponse build() { + com.google.cloud.scheduler.v1.ListJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ListJobsResponse buildPartial() { + com.google.cloud.scheduler.v1.ListJobsResponse result = + new com.google.cloud.scheduler.v1.ListJobsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (jobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.jobs_ = jobs_; + } else { + result.jobs_ = jobsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.ListJobsResponse) { + return mergeFrom((com.google.cloud.scheduler.v1.ListJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.ListJobsResponse other) { + if (other == com.google.cloud.scheduler.v1.ListJobsResponse.getDefaultInstance()) return this; + if (jobsBuilder_ == null) { + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } + onChanged(); + } + } else { + if (!other.jobs_.isEmpty()) { + if (jobsBuilder_.isEmpty()) { + jobsBuilder_.dispose(); + jobsBuilder_ = null; + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + jobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobsFieldBuilder() + : null; + } else { + jobsBuilder_.addAllMessages(other.jobs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.ListJobsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.ListJobsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List jobs_ = + java.util.Collections.emptyList(); + + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = new java.util.ArrayList(jobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.scheduler.v1.Job, + com.google.cloud.scheduler.v1.Job.Builder, + com.google.cloud.scheduler.v1.JobOrBuilder> + jobsBuilder_; + + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public java.util.List getJobsList() { + if (jobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobs_); + } else { + return jobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public int getJobsCount() { + if (jobsBuilder_ == null) { + return jobs_.size(); + } else { + return jobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public com.google.cloud.scheduler.v1.Job getJobs(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public Builder setJobs(int index, com.google.cloud.scheduler.v1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + } else { + jobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public Builder setJobs(int index, com.google.cloud.scheduler.v1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.set(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public Builder addJobs(com.google.cloud.scheduler.v1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + } else { + jobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public Builder addJobs(int index, com.google.cloud.scheduler.v1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(index, value); + onChanged(); + } else { + jobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public Builder addJobs(com.google.cloud.scheduler.v1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public Builder addJobs(int index, com.google.cloud.scheduler.v1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public Builder addAllJobs( + java.lang.Iterable values) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); + onChanged(); + } else { + jobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public Builder clearJobs() { + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public Builder removeJobs(int index) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.remove(index); + onChanged(); + } else { + jobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public com.google.cloud.scheduler.v1.Job.Builder getJobsBuilder(int index) { + return getJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public com.google.cloud.scheduler.v1.JobOrBuilder getJobsOrBuilder(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + if (jobsBuilder_ != null) { + return jobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobs_); + } + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public com.google.cloud.scheduler.v1.Job.Builder addJobsBuilder() { + return getJobsFieldBuilder() + .addBuilder(com.google.cloud.scheduler.v1.Job.getDefaultInstance()); + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public com.google.cloud.scheduler.v1.Job.Builder addJobsBuilder(int index) { + return getJobsFieldBuilder() + .addBuilder(index, com.google.cloud.scheduler.v1.Job.getDefaultInstance()); + } + /** + * + * + *
+     * The list of jobs.
+     * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + public java.util.List getJobsBuilderList() { + return getJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.scheduler.v1.Job, + com.google.cloud.scheduler.v1.Job.Builder, + com.google.cloud.scheduler.v1.JobOrBuilder> + getJobsFieldBuilder() { + if (jobsBuilder_ == null) { + jobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.scheduler.v1.Job, + com.google.cloud.scheduler.v1.Job.Builder, + com.google.cloud.scheduler.v1.JobOrBuilder>( + jobs_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + jobs_ = null; + } + return jobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve next page of results. Pass this value in the
+     * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
+     * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
+     * If this is empty it indicates that there are no more results
+     * through which to paginate.
+     * The page token is valid for only 2 hours.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results. Pass this value in the
+     * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
+     * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
+     * If this is empty it indicates that there are no more results
+     * through which to paginate.
+     * The page token is valid for only 2 hours.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results. Pass this value in the
+     * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
+     * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
+     * If this is empty it indicates that there are no more results
+     * through which to paginate.
+     * The page token is valid for only 2 hours.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results. Pass this value in the
+     * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
+     * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
+     * If this is empty it indicates that there are no more results
+     * through which to paginate.
+     * The page token is valid for only 2 hours.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results. Pass this value in the
+     * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
+     * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
+     * If this is empty it indicates that there are no more results
+     * through which to paginate.
+     * The page token is valid for only 2 hours.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.ListJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.ListJobsResponse) + private static final com.google.cloud.scheduler.v1.ListJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.ListJobsResponse(); + } + + public static com.google.cloud.scheduler.v1.ListJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListJobsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ListJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponseOrBuilder.java new file mode 100644 index 000000000000..55b6a74b30b4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsResponseOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +public interface ListJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.ListJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of jobs.
+   * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + java.util.List getJobsList(); + /** + * + * + *
+   * The list of jobs.
+   * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + com.google.cloud.scheduler.v1.Job getJobs(int index); + /** + * + * + *
+   * The list of jobs.
+   * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + int getJobsCount(); + /** + * + * + *
+   * The list of jobs.
+   * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + java.util.List getJobsOrBuilderList(); + /** + * + * + *
+   * The list of jobs.
+   * 
+ * + * repeated .google.cloud.scheduler.v1.Job jobs = 1; + */ + com.google.cloud.scheduler.v1.JobOrBuilder getJobsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve next page of results. Pass this value in the
+   * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
+   * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
+   * If this is empty it indicates that there are no more results
+   * through which to paginate.
+   * The page token is valid for only 2 hours.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve next page of results. Pass this value in the
+   * [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
+   * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
+   * If this is empty it indicates that there are no more results
+   * through which to paginate.
+   * The page token is valid for only 2 hours.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java new file mode 100644 index 000000000000..1f04f76f47d6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.scheduler.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class LocationName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location); + } + + /** Builder for LocationName. */ + public static class Builder { + + private String project; + private String location; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder() {} + + private Builder(LocationName locationName) { + project = locationName.project; + location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof LocationName) { + LocationName that = (LocationName) o; + return (this.project.equals(that.project)) && (this.location.equals(that.location)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequest.java new file mode 100644 index 000000000000..e1548778b79f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequest.java @@ -0,0 +1,611 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Request message for [PauseJob][google.cloud.scheduler.v1.CloudScheduler.PauseJob].
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.PauseJobRequest} + */ +public final class PauseJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.PauseJobRequest) + PauseJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PauseJobRequest.newBuilder() to construct. + private PauseJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PauseJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PauseJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_PauseJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_PauseJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.PauseJobRequest.class, + com.google.cloud.scheduler.v1.PauseJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.PauseJobRequest)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.PauseJobRequest other = + (com.google.cloud.scheduler.v1.PauseJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.PauseJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [PauseJob][google.cloud.scheduler.v1.CloudScheduler.PauseJob].
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.PauseJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.PauseJobRequest) + com.google.cloud.scheduler.v1.PauseJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_PauseJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_PauseJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.PauseJobRequest.class, + com.google.cloud.scheduler.v1.PauseJobRequest.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.PauseJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_PauseJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.PauseJobRequest getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.PauseJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.PauseJobRequest build() { + com.google.cloud.scheduler.v1.PauseJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.PauseJobRequest buildPartial() { + com.google.cloud.scheduler.v1.PauseJobRequest result = + new com.google.cloud.scheduler.v1.PauseJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.PauseJobRequest) { + return mergeFrom((com.google.cloud.scheduler.v1.PauseJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.PauseJobRequest other) { + if (other == com.google.cloud.scheduler.v1.PauseJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.PauseJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.PauseJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.PauseJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.PauseJobRequest) + private static final com.google.cloud.scheduler.v1.PauseJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.PauseJobRequest(); + } + + public static com.google.cloud.scheduler.v1.PauseJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PauseJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PauseJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.PauseJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequestOrBuilder.java new file mode 100644 index 000000000000..cdfacc6d950b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +public interface PauseJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.PauseJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java new file mode 100644 index 000000000000..c635356575d6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java @@ -0,0 +1,160 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.scheduler.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + + private volatile Map fieldValuesMap; + + private final String project; + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project); + } + + /** Builder for ProjectName. */ + public static class Builder { + + private String project; + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder() {} + + private Builder(ProjectName projectName) { + project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectName) { + ProjectName that = (ProjectName) o; + return (this.project.equals(that.project)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTarget.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTarget.java new file mode 100644 index 000000000000..3efe79057181 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTarget.java @@ -0,0 +1,1076 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/target.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Pub/Sub target. The job will be delivered by publishing a message to
+ * the given Pub/Sub topic.
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.PubsubTarget} + */ +public final class PubsubTarget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.PubsubTarget) + PubsubTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubsubTarget.newBuilder() to construct. + private PubsubTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PubsubTarget() { + topicName_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PubsubTarget( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + topicName_ = s; + break; + } + case 26: + { + data_ = input.readBytes(); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + attributes_ = + com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry attributes__ = + input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue()); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_PubsubTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.PubsubTarget.class, + com.google.cloud.scheduler.v1.PubsubTarget.Builder.class); + } + + private int bitField0_; + public static final int TOPIC_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object topicName_; + /** + * + * + *
+   * Required.
+   * The name of the Cloud Pub/Sub topic to which messages will
+   * be published when a job is delivered. The topic name must be in the
+   * same format as required by PubSub's
+   * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
+   * for example `projects/PROJECT_ID/topics/TOPIC_ID`.
+   * The topic must be in the same project as the Cloud Scheduler job.
+   * 
+ * + * string topic_name = 1; + */ + public java.lang.String getTopicName() { + java.lang.Object ref = topicName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topicName_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The name of the Cloud Pub/Sub topic to which messages will
+   * be published when a job is delivered. The topic name must be in the
+   * same format as required by PubSub's
+   * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
+   * for example `projects/PROJECT_ID/topics/TOPIC_ID`.
+   * The topic must be in the same project as the Cloud Scheduler job.
+   * 
+ * + * string topic_name = 1; + */ + public com.google.protobuf.ByteString getTopicNameBytes() { + java.lang.Object ref = topicName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topicName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString data_; + /** + * + * + *
+   * The message payload for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * bytes data = 3; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 4; + + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField attributes_; + + private com.google.protobuf.MapField internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + * + * + *
+   * Attributes for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * map<string, string> attributes = 4; + */ + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetAttributes().getMap().containsKey(key); + } + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + * + * + *
+   * Attributes for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * map<string, string> attributes = 4; + */ + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + * + * + *
+   * Attributes for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * map<string, string> attributes = 4; + */ + public java.lang.String getAttributesOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Attributes for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * map<string, string> attributes = 4; + */ + public java.lang.String getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTopicNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicName_); + } + if (!data_.isEmpty()) { + output.writeBytes(3, data_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 4); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTopicNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topicName_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, data_); + } + for (java.util.Map.Entry entry : + internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry attributes__ = + AttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, attributes__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.PubsubTarget)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.PubsubTarget other = + (com.google.cloud.scheduler.v1.PubsubTarget) obj; + + boolean result = true; + result = result && getTopicName().equals(other.getTopicName()); + result = result && getData().equals(other.getData()); + result = result && internalGetAttributes().equals(other.internalGetAttributes()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTopicName().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + if (!internalGetAttributes().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.PubsubTarget prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Pub/Sub target. The job will be delivered by publishing a message to
+   * the given Pub/Sub topic.
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.PubsubTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.PubsubTarget) + com.google.cloud.scheduler.v1.PubsubTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_PubsubTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.PubsubTarget.class, + com.google.cloud.scheduler.v1.PubsubTarget.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.PubsubTarget.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + topicName_ = ""; + + data_ = com.google.protobuf.ByteString.EMPTY; + + internalGetMutableAttributes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.TargetProto + .internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.PubsubTarget getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.PubsubTarget build() { + com.google.cloud.scheduler.v1.PubsubTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.PubsubTarget buildPartial() { + com.google.cloud.scheduler.v1.PubsubTarget result = + new com.google.cloud.scheduler.v1.PubsubTarget(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.topicName_ = topicName_; + result.data_ = data_; + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.PubsubTarget) { + return mergeFrom((com.google.cloud.scheduler.v1.PubsubTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.PubsubTarget other) { + if (other == com.google.cloud.scheduler.v1.PubsubTarget.getDefaultInstance()) return this; + if (!other.getTopicName().isEmpty()) { + topicName_ = other.topicName_; + onChanged(); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.PubsubTarget parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.PubsubTarget) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object topicName_ = ""; + /** + * + * + *
+     * Required.
+     * The name of the Cloud Pub/Sub topic to which messages will
+     * be published when a job is delivered. The topic name must be in the
+     * same format as required by PubSub's
+     * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
+     * for example `projects/PROJECT_ID/topics/TOPIC_ID`.
+     * The topic must be in the same project as the Cloud Scheduler job.
+     * 
+ * + * string topic_name = 1; + */ + public java.lang.String getTopicName() { + java.lang.Object ref = topicName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topicName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the Cloud Pub/Sub topic to which messages will
+     * be published when a job is delivered. The topic name must be in the
+     * same format as required by PubSub's
+     * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
+     * for example `projects/PROJECT_ID/topics/TOPIC_ID`.
+     * The topic must be in the same project as the Cloud Scheduler job.
+     * 
+ * + * string topic_name = 1; + */ + public com.google.protobuf.ByteString getTopicNameBytes() { + java.lang.Object ref = topicName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topicName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the Cloud Pub/Sub topic to which messages will
+     * be published when a job is delivered. The topic name must be in the
+     * same format as required by PubSub's
+     * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
+     * for example `projects/PROJECT_ID/topics/TOPIC_ID`.
+     * The topic must be in the same project as the Cloud Scheduler job.
+     * 
+ * + * string topic_name = 1; + */ + public Builder setTopicName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topicName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the Cloud Pub/Sub topic to which messages will
+     * be published when a job is delivered. The topic name must be in the
+     * same format as required by PubSub's
+     * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
+     * for example `projects/PROJECT_ID/topics/TOPIC_ID`.
+     * The topic must be in the same project as the Cloud Scheduler job.
+     * 
+ * + * string topic_name = 1; + */ + public Builder clearTopicName() { + + topicName_ = getDefaultInstance().getTopicName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the Cloud Pub/Sub topic to which messages will
+     * be published when a job is delivered. The topic name must be in the
+     * same format as required by PubSub's
+     * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
+     * for example `projects/PROJECT_ID/topics/TOPIC_ID`.
+     * The topic must be in the same project as the Cloud Scheduler job.
+     * 
+ * + * string topic_name = 1; + */ + public Builder setTopicNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topicName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * The message payload for PubsubMessage.
+     * Pubsub message must contain either non-empty data, or at least one
+     * attribute.
+     * 
+ * + * bytes data = 3; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * + * + *
+     * The message payload for PubsubMessage.
+     * Pubsub message must contain either non-empty data, or at least one
+     * attribute.
+     * 
+ * + * bytes data = 3; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The message payload for PubsubMessage.
+     * Pubsub message must contain either non-empty data, or at least one
+     * attribute.
+     * 
+ * + * bytes data = 3; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.MapField attributes_; + + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + private com.google.protobuf.MapField + internalGetMutableAttributes() { + onChanged(); + ; + if (attributes_ == null) { + attributes_ = + com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); + } + if (!attributes_.isMutable()) { + attributes_ = attributes_.copy(); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + * + * + *
+     * Attributes for PubsubMessage.
+     * Pubsub message must contain either non-empty data, or at least one
+     * attribute.
+     * 
+ * + * map<string, string> attributes = 4; + */ + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetAttributes().getMap().containsKey(key); + } + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + * + * + *
+     * Attributes for PubsubMessage.
+     * Pubsub message must contain either non-empty data, or at least one
+     * attribute.
+     * 
+ * + * map<string, string> attributes = 4; + */ + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + * + * + *
+     * Attributes for PubsubMessage.
+     * Pubsub message must contain either non-empty data, or at least one
+     * attribute.
+     * 
+ * + * map<string, string> attributes = 4; + */ + public java.lang.String getAttributesOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Attributes for PubsubMessage.
+     * Pubsub message must contain either non-empty data, or at least one
+     * attribute.
+     * 
+ * + * map<string, string> attributes = 4; + */ + public java.lang.String getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttributes() { + internalGetMutableAttributes().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Attributes for PubsubMessage.
+     * Pubsub message must contain either non-empty data, or at least one
+     * attribute.
+     * 
+ * + * map<string, string> attributes = 4; + */ + public Builder removeAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableAttributes().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAttributes() { + return internalGetMutableAttributes().getMutableMap(); + } + /** + * + * + *
+     * Attributes for PubsubMessage.
+     * Pubsub message must contain either non-empty data, or at least one
+     * attribute.
+     * 
+ * + * map<string, string> attributes = 4; + */ + public Builder putAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableAttributes().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Attributes for PubsubMessage.
+     * Pubsub message must contain either non-empty data, or at least one
+     * attribute.
+     * 
+ * + * map<string, string> attributes = 4; + */ + public Builder putAllAttributes(java.util.Map values) { + internalGetMutableAttributes().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.PubsubTarget) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.PubsubTarget) + private static final com.google.cloud.scheduler.v1.PubsubTarget DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.PubsubTarget(); + } + + public static com.google.cloud.scheduler.v1.PubsubTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubsubTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PubsubTarget(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.PubsubTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTargetOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTargetOrBuilder.java new file mode 100644 index 000000000000..30eb2dc8660a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTargetOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/target.proto + +package com.google.cloud.scheduler.v1; + +public interface PubsubTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.PubsubTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The name of the Cloud Pub/Sub topic to which messages will
+   * be published when a job is delivered. The topic name must be in the
+   * same format as required by PubSub's
+   * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
+   * for example `projects/PROJECT_ID/topics/TOPIC_ID`.
+   * The topic must be in the same project as the Cloud Scheduler job.
+   * 
+ * + * string topic_name = 1; + */ + java.lang.String getTopicName(); + /** + * + * + *
+   * Required.
+   * The name of the Cloud Pub/Sub topic to which messages will
+   * be published when a job is delivered. The topic name must be in the
+   * same format as required by PubSub's
+   * [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
+   * for example `projects/PROJECT_ID/topics/TOPIC_ID`.
+   * The topic must be in the same project as the Cloud Scheduler job.
+   * 
+ * + * string topic_name = 1; + */ + com.google.protobuf.ByteString getTopicNameBytes(); + + /** + * + * + *
+   * The message payload for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * bytes data = 3; + */ + com.google.protobuf.ByteString getData(); + + /** + * + * + *
+   * Attributes for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * map<string, string> attributes = 4; + */ + int getAttributesCount(); + /** + * + * + *
+   * Attributes for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * map<string, string> attributes = 4; + */ + boolean containsAttributes(java.lang.String key); + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAttributes(); + /** + * + * + *
+   * Attributes for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * map<string, string> attributes = 4; + */ + java.util.Map getAttributesMap(); + /** + * + * + *
+   * Attributes for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * map<string, string> attributes = 4; + */ + java.lang.String getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Attributes for PubsubMessage.
+   * Pubsub message must contain either non-empty data, or at least one
+   * attribute.
+   * 
+ * + * map<string, string> attributes = 4; + */ + java.lang.String getAttributesOrThrow(java.lang.String key); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java new file mode 100644 index 000000000000..c131762d15bc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java @@ -0,0 +1,611 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Request message for [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob].
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.ResumeJobRequest} + */ +public final class ResumeJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.ResumeJobRequest) + ResumeJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResumeJobRequest.newBuilder() to construct. + private ResumeJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResumeJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResumeJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ResumeJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ResumeJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.ResumeJobRequest.class, + com.google.cloud.scheduler.v1.ResumeJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.ResumeJobRequest)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.ResumeJobRequest other = + (com.google.cloud.scheduler.v1.ResumeJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.ResumeJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob].
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.ResumeJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.ResumeJobRequest) + com.google.cloud.scheduler.v1.ResumeJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ResumeJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ResumeJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.ResumeJobRequest.class, + com.google.cloud.scheduler.v1.ResumeJobRequest.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.ResumeJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_ResumeJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ResumeJobRequest getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.ResumeJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ResumeJobRequest build() { + com.google.cloud.scheduler.v1.ResumeJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ResumeJobRequest buildPartial() { + com.google.cloud.scheduler.v1.ResumeJobRequest result = + new com.google.cloud.scheduler.v1.ResumeJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.ResumeJobRequest) { + return mergeFrom((com.google.cloud.scheduler.v1.ResumeJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.ResumeJobRequest other) { + if (other == com.google.cloud.scheduler.v1.ResumeJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.ResumeJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.ResumeJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.ResumeJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.ResumeJobRequest) + private static final com.google.cloud.scheduler.v1.ResumeJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.ResumeJobRequest(); + } + + public static com.google.cloud.scheduler.v1.ResumeJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResumeJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResumeJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.ResumeJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequestOrBuilder.java new file mode 100644 index 000000000000..e7f4ff82f89a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +public interface ResumeJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.ResumeJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java new file mode 100644 index 000000000000..ed333b0c224c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java @@ -0,0 +1,1609 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/job.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Settings that determine the retry behavior.
+ * By default, if a job does not complete successfully (meaning that
+ * an acknowledgement is not received from the handler, then it will be retried
+ * with exponential backoff according to the settings in [RetryConfig][google.cloud.scheduler.v1.RetryConfig].
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.RetryConfig} + */ +public final class RetryConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.RetryConfig) + RetryConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetryConfig.newBuilder() to construct. + private RetryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetryConfig() { + retryCount_ = 0; + maxDoublings_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RetryConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + retryCount_ = input.readInt32(); + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maxRetryDuration_ != null) { + subBuilder = maxRetryDuration_.toBuilder(); + } + maxRetryDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxRetryDuration_); + maxRetryDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (minBackoffDuration_ != null) { + subBuilder = minBackoffDuration_.toBuilder(); + } + minBackoffDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minBackoffDuration_); + minBackoffDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maxBackoffDuration_ != null) { + subBuilder = maxBackoffDuration_.toBuilder(); + } + maxBackoffDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxBackoffDuration_); + maxBackoffDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 40: + { + maxDoublings_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_RetryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_RetryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.RetryConfig.class, + com.google.cloud.scheduler.v1.RetryConfig.Builder.class); + } + + public static final int RETRY_COUNT_FIELD_NUMBER = 1; + private int retryCount_; + /** + * + * + *
+   * The number of attempts that the system will make to run a job using the
+   * exponential backoff procedure described by
+   * [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings].
+   * The default value of retry_count is zero.
+   * If retry_count is zero, a job attempt will *not* be retried if
+   * it fails. Instead the Cloud Scheduler system will wait for the
+   * next scheduled execution time.
+   * If retry_count is set to a non-zero number then Cloud Scheduler
+   * will retry failed attempts, using exponential backoff,
+   * retry_count times, or until the next scheduled execution time,
+   * whichever comes first.
+   * Values greater than 5 and negative values are not allowed.
+   * 
+ * + * int32 retry_count = 1; + */ + public int getRetryCount() { + return retryCount_; + } + + public static final int MAX_RETRY_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration maxRetryDuration_; + /** + * + * + *
+   * The time limit for retrying a failed job, measured from time when an
+   * execution was first attempted. If specified with
+   * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+   * limits are reached.
+   * The default value for max_retry_duration is zero, which means retry
+   * duration is unlimited.
+   * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public boolean hasMaxRetryDuration() { + return maxRetryDuration_ != null; + } + /** + * + * + *
+   * The time limit for retrying a failed job, measured from time when an
+   * execution was first attempted. If specified with
+   * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+   * limits are reached.
+   * The default value for max_retry_duration is zero, which means retry
+   * duration is unlimited.
+   * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public com.google.protobuf.Duration getMaxRetryDuration() { + return maxRetryDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxRetryDuration_; + } + /** + * + * + *
+   * The time limit for retrying a failed job, measured from time when an
+   * execution was first attempted. If specified with
+   * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+   * limits are reached.
+   * The default value for max_retry_duration is zero, which means retry
+   * duration is unlimited.
+   * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() { + return getMaxRetryDuration(); + } + + public static final int MIN_BACKOFF_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration minBackoffDuration_; + /** + * + * + *
+   * The minimum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 5 seconds.
+   * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public boolean hasMinBackoffDuration() { + return minBackoffDuration_ != null; + } + /** + * + * + *
+   * The minimum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 5 seconds.
+   * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public com.google.protobuf.Duration getMinBackoffDuration() { + return minBackoffDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBackoffDuration_; + } + /** + * + * + *
+   * The minimum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 5 seconds.
+   * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getMinBackoffDurationOrBuilder() { + return getMinBackoffDuration(); + } + + public static final int MAX_BACKOFF_DURATION_FIELD_NUMBER = 4; + private com.google.protobuf.Duration maxBackoffDuration_; + /** + * + * + *
+   * The maximum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 1 hour.
+   * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public boolean hasMaxBackoffDuration() { + return maxBackoffDuration_ != null; + } + /** + * + * + *
+   * The maximum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 1 hour.
+   * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public com.google.protobuf.Duration getMaxBackoffDuration() { + return maxBackoffDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxBackoffDuration_; + } + /** + * + * + *
+   * The maximum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 1 hour.
+   * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public com.google.protobuf.DurationOrBuilder getMaxBackoffDurationOrBuilder() { + return getMaxBackoffDuration(); + } + + public static final int MAX_DOUBLINGS_FIELD_NUMBER = 5; + private int maxDoublings_; + /** + * + * + *
+   * The time between retries will double `max_doublings` times.
+   * A job's retry interval starts at
+   * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles
+   * `max_doublings` times, then increases linearly, and finally
+   * retries retries at intervals of
+   * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to
+   * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times.
+   * For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is
+   * 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and
+   * `max_doublings` is 3, then the a job will first be retried in 10s. The
+   * retry interval will double three times, and then increase linearly by
+   * 2^3 * 10s.  Finally, the job will retry at intervals of
+   * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has
+   * been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the
+   * requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
+   * The default value of this field is 5.
+   * 
+ * + * int32 max_doublings = 5; + */ + public int getMaxDoublings() { + return maxDoublings_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (retryCount_ != 0) { + output.writeInt32(1, retryCount_); + } + if (maxRetryDuration_ != null) { + output.writeMessage(2, getMaxRetryDuration()); + } + if (minBackoffDuration_ != null) { + output.writeMessage(3, getMinBackoffDuration()); + } + if (maxBackoffDuration_ != null) { + output.writeMessage(4, getMaxBackoffDuration()); + } + if (maxDoublings_ != 0) { + output.writeInt32(5, maxDoublings_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retryCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, retryCount_); + } + if (maxRetryDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxRetryDuration()); + } + if (minBackoffDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinBackoffDuration()); + } + if (maxBackoffDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMaxBackoffDuration()); + } + if (maxDoublings_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxDoublings_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.RetryConfig)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.RetryConfig other = + (com.google.cloud.scheduler.v1.RetryConfig) obj; + + boolean result = true; + result = result && (getRetryCount() == other.getRetryCount()); + result = result && (hasMaxRetryDuration() == other.hasMaxRetryDuration()); + if (hasMaxRetryDuration()) { + result = result && getMaxRetryDuration().equals(other.getMaxRetryDuration()); + } + result = result && (hasMinBackoffDuration() == other.hasMinBackoffDuration()); + if (hasMinBackoffDuration()) { + result = result && getMinBackoffDuration().equals(other.getMinBackoffDuration()); + } + result = result && (hasMaxBackoffDuration() == other.hasMaxBackoffDuration()); + if (hasMaxBackoffDuration()) { + result = result && getMaxBackoffDuration().equals(other.getMaxBackoffDuration()); + } + result = result && (getMaxDoublings() == other.getMaxDoublings()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETRY_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRetryCount(); + if (hasMaxRetryDuration()) { + hash = (37 * hash) + MAX_RETRY_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxRetryDuration().hashCode(); + } + if (hasMinBackoffDuration()) { + hash = (37 * hash) + MIN_BACKOFF_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMinBackoffDuration().hashCode(); + } + if (hasMaxBackoffDuration()) { + hash = (37 * hash) + MAX_BACKOFF_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxBackoffDuration().hashCode(); + } + hash = (37 * hash) + MAX_DOUBLINGS_FIELD_NUMBER; + hash = (53 * hash) + getMaxDoublings(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.RetryConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.RetryConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Settings that determine the retry behavior.
+   * By default, if a job does not complete successfully (meaning that
+   * an acknowledgement is not received from the handler, then it will be retried
+   * with exponential backoff according to the settings in [RetryConfig][google.cloud.scheduler.v1.RetryConfig].
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.RetryConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.RetryConfig) + com.google.cloud.scheduler.v1.RetryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_RetryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_RetryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.RetryConfig.class, + com.google.cloud.scheduler.v1.RetryConfig.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.RetryConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + retryCount_ = 0; + + if (maxRetryDurationBuilder_ == null) { + maxRetryDuration_ = null; + } else { + maxRetryDuration_ = null; + maxRetryDurationBuilder_ = null; + } + if (minBackoffDurationBuilder_ == null) { + minBackoffDuration_ = null; + } else { + minBackoffDuration_ = null; + minBackoffDurationBuilder_ = null; + } + if (maxBackoffDurationBuilder_ == null) { + maxBackoffDuration_ = null; + } else { + maxBackoffDuration_ = null; + maxBackoffDurationBuilder_ = null; + } + maxDoublings_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.JobProto + .internal_static_google_cloud_scheduler_v1_RetryConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.RetryConfig getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.RetryConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.RetryConfig build() { + com.google.cloud.scheduler.v1.RetryConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.RetryConfig buildPartial() { + com.google.cloud.scheduler.v1.RetryConfig result = + new com.google.cloud.scheduler.v1.RetryConfig(this); + result.retryCount_ = retryCount_; + if (maxRetryDurationBuilder_ == null) { + result.maxRetryDuration_ = maxRetryDuration_; + } else { + result.maxRetryDuration_ = maxRetryDurationBuilder_.build(); + } + if (minBackoffDurationBuilder_ == null) { + result.minBackoffDuration_ = minBackoffDuration_; + } else { + result.minBackoffDuration_ = minBackoffDurationBuilder_.build(); + } + if (maxBackoffDurationBuilder_ == null) { + result.maxBackoffDuration_ = maxBackoffDuration_; + } else { + result.maxBackoffDuration_ = maxBackoffDurationBuilder_.build(); + } + result.maxDoublings_ = maxDoublings_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.RetryConfig) { + return mergeFrom((com.google.cloud.scheduler.v1.RetryConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.RetryConfig other) { + if (other == com.google.cloud.scheduler.v1.RetryConfig.getDefaultInstance()) return this; + if (other.getRetryCount() != 0) { + setRetryCount(other.getRetryCount()); + } + if (other.hasMaxRetryDuration()) { + mergeMaxRetryDuration(other.getMaxRetryDuration()); + } + if (other.hasMinBackoffDuration()) { + mergeMinBackoffDuration(other.getMinBackoffDuration()); + } + if (other.hasMaxBackoffDuration()) { + mergeMaxBackoffDuration(other.getMaxBackoffDuration()); + } + if (other.getMaxDoublings() != 0) { + setMaxDoublings(other.getMaxDoublings()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.RetryConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.RetryConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int retryCount_; + /** + * + * + *
+     * The number of attempts that the system will make to run a job using the
+     * exponential backoff procedure described by
+     * [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings].
+     * The default value of retry_count is zero.
+     * If retry_count is zero, a job attempt will *not* be retried if
+     * it fails. Instead the Cloud Scheduler system will wait for the
+     * next scheduled execution time.
+     * If retry_count is set to a non-zero number then Cloud Scheduler
+     * will retry failed attempts, using exponential backoff,
+     * retry_count times, or until the next scheduled execution time,
+     * whichever comes first.
+     * Values greater than 5 and negative values are not allowed.
+     * 
+ * + * int32 retry_count = 1; + */ + public int getRetryCount() { + return retryCount_; + } + /** + * + * + *
+     * The number of attempts that the system will make to run a job using the
+     * exponential backoff procedure described by
+     * [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings].
+     * The default value of retry_count is zero.
+     * If retry_count is zero, a job attempt will *not* be retried if
+     * it fails. Instead the Cloud Scheduler system will wait for the
+     * next scheduled execution time.
+     * If retry_count is set to a non-zero number then Cloud Scheduler
+     * will retry failed attempts, using exponential backoff,
+     * retry_count times, or until the next scheduled execution time,
+     * whichever comes first.
+     * Values greater than 5 and negative values are not allowed.
+     * 
+ * + * int32 retry_count = 1; + */ + public Builder setRetryCount(int value) { + + retryCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of attempts that the system will make to run a job using the
+     * exponential backoff procedure described by
+     * [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings].
+     * The default value of retry_count is zero.
+     * If retry_count is zero, a job attempt will *not* be retried if
+     * it fails. Instead the Cloud Scheduler system will wait for the
+     * next scheduled execution time.
+     * If retry_count is set to a non-zero number then Cloud Scheduler
+     * will retry failed attempts, using exponential backoff,
+     * retry_count times, or until the next scheduled execution time,
+     * whichever comes first.
+     * Values greater than 5 and negative values are not allowed.
+     * 
+ * + * int32 retry_count = 1; + */ + public Builder clearRetryCount() { + + retryCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration maxRetryDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxRetryDurationBuilder_; + /** + * + * + *
+     * The time limit for retrying a failed job, measured from time when an
+     * execution was first attempted. If specified with
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+     * limits are reached.
+     * The default value for max_retry_duration is zero, which means retry
+     * duration is unlimited.
+     * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public boolean hasMaxRetryDuration() { + return maxRetryDurationBuilder_ != null || maxRetryDuration_ != null; + } + /** + * + * + *
+     * The time limit for retrying a failed job, measured from time when an
+     * execution was first attempted. If specified with
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+     * limits are reached.
+     * The default value for max_retry_duration is zero, which means retry
+     * duration is unlimited.
+     * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public com.google.protobuf.Duration getMaxRetryDuration() { + if (maxRetryDurationBuilder_ == null) { + return maxRetryDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxRetryDuration_; + } else { + return maxRetryDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time limit for retrying a failed job, measured from time when an
+     * execution was first attempted. If specified with
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+     * limits are reached.
+     * The default value for max_retry_duration is zero, which means retry
+     * duration is unlimited.
+     * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public Builder setMaxRetryDuration(com.google.protobuf.Duration value) { + if (maxRetryDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxRetryDuration_ = value; + onChanged(); + } else { + maxRetryDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time limit for retrying a failed job, measured from time when an
+     * execution was first attempted. If specified with
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+     * limits are reached.
+     * The default value for max_retry_duration is zero, which means retry
+     * duration is unlimited.
+     * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public Builder setMaxRetryDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (maxRetryDurationBuilder_ == null) { + maxRetryDuration_ = builderForValue.build(); + onChanged(); + } else { + maxRetryDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time limit for retrying a failed job, measured from time when an
+     * execution was first attempted. If specified with
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+     * limits are reached.
+     * The default value for max_retry_duration is zero, which means retry
+     * duration is unlimited.
+     * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public Builder mergeMaxRetryDuration(com.google.protobuf.Duration value) { + if (maxRetryDurationBuilder_ == null) { + if (maxRetryDuration_ != null) { + maxRetryDuration_ = + com.google.protobuf.Duration.newBuilder(maxRetryDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + maxRetryDuration_ = value; + } + onChanged(); + } else { + maxRetryDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time limit for retrying a failed job, measured from time when an
+     * execution was first attempted. If specified with
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+     * limits are reached.
+     * The default value for max_retry_duration is zero, which means retry
+     * duration is unlimited.
+     * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public Builder clearMaxRetryDuration() { + if (maxRetryDurationBuilder_ == null) { + maxRetryDuration_ = null; + onChanged(); + } else { + maxRetryDuration_ = null; + maxRetryDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time limit for retrying a failed job, measured from time when an
+     * execution was first attempted. If specified with
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+     * limits are reached.
+     * The default value for max_retry_duration is zero, which means retry
+     * duration is unlimited.
+     * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public com.google.protobuf.Duration.Builder getMaxRetryDurationBuilder() { + + onChanged(); + return getMaxRetryDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time limit for retrying a failed job, measured from time when an
+     * execution was first attempted. If specified with
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+     * limits are reached.
+     * The default value for max_retry_duration is zero, which means retry
+     * duration is unlimited.
+     * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() { + if (maxRetryDurationBuilder_ != null) { + return maxRetryDurationBuilder_.getMessageOrBuilder(); + } else { + return maxRetryDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxRetryDuration_; + } + } + /** + * + * + *
+     * The time limit for retrying a failed job, measured from time when an
+     * execution was first attempted. If specified with
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+     * limits are reached.
+     * The default value for max_retry_duration is zero, which means retry
+     * duration is unlimited.
+     * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMaxRetryDurationFieldBuilder() { + if (maxRetryDurationBuilder_ == null) { + maxRetryDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxRetryDuration(), getParentForChildren(), isClean()); + maxRetryDuration_ = null; + } + return maxRetryDurationBuilder_; + } + + private com.google.protobuf.Duration minBackoffDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minBackoffDurationBuilder_; + /** + * + * + *
+     * The minimum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 5 seconds.
+     * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public boolean hasMinBackoffDuration() { + return minBackoffDurationBuilder_ != null || minBackoffDuration_ != null; + } + /** + * + * + *
+     * The minimum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 5 seconds.
+     * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public com.google.protobuf.Duration getMinBackoffDuration() { + if (minBackoffDurationBuilder_ == null) { + return minBackoffDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBackoffDuration_; + } else { + return minBackoffDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The minimum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 5 seconds.
+     * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public Builder setMinBackoffDuration(com.google.protobuf.Duration value) { + if (minBackoffDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minBackoffDuration_ = value; + onChanged(); + } else { + minBackoffDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The minimum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 5 seconds.
+     * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public Builder setMinBackoffDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (minBackoffDurationBuilder_ == null) { + minBackoffDuration_ = builderForValue.build(); + onChanged(); + } else { + minBackoffDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The minimum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 5 seconds.
+     * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public Builder mergeMinBackoffDuration(com.google.protobuf.Duration value) { + if (minBackoffDurationBuilder_ == null) { + if (minBackoffDuration_ != null) { + minBackoffDuration_ = + com.google.protobuf.Duration.newBuilder(minBackoffDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + minBackoffDuration_ = value; + } + onChanged(); + } else { + minBackoffDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The minimum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 5 seconds.
+     * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public Builder clearMinBackoffDuration() { + if (minBackoffDurationBuilder_ == null) { + minBackoffDuration_ = null; + onChanged(); + } else { + minBackoffDuration_ = null; + minBackoffDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The minimum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 5 seconds.
+     * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public com.google.protobuf.Duration.Builder getMinBackoffDurationBuilder() { + + onChanged(); + return getMinBackoffDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The minimum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 5 seconds.
+     * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getMinBackoffDurationOrBuilder() { + if (minBackoffDurationBuilder_ != null) { + return minBackoffDurationBuilder_.getMessageOrBuilder(); + } else { + return minBackoffDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBackoffDuration_; + } + } + /** + * + * + *
+     * The minimum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 5 seconds.
+     * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMinBackoffDurationFieldBuilder() { + if (minBackoffDurationBuilder_ == null) { + minBackoffDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinBackoffDuration(), getParentForChildren(), isClean()); + minBackoffDuration_ = null; + } + return minBackoffDurationBuilder_; + } + + private com.google.protobuf.Duration maxBackoffDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxBackoffDurationBuilder_; + /** + * + * + *
+     * The maximum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 1 hour.
+     * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public boolean hasMaxBackoffDuration() { + return maxBackoffDurationBuilder_ != null || maxBackoffDuration_ != null; + } + /** + * + * + *
+     * The maximum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 1 hour.
+     * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public com.google.protobuf.Duration getMaxBackoffDuration() { + if (maxBackoffDurationBuilder_ == null) { + return maxBackoffDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxBackoffDuration_; + } else { + return maxBackoffDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The maximum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 1 hour.
+     * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public Builder setMaxBackoffDuration(com.google.protobuf.Duration value) { + if (maxBackoffDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxBackoffDuration_ = value; + onChanged(); + } else { + maxBackoffDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The maximum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 1 hour.
+     * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public Builder setMaxBackoffDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (maxBackoffDurationBuilder_ == null) { + maxBackoffDuration_ = builderForValue.build(); + onChanged(); + } else { + maxBackoffDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The maximum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 1 hour.
+     * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public Builder mergeMaxBackoffDuration(com.google.protobuf.Duration value) { + if (maxBackoffDurationBuilder_ == null) { + if (maxBackoffDuration_ != null) { + maxBackoffDuration_ = + com.google.protobuf.Duration.newBuilder(maxBackoffDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + maxBackoffDuration_ = value; + } + onChanged(); + } else { + maxBackoffDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The maximum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 1 hour.
+     * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public Builder clearMaxBackoffDuration() { + if (maxBackoffDurationBuilder_ == null) { + maxBackoffDuration_ = null; + onChanged(); + } else { + maxBackoffDuration_ = null; + maxBackoffDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The maximum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 1 hour.
+     * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public com.google.protobuf.Duration.Builder getMaxBackoffDurationBuilder() { + + onChanged(); + return getMaxBackoffDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The maximum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 1 hour.
+     * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + public com.google.protobuf.DurationOrBuilder getMaxBackoffDurationOrBuilder() { + if (maxBackoffDurationBuilder_ != null) { + return maxBackoffDurationBuilder_.getMessageOrBuilder(); + } else { + return maxBackoffDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxBackoffDuration_; + } + } + /** + * + * + *
+     * The maximum amount of time to wait before retrying a job after
+     * it fails.
+     * The default value of this field is 1 hour.
+     * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMaxBackoffDurationFieldBuilder() { + if (maxBackoffDurationBuilder_ == null) { + maxBackoffDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxBackoffDuration(), getParentForChildren(), isClean()); + maxBackoffDuration_ = null; + } + return maxBackoffDurationBuilder_; + } + + private int maxDoublings_; + /** + * + * + *
+     * The time between retries will double `max_doublings` times.
+     * A job's retry interval starts at
+     * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles
+     * `max_doublings` times, then increases linearly, and finally
+     * retries retries at intervals of
+     * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times.
+     * For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is
+     * 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and
+     * `max_doublings` is 3, then the a job will first be retried in 10s. The
+     * retry interval will double three times, and then increase linearly by
+     * 2^3 * 10s.  Finally, the job will retry at intervals of
+     * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has
+     * been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the
+     * requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
+     * The default value of this field is 5.
+     * 
+ * + * int32 max_doublings = 5; + */ + public int getMaxDoublings() { + return maxDoublings_; + } + /** + * + * + *
+     * The time between retries will double `max_doublings` times.
+     * A job's retry interval starts at
+     * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles
+     * `max_doublings` times, then increases linearly, and finally
+     * retries retries at intervals of
+     * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times.
+     * For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is
+     * 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and
+     * `max_doublings` is 3, then the a job will first be retried in 10s. The
+     * retry interval will double three times, and then increase linearly by
+     * 2^3 * 10s.  Finally, the job will retry at intervals of
+     * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has
+     * been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the
+     * requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
+     * The default value of this field is 5.
+     * 
+ * + * int32 max_doublings = 5; + */ + public Builder setMaxDoublings(int value) { + + maxDoublings_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The time between retries will double `max_doublings` times.
+     * A job's retry interval starts at
+     * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles
+     * `max_doublings` times, then increases linearly, and finally
+     * retries retries at intervals of
+     * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to
+     * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times.
+     * For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is
+     * 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and
+     * `max_doublings` is 3, then the a job will first be retried in 10s. The
+     * retry interval will double three times, and then increase linearly by
+     * 2^3 * 10s.  Finally, the job will retry at intervals of
+     * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has
+     * been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the
+     * requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
+     * The default value of this field is 5.
+     * 
+ * + * int32 max_doublings = 5; + */ + public Builder clearMaxDoublings() { + + maxDoublings_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.RetryConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.RetryConfig) + private static final com.google.cloud.scheduler.v1.RetryConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.RetryConfig(); + } + + public static com.google.cloud.scheduler.v1.RetryConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.RetryConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfigOrBuilder.java new file mode 100644 index 000000000000..cb26c74669ae --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfigOrBuilder.java @@ -0,0 +1,178 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/job.proto + +package com.google.cloud.scheduler.v1; + +public interface RetryConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.RetryConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of attempts that the system will make to run a job using the
+   * exponential backoff procedure described by
+   * [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings].
+   * The default value of retry_count is zero.
+   * If retry_count is zero, a job attempt will *not* be retried if
+   * it fails. Instead the Cloud Scheduler system will wait for the
+   * next scheduled execution time.
+   * If retry_count is set to a non-zero number then Cloud Scheduler
+   * will retry failed attempts, using exponential backoff,
+   * retry_count times, or until the next scheduled execution time,
+   * whichever comes first.
+   * Values greater than 5 and negative values are not allowed.
+   * 
+ * + * int32 retry_count = 1; + */ + int getRetryCount(); + + /** + * + * + *
+   * The time limit for retrying a failed job, measured from time when an
+   * execution was first attempted. If specified with
+   * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+   * limits are reached.
+   * The default value for max_retry_duration is zero, which means retry
+   * duration is unlimited.
+   * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + boolean hasMaxRetryDuration(); + /** + * + * + *
+   * The time limit for retrying a failed job, measured from time when an
+   * execution was first attempted. If specified with
+   * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+   * limits are reached.
+   * The default value for max_retry_duration is zero, which means retry
+   * duration is unlimited.
+   * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + com.google.protobuf.Duration getMaxRetryDuration(); + /** + * + * + *
+   * The time limit for retrying a failed job, measured from time when an
+   * execution was first attempted. If specified with
+   * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
+   * limits are reached.
+   * The default value for max_retry_duration is zero, which means retry
+   * duration is unlimited.
+   * 
+ * + * .google.protobuf.Duration max_retry_duration = 2; + */ + com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder(); + + /** + * + * + *
+   * The minimum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 5 seconds.
+   * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + boolean hasMinBackoffDuration(); + /** + * + * + *
+   * The minimum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 5 seconds.
+   * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + com.google.protobuf.Duration getMinBackoffDuration(); + /** + * + * + *
+   * The minimum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 5 seconds.
+   * 
+ * + * .google.protobuf.Duration min_backoff_duration = 3; + */ + com.google.protobuf.DurationOrBuilder getMinBackoffDurationOrBuilder(); + + /** + * + * + *
+   * The maximum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 1 hour.
+   * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + boolean hasMaxBackoffDuration(); + /** + * + * + *
+   * The maximum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 1 hour.
+   * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + com.google.protobuf.Duration getMaxBackoffDuration(); + /** + * + * + *
+   * The maximum amount of time to wait before retrying a job after
+   * it fails.
+   * The default value of this field is 1 hour.
+   * 
+ * + * .google.protobuf.Duration max_backoff_duration = 4; + */ + com.google.protobuf.DurationOrBuilder getMaxBackoffDurationOrBuilder(); + + /** + * + * + *
+   * The time between retries will double `max_doublings` times.
+   * A job's retry interval starts at
+   * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles
+   * `max_doublings` times, then increases linearly, and finally
+   * retries retries at intervals of
+   * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to
+   * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times.
+   * For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is
+   * 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and
+   * `max_doublings` is 3, then the a job will first be retried in 10s. The
+   * retry interval will double three times, and then increase linearly by
+   * 2^3 * 10s.  Finally, the job will retry at intervals of
+   * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has
+   * been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the
+   * requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
+   * The default value of this field is 5.
+   * 
+ * + * int32 max_doublings = 5; + */ + int getMaxDoublings(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java new file mode 100644 index 000000000000..ef23d9482899 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java @@ -0,0 +1,613 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Request message for forcing a job to run now using
+ * [RunJob][google.cloud.scheduler.v1.CloudScheduler.RunJob].
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.RunJobRequest} + */ +public final class RunJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.RunJobRequest) + RunJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunJobRequest.newBuilder() to construct. + private RunJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_RunJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_RunJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.RunJobRequest.class, + com.google.cloud.scheduler.v1.RunJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.RunJobRequest)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.RunJobRequest other = + (com.google.cloud.scheduler.v1.RunJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.RunJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for forcing a job to run now using
+   * [RunJob][google.cloud.scheduler.v1.CloudScheduler.RunJob].
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.RunJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.RunJobRequest) + com.google.cloud.scheduler.v1.RunJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_RunJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_RunJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.RunJobRequest.class, + com.google.cloud.scheduler.v1.RunJobRequest.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.RunJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_RunJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.RunJobRequest getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.RunJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.RunJobRequest build() { + com.google.cloud.scheduler.v1.RunJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.RunJobRequest buildPartial() { + com.google.cloud.scheduler.v1.RunJobRequest result = + new com.google.cloud.scheduler.v1.RunJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.RunJobRequest) { + return mergeFrom((com.google.cloud.scheduler.v1.RunJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.RunJobRequest other) { + if (other == com.google.cloud.scheduler.v1.RunJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.RunJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.RunJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job name. For example:
+     * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.RunJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.RunJobRequest) + private static final com.google.cloud.scheduler.v1.RunJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.RunJobRequest(); + } + + public static com.google.cloud.scheduler.v1.RunJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.RunJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequestOrBuilder.java new file mode 100644 index 000000000000..76ce2d4c3487 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +public interface RunJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.RunJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The job name. For example:
+   * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java new file mode 100644 index 000000000000..0cc873ce13d7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java @@ -0,0 +1,214 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +public final class SchedulerProto { + private SchedulerProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_ListJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_ListJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_ListJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_ListJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_GetJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_GetJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_CreateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_CreateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_UpdateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_UpdateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_DeleteJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_DeleteJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_PauseJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_PauseJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_ResumeJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_ResumeJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_RunJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_RunJobRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/scheduler/v1/cloudschedul" + + "er.proto\022\031google.cloud.scheduler.v1\032\034goo" + + "gle/api/annotations.proto\032#google/cloud/" + + "scheduler/v1/job.proto\032\033google/protobuf/" + + "empty.proto\032 google/protobuf/field_mask." + + "proto\"H\n\017ListJobsRequest\022\016\n\006parent\030\001 \001(\t" + + "\022\021\n\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\t\"" + + "Y\n\020ListJobsResponse\022,\n\004jobs\030\001 \003(\0132\036.goog" + + "le.cloud.scheduler.v1.Job\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\035\n\rGetJobRequest\022\014\n\004name\030\001 \001(" + + "\t\"O\n\020CreateJobRequest\022\016\n\006parent\030\001 \001(\t\022+\n" + + "\003job\030\002 \001(\0132\036.google.cloud.scheduler.v1.J" + + "ob\"p\n\020UpdateJobRequest\022+\n\003job\030\001 \001(\0132\036.go" + + "ogle.cloud.scheduler.v1.Job\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\" \n\020" + + "DeleteJobRequest\022\014\n\004name\030\001 \001(\t\"\037\n\017PauseJ" + + "obRequest\022\014\n\004name\030\001 \001(\t\" \n\020ResumeJobRequ" + + "est\022\014\n\004name\030\001 \001(\t\"\035\n\rRunJobRequest\022\014\n\004na" + + "me\030\001 \001(\t2\225\t\n\016CloudScheduler\022\225\001\n\010ListJobs" + + "\022*.google.cloud.scheduler.v1.ListJobsReq" + + "uest\032+.google.cloud.scheduler.v1.ListJob" + + "sResponse\"0\202\323\344\223\002*\022(/v1/{parent=projects/" + + "*/locations/*}/jobs\022\204\001\n\006GetJob\022(.google." + + "cloud.scheduler.v1.GetJobRequest\032\036.googl" + + "e.cloud.scheduler.v1.Job\"0\202\323\344\223\002*\022(/v1/{n" + + "ame=projects/*/locations/*/jobs/*}\022\217\001\n\tC" + + "reateJob\022+.google.cloud.scheduler.v1.Cre" + + "ateJobRequest\032\036.google.cloud.scheduler.v" + + "1.Job\"5\202\323\344\223\002/\"(/v1/{parent=projects/*/lo" + + "cations/*}/jobs:\003job\022\223\001\n\tUpdateJob\022+.goo" + + "gle.cloud.scheduler.v1.UpdateJobRequest\032" + + "\036.google.cloud.scheduler.v1.Job\"9\202\323\344\223\00232" + + ",/v1/{job.name=projects/*/locations/*/jo" + + "bs/*}:\003job\022\202\001\n\tDeleteJob\022+.google.cloud." + + "scheduler.v1.DeleteJobRequest\032\026.google.p" + + "rotobuf.Empty\"0\202\323\344\223\002**(/v1/{name=project" + + "s/*/locations/*/jobs/*}\022\221\001\n\010PauseJob\022*.g" + + "oogle.cloud.scheduler.v1.PauseJobRequest" + + "\032\036.google.cloud.scheduler.v1.Job\"9\202\323\344\223\0023" + + "\"./v1/{name=projects/*/locations/*/jobs/" + + "*}:pause:\001*\022\224\001\n\tResumeJob\022+.google.cloud" + + ".scheduler.v1.ResumeJobRequest\032\036.google." + + "cloud.scheduler.v1.Job\":\202\323\344\223\0024\"//v1/{nam" + + "e=projects/*/locations/*/jobs/*}:resume:" + + "\001*\022\213\001\n\006RunJob\022(.google.cloud.scheduler.v" + + "1.RunJobRequest\032\036.google.cloud.scheduler" + + ".v1.Job\"7\202\323\344\223\0021\",/v1/{name=projects/*/lo" + + "cations/*/jobs/*}:run:\001*B\201\001\n\035com.google." + + "cloud.scheduler.v1B\016SchedulerProtoP\001ZBgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/scheduler/v1;scheduler\242\002\tSCHEDULERb\006pr" + + "oto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.scheduler.v1.JobProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_scheduler_v1_ListJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_scheduler_v1_ListJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_ListJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_scheduler_v1_ListJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_scheduler_v1_ListJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_ListJobsResponse_descriptor, + new java.lang.String[] { + "Jobs", "NextPageToken", + }); + internal_static_google_cloud_scheduler_v1_GetJobRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_scheduler_v1_GetJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_GetJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_scheduler_v1_CreateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_scheduler_v1_CreateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_CreateJobRequest_descriptor, + new java.lang.String[] { + "Parent", "Job", + }); + internal_static_google_cloud_scheduler_v1_UpdateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_scheduler_v1_UpdateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_UpdateJobRequest_descriptor, + new java.lang.String[] { + "Job", "UpdateMask", + }); + internal_static_google_cloud_scheduler_v1_DeleteJobRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_scheduler_v1_DeleteJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_DeleteJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_scheduler_v1_PauseJobRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_scheduler_v1_PauseJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_PauseJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_scheduler_v1_ResumeJobRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_scheduler_v1_ResumeJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_ResumeJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_scheduler_v1_RunJobRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_scheduler_v1_RunJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_RunJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.scheduler.v1.JobProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java new file mode 100644 index 000000000000..be1438bb232c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java @@ -0,0 +1,161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/target.proto + +package com.google.cloud.scheduler.v1; + +public final class TargetProto { + private TargetProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_HttpTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_PubsubTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_scheduler_v1_AppEngineRouting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_scheduler_v1_AppEngineRouting_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/scheduler/v1/target.proto" + + "\022\031google.cloud.scheduler.v1\032\034google/api/" + + "annotations.proto\032\031google/protobuf/any.p" + + "roto\"\330\001\n\nHttpTarget\022\013\n\003uri\030\001 \001(\t\022:\n\013http" + + "_method\030\002 \001(\0162%.google.cloud.scheduler.v" + + "1.HttpMethod\022C\n\007headers\030\003 \003(\01322.google.c" + + "loud.scheduler.v1.HttpTarget.HeadersEntr" + + "y\022\014\n\004body\030\004 \001(\014\032.\n\014HeadersEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\274\002\n\023AppEngineHtt" + + "pTarget\022:\n\013http_method\030\001 \001(\0162%.google.cl" + + "oud.scheduler.v1.HttpMethod\022G\n\022app_engin" + + "e_routing\030\002 \001(\0132+.google.cloud.scheduler" + + ".v1.AppEngineRouting\022\024\n\014relative_uri\030\003 \001" + + "(\t\022L\n\007headers\030\004 \003(\0132;.google.cloud.sched" + + "uler.v1.AppEngineHttpTarget.HeadersEntry" + + "\022\014\n\004body\030\005 \001(\014\032.\n\014HeadersEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\260\001\n\014PubsubTarget\022" + + "\022\n\ntopic_name\030\001 \001(\t\022\014\n\004data\030\003 \001(\014\022K\n\natt" + + "ributes\030\004 \003(\01327.google.cloud.scheduler.v" + + "1.PubsubTarget.AttributesEntry\0321\n\017Attrib" + + "utesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"T\n\020AppEngineRouting\022\017\n\007service\030\001 \001(\t\022\017" + + "\n\007version\030\002 \001(\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004hos" + + "t\030\004 \001(\t*s\n\nHttpMethod\022\033\n\027HTTP_METHOD_UNS" + + "PECIFIED\020\000\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022" + + "\007\n\003PUT\020\004\022\n\n\006DELETE\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIO" + + "NS\020\007Br\n\035com.google.cloud.scheduler.v1B\013T" + + "argetProtoP\001ZBgoogle.golang.org/genproto" + + "/googleapis/cloud/scheduler/v1;scheduler" + + "b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_scheduler_v1_HttpTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor, + new java.lang.String[] { + "Uri", "HttpMethod", "Headers", "Body", + }); + internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_descriptor = + internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_HttpTarget_HeadersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor, + new java.lang.String[] { + "HttpMethod", "AppEngineRouting", "RelativeUri", "Headers", "Body", + }); + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_descriptor = + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_HeadersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_scheduler_v1_PubsubTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor, + new java.lang.String[] { + "TopicName", "Data", "Attributes", + }); + internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_descriptor = + internal_static_google_cloud_scheduler_v1_PubsubTarget_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_PubsubTarget_AttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_scheduler_v1_AppEngineRouting_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_scheduler_v1_AppEngineRouting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_scheduler_v1_AppEngineRouting_descriptor, + new java.lang.String[] { + "Service", "Version", "Instance", "Host", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java new file mode 100644 index 000000000000..d1fea9eb28e6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java @@ -0,0 +1,988 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +/** + * + * + *
+ * Request message for [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+ * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.UpdateJobRequest} + */ +public final class UpdateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.scheduler.v1.UpdateJobRequest) + UpdateJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateJobRequest.newBuilder() to construct. + private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateJobRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.scheduler.v1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage(com.google.cloud.scheduler.v1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.UpdateJobRequest.class, + com.google.cloud.scheduler.v1.UpdateJobRequest.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.scheduler.v1.Job job_; + /** + * + * + *
+   * Required.
+   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Output only fields cannot be modified using UpdateJob.
+   * Any value specified for an output only field will be ignored.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Required.
+   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Output only fields cannot be modified using UpdateJob.
+   * Any value specified for an output only field will be ignored.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public com.google.cloud.scheduler.v1.Job getJob() { + return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Required.
+   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Output only fields cannot be modified using UpdateJob.
+   * Any value specified for an output only field will be ignored.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * A  mask used to specify which fields of the job are being updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * A  mask used to specify which fields of the job are being updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * A  mask used to specify which fields of the job are being updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (job_ != null) { + output.writeMessage(1, getJob()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.scheduler.v1.UpdateJobRequest)) { + return super.equals(obj); + } + com.google.cloud.scheduler.v1.UpdateJobRequest other = + (com.google.cloud.scheduler.v1.UpdateJobRequest) obj; + + boolean result = true; + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.scheduler.v1.UpdateJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
+   * 
+ * + * Protobuf type {@code google.cloud.scheduler.v1.UpdateJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.scheduler.v1.UpdateJobRequest) + com.google.cloud.scheduler.v1.UpdateJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.scheduler.v1.UpdateJobRequest.class, + com.google.cloud.scheduler.v1.UpdateJobRequest.Builder.class); + } + + // Construct using com.google.cloud.scheduler.v1.UpdateJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.scheduler.v1.SchedulerProto + .internal_static_google_cloud_scheduler_v1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.UpdateJobRequest getDefaultInstanceForType() { + return com.google.cloud.scheduler.v1.UpdateJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.UpdateJobRequest build() { + com.google.cloud.scheduler.v1.UpdateJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.UpdateJobRequest buildPartial() { + com.google.cloud.scheduler.v1.UpdateJobRequest result = + new com.google.cloud.scheduler.v1.UpdateJobRequest(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.scheduler.v1.UpdateJobRequest) { + return mergeFrom((com.google.cloud.scheduler.v1.UpdateJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.scheduler.v1.UpdateJobRequest other) { + if (other == com.google.cloud.scheduler.v1.UpdateJobRequest.getDefaultInstance()) return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.scheduler.v1.UpdateJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.scheduler.v1.UpdateJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.scheduler.v1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.Job, + com.google.cloud.scheduler.v1.Job.Builder, + com.google.cloud.scheduler.v1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Required.
+     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Output only fields cannot be modified using UpdateJob.
+     * Any value specified for an output only field will be ignored.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Required.
+     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Output only fields cannot be modified using UpdateJob.
+     * Any value specified for an output only field will be ignored.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public com.google.cloud.scheduler.v1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Output only fields cannot be modified using UpdateJob.
+     * Any value specified for an output only field will be ignored.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public Builder setJob(com.google.cloud.scheduler.v1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Output only fields cannot be modified using UpdateJob.
+     * Any value specified for an output only field will be ignored.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public Builder setJob(com.google.cloud.scheduler.v1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Output only fields cannot be modified using UpdateJob.
+     * Any value specified for an output only field will be ignored.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public Builder mergeJob(com.google.cloud.scheduler.v1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = com.google.cloud.scheduler.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Output only fields cannot be modified using UpdateJob.
+     * Any value specified for an output only field will be ignored.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Output only fields cannot be modified using UpdateJob.
+     * Any value specified for an output only field will be ignored.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public com.google.cloud.scheduler.v1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Output only fields cannot be modified using UpdateJob.
+     * Any value specified for an output only field will be ignored.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Required.
+     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Output only fields cannot be modified using UpdateJob.
+     * Any value specified for an output only field will be ignored.
+     * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.Job, + com.google.cloud.scheduler.v1.Job.Builder, + com.google.cloud.scheduler.v1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.scheduler.v1.Job, + com.google.cloud.scheduler.v1.Job.Builder, + com.google.cloud.scheduler.v1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * A  mask used to specify which fields of the job are being updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * A  mask used to specify which fields of the job are being updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A  mask used to specify which fields of the job are being updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * A  mask used to specify which fields of the job are being updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * A  mask used to specify which fields of the job are being updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * A  mask used to specify which fields of the job are being updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * A  mask used to specify which fields of the job are being updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A  mask used to specify which fields of the job are being updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * A  mask used to specify which fields of the job are being updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.scheduler.v1.UpdateJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.scheduler.v1.UpdateJobRequest) + private static final com.google.cloud.scheduler.v1.UpdateJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.scheduler.v1.UpdateJobRequest(); + } + + public static com.google.cloud.scheduler.v1.UpdateJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.scheduler.v1.UpdateJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequestOrBuilder.java new file mode 100644 index 000000000000..0993850628ad --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequestOrBuilder.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/scheduler/v1/cloudscheduler.proto + +package com.google.cloud.scheduler.v1; + +public interface UpdateJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.scheduler.v1.UpdateJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Output only fields cannot be modified using UpdateJob.
+   * Any value specified for an output only field will be ignored.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + boolean hasJob(); + /** + * + * + *
+   * Required.
+   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Output only fields cannot be modified using UpdateJob.
+   * Any value specified for an output only field will be ignored.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + com.google.cloud.scheduler.v1.Job getJob(); + /** + * + * + *
+   * Required.
+   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Output only fields cannot be modified using UpdateJob.
+   * Any value specified for an output only field will be ignored.
+   * 
+ * + * .google.cloud.scheduler.v1.Job job = 1; + */ + com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder(); + + /** + * + * + *
+   * A  mask used to specify which fields of the job are being updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * A  mask used to specify which fields of the job are being updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * A  mask used to specify which fields of the job are being updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto new file mode 100644 index 000000000000..d12027a72554 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto @@ -0,0 +1,237 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.scheduler.v1; + +import "google/api/annotations.proto"; +import "google/cloud/scheduler/v1/job.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler"; +option java_multiple_files = true; +option java_outer_classname = "SchedulerProto"; +option java_package = "com.google.cloud.scheduler.v1"; +option objc_class_prefix = "SCHEDULER"; + + +// The Cloud Scheduler API allows external entities to reliably +// schedule asynchronous jobs. +service CloudScheduler { + // Lists jobs. + rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/jobs" + }; + } + + // Gets a job. + rpc GetJob(GetJobRequest) returns (Job) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/jobs/*}" + }; + } + + // Creates a job. + rpc CreateJob(CreateJobRequest) returns (Job) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/jobs" + body: "job" + }; + } + + // Updates a job. + // + // If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + // not exist, `NOT_FOUND` is returned. + // + // If UpdateJob does not successfully return, it is possible for the + // job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may + // not be executed. If this happens, retry the UpdateJob request + // until a successful response is received. + rpc UpdateJob(UpdateJobRequest) returns (Job) { + option (google.api.http) = { + patch: "/v1/{job.name=projects/*/locations/*/jobs/*}" + body: "job" + }; + } + + // Deletes a job. + rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/jobs/*}" + }; + } + + // Pauses a job. + // + // If a job is paused then the system will stop executing the job + // until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The + // state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it + // will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] + // to be paused. + rpc PauseJob(PauseJobRequest) returns (Job) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/jobs/*}:pause" + body: "*" + }; + } + + // Resume a job. + // + // This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The + // state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it + // will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + // [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + rpc ResumeJob(ResumeJobRequest) returns (Job) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/jobs/*}:resume" + body: "*" + }; + } + + // Forces a job to run now. + // + // When this method is called, Cloud Scheduler will dispatch the job, even + // if the job is already running. + rpc RunJob(RunJobRequest) returns (Job) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/jobs/*}:run" + body: "*" + }; + } +} + +// Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. +message ListJobsRequest { + // Required. + // + // The location name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID`. + string parent = 1; + + // Requested page size. + // + // The maximum page size is 500. If unspecified, the page size will + // be the maximum. Fewer jobs than requested might be returned, + // even if more jobs exist; use next_page_token to determine if more + // jobs exist. + int32 page_size = 5; + + // A token identifying a page of results the server will return. To + // request the first page results, page_token must be empty. To + // request the next page of results, page_token must be the value of + // [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from + // the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to + // switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or + // [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages. + string page_token = 6; +} + +// Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. +message ListJobsResponse { + // The list of jobs. + repeated Job jobs = 1; + + // A token to retrieve next page of results. Pass this value in the + // [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to + // [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results. + // If this is empty it indicates that there are no more results + // through which to paginate. + // + // The page token is valid for only 2 hours. + string next_page_token = 2; +} + +// Request message for [GetJob][google.cloud.scheduler.v1.CloudScheduler.GetJob]. +message GetJobRequest { + // Required. + // + // The job name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + string name = 1; +} + +// Request message for [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob]. +message CreateJobRequest { + // Required. + // + // The location name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID`. + string parent = 1; + + // Required. + // + // The job to add. The user can optionally specify a name for the + // job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an + // existing job. If a name is not specified then the system will + // generate a random unique name that will be returned + // ([name][google.cloud.scheduler.v1.Job.name]) in the response. + Job job = 2; +} + +// Request message for [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. +message UpdateJobRequest { + // Required. + // + // The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + // + // Output only fields cannot be modified using UpdateJob. + // Any value specified for an output only field will be ignored. + Job job = 1; + + // A mask used to specify which fields of the job are being updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for deleting a job using +// [DeleteJob][google.cloud.scheduler.v1.CloudScheduler.DeleteJob]. +message DeleteJobRequest { + // Required. + // + // The job name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + string name = 1; +} + +// Request message for [PauseJob][google.cloud.scheduler.v1.CloudScheduler.PauseJob]. +message PauseJobRequest { + // Required. + // + // The job name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + string name = 1; +} + +// Request message for [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. +message ResumeJobRequest { + // Required. + // + // The job name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + string name = 1; +} + +// Request message for forcing a job to run now using +// [RunJob][google.cloud.scheduler.v1.CloudScheduler.RunJob]. +message RunJobRequest { + // Required. + // + // The job name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + string name = 1; +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto new file mode 100644 index 000000000000..8cf36c4d2c31 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto @@ -0,0 +1,220 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.scheduler.v1; + +import "google/api/annotations.proto"; +import "google/cloud/scheduler/v1/target.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler"; +option java_multiple_files = true; +option java_outer_classname = "JobProto"; +option java_package = "com.google.cloud.scheduler.v1"; + + +// Configuration for a job. +// The maximum allowed size for a job is 100KB. +message Job { + // State of the job. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // The job is executing normally. + ENABLED = 1; + + // The job is paused by the user. It will not execute. A user can + // intentionally pause the job using + // [PauseJobRequest][google.cloud.scheduler.v1.PauseJobRequest]. + PAUSED = 2; + + // The job is disabled by the system due to error. The user + // cannot directly set a job to be disabled. + DISABLED = 3; + + // The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] + // operation. To recover a job from this state, retry + // [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] until a successful response is received. + UPDATE_FAILED = 4; + } + + // Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after + // which it becomes output only. + // + // The job name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + // + // * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + // hyphens (-), colons (:), or periods (.). + // For more information, see + // [Identifying + // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + // * `LOCATION_ID` is the canonical ID for the job's location. + // The list of available locations can be obtained by calling + // [ListLocations][google.cloud.location.Locations.ListLocations]. + // For more information, see https://cloud.google.com/about/locations/. + // * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + // hyphens (-), or underscores (_). The maximum length is 500 characters. + string name = 1; + + // Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or + // [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + // + // A human-readable description for the job. This string must not contain + // more than 500 characters. + string description = 2; + + // Required. + // + // Delivery settings containing destination and parameters. + oneof target { + // Pub/Sub target. + PubsubTarget pubsub_target = 4; + + // App Engine HTTP target. + AppEngineHttpTarget app_engine_http_target = 5; + + // HTTP target. + HttpTarget http_target = 6; + } + + // Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. + // + // Describes the schedule on which the job will be executed. + // + // The schedule can be either of the following types: + // + // * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) + // * English-like + // [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + // + // As a general rule, execution `n + 1` of a job will not begin + // until execution `n` has finished. Cloud Scheduler will never + // allow two simultaneously outstanding executions. For example, + // this implies that if the `n+1`th execution is scheduled to run at + // 16:00 but the `n`th execution takes until 16:15, the `n+1`th + // execution will not start until `16:15`. + // A scheduled start time will be delayed if the previous + // execution has not ended when its scheduled time occurs. + // + // If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, + // the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] + // times, with exponential backoff, until the next scheduled start + // time. + string schedule = 20; + + // Specifies the time zone to be used in interpreting + // [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time + // zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). + // + // Note that some time zones include a provision for + // daylight savings time. The rules for daylight saving time are + // determined by the chosen tz. For UTC use the string "utc". If a + // time zone is not specified, the default will be in UTC (also known + // as GMT). + string time_zone = 21; + + // Output only. The creation time of the job. + google.protobuf.Timestamp user_update_time = 9; + + // Output only. State of the job. + State state = 10; + + // Output only. The response from the target for the last attempted execution. + google.rpc.Status status = 11; + + // Output only. The next time the job is scheduled. Note that this may be a + // retry of a previously failed attempt or the next execution time + // according to the schedule. + google.protobuf.Timestamp schedule_time = 17; + + // Output only. The time the last job attempt started. + google.protobuf.Timestamp last_attempt_time = 18; + + // Settings that determine the retry behavior. + RetryConfig retry_config = 19; +} + +// Settings that determine the retry behavior. +// +// By default, if a job does not complete successfully (meaning that +// an acknowledgement is not received from the handler, then it will be retried +// with exponential backoff according to the settings in [RetryConfig][google.cloud.scheduler.v1.RetryConfig]. +message RetryConfig { + // The number of attempts that the system will make to run a job using the + // exponential backoff procedure described by + // [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings]. + // + // The default value of retry_count is zero. + // + // If retry_count is zero, a job attempt will *not* be retried if + // it fails. Instead the Cloud Scheduler system will wait for the + // next scheduled execution time. + // + // If retry_count is set to a non-zero number then Cloud Scheduler + // will retry failed attempts, using exponential backoff, + // retry_count times, or until the next scheduled execution time, + // whichever comes first. + // + // Values greater than 5 and negative values are not allowed. + int32 retry_count = 1; + + // The time limit for retrying a failed job, measured from time when an + // execution was first attempted. If specified with + // [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both + // limits are reached. + // + // The default value for max_retry_duration is zero, which means retry + // duration is unlimited. + google.protobuf.Duration max_retry_duration = 2; + + // The minimum amount of time to wait before retrying a job after + // it fails. + // + // The default value of this field is 5 seconds. + google.protobuf.Duration min_backoff_duration = 3; + + // The maximum amount of time to wait before retrying a job after + // it fails. + // + // The default value of this field is 1 hour. + google.protobuf.Duration max_backoff_duration = 4; + + // The time between retries will double `max_doublings` times. + // + // A job's retry interval starts at + // [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles + // `max_doublings` times, then increases linearly, and finally + // retries retries at intervals of + // [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to + // [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. + // + // For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is + // 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and + // `max_doublings` is 3, then the a job will first be retried in 10s. The + // retry interval will double three times, and then increase linearly by + // 2^3 * 10s. Finally, the job will retry at intervals of + // [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has + // been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the + // requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... + // + // The default value of this field is 5. + int32 max_doublings = 5; +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto new file mode 100644 index 000000000000..56de3b737e58 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto @@ -0,0 +1,291 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.scheduler.v1; + +import "google/api/annotations.proto"; +import "google/protobuf/any.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler"; +option java_multiple_files = true; +option java_outer_classname = "TargetProto"; +option java_package = "com.google.cloud.scheduler.v1"; + + +// Http target. The job will be pushed to the job handler by means of +// an HTTP request via an [http_method][google.cloud.scheduler.v1.HttpTarget.http_method] such as HTTP +// POST, HTTP GET, etc. The job is acknowledged by means of an HTTP +// response code in the range [200 - 299]. A failure to receive a response +// constitutes a failed execution. For a redirected request, the response +// returned by the redirected request is considered. +message HttpTarget { + // Required. + // + // The full URI path that the request will be sent to. This string + // must begin with either "http://" or "https://". Some examples of + // valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: + // `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will + // encode some characters for safety and compatibility. The maximum allowed + // URL length is 2083 characters after encoding. + string uri = 1; + + // Which HTTP method to use for the request. + HttpMethod http_method = 2; + + // The user can specify HTTP request headers to send with the job's + // HTTP request. This map contains the header field names and + // values. Repeated headers are not supported, but a header value can + // contain commas. These headers represent a subset of the headers + // that will accompany the job's HTTP request. Some HTTP request + // headers will be ignored or replaced. A partial list of headers that + // will be ignored or replaced is below: + // - Host: This will be computed by Cloud Scheduler and derived from + // [uri][google.cloud.scheduler.v1.HttpTarget.uri]. + // * `Content-Length`: This will be computed by Cloud Scheduler. + // * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. + // * `X-Google-*`: Google internal use only. + // * `X-AppEngine-*`: Google internal use only. + // + // The total size of headers must be less than 80KB. + map headers = 3; + + // HTTP request body. A request body is allowed only if the HTTP + // method is POST, PUT, or PATCH. It is an error to set body on a job with an + // incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + bytes body = 4; +} + +// App Engine target. The job will be pushed to a job handler by means +// of an HTTP request via an [http_method][google.cloud.scheduler.v1.AppEngineHttpTarget.http_method] such +// as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an +// HTTP response code in the range [200 - 299]. Error 503 is +// considered an App Engine system error instead of an application +// error. Requests returning error 503 will be retried regardless of +// retry configuration and not counted against retry counts. Any other +// response code, or a failure to receive a response before the +// deadline, constitutes a failed attempt. +message AppEngineHttpTarget { + // The HTTP method to use for the request. PATCH and OPTIONS are not + // permitted. + HttpMethod http_method = 1; + + // App Engine Routing setting for the job. + AppEngineRouting app_engine_routing = 2; + + // The relative URI. + // + // The relative URL must begin with "/" and must be a valid HTTP relative URL. + // It can contain a path, query string arguments, and `#` fragments. + // If the relative URL is empty, then the root path "/" will be used. + // No spaces are allowed, and the maximum length allowed is 2083 characters. + string relative_uri = 3; + + // HTTP request headers. + // + // This map contains the header field names and values. Headers can be set + // when the job is created. + // + // Cloud Scheduler sets some headers to default values: + // + // * `User-Agent`: By default, this header is + // `"AppEngine-Google; (+http://code.google.com/appengine)"`. + // This header can be modified, but Cloud Scheduler will append + // `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + // modified `User-Agent`. + // * `X-CloudScheduler`: This header will be set to true. + // + // If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets + // the following headers: + // + // * `Content-Type`: By default, the `Content-Type` header is set to + // `"application/octet-stream"`. The default can be overridden by explictly + // setting `Content-Type` to a particular media type when the job is + // created. + // For example, `Content-Type` can be set to `"application/json"`. + // * `Content-Length`: This is computed by Cloud Scheduler. This value is + // output only. It cannot be changed. + // + // The headers below are output only. They cannot be set or overridden: + // + // * `X-Google-*`: For Google internal use only. + // * `X-AppEngine-*`: For Google internal use only. + // + // In addition, some App Engine headers, which contain + // job-specific information, are also be sent to the job handler. + map headers = 4; + + // Body. + // + // HTTP request body. A request body is allowed only if the HTTP method is + // POST or PUT. It will result in invalid argument error to set a body on a + // job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod]. + bytes body = 5; +} + +// Pub/Sub target. The job will be delivered by publishing a message to +// the given Pub/Sub topic. +message PubsubTarget { + // Required. + // + // The name of the Cloud Pub/Sub topic to which messages will + // be published when a job is delivered. The topic name must be in the + // same format as required by PubSub's + // [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), + // for example `projects/PROJECT_ID/topics/TOPIC_ID`. + // + // The topic must be in the same project as the Cloud Scheduler job. + string topic_name = 1; + + // The message payload for PubsubMessage. + // + // Pubsub message must contain either non-empty data, or at least one + // attribute. + bytes data = 3; + + // Attributes for PubsubMessage. + // + // Pubsub message must contain either non-empty data, or at least one + // attribute. + map attributes = 4; +} + +// App Engine Routing. +// +// For more information about services, versions, and instances see +// [An Overview of App +// Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), +// [Microservices Architecture on Google App +// Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), +// [App Engine Standard request +// routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), +// and [App Engine Flex request +// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). +message AppEngineRouting { + // App service. + // + // By default, the job is sent to the service which is the default + // service when the job is attempted. + string service = 1; + + // App version. + // + // By default, the job is sent to the version which is the default + // version when the job is attempted. + string version = 2; + + // App instance. + // + // By default, the job is sent to an instance which is available when + // the job is attempted. + // + // Requests can only be sent to a specific instance if + // [manual scaling is used in App Engine + // Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + // App Engine Flex does not support instances. For more information, see + // [App Engine Standard request + // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + // and [App Engine Flex request + // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + string instance = 3; + + // Output only. The host that the job is sent to. + // + // For more information about how App Engine requests are routed, see + // [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + // + // The host is constructed as: + // + // + // * `host = [application_domain_name]`
+ // `| [service] + '.' + [application_domain_name]`
+ // `| [version] + '.' + [application_domain_name]`
+ // `| [version_dot_service]+ '.' + [application_domain_name]`
+ // `| [instance] + '.' + [application_domain_name]`
+ // `| [instance_dot_service] + '.' + [application_domain_name]`
+ // `| [instance_dot_version] + '.' + [application_domain_name]`
+ // `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` + // + // * `application_domain_name` = The domain name of the app, for + // example .appspot.com, which is associated with the + // job's project ID. + // + // * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service] + // + // * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version] + // + // * `version_dot_service =` + // [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + // [service][google.cloud.scheduler.v1.AppEngineRouting.service] + // + // * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] + // + // * `instance_dot_service =` + // [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + // [service][google.cloud.scheduler.v1.AppEngineRouting.service] + // + // * `instance_dot_version =` + // [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + // [version][google.cloud.scheduler.v1.AppEngineRouting.version] + // + // * `instance_dot_version_dot_service =` + // [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +` + // [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +` + // [service][google.cloud.scheduler.v1.AppEngineRouting.service] + // + // + // If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent + // to the service which is the default service when the job is attempted. + // + // If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent + // to the version which is the default version when the job is attempted. + // + // If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be + // sent to an instance which is available when the job is attempted. + // + // If [service][google.cloud.scheduler.v1.AppEngineRouting.service], + // [version][google.cloud.scheduler.v1.AppEngineRouting.version], or + // [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent + // to the default version of the default service when the job is attempted. + string host = 4; +} + +// The HTTP method used to execute the job. +enum HttpMethod { + // HTTP method unspecified. Defaults to POST. + HTTP_METHOD_UNSPECIFIED = 0; + + // HTTP POST + POST = 1; + + // HTTP GET + GET = 2; + + // HTTP HEAD + HEAD = 3; + + // HTTP PUT + PUT = 4; + + // HTTP DELETE + DELETE = 5; + + // HTTP PATCH + PATCH = 6; + + // HTTP OPTIONS + OPTIONS = 7; +} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml index a48a7d91a801..0b7ef5fd48a2 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -5,7 +5,7 @@ proto-google-cloud-scheduler-v1beta1 0.47.1-SNAPSHOT proto-google-cloud-scheduler-v1beta1 - PROTO library for proto-google-cloud-redis-v1beta1 + PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index 709d0a150f31..fa3e554041bb 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -600,6 +600,11 @@ google-cloud-resourcemanager 0.82.1-alpha-SNAPSHOT
+ + com.google.cloud + google-cloud-scheduler + 0.82.1-alpha-SNAPSHOT + com.google.api.grpc proto-google-cloud-scheduler-v1beta1 @@ -616,6 +621,16 @@ 0.82.1-alpha-SNAPSHOT + com.google.api.grpc + grpc-google-cloud-scheduler-v1 + 0.47.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-scheduler-v1 + 0.47.1-SNAPSHOT + + com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 0.47.1-SNAPSHOT diff --git a/google-cloud-clients/google-cloud-scheduler/pom.xml b/google-cloud-clients/google-cloud-scheduler/pom.xml index 9508d1a3c2b7..c9786eb16c1d 100644 --- a/google-cloud-clients/google-cloud-scheduler/pom.xml +++ b/google-cloud-clients/google-cloud-scheduler/pom.xml @@ -34,6 +34,14 @@ com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 + + com.google.api.grpc + proto-google-cloud-scheduler-v1 + + + com.google.api.grpc + grpc-google-cloud-scheduler-v1 + io.grpc grpc-netty-shaded diff --git a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java new file mode 100644 index 000000000000..2cab81ae12c0 --- /dev/null +++ b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java @@ -0,0 +1,1121 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.scheduler.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.scheduler.v1.stub.CloudSchedulerStub; +import com.google.cloud.scheduler.v1.stub.CloudSchedulerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: The Cloud Scheduler API allows external entities to reliably schedule + * asynchronous jobs. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ *   Job response = cloudSchedulerClient.getJob(name);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the cloudSchedulerClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of CloudSchedulerSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * CloudSchedulerSettings cloudSchedulerSettings =
+ *     CloudSchedulerSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * CloudSchedulerClient cloudSchedulerClient =
+ *     CloudSchedulerClient.create(cloudSchedulerSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * CloudSchedulerSettings cloudSchedulerSettings =
+ *     CloudSchedulerSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CloudSchedulerClient cloudSchedulerClient =
+ *     CloudSchedulerClient.create(cloudSchedulerSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CloudSchedulerClient implements BackgroundResource { + private final CloudSchedulerSettings settings; + private final CloudSchedulerStub stub; + + /** Constructs an instance of CloudSchedulerClient with default settings. */ + public static final CloudSchedulerClient create() throws IOException { + return create(CloudSchedulerSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CloudSchedulerClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CloudSchedulerClient create(CloudSchedulerSettings settings) + throws IOException { + return new CloudSchedulerClient(settings); + } + + /** + * Constructs an instance of CloudSchedulerClient, using the given stub for making calls. This is + * for advanced usage - prefer to use CloudSchedulerSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final CloudSchedulerClient create(CloudSchedulerStub stub) { + return new CloudSchedulerClient(stub); + } + + /** + * Constructs an instance of CloudSchedulerClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected CloudSchedulerClient(CloudSchedulerSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CloudSchedulerStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected CloudSchedulerClient(CloudSchedulerStub stub) { + this.settings = null; + this.stub = stub; + } + + public final CloudSchedulerSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CloudSchedulerStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Job element : cloudSchedulerClient.listJobs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(LocationName parent) { + ListJobsRequest request = + ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Job element : cloudSchedulerClient.listJobs(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(String parent) { + ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent).build(); + return listJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ListJobsRequest request = ListJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (Job element : cloudSchedulerClient.listJobs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(ListJobsRequest request) { + return listJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ListJobsRequest request = ListJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListJobsPagedResponse> future = cloudSchedulerClient.listJobsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Job element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listJobsPagedCallable() { + return stub.listJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ListJobsRequest request = ListJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListJobsResponse response = cloudSchedulerClient.listJobsCallable().call(request);
+   *     for (Job element : response.getJobsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listJobsCallable() { + return stub.listJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Job response = cloudSchedulerClient.getJob(name);
+   * }
+   * 
+ * + * @param name Required. + *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(JobName name) { + + GetJobRequest request = + GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Job response = cloudSchedulerClient.getJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(String name) { + + GetJobRequest request = GetJobRequest.newBuilder().setName(name).build(); + return getJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   GetJobRequest request = GetJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Job response = cloudSchedulerClient.getJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(GetJobRequest request) { + return getJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   GetJobRequest request = GetJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Job> future = cloudSchedulerClient.getJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getJobCallable() { + return stub.getJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Job job = Job.newBuilder().build();
+   *   Job response = cloudSchedulerClient.createJob(parent, job);
+   * }
+   * 
+ * + * @param parent Required. + *

The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @param job Required. + *

The job to add. The user can optionally specify a name for the job in + * [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] + * cannot be the same as an existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(LocationName parent, Job job) { + + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setJob(job) + .build(); + return createJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Job job = Job.newBuilder().build();
+   *   Job response = cloudSchedulerClient.createJob(parent.toString(), job);
+   * }
+   * 
+ * + * @param parent Required. + *

The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @param job Required. + *

The job to add. The user can optionally specify a name for the job in + * [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] + * cannot be the same as an existing job. If a name is not specified then the system will + * generate a random unique name that will be returned + * ([name][google.cloud.scheduler.v1.Job.name]) in the response. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(String parent, Job job) { + + CreateJobRequest request = CreateJobRequest.newBuilder().setParent(parent).setJob(job).build(); + return createJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Job job = Job.newBuilder().build();
+   *   CreateJobRequest request = CreateJobRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setJob(job)
+   *     .build();
+   *   Job response = cloudSchedulerClient.createJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(CreateJobRequest request) { + return createJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Job job = Job.newBuilder().build();
+   *   CreateJobRequest request = CreateJobRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setJob(job)
+   *     .build();
+   *   ApiFuture<Job> future = cloudSchedulerClient.createJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createJobCallable() { + return stub.createJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a job. + * + *

If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + * not exist, `NOT_FOUND` is returned. + * + *

If UpdateJob does not successfully return, it is possible for the job to be in an + * [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in + * this state may not be executed. If this happens, retry the UpdateJob request until a successful + * response is received. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   Job job = Job.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Job response = cloudSchedulerClient.updateJob(job, updateMask);
+   * }
+   * 
+ * + * @param job Required. + *

The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + *

Output only fields cannot be modified using UpdateJob. Any value specified for an output + * only field will be ignored. + * @param updateMask A mask used to specify which fields of the job are being updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job updateJob(Job job, FieldMask updateMask) { + + UpdateJobRequest request = + UpdateJobRequest.newBuilder().setJob(job).setUpdateMask(updateMask).build(); + return updateJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a job. + * + *

If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + * not exist, `NOT_FOUND` is returned. + * + *

If UpdateJob does not successfully return, it is possible for the job to be in an + * [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in + * this state may not be executed. If this happens, retry the UpdateJob request until a successful + * response is received. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   Job job = Job.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   UpdateJobRequest request = UpdateJobRequest.newBuilder()
+   *     .setJob(job)
+   *     .setUpdateMask(updateMask)
+   *     .build();
+   *   Job response = cloudSchedulerClient.updateJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job updateJob(UpdateJobRequest request) { + return updateJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a job. + * + *

If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does + * not exist, `NOT_FOUND` is returned. + * + *

If UpdateJob does not successfully return, it is possible for the job to be in an + * [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in + * this state may not be executed. If this happens, retry the UpdateJob request until a successful + * response is received. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   Job job = Job.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   UpdateJobRequest request = UpdateJobRequest.newBuilder()
+   *     .setJob(job)
+   *     .setUpdateMask(updateMask)
+   *     .build();
+   *   ApiFuture<Job> future = cloudSchedulerClient.updateJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateJobCallable() { + return stub.updateJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   cloudSchedulerClient.deleteJob(name);
+   * }
+   * 
+ * + * @param name Required. + *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(JobName name) { + + DeleteJobRequest request = + DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   cloudSchedulerClient.deleteJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(String name) { + + DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name).build(); + deleteJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   cloudSchedulerClient.deleteJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(DeleteJobRequest request) { + deleteJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a job. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = cloudSchedulerClient.deleteJobCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteJobCallable() { + return stub.deleteJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pauses a job. + * + *

If a job is paused then the system will stop executing the job until it is re-enabled via + * [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored + * in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Job response = cloudSchedulerClient.pauseJob(name);
+   * }
+   * 
+ * + * @param name Required. + *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job pauseJob(JobName name) { + + PauseJobRequest request = + PauseJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return pauseJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pauses a job. + * + *

If a job is paused then the system will stop executing the job until it is re-enabled via + * [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored + * in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Job response = cloudSchedulerClient.pauseJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job pauseJob(String name) { + + PauseJobRequest request = PauseJobRequest.newBuilder().setName(name).build(); + return pauseJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pauses a job. + * + *

If a job is paused then the system will stop executing the job until it is re-enabled via + * [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored + * in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   PauseJobRequest request = PauseJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Job response = cloudSchedulerClient.pauseJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job pauseJob(PauseJobRequest request) { + return pauseJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pauses a job. + * + *

If a job is paused then the system will stop executing the job until it is re-enabled via + * [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored + * in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   PauseJobRequest request = PauseJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Job> future = cloudSchedulerClient.pauseJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable pauseJobCallable() { + return stub.pauseJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Resume a job. + * + *

This method reenables a job after it has been + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in + * [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Job response = cloudSchedulerClient.resumeJob(name);
+   * }
+   * 
+ * + * @param name Required. + *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job resumeJob(JobName name) { + + ResumeJobRequest request = + ResumeJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return resumeJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Resume a job. + * + *

This method reenables a job after it has been + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in + * [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Job response = cloudSchedulerClient.resumeJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job resumeJob(String name) { + + ResumeJobRequest request = ResumeJobRequest.newBuilder().setName(name).build(); + return resumeJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Resume a job. + * + *

This method reenables a job after it has been + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in + * [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   ResumeJobRequest request = ResumeJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Job response = cloudSchedulerClient.resumeJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job resumeJob(ResumeJobRequest request) { + return resumeJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Resume a job. + * + *

This method reenables a job after it has been + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in + * [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to + * [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in + * [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   ResumeJobRequest request = ResumeJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Job> future = cloudSchedulerClient.resumeJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable resumeJobCallable() { + return stub.resumeJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Forces a job to run now. + * + *

When this method is called, Cloud Scheduler will dispatch the job, even if the job is + * already running. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Job response = cloudSchedulerClient.runJob(name);
+   * }
+   * 
+ * + * @param name Required. + *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job runJob(JobName name) { + + RunJobRequest request = + RunJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return runJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Forces a job to run now. + * + *

When this method is called, Cloud Scheduler will dispatch the job, even if the job is + * already running. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Job response = cloudSchedulerClient.runJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job runJob(String name) { + + RunJobRequest request = RunJobRequest.newBuilder().setName(name).build(); + return runJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Forces a job to run now. + * + *

When this method is called, Cloud Scheduler will dispatch the job, even if the job is + * already running. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   RunJobRequest request = RunJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Job response = cloudSchedulerClient.runJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job runJob(RunJobRequest request) { + return runJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Forces a job to run now. + * + *

When this method is called, Cloud Scheduler will dispatch the job, even if the job is + * already running. + * + *

Sample code: + * + *


+   * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   RunJobRequest request = RunJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Job> future = cloudSchedulerClient.runJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable runJobCallable() { + return stub.runJobCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListJobsPagedResponse + extends AbstractPagedListResponse< + ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListJobsPagedResponse apply(ListJobsPage input) { + return new ListJobsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListJobsPagedResponse(ListJobsPage page) { + super(page, ListJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListJobsPage + extends AbstractPage { + + private ListJobsPage( + PageContext context, ListJobsResponse response) { + super(context, response); + } + + private static ListJobsPage createEmptyPage() { + return new ListJobsPage(null, null); + } + + @Override + protected ListJobsPage createPage( + PageContext context, ListJobsResponse response) { + return new ListJobsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListJobsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { + + private ListJobsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListJobsFixedSizeCollection createEmptyCollection() { + return new ListJobsFixedSizeCollection(null, 0); + } + + @Override + protected ListJobsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListJobsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerSettings.java b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerSettings.java new file mode 100644 index 000000000000..8bcc209447f2 --- /dev/null +++ b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerSettings.java @@ -0,0 +1,251 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.scheduler.v1; + +import static com.google.cloud.scheduler.v1.CloudSchedulerClient.ListJobsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.scheduler.v1.stub.CloudSchedulerStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CloudSchedulerClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (cloudscheduler.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getJob to 30 seconds: + * + *

+ * 
+ * CloudSchedulerSettings.Builder cloudSchedulerSettingsBuilder =
+ *     CloudSchedulerSettings.newBuilder();
+ * cloudSchedulerSettingsBuilder.getJobSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CloudSchedulerSettings cloudSchedulerSettings = cloudSchedulerSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CloudSchedulerSettings extends ClientSettings { + /** Returns the object with the settings used for calls to listJobs. */ + public PagedCallSettings + listJobsSettings() { + return ((CloudSchedulerStubSettings) getStubSettings()).listJobsSettings(); + } + + /** Returns the object with the settings used for calls to getJob. */ + public UnaryCallSettings getJobSettings() { + return ((CloudSchedulerStubSettings) getStubSettings()).getJobSettings(); + } + + /** Returns the object with the settings used for calls to createJob. */ + public UnaryCallSettings createJobSettings() { + return ((CloudSchedulerStubSettings) getStubSettings()).createJobSettings(); + } + + /** Returns the object with the settings used for calls to updateJob. */ + public UnaryCallSettings updateJobSettings() { + return ((CloudSchedulerStubSettings) getStubSettings()).updateJobSettings(); + } + + /** Returns the object with the settings used for calls to deleteJob. */ + public UnaryCallSettings deleteJobSettings() { + return ((CloudSchedulerStubSettings) getStubSettings()).deleteJobSettings(); + } + + /** Returns the object with the settings used for calls to pauseJob. */ + public UnaryCallSettings pauseJobSettings() { + return ((CloudSchedulerStubSettings) getStubSettings()).pauseJobSettings(); + } + + /** Returns the object with the settings used for calls to resumeJob. */ + public UnaryCallSettings resumeJobSettings() { + return ((CloudSchedulerStubSettings) getStubSettings()).resumeJobSettings(); + } + + /** Returns the object with the settings used for calls to runJob. */ + public UnaryCallSettings runJobSettings() { + return ((CloudSchedulerStubSettings) getStubSettings()).runJobSettings(); + } + + public static final CloudSchedulerSettings create(CloudSchedulerStubSettings stub) + throws IOException { + return new CloudSchedulerSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CloudSchedulerStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CloudSchedulerStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CloudSchedulerStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CloudSchedulerStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return CloudSchedulerStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CloudSchedulerStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CloudSchedulerStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CloudSchedulerSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CloudSchedulerSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(CloudSchedulerStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(CloudSchedulerStubSettings.newBuilder()); + } + + protected Builder(CloudSchedulerSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CloudSchedulerStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public CloudSchedulerStubSettings.Builder getStubSettingsBuilder() { + return ((CloudSchedulerStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listJobs. */ + public PagedCallSettings.Builder + listJobsSettings() { + return getStubSettingsBuilder().listJobsSettings(); + } + + /** Returns the builder for the settings used for calls to getJob. */ + public UnaryCallSettings.Builder getJobSettings() { + return getStubSettingsBuilder().getJobSettings(); + } + + /** Returns the builder for the settings used for calls to createJob. */ + public UnaryCallSettings.Builder createJobSettings() { + return getStubSettingsBuilder().createJobSettings(); + } + + /** Returns the builder for the settings used for calls to updateJob. */ + public UnaryCallSettings.Builder updateJobSettings() { + return getStubSettingsBuilder().updateJobSettings(); + } + + /** Returns the builder for the settings used for calls to deleteJob. */ + public UnaryCallSettings.Builder deleteJobSettings() { + return getStubSettingsBuilder().deleteJobSettings(); + } + + /** Returns the builder for the settings used for calls to pauseJob. */ + public UnaryCallSettings.Builder pauseJobSettings() { + return getStubSettingsBuilder().pauseJobSettings(); + } + + /** Returns the builder for the settings used for calls to resumeJob. */ + public UnaryCallSettings.Builder resumeJobSettings() { + return getStubSettingsBuilder().resumeJobSettings(); + } + + /** Returns the builder for the settings used for calls to runJob. */ + public UnaryCallSettings.Builder runJobSettings() { + return getStubSettingsBuilder().runJobSettings(); + } + + @Override + public CloudSchedulerSettings build() throws IOException { + return new CloudSchedulerSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/package-info.java b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/package-info.java new file mode 100644 index 000000000000..de3f93af199b --- /dev/null +++ b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/package-info.java @@ -0,0 +1,38 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Scheduler API. + * + *

The interfaces provided are listed below, along with usage samples. + * + *

==================== CloudSchedulerClient ==================== + * + *

Service Description: The Cloud Scheduler API allows external entities to reliably schedule + * asynchronous jobs. + * + *

Sample for CloudSchedulerClient: + * + *

+ * 
+ * try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) {
+ *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ *   Job response = cloudSchedulerClient.getJob(name);
+ * }
+ * 
+ * 
+ */ +package com.google.cloud.scheduler.v1; diff --git a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStub.java b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStub.java new file mode 100644 index 000000000000..d1f1dcd5cb1a --- /dev/null +++ b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStub.java @@ -0,0 +1,84 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.scheduler.v1.stub; + +import static com.google.cloud.scheduler.v1.CloudSchedulerClient.ListJobsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.scheduler.v1.CreateJobRequest; +import com.google.cloud.scheduler.v1.DeleteJobRequest; +import com.google.cloud.scheduler.v1.GetJobRequest; +import com.google.cloud.scheduler.v1.Job; +import com.google.cloud.scheduler.v1.ListJobsRequest; +import com.google.cloud.scheduler.v1.ListJobsResponse; +import com.google.cloud.scheduler.v1.PauseJobRequest; +import com.google.cloud.scheduler.v1.ResumeJobRequest; +import com.google.cloud.scheduler.v1.RunJobRequest; +import com.google.cloud.scheduler.v1.UpdateJobRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Scheduler API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class CloudSchedulerStub implements BackgroundResource { + + public UnaryCallable listJobsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listJobsPagedCallable()"); + } + + public UnaryCallable listJobsCallable() { + throw new UnsupportedOperationException("Not implemented: listJobsCallable()"); + } + + public UnaryCallable getJobCallable() { + throw new UnsupportedOperationException("Not implemented: getJobCallable()"); + } + + public UnaryCallable createJobCallable() { + throw new UnsupportedOperationException("Not implemented: createJobCallable()"); + } + + public UnaryCallable updateJobCallable() { + throw new UnsupportedOperationException("Not implemented: updateJobCallable()"); + } + + public UnaryCallable deleteJobCallable() { + throw new UnsupportedOperationException("Not implemented: deleteJobCallable()"); + } + + public UnaryCallable pauseJobCallable() { + throw new UnsupportedOperationException("Not implemented: pauseJobCallable()"); + } + + public UnaryCallable resumeJobCallable() { + throw new UnsupportedOperationException("Not implemented: resumeJobCallable()"); + } + + public UnaryCallable runJobCallable() { + throw new UnsupportedOperationException("Not implemented: runJobCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java new file mode 100644 index 000000000000..7e6f73f778b4 --- /dev/null +++ b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java @@ -0,0 +1,503 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.scheduler.v1.stub; + +import static com.google.cloud.scheduler.v1.CloudSchedulerClient.ListJobsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.scheduler.v1.CreateJobRequest; +import com.google.cloud.scheduler.v1.DeleteJobRequest; +import com.google.cloud.scheduler.v1.GetJobRequest; +import com.google.cloud.scheduler.v1.Job; +import com.google.cloud.scheduler.v1.ListJobsRequest; +import com.google.cloud.scheduler.v1.ListJobsResponse; +import com.google.cloud.scheduler.v1.PauseJobRequest; +import com.google.cloud.scheduler.v1.ResumeJobRequest; +import com.google.cloud.scheduler.v1.RunJobRequest; +import com.google.cloud.scheduler.v1.UpdateJobRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CloudSchedulerStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (cloudscheduler.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getJob to 30 seconds: + * + *

+ * 
+ * CloudSchedulerStubSettings.Builder cloudSchedulerSettingsBuilder =
+ *     CloudSchedulerStubSettings.newBuilder();
+ * cloudSchedulerSettingsBuilder.getJobSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CloudSchedulerStubSettings cloudSchedulerSettings = cloudSchedulerSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CloudSchedulerStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings + listJobsSettings; + private final UnaryCallSettings getJobSettings; + private final UnaryCallSettings createJobSettings; + private final UnaryCallSettings updateJobSettings; + private final UnaryCallSettings deleteJobSettings; + private final UnaryCallSettings pauseJobSettings; + private final UnaryCallSettings resumeJobSettings; + private final UnaryCallSettings runJobSettings; + + /** Returns the object with the settings used for calls to listJobs. */ + public PagedCallSettings + listJobsSettings() { + return listJobsSettings; + } + + /** Returns the object with the settings used for calls to getJob. */ + public UnaryCallSettings getJobSettings() { + return getJobSettings; + } + + /** Returns the object with the settings used for calls to createJob. */ + public UnaryCallSettings createJobSettings() { + return createJobSettings; + } + + /** Returns the object with the settings used for calls to updateJob. */ + public UnaryCallSettings updateJobSettings() { + return updateJobSettings; + } + + /** Returns the object with the settings used for calls to deleteJob. */ + public UnaryCallSettings deleteJobSettings() { + return deleteJobSettings; + } + + /** Returns the object with the settings used for calls to pauseJob. */ + public UnaryCallSettings pauseJobSettings() { + return pauseJobSettings; + } + + /** Returns the object with the settings used for calls to resumeJob. */ + public UnaryCallSettings resumeJobSettings() { + return resumeJobSettings; + } + + /** Returns the object with the settings used for calls to runJob. */ + public UnaryCallSettings runJobSettings() { + return runJobSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CloudSchedulerStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcCloudSchedulerStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "cloudscheduler.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CloudSchedulerStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CloudSchedulerStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listJobsSettings = settingsBuilder.listJobsSettings().build(); + getJobSettings = settingsBuilder.getJobSettings().build(); + createJobSettings = settingsBuilder.createJobSettings().build(); + updateJobSettings = settingsBuilder.updateJobSettings().build(); + deleteJobSettings = settingsBuilder.deleteJobSettings().build(); + pauseJobSettings = settingsBuilder.pauseJobSettings().build(); + resumeJobSettings = settingsBuilder.resumeJobSettings().build(); + runJobSettings = settingsBuilder.runJobSettings().build(); + } + + private static final PagedListDescriptor + LIST_JOBS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListJobsRequest injectToken(ListJobsRequest payload, String token) { + return ListJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListJobsRequest injectPageSize(ListJobsRequest payload, int pageSize) { + return ListJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListJobsResponse payload) { + return payload.getJobsList() != null + ? payload.getJobsList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> + LIST_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_JOBS_PAGE_STR_DESC, request, context); + return ListJobsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for CloudSchedulerStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final PagedCallSettings.Builder< + ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> + listJobsSettings; + private final UnaryCallSettings.Builder getJobSettings; + private final UnaryCallSettings.Builder createJobSettings; + private final UnaryCallSettings.Builder updateJobSettings; + private final UnaryCallSettings.Builder deleteJobSettings; + private final UnaryCallSettings.Builder pauseJobSettings; + private final UnaryCallSettings.Builder resumeJobSettings; + private final UnaryCallSettings.Builder runJobSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listJobsSettings = PagedCallSettings.newBuilder(LIST_JOBS_PAGE_STR_FACT); + + getJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + pauseJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + resumeJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + runJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listJobsSettings, + getJobSettings, + createJobSettings, + updateJobSettings, + deleteJobSettings, + pauseJobSettings, + resumeJobSettings, + runJobSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .listJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .createJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .pauseJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .resumeJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .runJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(CloudSchedulerStubSettings settings) { + super(settings); + + listJobsSettings = settings.listJobsSettings.toBuilder(); + getJobSettings = settings.getJobSettings.toBuilder(); + createJobSettings = settings.createJobSettings.toBuilder(); + updateJobSettings = settings.updateJobSettings.toBuilder(); + deleteJobSettings = settings.deleteJobSettings.toBuilder(); + pauseJobSettings = settings.pauseJobSettings.toBuilder(); + resumeJobSettings = settings.resumeJobSettings.toBuilder(); + runJobSettings = settings.runJobSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listJobsSettings, + getJobSettings, + createJobSettings, + updateJobSettings, + deleteJobSettings, + pauseJobSettings, + resumeJobSettings, + runJobSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listJobs. */ + public PagedCallSettings.Builder + listJobsSettings() { + return listJobsSettings; + } + + /** Returns the builder for the settings used for calls to getJob. */ + public UnaryCallSettings.Builder getJobSettings() { + return getJobSettings; + } + + /** Returns the builder for the settings used for calls to createJob. */ + public UnaryCallSettings.Builder createJobSettings() { + return createJobSettings; + } + + /** Returns the builder for the settings used for calls to updateJob. */ + public UnaryCallSettings.Builder updateJobSettings() { + return updateJobSettings; + } + + /** Returns the builder for the settings used for calls to deleteJob. */ + public UnaryCallSettings.Builder deleteJobSettings() { + return deleteJobSettings; + } + + /** Returns the builder for the settings used for calls to pauseJob. */ + public UnaryCallSettings.Builder pauseJobSettings() { + return pauseJobSettings; + } + + /** Returns the builder for the settings used for calls to resumeJob. */ + public UnaryCallSettings.Builder resumeJobSettings() { + return resumeJobSettings; + } + + /** Returns the builder for the settings used for calls to runJob. */ + public UnaryCallSettings.Builder runJobSettings() { + return runJobSettings; + } + + @Override + public CloudSchedulerStubSettings build() throws IOException { + return new CloudSchedulerStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/GrpcCloudSchedulerCallableFactory.java b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/GrpcCloudSchedulerCallableFactory.java new file mode 100644 index 000000000000..6dfeaf2431cb --- /dev/null +++ b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/GrpcCloudSchedulerCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.scheduler.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Scheduler API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcCloudSchedulerCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/GrpcCloudSchedulerStub.java b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/GrpcCloudSchedulerStub.java new file mode 100644 index 000000000000..208c5341113e --- /dev/null +++ b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/GrpcCloudSchedulerStub.java @@ -0,0 +1,294 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.scheduler.v1.stub; + +import static com.google.cloud.scheduler.v1.CloudSchedulerClient.ListJobsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.UnaryCallable; +import com.google.cloud.scheduler.v1.CreateJobRequest; +import com.google.cloud.scheduler.v1.DeleteJobRequest; +import com.google.cloud.scheduler.v1.GetJobRequest; +import com.google.cloud.scheduler.v1.Job; +import com.google.cloud.scheduler.v1.ListJobsRequest; +import com.google.cloud.scheduler.v1.ListJobsResponse; +import com.google.cloud.scheduler.v1.PauseJobRequest; +import com.google.cloud.scheduler.v1.ResumeJobRequest; +import com.google.cloud.scheduler.v1.RunJobRequest; +import com.google.cloud.scheduler.v1.UpdateJobRequest; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Scheduler API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcCloudSchedulerStub extends CloudSchedulerStub { + + private static final MethodDescriptor + listJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.scheduler.v1.CloudScheduler/ListJobs") + .setRequestMarshaller(ProtoUtils.marshaller(ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListJobsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor getJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.scheduler.v1.CloudScheduler/GetJob") + .setRequestMarshaller(ProtoUtils.marshaller(GetJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor createJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.scheduler.v1.CloudScheduler/CreateJob") + .setRequestMarshaller(ProtoUtils.marshaller(CreateJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.scheduler.v1.CloudScheduler/UpdateJob") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.scheduler.v1.CloudScheduler/DeleteJob") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor pauseJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.scheduler.v1.CloudScheduler/PauseJob") + .setRequestMarshaller(ProtoUtils.marshaller(PauseJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor resumeJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.scheduler.v1.CloudScheduler/ResumeJob") + .setRequestMarshaller(ProtoUtils.marshaller(ResumeJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor runJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.scheduler.v1.CloudScheduler/RunJob") + .setRequestMarshaller(ProtoUtils.marshaller(RunJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable listJobsCallable; + private final UnaryCallable listJobsPagedCallable; + private final UnaryCallable getJobCallable; + private final UnaryCallable createJobCallable; + private final UnaryCallable updateJobCallable; + private final UnaryCallable deleteJobCallable; + private final UnaryCallable pauseJobCallable; + private final UnaryCallable resumeJobCallable; + private final UnaryCallable runJobCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCloudSchedulerStub create(CloudSchedulerStubSettings settings) + throws IOException { + return new GrpcCloudSchedulerStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCloudSchedulerStub create(ClientContext clientContext) + throws IOException { + return new GrpcCloudSchedulerStub( + CloudSchedulerStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCloudSchedulerStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCloudSchedulerStub( + CloudSchedulerStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCloudSchedulerStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcCloudSchedulerCallableFactory()); + } + + /** + * Constructs an instance of GrpcCloudSchedulerStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCloudSchedulerStub( + CloudSchedulerStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings listJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listJobsMethodDescriptor) + .build(); + GrpcCallSettings getJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJobMethodDescriptor) + .build(); + GrpcCallSettings createJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createJobMethodDescriptor) + .build(); + GrpcCallSettings updateJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateJobMethodDescriptor) + .build(); + GrpcCallSettings deleteJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteJobMethodDescriptor) + .build(); + GrpcCallSettings pauseJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(pauseJobMethodDescriptor) + .build(); + GrpcCallSettings resumeJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(resumeJobMethodDescriptor) + .build(); + GrpcCallSettings runJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runJobMethodDescriptor) + .build(); + + this.listJobsCallable = + callableFactory.createUnaryCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.listJobsPagedCallable = + callableFactory.createPagedCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.getJobCallable = + callableFactory.createUnaryCallable( + getJobTransportSettings, settings.getJobSettings(), clientContext); + this.createJobCallable = + callableFactory.createUnaryCallable( + createJobTransportSettings, settings.createJobSettings(), clientContext); + this.updateJobCallable = + callableFactory.createUnaryCallable( + updateJobTransportSettings, settings.updateJobSettings(), clientContext); + this.deleteJobCallable = + callableFactory.createUnaryCallable( + deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); + this.pauseJobCallable = + callableFactory.createUnaryCallable( + pauseJobTransportSettings, settings.pauseJobSettings(), clientContext); + this.resumeJobCallable = + callableFactory.createUnaryCallable( + resumeJobTransportSettings, settings.resumeJobSettings(), clientContext); + this.runJobCallable = + callableFactory.createUnaryCallable( + runJobTransportSettings, settings.runJobSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable listJobsPagedCallable() { + return listJobsPagedCallable; + } + + public UnaryCallable listJobsCallable() { + return listJobsCallable; + } + + public UnaryCallable getJobCallable() { + return getJobCallable; + } + + public UnaryCallable createJobCallable() { + return createJobCallable; + } + + public UnaryCallable updateJobCallable() { + return updateJobCallable; + } + + public UnaryCallable deleteJobCallable() { + return deleteJobCallable; + } + + public UnaryCallable pauseJobCallable() { + return pauseJobCallable; + } + + public UnaryCallable resumeJobCallable() { + return resumeJobCallable; + } + + public UnaryCallable runJobCallable() { + return runJobCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/CloudSchedulerClientTest.java b/google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/CloudSchedulerClientTest.java new file mode 100644 index 000000000000..43db66530976 --- /dev/null +++ b/google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/CloudSchedulerClientTest.java @@ -0,0 +1,455 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.scheduler.v1; + +import static com.google.cloud.scheduler.v1.CloudSchedulerClient.ListJobsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class CloudSchedulerClientTest { + private static MockCloudScheduler mockCloudScheduler; + private static MockServiceHelper serviceHelper; + private CloudSchedulerClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCloudScheduler = new MockCloudScheduler(); + serviceHelper = + new MockServiceHelper("in-process-1", Arrays.asList(mockCloudScheduler)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + CloudSchedulerSettings settings = + CloudSchedulerSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CloudSchedulerClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void listJobsTest() { + String nextPageToken = ""; + Job jobsElement = Job.newBuilder().build(); + List jobs = Arrays.asList(jobsElement); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build(); + mockCloudScheduler.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockCloudScheduler.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListJobsRequest actualRequest = (ListJobsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, LocationName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudScheduler.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + client.listJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getJobTest() { + JobName name2 = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + String description = "description-1724546052"; + String schedule = "schedule-697920873"; + String timeZone = "timeZone36848094"; + Job expectedResponse = + Job.newBuilder() + .setName(name2.toString()) + .setDescription(description) + .setSchedule(schedule) + .setTimeZone(timeZone) + .build(); + mockCloudScheduler.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudScheduler.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetJobRequest actualRequest = (GetJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudScheduler.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createJobTest() { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + String description = "description-1724546052"; + String schedule = "schedule-697920873"; + String timeZone = "timeZone36848094"; + Job expectedResponse = + Job.newBuilder() + .setName(name.toString()) + .setDescription(description) + .setSchedule(schedule) + .setTimeZone(timeZone) + .build(); + mockCloudScheduler.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Job job = Job.newBuilder().build(); + + Job actualResponse = client.createJob(parent, job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudScheduler.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateJobRequest actualRequest = (CreateJobRequest) actualRequests.get(0); + + Assert.assertEquals(parent, LocationName.parse(actualRequest.getParent())); + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudScheduler.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Job job = Job.newBuilder().build(); + + client.createJob(parent, job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateJobTest() { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + String description = "description-1724546052"; + String schedule = "schedule-697920873"; + String timeZone = "timeZone36848094"; + Job expectedResponse = + Job.newBuilder() + .setName(name.toString()) + .setDescription(description) + .setSchedule(schedule) + .setTimeZone(timeZone) + .build(); + mockCloudScheduler.addResponse(expectedResponse); + + Job job = Job.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Job actualResponse = client.updateJob(job, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudScheduler.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateJobRequest actualRequest = (UpdateJobRequest) actualRequests.get(0); + + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudScheduler.addException(exception); + + try { + Job job = Job.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + client.updateJob(job, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteJobTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockCloudScheduler.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + client.deleteJob(name); + + List actualRequests = mockCloudScheduler.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteJobRequest actualRequest = (DeleteJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudScheduler.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + client.deleteJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void pauseJobTest() { + JobName name2 = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + String description = "description-1724546052"; + String schedule = "schedule-697920873"; + String timeZone = "timeZone36848094"; + Job expectedResponse = + Job.newBuilder() + .setName(name2.toString()) + .setDescription(description) + .setSchedule(schedule) + .setTimeZone(timeZone) + .build(); + mockCloudScheduler.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + Job actualResponse = client.pauseJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudScheduler.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PauseJobRequest actualRequest = (PauseJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void pauseJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudScheduler.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + client.pauseJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void resumeJobTest() { + JobName name2 = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + String description = "description-1724546052"; + String schedule = "schedule-697920873"; + String timeZone = "timeZone36848094"; + Job expectedResponse = + Job.newBuilder() + .setName(name2.toString()) + .setDescription(description) + .setSchedule(schedule) + .setTimeZone(timeZone) + .build(); + mockCloudScheduler.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + Job actualResponse = client.resumeJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudScheduler.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResumeJobRequest actualRequest = (ResumeJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void resumeJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudScheduler.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + client.resumeJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void runJobTest() { + JobName name2 = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + String description = "description-1724546052"; + String schedule = "schedule-697920873"; + String timeZone = "timeZone36848094"; + Job expectedResponse = + Job.newBuilder() + .setName(name2.toString()) + .setDescription(description) + .setSchedule(schedule) + .setTimeZone(timeZone) + .build(); + mockCloudScheduler.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + Job actualResponse = client.runJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudScheduler.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunJobRequest actualRequest = (RunJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void runJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudScheduler.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + client.runJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/MockCloudScheduler.java b/google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/MockCloudScheduler.java new file mode 100644 index 000000000000..6b05c0207a86 --- /dev/null +++ b/google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/MockCloudScheduler.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.scheduler.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCloudScheduler implements MockGrpcService { + private final MockCloudSchedulerImpl serviceImpl; + + public MockCloudScheduler() { + serviceImpl = new MockCloudSchedulerImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/MockCloudSchedulerImpl.java b/google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/MockCloudSchedulerImpl.java new file mode 100644 index 000000000000..51fc9cd6688f --- /dev/null +++ b/google-cloud-clients/google-cloud-scheduler/src/test/java/com/google/cloud/scheduler/v1/MockCloudSchedulerImpl.java @@ -0,0 +1,171 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.scheduler.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.scheduler.v1.CloudSchedulerGrpc.CloudSchedulerImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCloudSchedulerImpl extends CloudSchedulerImplBase { + private ArrayList requests; + private Queue responses; + + public MockCloudSchedulerImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listJobs(ListJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListJobsResponse) { + requests.add(request); + responseObserver.onNext((ListJobsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getJob(GetJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createJob(CreateJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateJob(UpdateJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteJob(DeleteJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void pauseJob(PauseJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void resumeJob(ResumeJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void runJob(RunJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-scheduler/synth.metadata b/google-cloud-clients/google-cloud-scheduler/synth.metadata index 3fa17db46d30..b2a7cd9879ba 100644 --- a/google-cloud-clients/google-cloud-scheduler/synth.metadata +++ b/google-cloud-clients/google-cloud-scheduler/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-03-06T08:50:15.033556Z", + "updateTime": "2019-03-07T20:00:25.557469Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", - "internalRef": "236931378" + "sha": "6df9a80f147c4349949f6573b5275deebddd3ba8", + "internalRef": "237262681" } } ], @@ -27,6 +27,16 @@ "generator": "gapic", "config": "google/cloud/scheduler/artman_cloudscheduler_v1beta1.yaml" } + }, + { + "client": { + "source": "googleapis", + "apiName": "scheduler", + "apiVersion": "v1", + "language": "java", + "generator": "gapic", + "config": "google/cloud/scheduler/artman_cloudscheduler_v1.yaml" + } } ] } \ No newline at end of file diff --git a/google-cloud-clients/google-cloud-scheduler/synth.py b/google-cloud-clients/google-cloud-scheduler/synth.py index 475a87d1b931..77f8dc0f426d 100644 --- a/google-cloud-clients/google-cloud-scheduler/synth.py +++ b/google-cloud-clients/google-cloud-scheduler/synth.py @@ -21,7 +21,7 @@ gapic = gcp.GAPICGenerator() service = 'scheduler' -versions = ['v1beta1'] +versions = ['v1beta1', 'v1'] config_pattern = '/google/cloud/scheduler/artman_cloudscheduler_{version}.yaml' for version in versions: diff --git a/versions.txt b/versions.txt index 5efdde243746..a1257eb32deb 100644 --- a/versions.txt +++ b/versions.txt @@ -90,6 +90,7 @@ grpc-google-cloud-pubsub-v1:1.46.0:1.46.1-SNAPSHOT grpc-google-cloud-redis-v1:0.47.0:0.47.1-SNAPSHOT grpc-google-cloud-redis-v1beta1:0.47.0:0.47.1-SNAPSHOT grpc-google-cloud-scheduler-v1beta1:0.47.0:0.47.1-SNAPSHOT +grpc-google-cloud-scheduler-v1:0.47.0:0.47.1-SNAPSHOT grpc-google-cloud-securitycenter-v1beta1:0.47.0:0.47.1-SNAPSHOT grpc-google-cloud-securitycenter-v1:0.47.0:0.47.1-SNAPSHOT grpc-google-cloud-spanner-admin-database-v1:1.9.0:1.9.1-SNAPSHOT @@ -144,6 +145,7 @@ proto-google-cloud-pubsub-v1:1.46.0:1.46.1-SNAPSHOT proto-google-cloud-redis-v1:0.47.0:0.47.1-SNAPSHOT proto-google-cloud-redis-v1beta1:0.47.0:0.47.1-SNAPSHOT proto-google-cloud-scheduler-v1beta1:0.47.0:0.47.1-SNAPSHOT +proto-google-cloud-scheduler-v1:0.47.0:0.47.1-SNAPSHOT proto-google-cloud-securitycenter-v1beta1:0.47.0:0.47.1-SNAPSHOT proto-google-cloud-securitycenter-v1:0.47.0:0.47.1-SNAPSHOT proto-google-cloud-spanner-admin-database-v1:1.9.0:1.9.1-SNAPSHOT From a671baf76464f1e50e15f193e4c4e8a30309c8ee Mon Sep 17 00:00:00 2001 From: Praful Makani Date: Sun, 10 Mar 2019 20:33:15 +0530 Subject: [PATCH 31/53] Fix Timestamp.parseTimestamp. (#4656) * Fix parseTimestamp docs * Fix timestamp without timezone offset * Fix test cases related to timestamp.parseTimestamp * added test case * Fix timestampParser and added ZoneOffset in timestampParser --- .../src/main/java/com/google/cloud/Timestamp.java | 14 +++++++++++++- .../test/java/com/google/cloud/TimestampTest.java | 9 +++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/Timestamp.java b/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/Timestamp.java index 02bb98131366..618ef9c7211e 100644 --- a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/Timestamp.java +++ b/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/Timestamp.java @@ -27,6 +27,8 @@ import org.threeten.bp.LocalDateTime; import org.threeten.bp.ZoneOffset; import org.threeten.bp.format.DateTimeFormatter; +import org.threeten.bp.format.DateTimeFormatterBuilder; +import org.threeten.bp.temporal.TemporalAccessor; /** * Represents a timestamp with nanosecond precision. Timestamps cover the range [0001-01-01, @@ -47,6 +49,15 @@ public final class Timestamp implements Comparable, Serializable { private static final DateTimeFormatter format = DateTimeFormatter.ISO_LOCAL_DATE_TIME; + private static final DateTimeFormatter timestampParser = + new DateTimeFormatterBuilder() + .appendOptional(DateTimeFormatter.ISO_LOCAL_DATE_TIME) + .optionalStart() + .appendOffsetId() + .optionalEnd() + .toFormatter() + .withZone(ZoneOffset.UTC); + private final long seconds; private final int nanos; @@ -170,7 +181,8 @@ public com.google.protobuf.Timestamp toProto() { * the timezone offset (always ends in "Z"). */ public static Timestamp parseTimestamp(String timestamp) { - Instant instant = Instant.parse(timestamp); + TemporalAccessor temporalAccessor = timestampParser.parse(timestamp); + Instant instant = Instant.from(temporalAccessor); return ofTimeSecondsAndNanos(instant.getEpochSecond(), instant.getNano()); } diff --git a/google-cloud-clients/google-cloud-core/src/test/java/com/google/cloud/TimestampTest.java b/google-cloud-clients/google-cloud-core/src/test/java/com/google/cloud/TimestampTest.java index 8a72abbee4e5..db9ede84dce1 100644 --- a/google-cloud-clients/google-cloud-core/src/test/java/com/google/cloud/TimestampTest.java +++ b/google-cloud-clients/google-cloud-core/src/test/java/com/google/cloud/TimestampTest.java @@ -185,6 +185,15 @@ public void parseTimestamp() { .isEqualTo(Timestamp.ofTimeSecondsAndNanos(TEST_TIME_SECONDS, 0)); } + @Test + public void parseTimestampWithoutTimeZoneOffset() { + assertThat(Timestamp.parseTimestamp("0001-01-01T00:00:00")).isEqualTo(Timestamp.MIN_VALUE); + assertThat(Timestamp.parseTimestamp("9999-12-31T23:59:59.999999999")) + .isEqualTo(Timestamp.MAX_VALUE); + assertThat(Timestamp.parseTimestamp("2015-10-12T15:14:54")) + .isEqualTo(Timestamp.ofTimeSecondsAndNanos(TEST_TIME_SECONDS, 0)); + } + @Test public void fromProto() { com.google.protobuf.Timestamp proto = From 370ec5a1131a86b36db8efce4f1a943607de8a60 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Mon, 11 Mar 2019 12:15:31 -0700 Subject: [PATCH 32/53] Release google-cloud-java v0.83.0 (#4665) --- README.md | 8 +- .../grpc-google-cloud-asset-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-bigtable-v2/pom.xml | 4 +- .../grpc-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-firestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-iot-v1/pom.xml | 4 +- .../grpc-google-cloud-kms-v1/pom.xml | 4 +- .../grpc-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-logging-v2/pom.xml | 4 +- .../grpc-google-cloud-monitoring-v3/pom.xml | 4 +- .../grpc-google-cloud-os-login-v1/pom.xml | 4 +- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-spanner-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../grpc-google-cloud-texttospeech-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-trace-v1/pom.xml | 4 +- .../grpc-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-api-grpc/pom.xml | 220 ++++++------ .../proto-google-cloud-asset-v1beta1/pom.xml | 4 +- .../proto-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-bigtable-v2/pom.xml | 4 +- .../proto-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-datastore-v1/pom.xml | 4 +- .../proto-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-firestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-iot-v1/pom.xml | 4 +- .../proto-google-cloud-kms-v1/pom.xml | 4 +- .../proto-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-logging-v2/pom.xml | 4 +- .../proto-google-cloud-monitoring-v3/pom.xml | 4 +- .../proto-google-cloud-os-login-v1/pom.xml | 4 +- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1beta1/pom.xml | 4 +- .../proto-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-spanner-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-trace-v1/pom.xml | 4 +- .../proto-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-cloud-bom/README.md | 2 +- google-cloud-bom/pom.xml | 304 ++++++++-------- .../google-cloud-asset/README.md | 6 +- .../google-cloud-asset/pom.xml | 4 +- .../google-cloud-automl/README.md | 6 +- .../google-cloud-automl/pom.xml | 4 +- .../google-cloud-bigquery/README.md | 6 +- .../google-cloud-bigquery/pom.xml | 4 +- .../README.md | 6 +- .../google-cloud-bigquerydatatransfer/pom.xml | 4 +- .../google-cloud-bigquerystorage/README.md | 6 +- .../google-cloud-bigquerystorage/pom.xml | 4 +- .../google-cloud-bigtable/README.md | 6 +- .../google-cloud-bigtable/pom.xml | 4 +- .../google-cloud-compute/README.md | 6 +- .../google-cloud-compute/pom.xml | 4 +- .../google-cloud-container/README.md | 6 +- .../google-cloud-container/pom.xml | 4 +- .../google-cloud-containeranalysis/README.md | 6 +- .../google-cloud-containeranalysis/pom.xml | 4 +- .../google-cloud-contrib/README.md | 6 +- .../google-cloud-logging-logback/README.md | 6 +- .../google-cloud-logging-logback/pom.xml | 4 +- .../google-cloud-nio-examples/README.md | 4 +- .../google-cloud-nio-examples/pom.xml | 4 +- .../google-cloud-nio/README.md | 6 +- .../google-cloud-nio/pom.xml | 4 +- .../google-cloud-contrib/pom.xml | 4 +- .../google-cloud-core-grpc/pom.xml | 4 +- .../google-cloud-core-http/pom.xml | 4 +- .../google-cloud-core/README.md | 6 +- .../google-cloud-core/pom.xml | 4 +- .../google-cloud-dataproc/README.md | 6 +- .../google-cloud-dataproc/pom.xml | 4 +- .../google-cloud-datastore/README.md | 6 +- .../google-cloud-datastore/pom.xml | 4 +- .../google-cloud-dialogflow/README.md | 6 +- .../google-cloud-dialogflow/pom.xml | 4 +- .../google-cloud-dlp/README.md | 6 +- google-cloud-clients/google-cloud-dlp/pom.xml | 4 +- .../google-cloud-dns/README.md | 6 +- google-cloud-clients/google-cloud-dns/pom.xml | 4 +- .../google-cloud-errorreporting/README.md | 6 +- .../google-cloud-errorreporting/pom.xml | 4 +- .../google-cloud-firestore/README.md | 6 +- .../google-cloud-firestore/pom.xml | 4 +- .../google-cloud-iamcredentials/README.md | 6 +- .../google-cloud-iamcredentials/pom.xml | 4 +- .../google-cloud-iot/README.md | 6 +- google-cloud-clients/google-cloud-iot/pom.xml | 4 +- .../google-cloud-kms/README.md | 6 +- google-cloud-clients/google-cloud-kms/pom.xml | 4 +- .../google-cloud-language/README.md | 6 +- .../google-cloud-language/pom.xml | 4 +- .../google-cloud-logging/README.md | 6 +- .../google-cloud-logging/pom.xml | 4 +- .../google-cloud-monitoring/README.md | 6 +- .../google-cloud-monitoring/pom.xml | 4 +- .../google-cloud-notification/README.md | 6 +- .../google-cloud-notification/pom.xml | 4 +- .../google-cloud-os-login/README.md | 6 +- .../google-cloud-os-login/pom.xml | 4 +- .../google-cloud-pubsub/README.md | 6 +- .../google-cloud-pubsub/pom.xml | 4 +- .../google-cloud-redis/README.md | 6 +- .../google-cloud-redis/pom.xml | 4 +- .../google-cloud-resourcemanager/README.md | 6 +- .../google-cloud-resourcemanager/pom.xml | 4 +- .../google-cloud-scheduler/README.md | 6 +- .../google-cloud-scheduler/pom.xml | 4 +- .../google-cloud-securitycenter/README.md | 6 +- .../google-cloud-securitycenter/pom.xml | 4 +- .../google-cloud-spanner/README.md | 6 +- .../google-cloud-spanner/pom.xml | 4 +- .../google-cloud-speech/README.md | 6 +- .../google-cloud-speech/pom.xml | 4 +- .../google-cloud-storage/README.md | 6 +- .../google-cloud-storage/pom.xml | 4 +- .../google-cloud-tasks/README.md | 6 +- .../google-cloud-tasks/pom.xml | 4 +- .../google-cloud-texttospeech/README.md | 6 +- .../google-cloud-texttospeech/pom.xml | 4 +- .../google-cloud-trace/README.md | 6 +- .../google-cloud-trace/pom.xml | 4 +- .../google-cloud-translate/README.md | 6 +- .../google-cloud-translate/pom.xml | 4 +- .../google-cloud-video-intelligence/README.md | 6 +- .../google-cloud-video-intelligence/pom.xml | 4 +- .../google-cloud-vision/README.md | 6 +- .../google-cloud-vision/pom.xml | 4 +- .../google-cloud-websecurityscanner/README.md | 6 +- .../google-cloud-websecurityscanner/pom.xml | 4 +- google-cloud-clients/pom.xml | 6 +- google-cloud-examples/README.md | 6 +- google-cloud-examples/pom.xml | 4 +- .../google-cloud-appengineflexcompat/pom.xml | 4 +- .../google-cloud-appengineflexcustom/pom.xml | 4 +- .../google-cloud-appengineflexjava/pom.xml | 4 +- .../google-cloud-appenginejava8/pom.xml | 4 +- .../google-cloud-bigtable-emulator/README.md | 10 +- .../google-cloud-bigtable-emulator/pom.xml | 6 +- .../google-cloud-gcloud-maven-plugin/pom.xml | 4 +- .../google-cloud-managedtest/pom.xml | 4 +- google-cloud-testing/pom.xml | 6 +- .../google-cloud-compat-checker/pom.xml | 4 +- google-cloud-util/pom.xml | 2 +- versions.txt | 340 +++++++++--------- 218 files changed, 912 insertions(+), 912 deletions(-) diff --git a/README.md b/README.md index ca88edd63485..7d8cbe72d010 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bom - 0.82.0-alpha + 0.83.0-alpha pom import @@ -85,11 +85,11 @@ If you are using Maven, add this to your pom.xml file [//]: # ({x-version-update-start:google-cloud-storage:released}) If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-storage:1.64.0' +compile 'com.google.cloud:google-cloud-storage:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.65.0" ``` [//]: # ({x-version-update-end}) @@ -110,7 +110,7 @@ If you are running into problems with version conflicts, the easiest way to solv com.google.cloud google-cloud-bom - 0.82.0-alpha + 0.83.0-alpha pom import diff --git a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml index 3acf573098fb..653297bf69ef 100644 --- a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-asset-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-asset-v1beta1 GRPC library for grpc-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml index 31a95047646b..109846354998 100644 --- a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-automl-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 977e4d2d6fee..51dfece4e5a3 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerydatatransfer-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml index f64c3ad3020b..e70622df19bd 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerystorage-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-bigquerystorage-v1beta1 GRPC library for grpc-google-cloud-bigquerystorage-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml index ef200c2900ac..0828b8d78f80 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-admin-v2 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-bigtable-admin-v2 GRPC library for grpc-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml index 24b005cf97fd..121626127ca2 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-v2 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-bigtable-v2 GRPC library for grpc-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml index 646d8f149366..4f4e92d24ffa 100644 --- a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-container-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index 946e8d8e3180..6de46a797432 100644 --- a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-containeranalysis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml index 42406cd6cf48..85db81d14dab 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml index 25135116db74..c0c050d71f4c 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml index dedc6ccb91d5..64a5bef33fb8 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml index b50287428169..ecace23534e1 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml index 3e0a43b197ca..69c68adfc43e 100644 --- a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dlp-v2 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml index 773fcbd81024..d8b07ce11238 100644 --- a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-error-reporting-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml index e45fa7cade88..8e706298139b 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-firestore-v1 GRPC library for grpc-google-cloud-firestore-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml index 5cba0bcd4c6c..34d734065249 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-firestore-v1beta1 GRPC library for grpc-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml index 41cd8b58803d..fdea51b781a6 100644 --- a/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iamcredentials-v1 - 0.9.1-alpha-SNAPSHOT + 0.10.0-alpha grpc-google-cloud-iamcredentials-v1 GRPC library for grpc-google-cloud-iamcredentials-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml index e8671e7a5461..487425629fd5 100644 --- a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iot-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml index aa1fc40f6fd0..a85a14a9ce1c 100644 --- a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-kms-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml index 0f7b07723c90..c82d4df95380 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1 - 1.46.1-SNAPSHOT + 1.47.0 grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml index ac3c9a518183..53f1d7c69c2f 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml index 7b635730e095..79ebd5b18f95 100644 --- a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-logging-v2 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-logging-v2 GRPC library for grpc-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml index 1d52f385981b..957d55dee4d3 100644 --- a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-monitoring-v3 - 1.46.1-SNAPSHOT + 1.47.0 grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml index 66c597a852a6..0de083c2829a 100644 --- a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-os-login-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml index 52f7681a33f8..f23c9349cde0 100644 --- a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.46.1-SNAPSHOT + 1.47.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml index ef3063f33090..1714676534a8 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml index 6234d1c56398..11700ef8aad4 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml index 3ba98cc0074c..c54a6fb9de85 100644 --- a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-scheduler-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-scheduler-v1 GRPC library for grpc-google-cloud-scheduler-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml index 2ff772229dff..0cc42aa0f39c 100644 --- a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-scheduler-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-scheduler-v1beta1 GRPC library for grpc-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml index 00fd730790f3..4189259c01ce 100644 --- a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-securitycenter-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 8506ffcf7287..13278c93336f 100644 --- a/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-securitycenter-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml index 851f95f550b0..44bfcecc5578 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-database-v1 - 1.9.1-SNAPSHOT + 1.10.0 grpc-google-cloud-spanner-admin-database-v1 GRPC library for grpc-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml index d9a78a01e0ac..0538ad16ab17 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-instance-v1 - 1.9.1-SNAPSHOT + 1.10.0 grpc-google-cloud-spanner-admin-instance-v1 GRPC library for grpc-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml index d34d51106e28..d1242eef006c 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-v1 - 1.9.1-SNAPSHOT + 1.10.0 grpc-google-cloud-spanner-v1 GRPC library for grpc-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml index 722e33b5e03d..e31663c70d6c 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml index c0360dad1700..5d54dc3be620 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml index 3dcf1f719d90..c1975d5dd415 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml index e2a42e50ce03..9f3bbd2005f2 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta2 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml index be506543c542..45fff566de49 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta3 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml index a80b24a312ef..0b48141a69bb 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml index 7dcd22747552..20a433c43193 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml index 9415cec0dd0b..f7db08363457 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml index 482081742b86..f8ec5684d861 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v2 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml index 169bdd0fa4c9..d49d1321b8a9 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml index 083a9fbd5444..47e055c67a37 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-video-intelligence-v1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index 29a9b16d91d8..b9a8cce1ab63 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index 6af696b4eab1..c0a9b755a286 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index c98ab290a954..52bcdcded607 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p2beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml index f07c2594dbe7..a61bda499021 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1 - 1.46.1-SNAPSHOT + 1.47.0 grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml index f08a1385aad0..ef01649ff639 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml index 2c82ece9f84f..fd26cd6b23c2 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p2beta1 - 1.46.1-SNAPSHOT + 1.47.0 grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml index e3d7bfd2507c..16980c10dc2b 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p3beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml index 8028600f02db..c9c460b4bea7 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p4beta1 - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index dd11ddc9e298..06c2dcf1b0e1 100644 --- a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-websecurityscanner-v1alpha - 0.47.1-SNAPSHOT + 0.48.0 grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index 5356a83c62e6..c64987d8fa2c 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-api-grpc pom - 0.47.1-SNAPSHOT + 0.48.0 Google Cloud API gRPC https://github.com/googleapis/google-cloud-java/tree/master/google-api-grpc @@ -142,547 +142,547 @@ com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-container-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-container-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-datastore-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-firestore-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-firestore-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-language-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-language-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-logging-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-redis-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-spanner-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc grpc-google-cloud-spanner-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-speech-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-trace-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-trace-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-vision-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-iot-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 0.9.1-alpha-SNAPSHOT + 0.10.0-alpha com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 0.9.1-alpha-SNAPSHOT + 0.10.0-alpha diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml index a3b71b244e28..bd3e4465bef8 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-asset-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-asset-v1beta1 PROTO library for proto-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml index 7937d248fd22..84e4cc64ab3b 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-automl-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 495be75eb31d..6b315678c5f3 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerydatatransfer-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml index 41efd7403212..284dc2c5595f 100644 --- a/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerystorage-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-bigquerystorage-v1beta1 PROTO library for proto-google-cloud-bigquerystorage-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml index b11ab5af3c21..66acd869d03f 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-admin-v2 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-bigtable-admin-v2 PROTO library for proto-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml index f724b6b0f515..519483609794 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-v2 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-bigtable-v2 PROTO library for proto-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-container-v1/pom.xml b/google-api-grpc/proto-google-cloud-container-v1/pom.xml index 63a8b5b858e2..15f898599d63 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-container-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml index 28fe8c5f466d..29322d40bb59 100644 --- a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-containeranalysis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml index 94749526e4c1..67d5c6b2bd2f 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml index e9565ce9c7d8..980c66e5e00f 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml index 6365d442a0ba..8e241c5b882d 100644 --- a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-datastore-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-datastore-v1 PROTO library for proto-google-cloud-datastore-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml index 7017cc822228..55fbc88c9619 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml index 58007e7297d9..6451c7325382 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml index 6e4275f94fff..4aa6f0abdf9a 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dlp-v2 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml index 6d362727b1e0..cd2f4454fe13 100644 --- a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-error-reporting-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml index e844b51254fb..bde61ac49ec6 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-firestore-v1 PROTO library for proto-google-cloud-firestore-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml index 85b31031a6b1..b6d50d49628f 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-firestore-v1beta1 PROTO library for proto-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml b/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml index d6edd6ce241c..7edb91413cc6 100644 --- a/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iamcredentials-v1 - 0.9.1-alpha-SNAPSHOT + 0.10.0-alpha proto-google-cloud-iamcredentials-v1 PROTO library for proto-google-cloud-iamcredentials-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml index 8b7b081f3931..0577bd6b9958 100644 --- a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iot-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml index 2088901e50d5..46a2e57ee9fa 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-kms-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-language-v1/pom.xml b/google-api-grpc/proto-google-cloud-language-v1/pom.xml index 0e6a4180b1c7..cdf6d89ca7d6 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1 - 1.46.1-SNAPSHOT + 1.47.0 proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml index 9b965eb361d8..332e7c682eff 100644 --- a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml index f67c12362fb2..2f01325de02d 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-logging-v2 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-logging-v2 PROTO library for proto-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml index 99d335784c35..3ea6fa753691 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-monitoring-v3 - 1.46.1-SNAPSHOT + 1.47.0 proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml index 5ef2f5325fd5..f8c63276a680 100644 --- a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-os-login-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml index 17dd90605e6f..6cfc5dfdaa73 100644 --- a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.46.1-SNAPSHOT + 1.47.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml index 656ed3780f75..13dd57b28ee8 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml index 0044360a7dc4..e894901c931c 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml index f2b69ad2e223..019e7efee3c9 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-scheduler-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-scheduler-v1 PROTO library for proto-google-cloud-scheduler-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml index 0b7ef5fd48a2..10ab87b0a10a 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-scheduler-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-scheduler-v1beta1 PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml index 2daae1330ff1..1d1f70b72043 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-securitycenter-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml index 01adf5a2bda9..ec606a85db25 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-securitycenter-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml index a08c590f7c09..3dbd8a193e1e 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-database-v1 - 1.9.1-SNAPSHOT + 1.10.0 proto-google-cloud-spanner-admin-database-v1 PROTO library for proto-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml index 2edbe69c4027..7581716e7bb4 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-instance-v1 - 1.9.1-SNAPSHOT + 1.10.0 proto-google-cloud-spanner-admin-instance-v1 PROTO library for proto-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml index 148ba41397d5..304eaaa039ed 100644 --- a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-v1 - 1.9.1-SNAPSHOT + 1.10.0 proto-google-cloud-spanner-v1 PROTO library for proto-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml index cad639047adc..1ea214742135 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml index cbda7cae31c1..cb598389e02b 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml index 030c9c1a609b..d6d6e62b6c0b 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml index 1a4e0a99b371..595cde46a28b 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta2 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml index 96dc3fc0a1b1..b362bd3dc2c2 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta3 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml index 33866a5be225..9ea20e060a6c 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml index e04ca8dd36fa..46b5d063ff28 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml index f09a748c5832..dc4b5ec4564d 100644 --- a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml index 151ea5d8cb64..1852b708ce79 100644 --- a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v2 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml index f2147f3346d8..768b230a0e1c 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml index c5a97276a8fc..0b691f8bddc1 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-video-intelligence-v1beta1 PROTO library for proto-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml index 1049728ec423..b579bac09a48 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index 62505329647a..89df66b6b66a 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index 25dac79005fe..e507b193ccc0 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p2beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml index 1f01e79fd7bb..1239fb1f6fd2 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1 - 1.46.1-SNAPSHOT + 1.47.0 proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml index 8a8c4b263efc..65dd9ef9f857 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml index c10444eb4cfc..aa4808799e88 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p2beta1 - 1.46.1-SNAPSHOT + 1.47.0 proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml index 033e6170a1f4..6bc6644761fd 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p3beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml index 654b75134e4b..90eaeed5eb8b 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p4beta1 - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index 76e46b86e103..7a09c1fc44a4 100644 --- a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-websecurityscanner-v1alpha - 0.47.1-SNAPSHOT + 0.48.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/google-cloud-bom/README.md b/google-cloud-bom/README.md index 18f211394a26..d12172f5bae3 100644 --- a/google-cloud-bom/README.md +++ b/google-cloud-bom/README.md @@ -13,7 +13,7 @@ To use it in Maven, add the following to your POM: com.google.cloud google-cloud-bom - 0.82.0-alpha + 0.83.0-alpha pom import diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index fa3e554041bb..cca0e8e26a3b 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bom pom - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha Google Cloud Java BOM https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-bom @@ -197,758 +197,758 @@ com.google.cloud google-cloud-asset - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-automl - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-bigtable - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-bigtable-emulator - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.cloud google-cloud-bigquery - 1.64.1-SNAPSHOT + 1.65.0 com.google.cloud google-cloud-bigquerydatatransfer - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-compute - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.cloud google-cloud-container - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-container-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-container-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-containeranalysis - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-contrib - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.cloud google-cloud-nio - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.cloud google-cloud-core - 1.64.1-SNAPSHOT + 1.65.0 com.google.cloud google-cloud-core-grpc - 1.64.1-SNAPSHOT + 1.65.0 com.google.cloud google-cloud-core-http - 1.64.1-SNAPSHOT + 1.65.0 com.google.cloud google-cloud-dataproc - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-datastore - 1.64.1-SNAPSHOT + 1.65.0 com.google.api.grpc proto-google-cloud-datastore-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-dlp - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-dlp-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-dialogflow - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-dns - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.cloud google-cloud-errorreporting - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-firestore - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-firestore-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-firestore-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-kms - 1.0.1-SNAPSHOT + 1.1.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-language - 1.64.1-SNAPSHOT + 1.65.0 com.google.api.grpc proto-google-cloud-language-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-language-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-logging - 1.64.1-SNAPSHOT + 1.65.0 com.google.api.grpc proto-google-cloud-logging-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-logging-logback - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.cloud google-cloud-monitoring - 1.64.1-SNAPSHOT + 1.65.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.46.1-SNAPSHOT + 1.47.0 com.google.cloud google-cloud-os-login - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.api.grpc proto-google-cloud-os-login-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-pubsub - 1.64.1-SNAPSHOT + 1.65.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.cloud google-cloud-redis - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-redis-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-resourcemanager - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.cloud google-cloud-scheduler - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-securitycenter - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha com.google.api.grpc grpc-google-cloud-scheduler-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-spanner - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc proto-google-cloud-spanner-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc grpc-google-cloud-spanner-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 1.9.1-SNAPSHOT + 1.10.0 com.google.cloud google-cloud-speech - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-speech-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-storage - 1.64.1-SNAPSHOT + 1.65.0 com.google.cloud google-cloud-tasks - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-texttospeech - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-trace - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-trace-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-trace-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-translate - 1.64.1-SNAPSHOT + 1.65.0 com.google.cloud google-cloud-vision - 1.64.1-SNAPSHOT + 1.65.0 com.google.api.grpc proto-google-cloud-vision-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.46.1-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.cloud google-cloud-video-intelligence - 0.82.1-beta-SNAPSHOT + 0.83.0-beta com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-iot-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.47.1-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 0.9.1-alpha-SNAPSHOT + 0.10.0-alpha com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 0.9.1-alpha-SNAPSHOT + 0.10.0-alpha com.google.cloud google-cloud-iamcredentials - 0.9.1-alpha-SNAPSHOT + 0.10.0-alpha diff --git a/google-cloud-clients/google-cloud-asset/README.md b/google-cloud-clients/google-cloud-asset/README.md index e59dd7675662..77b3cc41102e 100644 --- a/google-cloud-clients/google-cloud-asset/README.md +++ b/google-cloud-clients/google-cloud-asset/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-asset - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-asset:0.82.0-beta' +compile 'com.google.cloud:google-cloud-asset:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-asset/pom.xml b/google-cloud-clients/google-cloud-asset/pom.xml index cdbe89b232a5..2c594667b811 100644 --- a/google-cloud-clients/google-cloud-asset/pom.xml +++ b/google-cloud-clients/google-cloud-asset/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-asset - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Asset https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-asset @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-asset diff --git a/google-cloud-clients/google-cloud-automl/README.md b/google-cloud-clients/google-cloud-automl/README.md index ebbfcdc56392..0a05d802f633 100644 --- a/google-cloud-clients/google-cloud-automl/README.md +++ b/google-cloud-clients/google-cloud-automl/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-automl - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-automl:0.82.0-beta' +compile 'com.google.cloud:google-cloud-automl:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-automl/pom.xml b/google-cloud-clients/google-cloud-automl/pom.xml index e461f41e0cf8..e96d89cd4a79 100644 --- a/google-cloud-clients/google-cloud-automl/pom.xml +++ b/google-cloud-clients/google-cloud-automl/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-automl - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Auto ML https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-automl @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-automl diff --git a/google-cloud-clients/google-cloud-bigquery/README.md b/google-cloud-clients/google-cloud-bigquery/README.md index cdc4b130ea2b..7e735ba98bcc 100644 --- a/google-cloud-clients/google-cloud-bigquery/README.md +++ b/google-cloud-clients/google-cloud-bigquery/README.md @@ -18,16 +18,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bigquery - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquery:1.64.0' +compile 'com.google.cloud:google-cloud-bigquery:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquery/pom.xml b/google-cloud-clients/google-cloud-bigquery/pom.xml index 49846bca43d7..9bca281aba38 100644 --- a/google-cloud-clients/google-cloud-bigquery/pom.xml +++ b/google-cloud-clients/google-cloud-bigquery/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquery - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud BigQuery https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquery @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-bigquery diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md b/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md index 6c8b6a1b8e9f..0dce526cdde0 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md @@ -23,16 +23,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-bigquerydatatransfer - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquerydatatransfer:0.82.0-beta' +compile 'com.google.cloud:google-cloud-bigquerydatatransfer:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml index 59dd29b134a7..3edf793c00b1 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerydatatransfer - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Bigquery Data Transfer https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerydatatransfer @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-bigquerydatatransfer diff --git a/google-cloud-clients/google-cloud-bigquerystorage/README.md b/google-cloud-clients/google-cloud-bigquerystorage/README.md index 87b215cd3faf..4257c612f049 100644 --- a/google-cloud-clients/google-cloud-bigquerystorage/README.md +++ b/google-cloud-clients/google-cloud-bigquerystorage/README.md @@ -20,16 +20,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-bigquerystorage - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquerystorage:0.82.0-beta' +compile 'com.google.cloud:google-cloud-bigquerystorage:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml index e8f897e5a24a..d9fa99e2dac7 100644 --- a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerystorage - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Bigquery Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerystorage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-bigquerystorage diff --git a/google-cloud-clients/google-cloud-bigtable/README.md b/google-cloud-clients/google-cloud-bigtable/README.md index 102b390f1fc0..262b8084d831 100644 --- a/google-cloud-clients/google-cloud-bigtable/README.md +++ b/google-cloud-clients/google-cloud-bigtable/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bigtable - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigtable:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-bigtable:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigtable/pom.xml b/google-cloud-clients/google-cloud-bigtable/pom.xml index 131e21ef6105..7d5da2c92003 100644 --- a/google-cloud-clients/google-cloud-bigtable/pom.xml +++ b/google-cloud-clients/google-cloud-bigtable/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Bigtable https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigtable @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-bigtable diff --git a/google-cloud-clients/google-cloud-compute/README.md b/google-cloud-clients/google-cloud-compute/README.md index 07189747a0bf..aca73bd237ff 100644 --- a/google-cloud-clients/google-cloud-compute/README.md +++ b/google-cloud-clients/google-cloud-compute/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-compute - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-compute:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-compute:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-compute/pom.xml b/google-cloud-clients/google-cloud-compute/pom.xml index 1de2768c0bfa..b3b134533e06 100644 --- a/google-cloud-clients/google-cloud-compute/pom.xml +++ b/google-cloud-clients/google-cloud-compute/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compute - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Compute https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-compute @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-compute diff --git a/google-cloud-clients/google-cloud-container/README.md b/google-cloud-clients/google-cloud-container/README.md index 6936add152bc..545ce0bd6765 100644 --- a/google-cloud-clients/google-cloud-container/README.md +++ b/google-cloud-clients/google-cloud-container/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-container - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-container:0.82.0-beta' +compile 'com.google.cloud:google-cloud-container:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-container/pom.xml b/google-cloud-clients/google-cloud-container/pom.xml index 110946156cb2..20eb785cbd67 100644 --- a/google-cloud-clients/google-cloud-container/pom.xml +++ b/google-cloud-clients/google-cloud-container/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-container - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Container https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-container @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-container diff --git a/google-cloud-clients/google-cloud-containeranalysis/README.md b/google-cloud-clients/google-cloud-containeranalysis/README.md index a1645ca0e1f2..559aa0bfeb2f 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/README.md +++ b/google-cloud-clients/google-cloud-containeranalysis/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-containeranalysis - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-containeranalysis:0.82.0-beta' +compile 'com.google.cloud:google-cloud-containeranalysis:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-containeranalysis/pom.xml b/google-cloud-clients/google-cloud-containeranalysis/pom.xml index 62b42e74d07a..e187dda4a257 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/pom.xml +++ b/google-cloud-clients/google-cloud-containeranalysis/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-containeranalysis - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Container Analysis https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-containeranalysis @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-containeranalysis diff --git a/google-cloud-clients/google-cloud-contrib/README.md b/google-cloud-clients/google-cloud-contrib/README.md index ae1e59cd6a8d..c2eca9650029 100644 --- a/google-cloud-clients/google-cloud-contrib/README.md +++ b/google-cloud-clients/google-cloud-contrib/README.md @@ -25,16 +25,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-contrib - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-contrib:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-contrib:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contrib" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-contrib" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md index 00f453a117aa..ee77bfe6e4e0 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-logging-logback - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-logging-logback:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-logging-logback:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging-logback" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-logging-logback" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml index e6010a14acff..a9f0e5d9fea7 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-logging-logback - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Logging Logback Appender https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback @@ -20,7 +20,7 @@ com.google.cloud google-cloud-contrib - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md index b83eda5d2797..57062adede5a 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md @@ -23,12 +23,12 @@ To run this example: [//]: # ({x-version-update-start:google-cloud-nio:current}) ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.82.1-alpha-SNAPSHOT.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.82.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.83.0-alpha.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.83.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems ``` Notice that it lists Google Cloud Storage, which it wouldn't if you ran it without the NIO jar: ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.82.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.83.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml index 4913bd7d14c2..12c7afd8d01f 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio-examples - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud NIO Examples https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-nio-examples diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md index e35db11b49d2..2ea49cfc5ab1 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md @@ -26,16 +26,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-nio - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-nio:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-nio:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-nio" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-nio" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml index b604941634f3..e5a06c3bbda2 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud NIO https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-nio diff --git a/google-cloud-clients/google-cloud-contrib/pom.xml b/google-cloud-clients/google-cloud-contrib/pom.xml index bffc50fda249..ba674922da61 100644 --- a/google-cloud-clients/google-cloud-contrib/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-contrib - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha pom Google Cloud Contributions https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-contrib diff --git a/google-cloud-clients/google-cloud-core-grpc/pom.xml b/google-cloud-clients/google-cloud-core-grpc/pom.xml index 333b70b15f1c..184e765482a4 100644 --- a/google-cloud-clients/google-cloud-core-grpc/pom.xml +++ b/google-cloud-clients/google-cloud-core-grpc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-grpc - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Core gRPC https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-grpc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-core-grpc diff --git a/google-cloud-clients/google-cloud-core-http/pom.xml b/google-cloud-clients/google-cloud-core-http/pom.xml index 3fc1dc1790e9..1a02e26b6ff3 100644 --- a/google-cloud-clients/google-cloud-core-http/pom.xml +++ b/google-cloud-clients/google-cloud-core-http/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-http - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Core HTTP https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-http @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-core-http diff --git a/google-cloud-clients/google-cloud-core/README.md b/google-cloud-clients/google-cloud-core/README.md index 3842e8406abb..80d63a0c7073 100644 --- a/google-cloud-clients/google-cloud-core/README.md +++ b/google-cloud-clients/google-cloud-core/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-core - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-core:1.64.0' +compile 'com.google.cloud:google-cloud-core:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-core" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-core" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-core/pom.xml b/google-cloud-clients/google-cloud-core/pom.xml index 953442ea6b2d..32f5a326c190 100644 --- a/google-cloud-clients/google-cloud-core/pom.xml +++ b/google-cloud-clients/google-cloud-core/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Core https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-core diff --git a/google-cloud-clients/google-cloud-dataproc/README.md b/google-cloud-clients/google-cloud-dataproc/README.md index e04437bd9162..5e126bfa782f 100644 --- a/google-cloud-clients/google-cloud-dataproc/README.md +++ b/google-cloud-clients/google-cloud-dataproc/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-dataproc - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-dataproc:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dataproc/pom.xml b/google-cloud-clients/google-cloud-dataproc/pom.xml index c52b2f77d688..566e5cdfac4b 100644 --- a/google-cloud-clients/google-cloud-dataproc/pom.xml +++ b/google-cloud-clients/google-cloud-dataproc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dataproc - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Dataproc https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dataproc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-dataproc diff --git a/google-cloud-clients/google-cloud-datastore/README.md b/google-cloud-clients/google-cloud-datastore/README.md index 4cd7ebab12f2..6b4768878faf 100644 --- a/google-cloud-clients/google-cloud-datastore/README.md +++ b/google-cloud-clients/google-cloud-datastore/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-datastore - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-datastore:1.64.0' +compile 'com.google.cloud:google-cloud-datastore:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-datastore/pom.xml b/google-cloud-clients/google-cloud-datastore/pom.xml index 457e2270266f..b24d20caf3a9 100644 --- a/google-cloud-clients/google-cloud-datastore/pom.xml +++ b/google-cloud-clients/google-cloud-datastore/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-datastore - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Datastore https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-datastore @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-datastore diff --git a/google-cloud-clients/google-cloud-dialogflow/README.md b/google-cloud-clients/google-cloud-dialogflow/README.md index 8cdb03817e87..b928c426e1cf 100644 --- a/google-cloud-clients/google-cloud-dialogflow/README.md +++ b/google-cloud-clients/google-cloud-dialogflow/README.md @@ -23,16 +23,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dialogflow - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dialogflow:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-dialogflow:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dialogflow/pom.xml b/google-cloud-clients/google-cloud-dialogflow/pom.xml index 1d99bae9de1b..dd455f37818f 100644 --- a/google-cloud-clients/google-cloud-dialogflow/pom.xml +++ b/google-cloud-clients/google-cloud-dialogflow/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dialogflow - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Dialog Flow API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dialogflow @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-dialogflow diff --git a/google-cloud-clients/google-cloud-dlp/README.md b/google-cloud-clients/google-cloud-dlp/README.md index 812d7175b245..aaec3d873b04 100644 --- a/google-cloud-clients/google-cloud-dlp/README.md +++ b/google-cloud-clients/google-cloud-dlp/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dlp - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dlp:0.82.0-beta' +compile 'com.google.cloud:google-cloud-dlp:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dlp/pom.xml b/google-cloud-clients/google-cloud-dlp/pom.xml index 376b99134a45..2d6be3b93aba 100644 --- a/google-cloud-clients/google-cloud-dlp/pom.xml +++ b/google-cloud-clients/google-cloud-dlp/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dlp - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Data Loss Prevention API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dlp @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-dlp diff --git a/google-cloud-clients/google-cloud-dns/README.md b/google-cloud-clients/google-cloud-dns/README.md index 4816f8d13a0f..0227efc727e7 100644 --- a/google-cloud-clients/google-cloud-dns/README.md +++ b/google-cloud-clients/google-cloud-dns/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dns - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dns:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-dns:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dns/pom.xml b/google-cloud-clients/google-cloud-dns/pom.xml index 0b70557fa168..58ea4bc1a59f 100644 --- a/google-cloud-clients/google-cloud-dns/pom.xml +++ b/google-cloud-clients/google-cloud-dns/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-dns - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud DNS https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dns @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-dns diff --git a/google-cloud-clients/google-cloud-errorreporting/README.md b/google-cloud-clients/google-cloud-errorreporting/README.md index b4090c66e5b9..4b5d7f7400ca 100644 --- a/google-cloud-clients/google-cloud-errorreporting/README.md +++ b/google-cloud-clients/google-cloud-errorreporting/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-errorreporting - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-errorreporting:0.82.0-beta' +compile 'com.google.cloud:google-cloud-errorreporting:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-errorreporting/pom.xml b/google-cloud-clients/google-cloud-errorreporting/pom.xml index 30671888882a..4e602d111587 100644 --- a/google-cloud-clients/google-cloud-errorreporting/pom.xml +++ b/google-cloud-clients/google-cloud-errorreporting/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-errorreporting - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Error Reporting https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-errorreporting @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-errorreporting diff --git a/google-cloud-clients/google-cloud-firestore/README.md b/google-cloud-clients/google-cloud-firestore/README.md index 7a0bbc2e45cd..a192a6d999fe 100644 --- a/google-cloud-clients/google-cloud-firestore/README.md +++ b/google-cloud-clients/google-cloud-firestore/README.md @@ -17,16 +17,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-firestore - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-firestore:0.82.0-beta' +compile 'com.google.cloud:google-cloud-firestore:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-firestore/pom.xml b/google-cloud-clients/google-cloud-firestore/pom.xml index 1ae3a03c865b..e5ec751e7f2b 100644 --- a/google-cloud-clients/google-cloud-firestore/pom.xml +++ b/google-cloud-clients/google-cloud-firestore/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-firestore - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Firestore https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-firestore @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-firestore diff --git a/google-cloud-clients/google-cloud-iamcredentials/README.md b/google-cloud-clients/google-cloud-iamcredentials/README.md index 14c1c79967bc..94970c7717c5 100644 --- a/google-cloud-clients/google-cloud-iamcredentials/README.md +++ b/google-cloud-clients/google-cloud-iamcredentials/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-iamcredentials - 0.9.0-alpha + 0.10.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-iamcredentials:0.9.0-alpha' +compile 'com.google.cloud:google-cloud-iamcredentials:0.10.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "0.9.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "0.10.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-iamcredentials/pom.xml b/google-cloud-clients/google-cloud-iamcredentials/pom.xml index e96ff8e30caf..74950c125265 100644 --- a/google-cloud-clients/google-cloud-iamcredentials/pom.xml +++ b/google-cloud-clients/google-cloud-iamcredentials/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iamcredentials - 0.9.1-alpha-SNAPSHOT + 0.10.0-alpha jar Google Cloud Java Client for IAM Service Account Credentials API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iamcredentials @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-iamcredentials diff --git a/google-cloud-clients/google-cloud-iot/README.md b/google-cloud-clients/google-cloud-iot/README.md index 714d2ebcdbda..0fc8d568093a 100644 --- a/google-cloud-clients/google-cloud-iot/README.md +++ b/google-cloud-clients/google-cloud-iot/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-iot - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-iot:0.82.0-beta' +compile 'com.google.cloud:google-cloud-iot:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-iot/pom.xml b/google-cloud-clients/google-cloud-iot/pom.xml index 37d32a358ed8..9e1f244df7bf 100644 --- a/google-cloud-clients/google-cloud-iot/pom.xml +++ b/google-cloud-clients/google-cloud-iot/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iot - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud IoT https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iot @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-iot diff --git a/google-cloud-clients/google-cloud-kms/README.md b/google-cloud-clients/google-cloud-kms/README.md index 20a3ceea1585..3f7267b715cf 100644 --- a/google-cloud-clients/google-cloud-kms/README.md +++ b/google-cloud-clients/google-cloud-kms/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-kms - 1.0.0 + 1.1.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-kms:1.0.0' +compile 'com.google.cloud:google-cloud-kms:1.1.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "1.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "1.1.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-kms/pom.xml b/google-cloud-clients/google-cloud-kms/pom.xml index 57f21fd709be..f20ecfc45331 100644 --- a/google-cloud-clients/google-cloud-kms/pom.xml +++ b/google-cloud-clients/google-cloud-kms/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-kms - 1.0.1-SNAPSHOT + 1.1.0 jar Google Cloud KMS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-kms @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-kms-v1 diff --git a/google-cloud-clients/google-cloud-language/README.md b/google-cloud-clients/google-cloud-language/README.md index 5cf703e08c0d..089bb908848c 100644 --- a/google-cloud-clients/google-cloud-language/README.md +++ b/google-cloud-clients/google-cloud-language/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-language - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-language:1.64.0' +compile 'com.google.cloud:google-cloud-language:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-language/pom.xml b/google-cloud-clients/google-cloud-language/pom.xml index e7ff016661e6..8ed612ce49e9 100644 --- a/google-cloud-clients/google-cloud-language/pom.xml +++ b/google-cloud-clients/google-cloud-language/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-language - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Natural Language https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-language @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-language diff --git a/google-cloud-clients/google-cloud-logging/README.md b/google-cloud-clients/google-cloud-logging/README.md index 1f759f3459dc..8d076c140317 100644 --- a/google-cloud-clients/google-cloud-logging/README.md +++ b/google-cloud-clients/google-cloud-logging/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-logging - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-logging:1.64.0' +compile 'com.google.cloud:google-cloud-logging:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-logging/pom.xml b/google-cloud-clients/google-cloud-logging/pom.xml index 062cf242bebc..f010913066fd 100644 --- a/google-cloud-clients/google-cloud-logging/pom.xml +++ b/google-cloud-clients/google-cloud-logging/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-logging - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Logging https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-logging @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-logging diff --git a/google-cloud-clients/google-cloud-monitoring/README.md b/google-cloud-clients/google-cloud-monitoring/README.md index b23038a3aaa3..7b855671e4ed 100644 --- a/google-cloud-clients/google-cloud-monitoring/README.md +++ b/google-cloud-clients/google-cloud-monitoring/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-monitoring - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-monitoring:1.64.0' +compile 'com.google.cloud:google-cloud-monitoring:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-monitoring/pom.xml b/google-cloud-clients/google-cloud-monitoring/pom.xml index aaa546f543d4..9d3b4d950ffb 100644 --- a/google-cloud-clients/google-cloud-monitoring/pom.xml +++ b/google-cloud-clients/google-cloud-monitoring/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-monitoring - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Monitoring https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-monitoring @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-monitoring diff --git a/google-cloud-clients/google-cloud-notification/README.md b/google-cloud-clients/google-cloud-notification/README.md index feea3ce81de5..5c78a69135d8 100644 --- a/google-cloud-clients/google-cloud-notification/README.md +++ b/google-cloud-clients/google-cloud-notification/README.md @@ -17,16 +17,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-notification - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-notification:0.82.0-beta' +compile 'com.google.cloud:google-cloud-notification:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-notification/pom.xml b/google-cloud-clients/google-cloud-notification/pom.xml index 324a8e4f5b42..0924bf553795 100644 --- a/google-cloud-clients/google-cloud-notification/pom.xml +++ b/google-cloud-clients/google-cloud-notification/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-notification - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Pub/Sub Notifications for GCS https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-notification @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-notification diff --git a/google-cloud-clients/google-cloud-os-login/README.md b/google-cloud-clients/google-cloud-os-login/README.md index 2077d294c4d9..cd56a3182bd6 100644 --- a/google-cloud-clients/google-cloud-os-login/README.md +++ b/google-cloud-clients/google-cloud-os-login/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-os-login - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-os-login:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-os-login:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-os-login/pom.xml b/google-cloud-clients/google-cloud-os-login/pom.xml index a781f0f4c7aa..cbd53163d57a 100644 --- a/google-cloud-clients/google-cloud-os-login/pom.xml +++ b/google-cloud-clients/google-cloud-os-login/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-os-login - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud OS Login https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-os-login @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-os-login diff --git a/google-cloud-clients/google-cloud-pubsub/README.md b/google-cloud-clients/google-cloud-pubsub/README.md index 15fb4ba25114..7d5920c117e4 100644 --- a/google-cloud-clients/google-cloud-pubsub/README.md +++ b/google-cloud-clients/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.64.0' +compile 'com.google.cloud:google-cloud-pubsub:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-pubsub/pom.xml b/google-cloud-clients/google-cloud-pubsub/pom.xml index 10318779decd..b3db8e608654 100644 --- a/google-cloud-clients/google-cloud-pubsub/pom.xml +++ b/google-cloud-clients/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-pubsub diff --git a/google-cloud-clients/google-cloud-redis/README.md b/google-cloud-clients/google-cloud-redis/README.md index e14a544ffe58..a9d984097c5b 100644 --- a/google-cloud-clients/google-cloud-redis/README.md +++ b/google-cloud-clients/google-cloud-redis/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-redis - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-redis:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-redis:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-redis/pom.xml b/google-cloud-clients/google-cloud-redis/pom.xml index 8d8bd42f17f7..e815d3855c2e 100644 --- a/google-cloud-clients/google-cloud-redis/pom.xml +++ b/google-cloud-clients/google-cloud-redis/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-redis - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Redis https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-redis @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-redis diff --git a/google-cloud-clients/google-cloud-resourcemanager/README.md b/google-cloud-clients/google-cloud-resourcemanager/README.md index 9504810ffc53..27f1d1c2639b 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/README.md +++ b/google-cloud-clients/google-cloud-resourcemanager/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-resourcemanager - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-resourcemanager:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-resourcemanager:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-resourcemanager/pom.xml b/google-cloud-clients/google-cloud-resourcemanager/pom.xml index a2213c2e2986..9162e7c227b6 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/pom.xml +++ b/google-cloud-clients/google-cloud-resourcemanager/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-resourcemanager - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Resource Manager https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-resourcemanager @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-resourcemanager diff --git a/google-cloud-clients/google-cloud-scheduler/README.md b/google-cloud-clients/google-cloud-scheduler/README.md index ab94d9fbe3fa..659095d29027 100644 --- a/google-cloud-clients/google-cloud-scheduler/README.md +++ b/google-cloud-clients/google-cloud-scheduler/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-scheduler - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-scheduler:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-scheduler:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-scheduler/pom.xml b/google-cloud-clients/google-cloud-scheduler/pom.xml index c9786eb16c1d..76d8eaf8d1b8 100644 --- a/google-cloud-clients/google-cloud-scheduler/pom.xml +++ b/google-cloud-clients/google-cloud-scheduler/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-scheduler - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Scheduler https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-scheduler @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-scheduler diff --git a/google-cloud-clients/google-cloud-securitycenter/README.md b/google-cloud-clients/google-cloud-securitycenter/README.md index a8801dc1ab5a..21715d86bff1 100644 --- a/google-cloud-clients/google-cloud-securitycenter/README.md +++ b/google-cloud-clients/google-cloud-securitycenter/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-securitycenter - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-securitycenter:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-securitycenter:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-securitycenter/pom.xml b/google-cloud-clients/google-cloud-securitycenter/pom.xml index 0bb0fd8016af..8e38d3363f4a 100644 --- a/google-cloud-clients/google-cloud-securitycenter/pom.xml +++ b/google-cloud-clients/google-cloud-securitycenter/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-securitycenter - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Security Command Center https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-securitycenter @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-securitycenter diff --git a/google-cloud-clients/google-cloud-spanner/README.md b/google-cloud-clients/google-cloud-spanner/README.md index c0fdf2edba40..51ce371a2e75 100644 --- a/google-cloud-clients/google-cloud-spanner/README.md +++ b/google-cloud-clients/google-cloud-spanner/README.md @@ -20,16 +20,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-spanner - 1.9.0 + 1.10.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-spanner:1.9.0' +compile 'com.google.cloud:google-cloud-spanner:1.10.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "1.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "1.10.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-spanner/pom.xml b/google-cloud-clients/google-cloud-spanner/pom.xml index d22e3ed73924..badbf5401f4b 100644 --- a/google-cloud-clients/google-cloud-spanner/pom.xml +++ b/google-cloud-clients/google-cloud-spanner/pom.xml @@ -4,7 +4,7 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 google-cloud-spanner - 1.9.1-SNAPSHOT + 1.10.0 jar Google Cloud Spanner https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-spanner @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-spanner diff --git a/google-cloud-clients/google-cloud-speech/README.md b/google-cloud-clients/google-cloud-speech/README.md index 2500474efc13..d3a5b5e1aaa7 100644 --- a/google-cloud-clients/google-cloud-speech/README.md +++ b/google-cloud-clients/google-cloud-speech/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-speech - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-speech:0.82.0-beta' +compile 'com.google.cloud:google-cloud-speech:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-speech/pom.xml b/google-cloud-clients/google-cloud-speech/pom.xml index 78b4762130ac..e35600c633e9 100644 --- a/google-cloud-clients/google-cloud-speech/pom.xml +++ b/google-cloud-clients/google-cloud-speech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-speech - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Speech https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-speech diff --git a/google-cloud-clients/google-cloud-storage/README.md b/google-cloud-clients/google-cloud-storage/README.md index ecd776c2ac06..f8ba67aca86c 100644 --- a/google-cloud-clients/google-cloud-storage/README.md +++ b/google-cloud-clients/google-cloud-storage/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-storage - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-storage:1.64.0' +compile 'com.google.cloud:google-cloud-storage:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-storage/pom.xml b/google-cloud-clients/google-cloud-storage/pom.xml index d406cecf5628..7bb0501cb2a9 100644 --- a/google-cloud-clients/google-cloud-storage/pom.xml +++ b/google-cloud-clients/google-cloud-storage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-storage - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-storage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-storage diff --git a/google-cloud-clients/google-cloud-tasks/README.md b/google-cloud-clients/google-cloud-tasks/README.md index fc7fbfde2b58..e3138406b363 100644 --- a/google-cloud-clients/google-cloud-tasks/README.md +++ b/google-cloud-clients/google-cloud-tasks/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-tasks - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:0.82.0-beta' +compile 'com.google.cloud:google-cloud-tasks:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-tasks/pom.xml b/google-cloud-clients/google-cloud-tasks/pom.xml index 0dfb7c6b7f00..abecabb9de30 100644 --- a/google-cloud-clients/google-cloud-tasks/pom.xml +++ b/google-cloud-clients/google-cloud-tasks/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-tasks - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Tasks https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-tasks @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-tasks-v2beta2 diff --git a/google-cloud-clients/google-cloud-texttospeech/README.md b/google-cloud-clients/google-cloud-texttospeech/README.md index 045594475142..c37561b98eaf 100644 --- a/google-cloud-clients/google-cloud-texttospeech/README.md +++ b/google-cloud-clients/google-cloud-texttospeech/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-texttospeech - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-texttospeech:0.82.0-beta' +compile 'com.google.cloud:google-cloud-texttospeech:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-texttospeech/pom.xml b/google-cloud-clients/google-cloud-texttospeech/pom.xml index c72204ecd480..69a4ba512280 100644 --- a/google-cloud-clients/google-cloud-texttospeech/pom.xml +++ b/google-cloud-clients/google-cloud-texttospeech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-texttospeech - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Text-to-Speech https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-texttospeech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-texttospeech-v1beta1 diff --git a/google-cloud-clients/google-cloud-trace/README.md b/google-cloud-clients/google-cloud-trace/README.md index 5d7ebe475553..d1faf9b8ad9a 100644 --- a/google-cloud-clients/google-cloud-trace/README.md +++ b/google-cloud-clients/google-cloud-trace/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-trace - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-trace:0.82.0-beta' +compile 'com.google.cloud:google-cloud-trace:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-trace/pom.xml b/google-cloud-clients/google-cloud-trace/pom.xml index 8ce5a3651770..7163159e1dd0 100644 --- a/google-cloud-clients/google-cloud-trace/pom.xml +++ b/google-cloud-clients/google-cloud-trace/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-trace - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Trace https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-trace diff --git a/google-cloud-clients/google-cloud-translate/README.md b/google-cloud-clients/google-cloud-translate/README.md index 8f5dc4129fd5..e6b5a9efac52 100644 --- a/google-cloud-clients/google-cloud-translate/README.md +++ b/google-cloud-clients/google-cloud-translate/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-translate - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-translate:1.64.0' +compile 'com.google.cloud:google-cloud-translate:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-translate/pom.xml b/google-cloud-clients/google-cloud-translate/pom.xml index c5042d1d8bb3..751e8a06deac 100644 --- a/google-cloud-clients/google-cloud-translate/pom.xml +++ b/google-cloud-clients/google-cloud-translate/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-translate - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Translation https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-translate @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-translate diff --git a/google-cloud-clients/google-cloud-video-intelligence/README.md b/google-cloud-clients/google-cloud-video-intelligence/README.md index ffeb32e68f23..ce73e0c0a26a 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/README.md +++ b/google-cloud-clients/google-cloud-video-intelligence/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-video-intelligence - 0.82.0-beta + 0.83.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-video-intelligence:0.82.0-beta' +compile 'com.google.cloud:google-cloud-video-intelligence:0.83.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "0.82.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "0.83.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-video-intelligence/pom.xml b/google-cloud-clients/google-cloud-video-intelligence/pom.xml index 9e8191513e60..b1425ab25816 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/pom.xml +++ b/google-cloud-clients/google-cloud-video-intelligence/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-video-intelligence - 0.82.1-beta-SNAPSHOT + 0.83.0-beta jar Google Cloud Video Intelligence https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-video-intelligence @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-video-intelligence diff --git a/google-cloud-clients/google-cloud-vision/README.md b/google-cloud-clients/google-cloud-vision/README.md index cf9dc6015fe3..f2609cee13ac 100644 --- a/google-cloud-clients/google-cloud-vision/README.md +++ b/google-cloud-clients/google-cloud-vision/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-vision - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-vision:1.64.0' +compile 'com.google.cloud:google-cloud-vision:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-vision/pom.xml b/google-cloud-clients/google-cloud-vision/pom.xml index 99f13db1e721..e3f422a4d1ec 100644 --- a/google-cloud-clients/google-cloud-vision/pom.xml +++ b/google-cloud-clients/google-cloud-vision/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-vision - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Vision https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-vision @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-vision diff --git a/google-cloud-clients/google-cloud-websecurityscanner/README.md b/google-cloud-clients/google-cloud-websecurityscanner/README.md index 53cc203a38b8..ed2b387a4fb9 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/README.md +++ b/google-cloud-clients/google-cloud-websecurityscanner/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-websecurityscanner - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-websecurityscanner:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-websecurityscanner:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml index cdc7a362c2fa..ee922e065812 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-websecurityscanner - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Web Security Scanner https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-websecurityscanner @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-websecurityscanner diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 9d3959b81987..e51b4fb9d87a 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-clients pom - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha Google Cloud https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients @@ -152,7 +152,7 @@ UTF-8 github google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha 1.27.0 1.42.0 @@ -247,7 +247,7 @@ com.google.cloud google-cloud-core - 1.64.1-SNAPSHOT + 1.65.0 test-jar diff --git a/google-cloud-examples/README.md b/google-cloud-examples/README.md index a7419fc72c14..750295b29e77 100644 --- a/google-cloud-examples/README.md +++ b/google-cloud-examples/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-examples - 0.82.0-alpha + 0.83.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-examples:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-examples:0.83.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-examples" % "0.82.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-examples" % "0.83.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-examples/pom.xml b/google-cloud-examples/pom.xml index 4eefef9998a5..6de8a0abf9b2 100644 --- a/google-cloud-examples/pom.xml +++ b/google-cloud-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-examples - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Examples https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples @@ -18,7 +18,7 @@ com.google.cloud google-cloud-bom - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha pom import diff --git a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml index 93157b9b571b..13be9f24b3d9 100644 --- a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcompat - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha war google-cloud-testing com.google.cloud - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha diff --git a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml index 69bc1135c6fd..4b915872f91a 100644 --- a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcustom - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha war google-cloud-testing com.google.cloud - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha diff --git a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml index 1f1d86f4935b..b945b1ec64da 100644 --- a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexjava - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha war google-cloud-testing com.google.cloud - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha diff --git a/google-cloud-testing/google-cloud-appenginejava8/pom.xml b/google-cloud-testing/google-cloud-appenginejava8/pom.xml index a0f93969a6e5..f056981692aa 100644 --- a/google-cloud-testing/google-cloud-appenginejava8/pom.xml +++ b/google-cloud-testing/google-cloud-appenginejava8/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appenginejava8 - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha war google-cloud-testing com.google.cloud - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha diff --git a/google-cloud-testing/google-cloud-bigtable-emulator/README.md b/google-cloud-testing/google-cloud-bigtable-emulator/README.md index 33648cae7b77..698b3c6eaf9b 100644 --- a/google-cloud-testing/google-cloud-bigtable-emulator/README.md +++ b/google-cloud-testing/google-cloud-bigtable-emulator/README.md @@ -19,7 +19,7 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bom - 0.82.0-alpha + 0.83.0-alpha pom import @@ -48,14 +48,14 @@ If you are using Maven, add this to your pom.xml file If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigtable:0.82.0-alpha' -testCompile 'com.google.cloud:google-cloud-bigtable-emulator:0.82.0-alpha' +compile 'com.google.cloud:google-cloud-bigtable:0.83.0-alpha' +testCompile 'com.google.cloud:google-cloud-bigtable-emulator:0.83.0-alpha' testCompile 'junit:junit:4.12' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.82.0-alpha" -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable-emulator" % "0.82.0-alpha" % Test +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable-emulator" % "0.83.0-alpha" % Test libraryDependencies += "junit" % "junit" % "4.12" % Test ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml b/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml index 612940450d3f..e28dc9c18502 100644 --- a/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml +++ b/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml @@ -6,7 +6,7 @@ com.google.cloud google-cloud-bigtable-emulator - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha Google Cloud Java - Bigtable Emulator https://github.com/googleapis/google-cloud-java @@ -69,7 +69,7 @@ com.google.cloud google-cloud-gcloud-maven-plugin - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha @@ -126,7 +126,7 @@ com.google.cloud google-cloud-bom - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha pom import diff --git a/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml b/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml index ff0250dd062e..fe1594eb0319 100644 --- a/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml +++ b/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml @@ -7,11 +7,11 @@ google-cloud-testing com.google.cloud - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-gcloud-maven-plugin - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha maven-plugin Experimental Maven plugin to interact with the Google Cloud SDK (https://cloud.google.com/sdk/). Currently this plugin is meant to be an internal implementation diff --git a/google-cloud-testing/google-cloud-managedtest/pom.xml b/google-cloud-testing/google-cloud-managedtest/pom.xml index 1081bbbb0a90..84c9de3b25a6 100644 --- a/google-cloud-testing/google-cloud-managedtest/pom.xml +++ b/google-cloud-testing/google-cloud-managedtest/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-managedtest - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar google-cloud-testing com.google.cloud - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha diff --git a/google-cloud-testing/pom.xml b/google-cloud-testing/pom.xml index 394421021040..ccf555b45472 100644 --- a/google-cloud-testing/pom.xml +++ b/google-cloud-testing/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-testing - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha pom Google Cloud Testing @@ -32,14 +32,14 @@ com.google.cloud google-cloud-bom - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha pom import com.google.cloud google-cloud-core - 1.64.1-SNAPSHOT + 1.65.0 test-jar diff --git a/google-cloud-util/google-cloud-compat-checker/pom.xml b/google-cloud-util/google-cloud-compat-checker/pom.xml index 2faf7fde889b..c0af047bcc4d 100644 --- a/google-cloud-util/google-cloud-compat-checker/pom.xml +++ b/google-cloud-util/google-cloud-compat-checker/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compat-checker - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha jar Google Cloud Java Compatibility Checker https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-util/google-cloud-compat-checker @@ -12,7 +12,7 @@ com.google.cloud google-cloud-util - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-compat-checker diff --git a/google-cloud-util/pom.xml b/google-cloud-util/pom.xml index 56a7b3e6365c..0996a0d4c9c1 100644 --- a/google-cloud-util/pom.xml +++ b/google-cloud-util/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-util - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha pom Google Cloud Util https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-util diff --git a/versions.txt b/versions.txt index a1257eb32deb..2dd24aaedc33 100644 --- a/versions.txt +++ b/versions.txt @@ -1,173 +1,173 @@ # Format: # module:released-version:current-version -google-api-grpc:0.47.0:0.47.1-SNAPSHOT -google-cloud:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-appengineflexcompat:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-appengineflexcustom:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-appengineflexjava:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-appenginejava8:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-asset:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-automl:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-bigquery:1.64.0:1.64.1-SNAPSHOT -google-cloud-bigquerydatatransfer:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-bigquerystorage:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-bigtable:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-bigtable-emulator:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-bom:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-clients:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-compat-checker:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-compute:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-container:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-containeranalysis:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-contrib:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-core:1.64.0:1.64.1-SNAPSHOT -google-cloud-core-grpc:1.64.0:1.64.1-SNAPSHOT -google-cloud-core-http:1.64.0:1.64.1-SNAPSHOT -google-cloud-dataproc:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-datastore:1.64.0:1.64.1-SNAPSHOT -google-cloud-dialogflow:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-dlp:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-dns:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-errorreporting:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-examples:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-firestore:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-gcloud-maven-plugin:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-iamcredentials:0.9.0-alpha:0.9.1-alpha-SNAPSHOT -google-cloud-iot:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-kms:1.0.0:1.0.1-SNAPSHOT -google-cloud-language:1.64.0:1.64.1-SNAPSHOT -google-cloud-logging:1.64.0:1.64.1-SNAPSHOT -google-cloud-logging-logback:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-managedtest:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-monitoring:1.64.0:1.64.1-SNAPSHOT -google-cloud-nio:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-nio-examples:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-notification:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-os-login:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-pubsub:1.64.0:1.64.1-SNAPSHOT -google-cloud-redis:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-resourcemanager:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-scheduler:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-securitycenter:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-spanner:1.9.0:1.9.1-SNAPSHOT -google-cloud-speech:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-storage:1.64.0:1.64.1-SNAPSHOT -google-cloud-tasks:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-testing:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-texttospeech:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-trace:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-translate:1.64.0:1.64.1-SNAPSHOT -google-cloud-util:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -google-cloud-video-intelligence:0.82.0-beta:0.82.1-beta-SNAPSHOT -google-cloud-vision:1.64.0:1.64.1-SNAPSHOT -google-cloud-websecurityscanner:0.82.0-alpha:0.82.1-alpha-SNAPSHOT -grpc-google-cloud-asset-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-automl-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-bigquerydatatransfer-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-bigquerystorage-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-bigtable-admin-v2:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-bigtable-v2:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-container-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-containeranalysis-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-dialogflow-v2:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-dialogflow-v2beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-dlp-v2:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-error-reporting-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-firestore-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-firestore-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-iamcredentials-v1:0.9.0-alpha:0.9.1-alpha-SNAPSHOT -grpc-google-cloud-iot-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-kms-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-language-v1:1.46.0:1.46.1-SNAPSHOT -grpc-google-cloud-language-v1beta2:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-logging-v2:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-monitoring-v3:1.46.0:1.46.1-SNAPSHOT -grpc-google-cloud-os-login-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.46.0:1.46.1-SNAPSHOT -grpc-google-cloud-redis-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-redis-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-scheduler-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-scheduler-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-securitycenter-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-securitycenter-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-spanner-admin-database-v1:1.9.0:1.9.1-SNAPSHOT -grpc-google-cloud-spanner-admin-instance-v1:1.9.0:1.9.1-SNAPSHOT -grpc-google-cloud-spanner-v1:1.9.0:1.9.1-SNAPSHOT -grpc-google-cloud-speech-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-speech-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-speech-v1p1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-texttospeech-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-texttospeech-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-trace-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-trace-v2:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1beta2:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p2beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-vision-v1:1.46.0:1.46.1-SNAPSHOT -grpc-google-cloud-vision-v1p1beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-vision-v1p2beta1:1.46.0:1.46.1-SNAPSHOT -grpc-google-cloud-vision-v1p3beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-vision-v1p4beta1:0.47.0:0.47.1-SNAPSHOT -grpc-google-cloud-websecurityscanner-v1alpha:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-asset-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-automl-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-bigquerydatatransfer-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-bigquerystorage-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-bigtable-admin-v2:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-bigtable-v2:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-container-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-containeranalysis-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-dataproc-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-datastore-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-dialogflow-v2:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-dialogflow-v2beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-dlp-v2:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-error-reporting-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-firestore-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-firestore-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-iamcredentials-v1:0.9.0-alpha:0.9.1-alpha-SNAPSHOT -proto-google-cloud-iot-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-kms-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-language-v1:1.46.0:1.46.1-SNAPSHOT -proto-google-cloud-language-v1beta2:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-logging-v2:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-monitoring-v3:1.46.0:1.46.1-SNAPSHOT -proto-google-cloud-os-login-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.46.0:1.46.1-SNAPSHOT -proto-google-cloud-redis-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-redis-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-scheduler-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-scheduler-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-securitycenter-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-securitycenter-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-spanner-admin-database-v1:1.9.0:1.9.1-SNAPSHOT -proto-google-cloud-spanner-admin-instance-v1:1.9.0:1.9.1-SNAPSHOT -proto-google-cloud-spanner-v1:1.9.0:1.9.1-SNAPSHOT -proto-google-cloud-speech-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-speech-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-speech-v1p1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-texttospeech-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-texttospeech-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-trace-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-trace-v2:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1beta2:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1p1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1p2beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-vision-v1:1.46.0:1.46.1-SNAPSHOT -proto-google-cloud-vision-v1p1beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-vision-v1p2beta1:1.46.0:1.46.1-SNAPSHOT -proto-google-cloud-vision-v1p3beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-vision-v1p4beta1:0.47.0:0.47.1-SNAPSHOT -proto-google-cloud-websecurityscanner-v1alpha:0.47.0:0.47.1-SNAPSHOT +google-api-grpc:0.48.0:0.48.0 +google-cloud:0.83.0-alpha:0.83.0-alpha +google-cloud-appengineflexcompat:0.83.0-alpha:0.83.0-alpha +google-cloud-appengineflexcustom:0.83.0-alpha:0.83.0-alpha +google-cloud-appengineflexjava:0.83.0-alpha:0.83.0-alpha +google-cloud-appenginejava8:0.83.0-alpha:0.83.0-alpha +google-cloud-asset:0.83.0-beta:0.83.0-beta +google-cloud-automl:0.83.0-beta:0.83.0-beta +google-cloud-bigquery:1.65.0:1.65.0 +google-cloud-bigquerydatatransfer:0.83.0-beta:0.83.0-beta +google-cloud-bigquerystorage:0.83.0-beta:0.83.0-beta +google-cloud-bigtable:0.83.0-alpha:0.83.0-alpha +google-cloud-bigtable-emulator:0.83.0-alpha:0.83.0-alpha +google-cloud-bom:0.83.0-alpha:0.83.0-alpha +google-cloud-clients:0.83.0-alpha:0.83.0-alpha +google-cloud-compat-checker:0.83.0-alpha:0.83.0-alpha +google-cloud-compute:0.83.0-alpha:0.83.0-alpha +google-cloud-container:0.83.0-beta:0.83.0-beta +google-cloud-containeranalysis:0.83.0-beta:0.83.0-beta +google-cloud-contrib:0.83.0-alpha:0.83.0-alpha +google-cloud-core:1.65.0:1.65.0 +google-cloud-core-grpc:1.65.0:1.65.0 +google-cloud-core-http:1.65.0:1.65.0 +google-cloud-dataproc:0.83.0-alpha:0.83.0-alpha +google-cloud-datastore:1.65.0:1.65.0 +google-cloud-dialogflow:0.83.0-alpha:0.83.0-alpha +google-cloud-dlp:0.83.0-beta:0.83.0-beta +google-cloud-dns:0.83.0-alpha:0.83.0-alpha +google-cloud-errorreporting:0.83.0-beta:0.83.0-beta +google-cloud-examples:0.83.0-alpha:0.83.0-alpha +google-cloud-firestore:0.83.0-beta:0.83.0-beta +google-cloud-gcloud-maven-plugin:0.83.0-alpha:0.83.0-alpha +google-cloud-iamcredentials:0.10.0-alpha:0.10.0-alpha +google-cloud-iot:0.83.0-beta:0.83.0-beta +google-cloud-kms:1.1.0:1.1.0 +google-cloud-language:1.65.0:1.65.0 +google-cloud-logging:1.65.0:1.65.0 +google-cloud-logging-logback:0.83.0-alpha:0.83.0-alpha +google-cloud-managedtest:0.83.0-alpha:0.83.0-alpha +google-cloud-monitoring:1.65.0:1.65.0 +google-cloud-nio:0.83.0-alpha:0.83.0-alpha +google-cloud-nio-examples:0.83.0-alpha:0.83.0-alpha +google-cloud-notification:0.83.0-beta:0.83.0-beta +google-cloud-os-login:0.83.0-alpha:0.83.0-alpha +google-cloud-pubsub:1.65.0:1.65.0 +google-cloud-redis:0.83.0-alpha:0.83.0-alpha +google-cloud-resourcemanager:0.83.0-alpha:0.83.0-alpha +google-cloud-scheduler:0.83.0-alpha:0.83.0-alpha +google-cloud-securitycenter:0.83.0-alpha:0.83.0-alpha +google-cloud-spanner:1.10.0:1.10.0 +google-cloud-speech:0.83.0-beta:0.83.0-beta +google-cloud-storage:1.65.0:1.65.0 +google-cloud-tasks:0.83.0-beta:0.83.0-beta +google-cloud-testing:0.83.0-alpha:0.83.0-alpha +google-cloud-texttospeech:0.83.0-beta:0.83.0-beta +google-cloud-trace:0.83.0-beta:0.83.0-beta +google-cloud-translate:1.65.0:1.65.0 +google-cloud-util:0.83.0-alpha:0.83.0-alpha +google-cloud-video-intelligence:0.83.0-beta:0.83.0-beta +google-cloud-vision:1.65.0:1.65.0 +google-cloud-websecurityscanner:0.83.0-alpha:0.83.0-alpha +grpc-google-cloud-asset-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-automl-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-bigquerydatatransfer-v1:0.48.0:0.48.0 +grpc-google-cloud-bigquerystorage-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-bigtable-admin-v2:0.48.0:0.48.0 +grpc-google-cloud-bigtable-v2:0.48.0:0.48.0 +grpc-google-cloud-container-v1:0.48.0:0.48.0 +grpc-google-cloud-containeranalysis-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-dataproc-v1:0.48.0:0.48.0 +grpc-google-cloud-dataproc-v1beta2:0.48.0:0.48.0 +grpc-google-cloud-dialogflow-v2:0.48.0:0.48.0 +grpc-google-cloud-dialogflow-v2beta1:0.48.0:0.48.0 +grpc-google-cloud-dlp-v2:0.48.0:0.48.0 +grpc-google-cloud-error-reporting-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-firestore-v1:0.48.0:0.48.0 +grpc-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.0-alpha +grpc-google-cloud-iot-v1:0.48.0:0.48.0 +grpc-google-cloud-kms-v1:0.48.0:0.48.0 +grpc-google-cloud-language-v1:1.47.0:1.47.0 +grpc-google-cloud-language-v1beta2:0.48.0:0.48.0 +grpc-google-cloud-logging-v2:0.48.0:0.48.0 +grpc-google-cloud-monitoring-v3:1.47.0:1.47.0 +grpc-google-cloud-os-login-v1:0.48.0:0.48.0 +grpc-google-cloud-pubsub-v1:1.47.0:1.47.0 +grpc-google-cloud-redis-v1:0.48.0:0.48.0 +grpc-google-cloud-redis-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-scheduler-v1:0.48.0:0.48.0 +grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-securitycenter-v1:0.48.0:0.48.0 +grpc-google-cloud-spanner-admin-database-v1:1.10.0:1.10.0 +grpc-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.0 +grpc-google-cloud-spanner-v1:1.10.0:1.10.0 +grpc-google-cloud-speech-v1:0.48.0:0.48.0 +grpc-google-cloud-speech-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-speech-v1p1beta1:0.48.0:0.48.0 +grpc-google-cloud-tasks-v2beta2:0.48.0:0.48.0 +grpc-google-cloud-tasks-v2beta3:0.48.0:0.48.0 +grpc-google-cloud-texttospeech-v1:0.48.0:0.48.0 +grpc-google-cloud-texttospeech-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-trace-v1:0.48.0:0.48.0 +grpc-google-cloud-trace-v2:0.48.0:0.48.0 +grpc-google-cloud-video-intelligence-v1:0.48.0:0.48.0 +grpc-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.0 +grpc-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.0 +grpc-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.0 +grpc-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.0 +grpc-google-cloud-vision-v1:1.47.0:1.47.0 +grpc-google-cloud-vision-v1p1beta1:0.48.0:0.48.0 +grpc-google-cloud-vision-v1p2beta1:1.47.0:1.47.0 +grpc-google-cloud-vision-v1p3beta1:0.48.0:0.48.0 +grpc-google-cloud-vision-v1p4beta1:0.48.0:0.48.0 +grpc-google-cloud-websecurityscanner-v1alpha:0.48.0:0.48.0 +proto-google-cloud-asset-v1beta1:0.48.0:0.48.0 +proto-google-cloud-automl-v1beta1:0.48.0:0.48.0 +proto-google-cloud-bigquerydatatransfer-v1:0.48.0:0.48.0 +proto-google-cloud-bigquerystorage-v1beta1:0.48.0:0.48.0 +proto-google-cloud-bigtable-admin-v2:0.48.0:0.48.0 +proto-google-cloud-bigtable-v2:0.48.0:0.48.0 +proto-google-cloud-container-v1:0.48.0:0.48.0 +proto-google-cloud-containeranalysis-v1beta1:0.48.0:0.48.0 +proto-google-cloud-dataproc-v1:0.48.0:0.48.0 +proto-google-cloud-dataproc-v1beta2:0.48.0:0.48.0 +proto-google-cloud-datastore-v1:0.48.0:0.48.0 +proto-google-cloud-dialogflow-v2:0.48.0:0.48.0 +proto-google-cloud-dialogflow-v2beta1:0.48.0:0.48.0 +proto-google-cloud-dlp-v2:0.48.0:0.48.0 +proto-google-cloud-error-reporting-v1beta1:0.48.0:0.48.0 +proto-google-cloud-firestore-v1beta1:0.48.0:0.48.0 +proto-google-cloud-firestore-v1:0.48.0:0.48.0 +proto-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.0-alpha +proto-google-cloud-iot-v1:0.48.0:0.48.0 +proto-google-cloud-kms-v1:0.48.0:0.48.0 +proto-google-cloud-language-v1:1.47.0:1.47.0 +proto-google-cloud-language-v1beta2:0.48.0:0.48.0 +proto-google-cloud-logging-v2:0.48.0:0.48.0 +proto-google-cloud-monitoring-v3:1.47.0:1.47.0 +proto-google-cloud-os-login-v1:0.48.0:0.48.0 +proto-google-cloud-pubsub-v1:1.47.0:1.47.0 +proto-google-cloud-redis-v1:0.48.0:0.48.0 +proto-google-cloud-redis-v1beta1:0.48.0:0.48.0 +proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.0 +proto-google-cloud-scheduler-v1:0.48.0:0.48.0 +proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.0 +proto-google-cloud-securitycenter-v1:0.48.0:0.48.0 +proto-google-cloud-spanner-admin-database-v1:1.10.0:1.10.0 +proto-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.0 +proto-google-cloud-spanner-v1:1.10.0:1.10.0 +proto-google-cloud-speech-v1:0.48.0:0.48.0 +proto-google-cloud-speech-v1beta1:0.48.0:0.48.0 +proto-google-cloud-speech-v1p1beta1:0.48.0:0.48.0 +proto-google-cloud-tasks-v2beta2:0.48.0:0.48.0 +proto-google-cloud-tasks-v2beta3:0.48.0:0.48.0 +proto-google-cloud-texttospeech-v1:0.48.0:0.48.0 +proto-google-cloud-texttospeech-v1beta1:0.48.0:0.48.0 +proto-google-cloud-trace-v1:0.48.0:0.48.0 +proto-google-cloud-trace-v2:0.48.0:0.48.0 +proto-google-cloud-video-intelligence-v1:0.48.0:0.48.0 +proto-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.0 +proto-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.0 +proto-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.0 +proto-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.0 +proto-google-cloud-vision-v1:1.47.0:1.47.0 +proto-google-cloud-vision-v1p1beta1:0.48.0:0.48.0 +proto-google-cloud-vision-v1p2beta1:1.47.0:1.47.0 +proto-google-cloud-vision-v1p3beta1:0.48.0:0.48.0 +proto-google-cloud-vision-v1p4beta1:0.48.0:0.48.0 +proto-google-cloud-websecurityscanner-v1alpha:0.48.0:0.48.0 From e8acfe7db0d1ea712e29dc7ce24fdae18804d005 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Tue, 12 Mar 2019 01:52:13 -0700 Subject: [PATCH 33/53] Regenerate securitycenter client (#4667) --- .../cloud/securitycenter/v1/AssetOuterClass.java | 9 +++++---- .../cloud/securitycenter/v1/FindingOuterClass.java | 9 +++++---- .../v1/OrganizationSettingsOuterClass.java | 9 +++++---- .../securitycenter/v1/SecurityMarksOuterClass.java | 9 +++++---- .../cloud/securitycenter/v1/SecuritycenterService.java | 9 +++++---- .../cloud/securitycenter/v1/SourceOuterClass.java | 9 +++++---- .../proto/google/cloud/securitycenter/v1/asset.proto | 1 + .../proto/google/cloud/securitycenter/v1/finding.proto | 1 + .../securitycenter/v1/organization_settings.proto | 1 + .../cloud/securitycenter/v1/security_marks.proto | 1 + .../securitycenter/v1/securitycenter_service.proto | 1 + .../proto/google/cloud/securitycenter/v1/source.proto | 1 + .../google-cloud-securitycenter/synth.metadata | 10 +++++----- 13 files changed, 41 insertions(+), 29 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java index c60e79cade03..0a1b0c5df296 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java @@ -60,10 +60,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\t\022\027\n\017resource_owners\030\005 \003(\t\032 \n\tIamPolicy" + "\022\023\n\013policy_blob\030\001 \001(\t\032Q\n\027ResourcePropert" + "iesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.g" - + "oogle.protobuf.Value:\0028\001Bt\n\"com.google.c" - + "loud.securitycenter.v1P\001ZLgoogle.golang." - + "org/genproto/googleapis/cloud/securityce" - + "nter/v1;securitycenterb\006proto3" + + "oogle.protobuf.Value:\0028\001B\225\001\n\"com.google." + + "cloud.securitycenter.v1P\001ZLgoogle.golang" + + ".org/genproto/googleapis/cloud/securityc" + + "enter/v1;securitycenter\252\002\036Google.Cloud.S" + + "ecurityCenter.V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java index 18990019673b..e0c07e97bbe6 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -48,10 +48,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Timestamp\032O\n\025SourcePropertiesEntry\022\013\n\003ke" + "y\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" + ".Value:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED" - + "\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002Bt\n\"com.goog" - + "le.cloud.securitycenter.v1P\001ZLgoogle.gol" - + "ang.org/genproto/googleapis/cloud/securi" - + "tycenter/v1;securitycenterb\006proto3" + + "\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002B\225\001\n\"com.goo" + + "gle.cloud.securitycenter.v1P\001ZLgoogle.go" + + "lang.org/genproto/googleapis/cloud/secur" + + "itycenter/v1;securitycenter\252\002\036Google.Clo" + + "ud.SecurityCenter.V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java index b207cead2503..0144b7a5839a 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java @@ -42,10 +42,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v1.OrganizationSettings.AssetDiscoveryC" + "onfig.InclusionMode\"N\n\rInclusionMode\022\036\n\032" + "INCLUSION_MODE_UNSPECIFIED\020\000\022\020\n\014INCLUDE_" - + "ONLY\020\001\022\013\n\007EXCLUDE\020\002J\004\010\004\020\005J\004\010\005\020\006Bt\n\"com.g" - + "oogle.cloud.securitycenter.v1P\001ZLgoogle." - + "golang.org/genproto/googleapis/cloud/sec" - + "uritycenter/v1;securitycenterb\006proto3" + + "ONLY\020\001\022\013\n\007EXCLUDE\020\002J\004\010\004\020\005J\004\010\005\020\006B\225\001\n\"com." + + "google.cloud.securitycenter.v1P\001ZLgoogle" + + ".golang.org/genproto/googleapis/cloud/se" + + "curitycenter/v1;securitycenter\252\002\036Google." + + "Cloud.SecurityCenter.V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java index 214907fe85f3..0a9ad0c57199 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java @@ -35,10 +35,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "SecurityMarks\022\014\n\004name\030\001 \001(\t\022G\n\005marks\030\002 \003" + "(\01328.google.cloud.securitycenter.v1.Secu" + "rityMarks.MarksEntry\032,\n\nMarksEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bt\n\"com.google" - + ".cloud.securitycenter.v1P\001ZLgoogle.golan" - + "g.org/genproto/googleapis/cloud/security" - + "center/v1;securitycenterb\006proto3" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\225\001\n\"com.googl" + + "e.cloud.securitycenter.v1P\001ZLgoogle.gola" + + "ng.org/genproto/googleapis/cloud/securit" + + "ycenter/v1;securitycenter\252\002\036Google.Cloud" + + ".SecurityCenter.V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java index b8c7ec2b685c..acd430ecef07 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java @@ -311,10 +311,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "organizations/*/assets/*/securityMarks}:" + "\016security_marksZ^2L/v1/{security_marks.n" + "ame=organizations/*/sources/*/findings/*" - + "/securityMarks}:\016security_marksBt\n\"com.g" - + "oogle.cloud.securitycenter.v1P\001ZLgoogle." - + "golang.org/genproto/googleapis/cloud/sec" - + "uritycenter/v1;securitycenterb\006proto3" + + "/securityMarks}:\016security_marksB\225\001\n\"com." + + "google.cloud.securitycenter.v1P\001ZLgoogle" + + ".golang.org/genproto/googleapis/cloud/se" + + "curitycenter/v1;securitycenter\252\002\036Google." + + "Cloud.SecurityCenter.V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java index 0402ab4bf884..f38499291a14 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java @@ -29,10 +29,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\022\036google.cloud.securitycenter.v1\032\034g" + "oogle/api/annotations.proto\"G\n\006Source\022\014\n" + "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013des" - + "cription\030\003 \001(\tJ\004\010\004\020\005Bt\n\"com.google.cloud" - + ".securitycenter.v1P\001ZLgoogle.golang.org/" - + "genproto/googleapis/cloud/securitycenter" - + "/v1;securitycenterb\006proto3" + + "cription\030\003 \001(\tJ\004\010\004\020\005B\225\001\n\"com.google.clou" + + "d.securitycenter.v1P\001ZLgoogle.golang.org" + + "/genproto/googleapis/cloud/securitycente" + + "r/v1;securitycenter\252\002\036Google.Cloud.Secur" + + "ityCenter.V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto index 7508fc62afb7..97b5bfb0b94e 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto @@ -22,6 +22,7 @@ import "google/cloud/securitycenter/v1/security_marks.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto index 992598cffb18..0c20b85f693d 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto @@ -22,6 +22,7 @@ import "google/cloud/securitycenter/v1/security_marks.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto index c3c12a28172f..92c2f9d5b850 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto @@ -19,6 +19,7 @@ package google.cloud.securitycenter.v1; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto index b4197e74e4ba..00328a53d552 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto @@ -19,6 +19,7 @@ package google.cloud.securitycenter.v1; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto index a8a05993a48e..f49fb8528d0f 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -32,6 +32,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto index e58a0596d613..7d835ec05a74 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto @@ -19,6 +19,7 @@ package google.cloud.securitycenter.v1; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/google-cloud-clients/google-cloud-securitycenter/synth.metadata b/google-cloud-clients/google-cloud-securitycenter/synth.metadata index a3237ad51a27..e0717b650ab4 100644 --- a/google-cloud-clients/google-cloud-securitycenter/synth.metadata +++ b/google-cloud-clients/google-cloud-securitycenter/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-07T21:20:30.007235Z", + "updateTime": "2019-03-12T07:50:35.842098Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.15", - "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" + "version": "0.16.16", + "dockerImage": "googleapis/artman@sha256:30babbfce7f05a62b1892c63c575aa2c8c502eb4bcc8f3bb90ec83e955d5d319" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6df9a80f147c4349949f6573b5275deebddd3ba8", - "internalRef": "237262681" + "sha": "abd1c9a99c5cd7179d8e5e0c8d4c8e761054cc78", + "internalRef": "237945492" } } ], From 257aa8ea9d3bc3fcb55440cbdd3f550a3400c2be Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Tue, 12 Mar 2019 07:09:18 -0700 Subject: [PATCH 34/53] Bump next snapshot (#4666) --- .../grpc-google-cloud-asset-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-bigtable-v2/pom.xml | 4 +- .../grpc-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-firestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-iot-v1/pom.xml | 4 +- .../grpc-google-cloud-kms-v1/pom.xml | 4 +- .../grpc-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-logging-v2/pom.xml | 4 +- .../grpc-google-cloud-monitoring-v3/pom.xml | 4 +- .../grpc-google-cloud-os-login-v1/pom.xml | 4 +- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-spanner-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../grpc-google-cloud-texttospeech-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-trace-v1/pom.xml | 4 +- .../grpc-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-api-grpc/pom.xml | 220 ++++++------ .../proto-google-cloud-asset-v1beta1/pom.xml | 4 +- .../proto-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-bigtable-v2/pom.xml | 4 +- .../proto-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-datastore-v1/pom.xml | 4 +- .../proto-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-firestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-iot-v1/pom.xml | 4 +- .../proto-google-cloud-kms-v1/pom.xml | 4 +- .../proto-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-logging-v2/pom.xml | 4 +- .../proto-google-cloud-monitoring-v3/pom.xml | 4 +- .../proto-google-cloud-os-login-v1/pom.xml | 4 +- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1beta1/pom.xml | 4 +- .../proto-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-spanner-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-trace-v1/pom.xml | 4 +- .../proto-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-cloud-bom/pom.xml | 304 ++++++++-------- .../google-cloud-asset/pom.xml | 4 +- .../google-cloud-automl/pom.xml | 4 +- .../google-cloud-bigquery/pom.xml | 4 +- .../google-cloud-bigquerydatatransfer/pom.xml | 4 +- .../google-cloud-bigquerystorage/pom.xml | 4 +- .../google-cloud-bigtable/pom.xml | 4 +- .../google-cloud-compute/pom.xml | 4 +- .../google-cloud-container/pom.xml | 4 +- .../google-cloud-containeranalysis/pom.xml | 4 +- .../google-cloud-logging-logback/pom.xml | 4 +- .../google-cloud-nio-examples/README.md | 4 +- .../google-cloud-nio-examples/pom.xml | 4 +- .../google-cloud-nio/pom.xml | 4 +- .../google-cloud-contrib/pom.xml | 4 +- .../google-cloud-core-grpc/pom.xml | 4 +- .../google-cloud-core-http/pom.xml | 4 +- .../google-cloud-core/pom.xml | 4 +- .../google-cloud-dataproc/pom.xml | 4 +- .../google-cloud-datastore/pom.xml | 4 +- .../google-cloud-dialogflow/pom.xml | 4 +- google-cloud-clients/google-cloud-dlp/pom.xml | 4 +- google-cloud-clients/google-cloud-dns/pom.xml | 4 +- .../google-cloud-errorreporting/pom.xml | 4 +- .../google-cloud-firestore/pom.xml | 4 +- .../google-cloud-iamcredentials/pom.xml | 4 +- google-cloud-clients/google-cloud-iot/pom.xml | 4 +- google-cloud-clients/google-cloud-kms/pom.xml | 4 +- .../google-cloud-language/pom.xml | 4 +- .../google-cloud-logging/pom.xml | 4 +- .../google-cloud-monitoring/pom.xml | 4 +- .../google-cloud-notification/pom.xml | 4 +- .../google-cloud-os-login/pom.xml | 4 +- .../google-cloud-pubsub/pom.xml | 4 +- .../google-cloud-redis/pom.xml | 4 +- .../google-cloud-resourcemanager/pom.xml | 4 +- .../google-cloud-scheduler/pom.xml | 4 +- .../google-cloud-securitycenter/pom.xml | 4 +- .../google-cloud-spanner/pom.xml | 4 +- .../google-cloud-speech/pom.xml | 4 +- .../google-cloud-storage/pom.xml | 4 +- .../google-cloud-tasks/pom.xml | 4 +- .../google-cloud-texttospeech/pom.xml | 4 +- .../google-cloud-trace/pom.xml | 4 +- .../google-cloud-translate/pom.xml | 4 +- .../google-cloud-video-intelligence/pom.xml | 4 +- .../google-cloud-vision/pom.xml | 4 +- .../google-cloud-websecurityscanner/pom.xml | 4 +- google-cloud-clients/pom.xml | 6 +- google-cloud-examples/pom.xml | 4 +- .../google-cloud-appengineflexcompat/pom.xml | 4 +- .../google-cloud-appengineflexcustom/pom.xml | 4 +- .../google-cloud-appengineflexjava/pom.xml | 4 +- .../google-cloud-appenginejava8/pom.xml | 4 +- .../google-cloud-bigtable-emulator/pom.xml | 6 +- .../google-cloud-gcloud-maven-plugin/pom.xml | 4 +- .../google-cloud-managedtest/pom.xml | 4 +- google-cloud-testing/pom.xml | 6 +- .../google-cloud-compat-checker/pom.xml | 4 +- google-cloud-util/pom.xml | 2 +- versions.txt | 340 +++++++++--------- 171 files changed, 770 insertions(+), 770 deletions(-) diff --git a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml index 653297bf69ef..2f8ff1a8e69b 100644 --- a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-asset-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-asset-v1beta1 GRPC library for grpc-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml index 109846354998..3edab8befcfd 100644 --- a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-automl-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 51dfece4e5a3..8ad69b0d89b0 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerydatatransfer-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml index e70622df19bd..661d19352263 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerystorage-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-bigquerystorage-v1beta1 GRPC library for grpc-google-cloud-bigquerystorage-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml index 0828b8d78f80..db943ed73fbe 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-admin-v2 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-bigtable-admin-v2 GRPC library for grpc-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml index 121626127ca2..178c0fd8d2eb 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-v2 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-bigtable-v2 GRPC library for grpc-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml index 4f4e92d24ffa..6cd6cc8e61fa 100644 --- a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-container-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index 6de46a797432..8d13712144ee 100644 --- a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-containeranalysis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml index 85db81d14dab..fbdf897a821a 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml index c0c050d71f4c..6ebbcdb4e3de 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml index 64a5bef33fb8..297916f58bba 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml index ecace23534e1..2ab7f7b14c47 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml index 69c68adfc43e..60f5b3c2e8ac 100644 --- a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dlp-v2 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml index d8b07ce11238..95bc4a9ba286 100644 --- a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-error-reporting-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml index 8e706298139b..668dbffd77f7 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-firestore-v1 GRPC library for grpc-google-cloud-firestore-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml index 34d734065249..c8f5728633c7 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-firestore-v1beta1 GRPC library for grpc-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml index fdea51b781a6..9de6ad76cec3 100644 --- a/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iamcredentials-v1 - 0.10.0-alpha + 0.10.1-alpha-SNAPSHOT grpc-google-cloud-iamcredentials-v1 GRPC library for grpc-google-cloud-iamcredentials-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml index 487425629fd5..ea8f9c31a865 100644 --- a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iot-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml index a85a14a9ce1c..961768ed0f1a 100644 --- a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-kms-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml index c82d4df95380..46266bb8367b 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1 - 1.47.0 + 1.47.1-SNAPSHOT grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml index 53f1d7c69c2f..6cd584578477 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml index 79ebd5b18f95..3ae9892ddc83 100644 --- a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-logging-v2 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-logging-v2 GRPC library for grpc-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml index 957d55dee4d3..00a7cfaf1e48 100644 --- a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-monitoring-v3 - 1.47.0 + 1.47.1-SNAPSHOT grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml index 0de083c2829a..c969f7552c0f 100644 --- a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-os-login-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml index f23c9349cde0..e97e39c9a96b 100644 --- a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.47.0 + 1.47.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml index 1714676534a8..ce7c3ad5486c 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml index 11700ef8aad4..faf7d391681d 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml index c54a6fb9de85..4330d35ad64b 100644 --- a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-scheduler-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-scheduler-v1 GRPC library for grpc-google-cloud-scheduler-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml index 0cc42aa0f39c..7da525823bae 100644 --- a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-scheduler-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-scheduler-v1beta1 GRPC library for grpc-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml index 4189259c01ce..c4e1cdcd4091 100644 --- a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-securitycenter-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 13278c93336f..49a334e89bf3 100644 --- a/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-securitycenter-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml index 44bfcecc5578..7f629327b1f0 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-database-v1 - 1.10.0 + 1.10.1-SNAPSHOT grpc-google-cloud-spanner-admin-database-v1 GRPC library for grpc-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml index 0538ad16ab17..737e4e95c847 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-instance-v1 - 1.10.0 + 1.10.1-SNAPSHOT grpc-google-cloud-spanner-admin-instance-v1 GRPC library for grpc-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml index d1242eef006c..ac8d895a6863 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-v1 - 1.10.0 + 1.10.1-SNAPSHOT grpc-google-cloud-spanner-v1 GRPC library for grpc-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml index e31663c70d6c..5faab62b16a2 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml index 5d54dc3be620..7fc317b9e820 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml index c1975d5dd415..07057fbfc700 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml index 9f3bbd2005f2..221804e528ac 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta2 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml index 45fff566de49..1f9e2daddf44 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta3 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml index 0b48141a69bb..e0a44ab64dba 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml index 20a433c43193..29120b187974 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml index f7db08363457..11f99d327ac5 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml index f8ec5684d861..026afd61babb 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v2 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml index d49d1321b8a9..28c86ba497c1 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml index 47e055c67a37..db1f1fc8d9a6 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index b9a8cce1ab63..25afcea6c813 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index c0a9b755a286..34fe1c9f4618 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index 52bcdcded607..245abd6af3b4 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p2beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml index a61bda499021..0e5a23c5a4e2 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1 - 1.47.0 + 1.47.1-SNAPSHOT grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml index ef01649ff639..4ed8d668b1d6 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml index fd26cd6b23c2..59f5f9426c07 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p2beta1 - 1.47.0 + 1.47.1-SNAPSHOT grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml index 16980c10dc2b..832983fd275d 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p3beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml index c9c460b4bea7..ca6590beeeed 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p4beta1 - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index 06c2dcf1b0e1..ba0a7440df31 100644 --- a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-websecurityscanner-v1alpha - 0.48.0 + 0.48.1-SNAPSHOT grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index c64987d8fa2c..f333662374da 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-api-grpc pom - 0.48.0 + 0.48.1-SNAPSHOT Google Cloud API gRPC https://github.com/googleapis/google-cloud-java/tree/master/google-api-grpc @@ -142,547 +142,547 @@ com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-datastore-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dlp-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-kms-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-kms-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-logging-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-logging-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc proto-google-cloud-os-login-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-iot-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-iot-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 0.10.0-alpha + 0.10.1-alpha-SNAPSHOT com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 0.10.0-alpha + 0.10.1-alpha-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml index bd3e4465bef8..c087e1262960 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-asset-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-asset-v1beta1 PROTO library for proto-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml index 84e4cc64ab3b..3aed1a15d76c 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-automl-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 6b315678c5f3..9b315fb05677 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerydatatransfer-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml index 284dc2c5595f..863b36f2f68b 100644 --- a/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerystorage-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-bigquerystorage-v1beta1 PROTO library for proto-google-cloud-bigquerystorage-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml index 66acd869d03f..afd60c9a1d98 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-admin-v2 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-bigtable-admin-v2 PROTO library for proto-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml index 519483609794..f87417dde929 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-v2 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-bigtable-v2 PROTO library for proto-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-container-v1/pom.xml b/google-api-grpc/proto-google-cloud-container-v1/pom.xml index 15f898599d63..9912dbb364bc 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-container-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml index 29322d40bb59..76aa7a30abb5 100644 --- a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-containeranalysis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml index 67d5c6b2bd2f..164eefeff848 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml index 980c66e5e00f..9d6e577c0a52 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml index 8e241c5b882d..3fc45d306546 100644 --- a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-datastore-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-datastore-v1 PROTO library for proto-google-cloud-datastore-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml index 55fbc88c9619..c40320c3315e 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml index 6451c7325382..7fb1c8e877f3 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml index 4aa6f0abdf9a..97f2f7e9c09d 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dlp-v2 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml index cd2f4454fe13..0899d6e30337 100644 --- a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-error-reporting-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml index bde61ac49ec6..3543177245b6 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-firestore-v1 PROTO library for proto-google-cloud-firestore-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml index b6d50d49628f..16ee70fc6c90 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-firestore-v1beta1 PROTO library for proto-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml b/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml index 7edb91413cc6..9062e046a62b 100644 --- a/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iamcredentials-v1 - 0.10.0-alpha + 0.10.1-alpha-SNAPSHOT proto-google-cloud-iamcredentials-v1 PROTO library for proto-google-cloud-iamcredentials-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml index 0577bd6b9958..1cc1c35dd721 100644 --- a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iot-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml index 46a2e57ee9fa..6197d9641c04 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-kms-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-language-v1/pom.xml b/google-api-grpc/proto-google-cloud-language-v1/pom.xml index cdf6d89ca7d6..43a63447bdb8 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1 - 1.47.0 + 1.47.1-SNAPSHOT proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml index 332e7c682eff..88a98c002065 100644 --- a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml index 2f01325de02d..c25573d31664 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-logging-v2 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-logging-v2 PROTO library for proto-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml index 3ea6fa753691..0c789062d9de 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-monitoring-v3 - 1.47.0 + 1.47.1-SNAPSHOT proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml index f8c63276a680..74fed5f996b9 100644 --- a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-os-login-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml index 6cfc5dfdaa73..ec5ce024ae19 100644 --- a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.47.0 + 1.47.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml index 13dd57b28ee8..aba8c980eb72 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml index e894901c931c..6ba7cfd08961 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml index 019e7efee3c9..6de8444001ae 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-scheduler-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-scheduler-v1 PROTO library for proto-google-cloud-scheduler-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml index 10ab87b0a10a..8f5e67c93f31 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-scheduler-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-scheduler-v1beta1 PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml index 1d1f70b72043..5467154dafea 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-securitycenter-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml index ec606a85db25..21ac8f034973 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-securitycenter-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml index 3dbd8a193e1e..549bf3669833 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-database-v1 - 1.10.0 + 1.10.1-SNAPSHOT proto-google-cloud-spanner-admin-database-v1 PROTO library for proto-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml index 7581716e7bb4..71ae588ef108 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-instance-v1 - 1.10.0 + 1.10.1-SNAPSHOT proto-google-cloud-spanner-admin-instance-v1 PROTO library for proto-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml index 304eaaa039ed..65f566ee5dd3 100644 --- a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-v1 - 1.10.0 + 1.10.1-SNAPSHOT proto-google-cloud-spanner-v1 PROTO library for proto-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml index 1ea214742135..0750ff2fe43b 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml index cb598389e02b..a043fdf3e468 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml index d6d6e62b6c0b..9663506c645a 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml index 595cde46a28b..e7929c84f766 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta2 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml index b362bd3dc2c2..3d7d85185101 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta3 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml index 9ea20e060a6c..afc78b9905c4 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml index 46b5d063ff28..4599080ab875 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml index dc4b5ec4564d..7670de04bc35 100644 --- a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml index 1852b708ce79..04b581bf12f1 100644 --- a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v2 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml index 768b230a0e1c..d593b2b45751 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml index 0b691f8bddc1..ce0b7d038cb2 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-video-intelligence-v1beta1 PROTO library for proto-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml index b579bac09a48..db31ea582ee0 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index 89df66b6b66a..8084cb091256 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index e507b193ccc0..8dd10c8ae4ba 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p2beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml index 1239fb1f6fd2..5c6a5d1cfe02 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1 - 1.47.0 + 1.47.1-SNAPSHOT proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml index 65dd9ef9f857..4f5eb5d5f7e4 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml index aa4808799e88..9022da7adb78 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p2beta1 - 1.47.0 + 1.47.1-SNAPSHOT proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml index 6bc6644761fd..aa8ddb1e1685 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p3beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml index 90eaeed5eb8b..f7de8dd891a3 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p4beta1 - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index 7a09c1fc44a4..d006f256e944 100644 --- a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-websecurityscanner-v1alpha - 0.48.0 + 0.48.1-SNAPSHOT proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index cca0e8e26a3b..8fcad29f6697 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bom pom - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT Google Cloud Java BOM https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-bom @@ -197,758 +197,758 @@ com.google.cloud google-cloud-asset - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-automl - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-bigtable - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-bigtable-emulator - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.cloud google-cloud-bigquery - 1.65.0 + 1.65.1-SNAPSHOT com.google.cloud google-cloud-bigquerydatatransfer - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-compute - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.cloud google-cloud-container - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-containeranalysis - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-contrib - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.cloud google-cloud-nio - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.cloud google-cloud-core - 1.65.0 + 1.65.1-SNAPSHOT com.google.cloud google-cloud-core-grpc - 1.65.0 + 1.65.1-SNAPSHOT com.google.cloud google-cloud-core-http - 1.65.0 + 1.65.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-datastore - 1.65.0 + 1.65.1-SNAPSHOT com.google.api.grpc proto-google-cloud-datastore-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-dlp - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-dlp-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-dialogflow - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-dns - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.cloud google-cloud-errorreporting - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-firestore - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-kms - 1.1.0 + 1.1.1-SNAPSHOT com.google.api.grpc proto-google-cloud-kms-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-kms-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-language - 1.65.0 + 1.65.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-logging - 1.65.0 + 1.65.1-SNAPSHOT com.google.api.grpc proto-google-cloud-logging-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-logging-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-logging-logback - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.cloud google-cloud-monitoring - 1.65.0 + 1.65.1-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.47.0 + 1.47.1-SNAPSHOT com.google.cloud google-cloud-os-login - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-os-login-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.65.0 + 1.65.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.cloud google-cloud-redis - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-resourcemanager - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.cloud google-cloud-scheduler - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-securitycenter - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-spanner - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 1.10.0 + 1.10.1-SNAPSHOT com.google.cloud google-cloud-speech - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-storage - 1.65.0 + 1.65.1-SNAPSHOT com.google.cloud google-cloud-tasks - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-texttospeech - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-trace - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-translate - 1.65.0 + 1.65.1-SNAPSHOT com.google.cloud google-cloud-vision - 1.65.0 + 1.65.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.47.0 + 1.47.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.cloud google-cloud-video-intelligence - 0.83.0-beta + 0.83.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-iot-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-iot-v1 - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.48.0 + 0.48.1-SNAPSHOT com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 0.10.0-alpha + 0.10.1-alpha-SNAPSHOT com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 0.10.0-alpha + 0.10.1-alpha-SNAPSHOT com.google.cloud google-cloud-iamcredentials - 0.10.0-alpha + 0.10.1-alpha-SNAPSHOT diff --git a/google-cloud-clients/google-cloud-asset/pom.xml b/google-cloud-clients/google-cloud-asset/pom.xml index 2c594667b811..231ec0beb85f 100644 --- a/google-cloud-clients/google-cloud-asset/pom.xml +++ b/google-cloud-clients/google-cloud-asset/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-asset - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Asset https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-asset @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-asset diff --git a/google-cloud-clients/google-cloud-automl/pom.xml b/google-cloud-clients/google-cloud-automl/pom.xml index e96d89cd4a79..265736758520 100644 --- a/google-cloud-clients/google-cloud-automl/pom.xml +++ b/google-cloud-clients/google-cloud-automl/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-automl - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Auto ML https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-automl @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-automl diff --git a/google-cloud-clients/google-cloud-bigquery/pom.xml b/google-cloud-clients/google-cloud-bigquery/pom.xml index 9bca281aba38..bec297d8ef58 100644 --- a/google-cloud-clients/google-cloud-bigquery/pom.xml +++ b/google-cloud-clients/google-cloud-bigquery/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquery - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud BigQuery https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquery @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-bigquery diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml index 3edf793c00b1..d01057066554 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerydatatransfer - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Bigquery Data Transfer https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerydatatransfer @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-bigquerydatatransfer diff --git a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml index d9fa99e2dac7..7bced8792cbc 100644 --- a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerystorage - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Bigquery Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerystorage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-bigquerystorage diff --git a/google-cloud-clients/google-cloud-bigtable/pom.xml b/google-cloud-clients/google-cloud-bigtable/pom.xml index 7d5da2c92003..f9e34585b780 100644 --- a/google-cloud-clients/google-cloud-bigtable/pom.xml +++ b/google-cloud-clients/google-cloud-bigtable/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Bigtable https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigtable @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-bigtable diff --git a/google-cloud-clients/google-cloud-compute/pom.xml b/google-cloud-clients/google-cloud-compute/pom.xml index b3b134533e06..4286c812fc29 100644 --- a/google-cloud-clients/google-cloud-compute/pom.xml +++ b/google-cloud-clients/google-cloud-compute/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compute - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Compute https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-compute @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-compute diff --git a/google-cloud-clients/google-cloud-container/pom.xml b/google-cloud-clients/google-cloud-container/pom.xml index 20eb785cbd67..736eaa81aef8 100644 --- a/google-cloud-clients/google-cloud-container/pom.xml +++ b/google-cloud-clients/google-cloud-container/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-container - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Container https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-container @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-container diff --git a/google-cloud-clients/google-cloud-containeranalysis/pom.xml b/google-cloud-clients/google-cloud-containeranalysis/pom.xml index e187dda4a257..09ad34da3e4f 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/pom.xml +++ b/google-cloud-clients/google-cloud-containeranalysis/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-containeranalysis - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Container Analysis https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-containeranalysis @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-containeranalysis diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml index a9f0e5d9fea7..d85dcb275d35 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-logging-logback - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Logging Logback Appender https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback @@ -20,7 +20,7 @@ com.google.cloud google-cloud-contrib - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md index 57062adede5a..dacd198d72df 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md @@ -23,12 +23,12 @@ To run this example: [//]: # ({x-version-update-start:google-cloud-nio:current}) ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.83.0-alpha.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.83.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.83.1-alpha-SNAPSHOT.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.83.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems ``` Notice that it lists Google Cloud Storage, which it wouldn't if you ran it without the NIO jar: ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.83.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.83.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml index 12c7afd8d01f..54b5ce4c9678 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio-examples - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud NIO Examples https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-nio-examples diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml index e5a06c3bbda2..9e53d212c630 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud NIO https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-nio diff --git a/google-cloud-clients/google-cloud-contrib/pom.xml b/google-cloud-clients/google-cloud-contrib/pom.xml index ba674922da61..6dfc6eccf7d4 100644 --- a/google-cloud-clients/google-cloud-contrib/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-contrib - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT pom Google Cloud Contributions https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-contrib diff --git a/google-cloud-clients/google-cloud-core-grpc/pom.xml b/google-cloud-clients/google-cloud-core-grpc/pom.xml index 184e765482a4..be975207cd10 100644 --- a/google-cloud-clients/google-cloud-core-grpc/pom.xml +++ b/google-cloud-clients/google-cloud-core-grpc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-grpc - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Core gRPC https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-grpc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-core-grpc diff --git a/google-cloud-clients/google-cloud-core-http/pom.xml b/google-cloud-clients/google-cloud-core-http/pom.xml index 1a02e26b6ff3..07756a0a3ca4 100644 --- a/google-cloud-clients/google-cloud-core-http/pom.xml +++ b/google-cloud-clients/google-cloud-core-http/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-http - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Core HTTP https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-http @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-core-http diff --git a/google-cloud-clients/google-cloud-core/pom.xml b/google-cloud-clients/google-cloud-core/pom.xml index 32f5a326c190..8bb0aaf1091f 100644 --- a/google-cloud-clients/google-cloud-core/pom.xml +++ b/google-cloud-clients/google-cloud-core/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Core https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-core diff --git a/google-cloud-clients/google-cloud-dataproc/pom.xml b/google-cloud-clients/google-cloud-dataproc/pom.xml index 566e5cdfac4b..c908d02a8567 100644 --- a/google-cloud-clients/google-cloud-dataproc/pom.xml +++ b/google-cloud-clients/google-cloud-dataproc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dataproc - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dataproc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-dataproc diff --git a/google-cloud-clients/google-cloud-datastore/pom.xml b/google-cloud-clients/google-cloud-datastore/pom.xml index b24d20caf3a9..01784c766afc 100644 --- a/google-cloud-clients/google-cloud-datastore/pom.xml +++ b/google-cloud-clients/google-cloud-datastore/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-datastore - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Datastore https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-datastore @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-datastore diff --git a/google-cloud-clients/google-cloud-dialogflow/pom.xml b/google-cloud-clients/google-cloud-dialogflow/pom.xml index dd455f37818f..701aba3f0291 100644 --- a/google-cloud-clients/google-cloud-dialogflow/pom.xml +++ b/google-cloud-clients/google-cloud-dialogflow/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dialogflow - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Dialog Flow API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dialogflow @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-dialogflow diff --git a/google-cloud-clients/google-cloud-dlp/pom.xml b/google-cloud-clients/google-cloud-dlp/pom.xml index 2d6be3b93aba..363c7e571558 100644 --- a/google-cloud-clients/google-cloud-dlp/pom.xml +++ b/google-cloud-clients/google-cloud-dlp/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dlp - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Data Loss Prevention API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dlp @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-dlp diff --git a/google-cloud-clients/google-cloud-dns/pom.xml b/google-cloud-clients/google-cloud-dns/pom.xml index 58ea4bc1a59f..a1fe2123d438 100644 --- a/google-cloud-clients/google-cloud-dns/pom.xml +++ b/google-cloud-clients/google-cloud-dns/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-dns - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud DNS https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dns @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-dns diff --git a/google-cloud-clients/google-cloud-errorreporting/pom.xml b/google-cloud-clients/google-cloud-errorreporting/pom.xml index 4e602d111587..522f04d1d7bd 100644 --- a/google-cloud-clients/google-cloud-errorreporting/pom.xml +++ b/google-cloud-clients/google-cloud-errorreporting/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-errorreporting - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Error Reporting https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-errorreporting @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-errorreporting diff --git a/google-cloud-clients/google-cloud-firestore/pom.xml b/google-cloud-clients/google-cloud-firestore/pom.xml index e5ec751e7f2b..f527eb4a6b6b 100644 --- a/google-cloud-clients/google-cloud-firestore/pom.xml +++ b/google-cloud-clients/google-cloud-firestore/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-firestore - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Firestore https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-firestore @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-firestore diff --git a/google-cloud-clients/google-cloud-iamcredentials/pom.xml b/google-cloud-clients/google-cloud-iamcredentials/pom.xml index 74950c125265..5f37a2cd4df9 100644 --- a/google-cloud-clients/google-cloud-iamcredentials/pom.xml +++ b/google-cloud-clients/google-cloud-iamcredentials/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iamcredentials - 0.10.0-alpha + 0.10.1-alpha-SNAPSHOT jar Google Cloud Java Client for IAM Service Account Credentials API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iamcredentials @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-iamcredentials diff --git a/google-cloud-clients/google-cloud-iot/pom.xml b/google-cloud-clients/google-cloud-iot/pom.xml index 9e1f244df7bf..4fb5f9302de4 100644 --- a/google-cloud-clients/google-cloud-iot/pom.xml +++ b/google-cloud-clients/google-cloud-iot/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iot - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud IoT https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iot @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-iot diff --git a/google-cloud-clients/google-cloud-kms/pom.xml b/google-cloud-clients/google-cloud-kms/pom.xml index f20ecfc45331..ad6c131badb5 100644 --- a/google-cloud-clients/google-cloud-kms/pom.xml +++ b/google-cloud-clients/google-cloud-kms/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-kms - 1.1.0 + 1.1.1-SNAPSHOT jar Google Cloud KMS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-kms @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-kms-v1 diff --git a/google-cloud-clients/google-cloud-language/pom.xml b/google-cloud-clients/google-cloud-language/pom.xml index 8ed612ce49e9..33f5a8b4440f 100644 --- a/google-cloud-clients/google-cloud-language/pom.xml +++ b/google-cloud-clients/google-cloud-language/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-language - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Natural Language https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-language @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-language diff --git a/google-cloud-clients/google-cloud-logging/pom.xml b/google-cloud-clients/google-cloud-logging/pom.xml index f010913066fd..e74c940a537f 100644 --- a/google-cloud-clients/google-cloud-logging/pom.xml +++ b/google-cloud-clients/google-cloud-logging/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-logging - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Logging https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-logging @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-logging diff --git a/google-cloud-clients/google-cloud-monitoring/pom.xml b/google-cloud-clients/google-cloud-monitoring/pom.xml index 9d3b4d950ffb..05d48e01f227 100644 --- a/google-cloud-clients/google-cloud-monitoring/pom.xml +++ b/google-cloud-clients/google-cloud-monitoring/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-monitoring - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Monitoring https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-monitoring @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-monitoring diff --git a/google-cloud-clients/google-cloud-notification/pom.xml b/google-cloud-clients/google-cloud-notification/pom.xml index 0924bf553795..b04d810f66a8 100644 --- a/google-cloud-clients/google-cloud-notification/pom.xml +++ b/google-cloud-clients/google-cloud-notification/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-notification - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Pub/Sub Notifications for GCS https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-notification @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-notification diff --git a/google-cloud-clients/google-cloud-os-login/pom.xml b/google-cloud-clients/google-cloud-os-login/pom.xml index cbd53163d57a..28183ba34d04 100644 --- a/google-cloud-clients/google-cloud-os-login/pom.xml +++ b/google-cloud-clients/google-cloud-os-login/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-os-login - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud OS Login https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-os-login @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-os-login diff --git a/google-cloud-clients/google-cloud-pubsub/pom.xml b/google-cloud-clients/google-cloud-pubsub/pom.xml index b3db8e608654..bb1935fbcaca 100644 --- a/google-cloud-clients/google-cloud-pubsub/pom.xml +++ b/google-cloud-clients/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/google-cloud-clients/google-cloud-redis/pom.xml b/google-cloud-clients/google-cloud-redis/pom.xml index e815d3855c2e..7965f3dd8e92 100644 --- a/google-cloud-clients/google-cloud-redis/pom.xml +++ b/google-cloud-clients/google-cloud-redis/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-redis - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Redis https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-redis @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-redis diff --git a/google-cloud-clients/google-cloud-resourcemanager/pom.xml b/google-cloud-clients/google-cloud-resourcemanager/pom.xml index 9162e7c227b6..1408f7cea01f 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/pom.xml +++ b/google-cloud-clients/google-cloud-resourcemanager/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-resourcemanager - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Resource Manager https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-resourcemanager @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-resourcemanager diff --git a/google-cloud-clients/google-cloud-scheduler/pom.xml b/google-cloud-clients/google-cloud-scheduler/pom.xml index 76d8eaf8d1b8..e161c7bc6706 100644 --- a/google-cloud-clients/google-cloud-scheduler/pom.xml +++ b/google-cloud-clients/google-cloud-scheduler/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-scheduler - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Scheduler https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-scheduler @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-scheduler diff --git a/google-cloud-clients/google-cloud-securitycenter/pom.xml b/google-cloud-clients/google-cloud-securitycenter/pom.xml index 8e38d3363f4a..c3d1971846fc 100644 --- a/google-cloud-clients/google-cloud-securitycenter/pom.xml +++ b/google-cloud-clients/google-cloud-securitycenter/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-securitycenter - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Security Command Center https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-securitycenter @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-securitycenter diff --git a/google-cloud-clients/google-cloud-spanner/pom.xml b/google-cloud-clients/google-cloud-spanner/pom.xml index badbf5401f4b..0f7646f86be1 100644 --- a/google-cloud-clients/google-cloud-spanner/pom.xml +++ b/google-cloud-clients/google-cloud-spanner/pom.xml @@ -4,7 +4,7 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 google-cloud-spanner - 1.10.0 + 1.10.1-SNAPSHOT jar Google Cloud Spanner https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-spanner @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-spanner diff --git a/google-cloud-clients/google-cloud-speech/pom.xml b/google-cloud-clients/google-cloud-speech/pom.xml index e35600c633e9..13b0184c5a45 100644 --- a/google-cloud-clients/google-cloud-speech/pom.xml +++ b/google-cloud-clients/google-cloud-speech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-speech - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Speech https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-speech diff --git a/google-cloud-clients/google-cloud-storage/pom.xml b/google-cloud-clients/google-cloud-storage/pom.xml index 7bb0501cb2a9..c5c792ca7862 100644 --- a/google-cloud-clients/google-cloud-storage/pom.xml +++ b/google-cloud-clients/google-cloud-storage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-storage - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-storage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-storage diff --git a/google-cloud-clients/google-cloud-tasks/pom.xml b/google-cloud-clients/google-cloud-tasks/pom.xml index abecabb9de30..60efe14dedcf 100644 --- a/google-cloud-clients/google-cloud-tasks/pom.xml +++ b/google-cloud-clients/google-cloud-tasks/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-tasks - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Tasks https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-tasks @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-tasks-v2beta2 diff --git a/google-cloud-clients/google-cloud-texttospeech/pom.xml b/google-cloud-clients/google-cloud-texttospeech/pom.xml index 69a4ba512280..bc3e48b0a5df 100644 --- a/google-cloud-clients/google-cloud-texttospeech/pom.xml +++ b/google-cloud-clients/google-cloud-texttospeech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-texttospeech - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Text-to-Speech https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-texttospeech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-texttospeech-v1beta1 diff --git a/google-cloud-clients/google-cloud-trace/pom.xml b/google-cloud-clients/google-cloud-trace/pom.xml index 7163159e1dd0..7b980c807b41 100644 --- a/google-cloud-clients/google-cloud-trace/pom.xml +++ b/google-cloud-clients/google-cloud-trace/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-trace - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Trace https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-trace diff --git a/google-cloud-clients/google-cloud-translate/pom.xml b/google-cloud-clients/google-cloud-translate/pom.xml index 751e8a06deac..c333beccf1e3 100644 --- a/google-cloud-clients/google-cloud-translate/pom.xml +++ b/google-cloud-clients/google-cloud-translate/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-translate - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Translation https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-translate @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-translate diff --git a/google-cloud-clients/google-cloud-video-intelligence/pom.xml b/google-cloud-clients/google-cloud-video-intelligence/pom.xml index b1425ab25816..932cd74870b2 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/pom.xml +++ b/google-cloud-clients/google-cloud-video-intelligence/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-video-intelligence - 0.83.0-beta + 0.83.1-beta-SNAPSHOT jar Google Cloud Video Intelligence https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-video-intelligence @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-video-intelligence diff --git a/google-cloud-clients/google-cloud-vision/pom.xml b/google-cloud-clients/google-cloud-vision/pom.xml index e3f422a4d1ec..30b66b8737bc 100644 --- a/google-cloud-clients/google-cloud-vision/pom.xml +++ b/google-cloud-clients/google-cloud-vision/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-vision - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Vision https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-vision @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-vision diff --git a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml index ee922e065812..cb40683dc1a3 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-websecurityscanner - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Web Security Scanner https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-websecurityscanner @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-websecurityscanner diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index e51b4fb9d87a..6329f703ed28 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-clients pom - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT Google Cloud https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients @@ -152,7 +152,7 @@ UTF-8 github google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT 1.27.0 1.42.0 @@ -247,7 +247,7 @@ com.google.cloud google-cloud-core - 1.65.0 + 1.65.1-SNAPSHOT test-jar diff --git a/google-cloud-examples/pom.xml b/google-cloud-examples/pom.xml index 6de8a0abf9b2..ed63603f2c51 100644 --- a/google-cloud-examples/pom.xml +++ b/google-cloud-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-examples - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Examples https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples @@ -18,7 +18,7 @@ com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT pom import diff --git a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml index 13be9f24b3d9..b5f1fb0ce07e 100644 --- a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcompat - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml index 4b915872f91a..81ead40d6167 100644 --- a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcustom - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml index b945b1ec64da..c3852305d73f 100644 --- a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexjava - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-appenginejava8/pom.xml b/google-cloud-testing/google-cloud-appenginejava8/pom.xml index f056981692aa..039bb461c16c 100644 --- a/google-cloud-testing/google-cloud-appenginejava8/pom.xml +++ b/google-cloud-testing/google-cloud-appenginejava8/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appenginejava8 - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml b/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml index e28dc9c18502..e7c2e305c214 100644 --- a/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml +++ b/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml @@ -6,7 +6,7 @@ com.google.cloud google-cloud-bigtable-emulator - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT Google Cloud Java - Bigtable Emulator https://github.com/googleapis/google-cloud-java @@ -69,7 +69,7 @@ com.google.cloud google-cloud-gcloud-maven-plugin - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT @@ -126,7 +126,7 @@ com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT pom import diff --git a/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml b/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml index fe1594eb0319..4076cbe3cc18 100644 --- a/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml +++ b/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml @@ -7,11 +7,11 @@ google-cloud-testing com.google.cloud - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-gcloud-maven-plugin - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT maven-plugin Experimental Maven plugin to interact with the Google Cloud SDK (https://cloud.google.com/sdk/). Currently this plugin is meant to be an internal implementation diff --git a/google-cloud-testing/google-cloud-managedtest/pom.xml b/google-cloud-testing/google-cloud-managedtest/pom.xml index 84c9de3b25a6..013429fe51ba 100644 --- a/google-cloud-testing/google-cloud-managedtest/pom.xml +++ b/google-cloud-testing/google-cloud-managedtest/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-managedtest - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar google-cloud-testing com.google.cloud - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/pom.xml b/google-cloud-testing/pom.xml index ccf555b45472..61d4336b82e9 100644 --- a/google-cloud-testing/pom.xml +++ b/google-cloud-testing/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-testing - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT pom Google Cloud Testing @@ -32,14 +32,14 @@ com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT pom import com.google.cloud google-cloud-core - 1.65.0 + 1.65.1-SNAPSHOT test-jar diff --git a/google-cloud-util/google-cloud-compat-checker/pom.xml b/google-cloud-util/google-cloud-compat-checker/pom.xml index c0af047bcc4d..daa8990e48e4 100644 --- a/google-cloud-util/google-cloud-compat-checker/pom.xml +++ b/google-cloud-util/google-cloud-compat-checker/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compat-checker - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT jar Google Cloud Java Compatibility Checker https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-util/google-cloud-compat-checker @@ -12,7 +12,7 @@ com.google.cloud google-cloud-util - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-compat-checker diff --git a/google-cloud-util/pom.xml b/google-cloud-util/pom.xml index 0996a0d4c9c1..1ecbec112f54 100644 --- a/google-cloud-util/pom.xml +++ b/google-cloud-util/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-util - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT pom Google Cloud Util https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-util diff --git a/versions.txt b/versions.txt index 2dd24aaedc33..7ac4814f306d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,173 +1,173 @@ # Format: # module:released-version:current-version -google-api-grpc:0.48.0:0.48.0 -google-cloud:0.83.0-alpha:0.83.0-alpha -google-cloud-appengineflexcompat:0.83.0-alpha:0.83.0-alpha -google-cloud-appengineflexcustom:0.83.0-alpha:0.83.0-alpha -google-cloud-appengineflexjava:0.83.0-alpha:0.83.0-alpha -google-cloud-appenginejava8:0.83.0-alpha:0.83.0-alpha -google-cloud-asset:0.83.0-beta:0.83.0-beta -google-cloud-automl:0.83.0-beta:0.83.0-beta -google-cloud-bigquery:1.65.0:1.65.0 -google-cloud-bigquerydatatransfer:0.83.0-beta:0.83.0-beta -google-cloud-bigquerystorage:0.83.0-beta:0.83.0-beta -google-cloud-bigtable:0.83.0-alpha:0.83.0-alpha -google-cloud-bigtable-emulator:0.83.0-alpha:0.83.0-alpha -google-cloud-bom:0.83.0-alpha:0.83.0-alpha -google-cloud-clients:0.83.0-alpha:0.83.0-alpha -google-cloud-compat-checker:0.83.0-alpha:0.83.0-alpha -google-cloud-compute:0.83.0-alpha:0.83.0-alpha -google-cloud-container:0.83.0-beta:0.83.0-beta -google-cloud-containeranalysis:0.83.0-beta:0.83.0-beta -google-cloud-contrib:0.83.0-alpha:0.83.0-alpha -google-cloud-core:1.65.0:1.65.0 -google-cloud-core-grpc:1.65.0:1.65.0 -google-cloud-core-http:1.65.0:1.65.0 -google-cloud-dataproc:0.83.0-alpha:0.83.0-alpha -google-cloud-datastore:1.65.0:1.65.0 -google-cloud-dialogflow:0.83.0-alpha:0.83.0-alpha -google-cloud-dlp:0.83.0-beta:0.83.0-beta -google-cloud-dns:0.83.0-alpha:0.83.0-alpha -google-cloud-errorreporting:0.83.0-beta:0.83.0-beta -google-cloud-examples:0.83.0-alpha:0.83.0-alpha -google-cloud-firestore:0.83.0-beta:0.83.0-beta -google-cloud-gcloud-maven-plugin:0.83.0-alpha:0.83.0-alpha -google-cloud-iamcredentials:0.10.0-alpha:0.10.0-alpha -google-cloud-iot:0.83.0-beta:0.83.0-beta -google-cloud-kms:1.1.0:1.1.0 -google-cloud-language:1.65.0:1.65.0 -google-cloud-logging:1.65.0:1.65.0 -google-cloud-logging-logback:0.83.0-alpha:0.83.0-alpha -google-cloud-managedtest:0.83.0-alpha:0.83.0-alpha -google-cloud-monitoring:1.65.0:1.65.0 -google-cloud-nio:0.83.0-alpha:0.83.0-alpha -google-cloud-nio-examples:0.83.0-alpha:0.83.0-alpha -google-cloud-notification:0.83.0-beta:0.83.0-beta -google-cloud-os-login:0.83.0-alpha:0.83.0-alpha -google-cloud-pubsub:1.65.0:1.65.0 -google-cloud-redis:0.83.0-alpha:0.83.0-alpha -google-cloud-resourcemanager:0.83.0-alpha:0.83.0-alpha -google-cloud-scheduler:0.83.0-alpha:0.83.0-alpha -google-cloud-securitycenter:0.83.0-alpha:0.83.0-alpha -google-cloud-spanner:1.10.0:1.10.0 -google-cloud-speech:0.83.0-beta:0.83.0-beta -google-cloud-storage:1.65.0:1.65.0 -google-cloud-tasks:0.83.0-beta:0.83.0-beta -google-cloud-testing:0.83.0-alpha:0.83.0-alpha -google-cloud-texttospeech:0.83.0-beta:0.83.0-beta -google-cloud-trace:0.83.0-beta:0.83.0-beta -google-cloud-translate:1.65.0:1.65.0 -google-cloud-util:0.83.0-alpha:0.83.0-alpha -google-cloud-video-intelligence:0.83.0-beta:0.83.0-beta -google-cloud-vision:1.65.0:1.65.0 -google-cloud-websecurityscanner:0.83.0-alpha:0.83.0-alpha -grpc-google-cloud-asset-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-automl-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-bigquerydatatransfer-v1:0.48.0:0.48.0 -grpc-google-cloud-bigquerystorage-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-bigtable-admin-v2:0.48.0:0.48.0 -grpc-google-cloud-bigtable-v2:0.48.0:0.48.0 -grpc-google-cloud-container-v1:0.48.0:0.48.0 -grpc-google-cloud-containeranalysis-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-dataproc-v1:0.48.0:0.48.0 -grpc-google-cloud-dataproc-v1beta2:0.48.0:0.48.0 -grpc-google-cloud-dialogflow-v2:0.48.0:0.48.0 -grpc-google-cloud-dialogflow-v2beta1:0.48.0:0.48.0 -grpc-google-cloud-dlp-v2:0.48.0:0.48.0 -grpc-google-cloud-error-reporting-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-firestore-v1:0.48.0:0.48.0 -grpc-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.0-alpha -grpc-google-cloud-iot-v1:0.48.0:0.48.0 -grpc-google-cloud-kms-v1:0.48.0:0.48.0 -grpc-google-cloud-language-v1:1.47.0:1.47.0 -grpc-google-cloud-language-v1beta2:0.48.0:0.48.0 -grpc-google-cloud-logging-v2:0.48.0:0.48.0 -grpc-google-cloud-monitoring-v3:1.47.0:1.47.0 -grpc-google-cloud-os-login-v1:0.48.0:0.48.0 -grpc-google-cloud-pubsub-v1:1.47.0:1.47.0 -grpc-google-cloud-redis-v1:0.48.0:0.48.0 -grpc-google-cloud-redis-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-scheduler-v1:0.48.0:0.48.0 -grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-securitycenter-v1:0.48.0:0.48.0 -grpc-google-cloud-spanner-admin-database-v1:1.10.0:1.10.0 -grpc-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.0 -grpc-google-cloud-spanner-v1:1.10.0:1.10.0 -grpc-google-cloud-speech-v1:0.48.0:0.48.0 -grpc-google-cloud-speech-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-speech-v1p1beta1:0.48.0:0.48.0 -grpc-google-cloud-tasks-v2beta2:0.48.0:0.48.0 -grpc-google-cloud-tasks-v2beta3:0.48.0:0.48.0 -grpc-google-cloud-texttospeech-v1:0.48.0:0.48.0 -grpc-google-cloud-texttospeech-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-trace-v1:0.48.0:0.48.0 -grpc-google-cloud-trace-v2:0.48.0:0.48.0 -grpc-google-cloud-video-intelligence-v1:0.48.0:0.48.0 -grpc-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.0 -grpc-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.0 -grpc-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.0 -grpc-google-cloud-vision-v1:1.47.0:1.47.0 -grpc-google-cloud-vision-v1p1beta1:0.48.0:0.48.0 -grpc-google-cloud-vision-v1p2beta1:1.47.0:1.47.0 -grpc-google-cloud-vision-v1p3beta1:0.48.0:0.48.0 -grpc-google-cloud-vision-v1p4beta1:0.48.0:0.48.0 -grpc-google-cloud-websecurityscanner-v1alpha:0.48.0:0.48.0 -proto-google-cloud-asset-v1beta1:0.48.0:0.48.0 -proto-google-cloud-automl-v1beta1:0.48.0:0.48.0 -proto-google-cloud-bigquerydatatransfer-v1:0.48.0:0.48.0 -proto-google-cloud-bigquerystorage-v1beta1:0.48.0:0.48.0 -proto-google-cloud-bigtable-admin-v2:0.48.0:0.48.0 -proto-google-cloud-bigtable-v2:0.48.0:0.48.0 -proto-google-cloud-container-v1:0.48.0:0.48.0 -proto-google-cloud-containeranalysis-v1beta1:0.48.0:0.48.0 -proto-google-cloud-dataproc-v1:0.48.0:0.48.0 -proto-google-cloud-dataproc-v1beta2:0.48.0:0.48.0 -proto-google-cloud-datastore-v1:0.48.0:0.48.0 -proto-google-cloud-dialogflow-v2:0.48.0:0.48.0 -proto-google-cloud-dialogflow-v2beta1:0.48.0:0.48.0 -proto-google-cloud-dlp-v2:0.48.0:0.48.0 -proto-google-cloud-error-reporting-v1beta1:0.48.0:0.48.0 -proto-google-cloud-firestore-v1beta1:0.48.0:0.48.0 -proto-google-cloud-firestore-v1:0.48.0:0.48.0 -proto-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.0-alpha -proto-google-cloud-iot-v1:0.48.0:0.48.0 -proto-google-cloud-kms-v1:0.48.0:0.48.0 -proto-google-cloud-language-v1:1.47.0:1.47.0 -proto-google-cloud-language-v1beta2:0.48.0:0.48.0 -proto-google-cloud-logging-v2:0.48.0:0.48.0 -proto-google-cloud-monitoring-v3:1.47.0:1.47.0 -proto-google-cloud-os-login-v1:0.48.0:0.48.0 -proto-google-cloud-pubsub-v1:1.47.0:1.47.0 -proto-google-cloud-redis-v1:0.48.0:0.48.0 -proto-google-cloud-redis-v1beta1:0.48.0:0.48.0 -proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.0 -proto-google-cloud-scheduler-v1:0.48.0:0.48.0 -proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.0 -proto-google-cloud-securitycenter-v1:0.48.0:0.48.0 -proto-google-cloud-spanner-admin-database-v1:1.10.0:1.10.0 -proto-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.0 -proto-google-cloud-spanner-v1:1.10.0:1.10.0 -proto-google-cloud-speech-v1:0.48.0:0.48.0 -proto-google-cloud-speech-v1beta1:0.48.0:0.48.0 -proto-google-cloud-speech-v1p1beta1:0.48.0:0.48.0 -proto-google-cloud-tasks-v2beta2:0.48.0:0.48.0 -proto-google-cloud-tasks-v2beta3:0.48.0:0.48.0 -proto-google-cloud-texttospeech-v1:0.48.0:0.48.0 -proto-google-cloud-texttospeech-v1beta1:0.48.0:0.48.0 -proto-google-cloud-trace-v1:0.48.0:0.48.0 -proto-google-cloud-trace-v2:0.48.0:0.48.0 -proto-google-cloud-video-intelligence-v1:0.48.0:0.48.0 -proto-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.0 -proto-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.0 -proto-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.0 -proto-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.0 -proto-google-cloud-vision-v1:1.47.0:1.47.0 -proto-google-cloud-vision-v1p1beta1:0.48.0:0.48.0 -proto-google-cloud-vision-v1p2beta1:1.47.0:1.47.0 -proto-google-cloud-vision-v1p3beta1:0.48.0:0.48.0 -proto-google-cloud-vision-v1p4beta1:0.48.0:0.48.0 -proto-google-cloud-websecurityscanner-v1alpha:0.48.0:0.48.0 +google-api-grpc:0.48.0:0.48.1-SNAPSHOT +google-cloud:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-appengineflexcompat:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-appengineflexcustom:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-appengineflexjava:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-appenginejava8:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-asset:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-automl:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-bigquery:1.65.0:1.65.1-SNAPSHOT +google-cloud-bigquerydatatransfer:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-bigquerystorage:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-bigtable:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-bigtable-emulator:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-bom:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-clients:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-compat-checker:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-compute:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-container:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-containeranalysis:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-contrib:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-core:1.65.0:1.65.1-SNAPSHOT +google-cloud-core-grpc:1.65.0:1.65.1-SNAPSHOT +google-cloud-core-http:1.65.0:1.65.1-SNAPSHOT +google-cloud-dataproc:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-datastore:1.65.0:1.65.1-SNAPSHOT +google-cloud-dialogflow:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-dlp:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-dns:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-errorreporting:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-examples:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-firestore:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-gcloud-maven-plugin:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-iamcredentials:0.10.0-alpha:0.10.1-alpha-SNAPSHOT +google-cloud-iot:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-kms:1.1.0:1.1.1-SNAPSHOT +google-cloud-language:1.65.0:1.65.1-SNAPSHOT +google-cloud-logging:1.65.0:1.65.1-SNAPSHOT +google-cloud-logging-logback:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-managedtest:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-monitoring:1.65.0:1.65.1-SNAPSHOT +google-cloud-nio:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-nio-examples:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-notification:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-os-login:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-pubsub:1.65.0:1.65.1-SNAPSHOT +google-cloud-redis:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-resourcemanager:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-scheduler:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-securitycenter:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-spanner:1.10.0:1.10.1-SNAPSHOT +google-cloud-speech:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-storage:1.65.0:1.65.1-SNAPSHOT +google-cloud-tasks:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-testing:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-texttospeech:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-trace:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-translate:1.65.0:1.65.1-SNAPSHOT +google-cloud-util:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +google-cloud-video-intelligence:0.83.0-beta:0.83.1-beta-SNAPSHOT +google-cloud-vision:1.65.0:1.65.1-SNAPSHOT +google-cloud-websecurityscanner:0.83.0-alpha:0.83.1-alpha-SNAPSHOT +grpc-google-cloud-asset-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-automl-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-bigquerydatatransfer-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-bigquerystorage-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-bigtable-admin-v2:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-bigtable-v2:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-container-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-containeranalysis-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT +grpc-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-language-v1:1.47.0:1.47.1-SNAPSHOT +grpc-google-cloud-language-v1beta2:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-logging-v2:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-monitoring-v3:1.47.0:1.47.1-SNAPSHOT +grpc-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT +grpc-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT +grpc-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT +grpc-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT +grpc-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-texttospeech-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-trace-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-trace-v2:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-vision-v1:1.47.0:1.47.1-SNAPSHOT +grpc-google-cloud-vision-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-vision-v1p2beta1:1.47.0:1.47.1-SNAPSHOT +grpc-google-cloud-vision-v1p3beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-vision-v1p4beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1alpha:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-asset-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-automl-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-bigquerydatatransfer-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-bigquerystorage-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-bigtable-admin-v2:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-bigtable-v2:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-container-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-containeranalysis-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-dataproc-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-datastore-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT +proto-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-language-v1:1.47.0:1.47.1-SNAPSHOT +proto-google-cloud-language-v1beta2:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-logging-v2:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-monitoring-v3:1.47.0:1.47.1-SNAPSHOT +proto-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT +proto-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT +proto-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT +proto-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT +proto-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-texttospeech-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-trace-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-trace-v2:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-vision-v1:1.47.0:1.47.1-SNAPSHOT +proto-google-cloud-vision-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-vision-v1p2beta1:1.47.0:1.47.1-SNAPSHOT +proto-google-cloud-vision-v1p3beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-vision-v1p4beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-websecurityscanner-v1alpha:0.48.0:0.48.1-SNAPSHOT From 67bf8fc05b6cdd789f8c5c029de36501670663b2 Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Tue, 12 Mar 2019 18:24:12 -0400 Subject: [PATCH 35/53] Change each StreamingSubscriberConnection to have its own executor by default. (#4622) * Change each StreamingSubscriberConnection to have its own executor by default. This increases throughput by reducing contention on the executor queue mutex and makes the Subscriber implementation more accurately reflect the users intent when an InstantiatingExecutorProvider is passed. * Add a comment for executorProvider and alarmsExecutor. --- .../google/cloud/pubsub/v1/Subscriber.java | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 487ee0ccb4cb..70d17a4c9884 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -99,7 +99,10 @@ public class Subscriber extends AbstractApiService { private final String subscriptionName; private final FlowControlSettings flowControlSettings; private final Duration maxAckExtensionPeriod; - private final ScheduledExecutorService executor; + // The ExecutorProvider used to generate executors for processing messages. + private final ExecutorProvider executorProvider; + // An instantiation of the SystemExecutorProvider used for processing acks + // and other system actions. @Nullable private final ScheduledExecutorService alarmsExecutor; private final Distribution ackLatencyDistribution = new Distribution(MAX_ACK_DEADLINE_SECONDS + 1); @@ -132,16 +135,7 @@ private Subscriber(Builder builder) { this.numPullers = builder.parallelPullCount; - executor = builder.executorProvider.getExecutor(); - if (builder.executorProvider.shouldAutoClose()) { - closeables.add( - new AutoCloseable() { - @Override - public void close() throws IOException { - executor.shutdown(); - } - }); - } + executorProvider = builder.executorProvider; ExecutorProvider systemExecutorProvider = builder.systemExecutorProvider; if (systemExecutorProvider == null) { @@ -322,6 +316,17 @@ public void run() { private void startStreamingConnections() { synchronized (streamingSubscriberConnections) { for (int i = 0; i < numPullers; i++) { + final ScheduledExecutorService executor = executorProvider.getExecutor(); + if (executorProvider.shouldAutoClose()) { + closeables.add( + new AutoCloseable() { + @Override + public void close() { + executor.shutdown(); + } + }); + } + streamingSubscriberConnections.add( new StreamingSubscriberConnection( subscriptionName, @@ -364,7 +369,7 @@ private void stopAllStreamingConnections() { private void startConnections( List connections, final ApiService.Listener connectionsListener) { for (ApiService subscriber : connections) { - subscriber.addListener(connectionsListener, executor); + subscriber.addListener(connectionsListener, alarmsExecutor); subscriber.startAsync(); } for (ApiService subscriber : connections) { @@ -398,8 +403,7 @@ public static final class Builder { static final ExecutorProvider DEFAULT_EXECUTOR_PROVIDER = InstantiatingExecutorProvider.newBuilder() - .setExecutorThreadCount( - THREADS_PER_CHANNEL * Runtime.getRuntime().availableProcessors()) + .setExecutorThreadCount(THREADS_PER_CHANNEL) .build(); String subscriptionName; @@ -502,7 +506,10 @@ public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { return this; } - /** Gives the ability to set a custom executor. */ + /** + * Gives the ability to set a custom executor. {@link ExecutorProvider#getExecutor()} will be + * called {@link Builder#parallelPullCount} times. + */ public Builder setExecutorProvider(ExecutorProvider executorProvider) { this.executorProvider = Preconditions.checkNotNull(executorProvider); return this; From cb6c4848073bbcddbb4162b37e48f1670d57cb80 Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Tue, 12 Mar 2019 18:24:23 -0400 Subject: [PATCH 36/53] Bigtable: Remove reference to deprecated typesafe name (#4671) --- google-cloud-clients/google-cloud-bigtable/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/google-cloud-clients/google-cloud-bigtable/README.md b/google-cloud-clients/google-cloud-bigtable/README.md index 262b8084d831..825529cb763e 100644 --- a/google-cloud-clients/google-cloud-bigtable/README.md +++ b/google-cloud-clients/google-cloud-bigtable/README.md @@ -85,8 +85,7 @@ String instanceId = "my-database"; String tableId = "my-table"; // Create the client -BigtableDataClient dataClient = BigtableDataClient.create( - InstanceName.of(projectId, instanceId)); +BigtableDataClient dataClient = BigtableDataClient.create(projectId, instanceId); try { // Query a table From 2c63a9cd1e705828806cd3919fe9c6991797d7ee Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Tue, 12 Mar 2019 18:24:33 -0400 Subject: [PATCH 37/53] Add Cloud Video Intelligence v1p3beta1 API. (#4669) * Add Cloud Video Intelligence v1p3beta1 API. * Fix code formatting. --- .../pom.xml | 31 + ...StreamingVideoIntelligenceServiceGrpc.java | 347 ++ .../VideoIntelligenceServiceGrpc.java | 364 ++ google-api-grpc/pom.xml | 12 + .../pom.xml | 26 + .../v1p3beta1/AnnotateVideoProgress.java | 1025 ++++ .../AnnotateVideoProgressOrBuilder.java | 76 + .../v1p3beta1/AnnotateVideoRequest.java | 1754 +++++++ .../AnnotateVideoRequestOrBuilder.java | 200 + .../v1p3beta1/AnnotateVideoResponse.java | 1025 ++++ .../AnnotateVideoResponseOrBuilder.java | 76 + .../videointelligence/v1p3beta1/Entity.java | 935 ++++ .../v1p3beta1/EntityOrBuilder.java | 77 + .../v1p3beta1/ExplicitContentAnnotation.java | 994 ++++ .../ExplicitContentAnnotationOrBuilder.java | 69 + .../ExplicitContentDetectionConfig.java | 639 +++ ...plicitContentDetectionConfigOrBuilder.java | 35 + .../v1p3beta1/ExplicitContentFrame.java | 859 +++ .../ExplicitContentFrameOrBuilder.java | 65 + .../videointelligence/v1p3beta1/Feature.java | 218 + .../v1p3beta1/LabelAnnotation.java | 2295 ++++++++ .../v1p3beta1/LabelAnnotationOrBuilder.java | 214 + .../v1p3beta1/LabelDetectionConfig.java | 874 ++++ .../LabelDetectionConfigOrBuilder.java | 75 + .../v1p3beta1/LabelDetectionMode.java | 176 + .../v1p3beta1/LabelFrame.java | 795 +++ .../v1p3beta1/LabelFrameOrBuilder.java | 55 + .../v1p3beta1/LabelSegment.java | 791 +++ .../v1p3beta1/LabelSegmentOrBuilder.java | 52 + .../v1p3beta1/Likelihood.java | 218 + .../v1p3beta1/NormalizedBoundingBox.java | 786 +++ .../NormalizedBoundingBoxOrBuilder.java | 54 + .../v1p3beta1/NormalizedBoundingPoly.java | 1009 ++++ .../NormalizedBoundingPolyOrBuilder.java | 63 + .../v1p3beta1/NormalizedVertex.java | 613 +++ .../v1p3beta1/NormalizedVertexOrBuilder.java | 32 + .../v1p3beta1/ObjectTrackingAnnotation.java | 1903 +++++++ .../ObjectTrackingAnnotationOrBuilder.java | 174 + .../v1p3beta1/ObjectTrackingFrame.java | 1014 ++++ .../ObjectTrackingFrameOrBuilder.java | 79 + .../v1p3beta1/ShotChangeDetectionConfig.java | 626 +++ .../ShotChangeDetectionConfigOrBuilder.java | 35 + .../StreamingAnnotateVideoRequest.java | 993 ++++ ...treamingAnnotateVideoRequestOrBuilder.java | 67 + .../StreamingAnnotateVideoResponse.java | 1222 +++++ ...reamingAnnotateVideoResponseOrBuilder.java | 110 + ...reamingExplicitContentDetectionConfig.java | 476 ++ ...plicitContentDetectionConfigOrBuilder.java | 9 + .../v1p3beta1/StreamingFeature.java | 196 + .../StreamingLabelDetectionConfig.java | 551 ++ ...treamingLabelDetectionConfigOrBuilder.java | 23 + .../StreamingObjectTrackingConfig.java | 461 ++ ...treamingObjectTrackingConfigOrBuilder.java | 9 + .../StreamingShotChangeDetectionConfig.java | 467 ++ ...ingShotChangeDetectionConfigOrBuilder.java | 9 + .../v1p3beta1/StreamingStorageConfig.java | 764 +++ .../StreamingStorageConfigOrBuilder.java | 60 + .../StreamingVideoAnnotationResults.java | 2436 +++++++++ ...eamingVideoAnnotationResultsOrBuilder.java | 232 + .../v1p3beta1/StreamingVideoConfig.java | 2390 +++++++++ .../StreamingVideoConfigOrBuilder.java | 225 + .../v1p3beta1/TextAnnotation.java | 1116 ++++ .../v1p3beta1/TextAnnotationOrBuilder.java | 83 + .../v1p3beta1/TextDetectionConfig.java | 729 +++ .../TextDetectionConfigOrBuilder.java | 63 + .../v1p3beta1/TextFrame.java | 1008 ++++ .../v1p3beta1/TextFrameOrBuilder.java | 79 + .../v1p3beta1/TextSegment.java | 1301 +++++ .../v1p3beta1/TextSegmentOrBuilder.java | 105 + .../v1p3beta1/VideoAnnotationProgress.java | 1220 +++++ .../VideoAnnotationProgressOrBuilder.java | 107 + .../v1p3beta1/VideoAnnotationResults.java | 4645 +++++++++++++++++ .../VideoAnnotationResultsOrBuilder.java | 507 ++ .../v1p3beta1/VideoContext.java | 2228 ++++++++ .../v1p3beta1/VideoContextOrBuilder.java | 224 + .../VideoIntelligenceServiceProto.java | 665 +++ .../v1p3beta1/VideoSegment.java | 992 ++++ .../v1p3beta1/VideoSegmentOrBuilder.java | 78 + .../v1p3beta1/video_intelligence.proto | 627 +++ google-cloud-bom/pom.xml | 10 + .../google-cloud-video-intelligence/pom.xml | 9 + ...reamingVideoIntelligenceServiceClient.java | 209 + ...amingVideoIntelligenceServiceSettings.java | 182 + .../VideoIntelligenceServiceClient.java | 328 ++ .../VideoIntelligenceServiceSettings.java | 197 + .../v1p3beta1/package-info.java | 55 + ...deoIntelligenceServiceCallableFactory.java | 116 + ...StreamingVideoIntelligenceServiceStub.java | 157 + ...deoIntelligenceServiceCallableFactory.java | 115 + .../GrpcVideoIntelligenceServiceStub.java | 171 + ...StreamingVideoIntelligenceServiceStub.java | 42 + ...gVideoIntelligenceServiceStubSettings.java | 269 + .../stub/VideoIntelligenceServiceStub.java | 56 + .../VideoIntelligenceServiceStubSettings.java | 322 ++ ...MockStreamingVideoIntelligenceService.java | 57 + ...StreamingVideoIntelligenceServiceImpl.java | 89 + .../MockVideoIntelligenceService.java | 57 + .../MockVideoIntelligenceServiceImpl.java | 74 + ...ingVideoIntelligenceServiceClientTest.java | 135 + .../VideoIntelligenceServiceClientTest.java | 134 + .../VideoIntelligenceServiceSmokeTest.java | 66 + .../synth.metadata | 20 +- .../google-cloud-video-intelligence/synth.py | 2 +- versions.txt | 2 + 104 files changed, 50105 insertions(+), 6 deletions(-) create mode 100644 google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml create mode 100644 google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java create mode 100644 google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceGrpc.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgress.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgressOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/EntityOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrameOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrame.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrameOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegmentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBox.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBoxOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPolyOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertexOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrameOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingFeature.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResultsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrame.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrameOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegment.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegmentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContext.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContextOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegment.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegmentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/proto/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceSettings.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSettings.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/package-info.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcStreamingVideoIntelligenceServiceCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcStreamingVideoIntelligenceServiceStub.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcVideoIntelligenceServiceStub.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStub.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStub.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockStreamingVideoIntelligenceService.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockStreamingVideoIntelligenceServiceImpl.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockVideoIntelligenceService.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockVideoIntelligenceServiceImpl.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClientTest.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClientTest.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSmokeTest.java diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml new file mode 100644 index 000000000000..ad3c2dd09cb1 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + grpc-google-cloud-video-intelligence-v1p3beta1 + 0.48.1-SNAPSHOT + grpc-google-cloud-video-intelligence-v1p3beta1 + GRPC library for grpc-google-cloud-video-intelligence-v1p3beta1 + + com.google.api.grpc + google-api-grpc + 0.48.1-SNAPSHOT + + + + io.grpc + grpc-stub + compile + + + io.grpc + grpc-protobuf + compile + + + com.google.api.grpc + proto-google-cloud-video-intelligence-v1p3beta1 + compile + + + diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java new file mode 100644 index 000000000000..d54504a03f5f --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java @@ -0,0 +1,347 @@ +package com.google.cloud.videointelligence.v1p3beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; + +/** + * + * + *
+ * Service that implements Google Cloud Video Intelligence Streaming API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto") +public final class StreamingVideoIntelligenceServiceGrpc { + + private StreamingVideoIntelligenceServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getStreamingAnnotateVideoMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + METHOD_STREAMING_ANNOTATE_VIDEO = getStreamingAnnotateVideoMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + getStreamingAnnotateVideoMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + getStreamingAnnotateVideoMethod() { + return getStreamingAnnotateVideoMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + getStreamingAnnotateVideoMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + getStreamingAnnotateVideoMethod; + if ((getStreamingAnnotateVideoMethod = + StreamingVideoIntelligenceServiceGrpc.getStreamingAnnotateVideoMethod) + == null) { + synchronized (StreamingVideoIntelligenceServiceGrpc.class) { + if ((getStreamingAnnotateVideoMethod = + StreamingVideoIntelligenceServiceGrpc.getStreamingAnnotateVideoMethod) + == null) { + StreamingVideoIntelligenceServiceGrpc.getStreamingAnnotateVideoMethod = + getStreamingAnnotateVideoMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + generateFullMethodName( + "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService", + "StreamingAnnotateVideo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.videointelligence.v1p3beta1 + .StreamingAnnotateVideoRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.videointelligence.v1p3beta1 + .StreamingAnnotateVideoResponse.getDefaultInstance())) + .setSchemaDescriptor( + new StreamingVideoIntelligenceServiceMethodDescriptorSupplier( + "StreamingAnnotateVideo")) + .build(); + } + } + } + return getStreamingAnnotateVideoMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static StreamingVideoIntelligenceServiceStub newStub(io.grpc.Channel channel) { + return new StreamingVideoIntelligenceServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static StreamingVideoIntelligenceServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new StreamingVideoIntelligenceServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static StreamingVideoIntelligenceServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new StreamingVideoIntelligenceServiceFutureStub(channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Video Intelligence Streaming API.
+   * 
+ */ + public abstract static class StreamingVideoIntelligenceServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+     * Performs video annotation with bidirectional streaming: emitting results
+     * while sending video/audio bytes.
+     * This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest> + streamingAnnotateVideo( + io.grpc.stub.StreamObserver< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + responseObserver) { + return asyncUnimplementedStreamingCall( + getStreamingAnnotateVideoMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getStreamingAnnotateVideoMethodHelper(), + asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse>( + this, METHODID_STREAMING_ANNOTATE_VIDEO))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Video Intelligence Streaming API.
+   * 
+ */ + public static final class StreamingVideoIntelligenceServiceStub + extends io.grpc.stub.AbstractStub { + private StreamingVideoIntelligenceServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private StreamingVideoIntelligenceServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StreamingVideoIntelligenceServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StreamingVideoIntelligenceServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs video annotation with bidirectional streaming: emitting results
+     * while sending video/audio bytes.
+     * This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest> + streamingAnnotateVideo( + io.grpc.stub.StreamObserver< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + responseObserver) { + return asyncBidiStreamingCall( + getChannel().newCall(getStreamingAnnotateVideoMethodHelper(), getCallOptions()), + responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Video Intelligence Streaming API.
+   * 
+ */ + public static final class StreamingVideoIntelligenceServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private StreamingVideoIntelligenceServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private StreamingVideoIntelligenceServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StreamingVideoIntelligenceServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StreamingVideoIntelligenceServiceBlockingStub(channel, callOptions); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Video Intelligence Streaming API.
+   * 
+ */ + public static final class StreamingVideoIntelligenceServiceFutureStub + extends io.grpc.stub.AbstractStub { + private StreamingVideoIntelligenceServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private StreamingVideoIntelligenceServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StreamingVideoIntelligenceServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StreamingVideoIntelligenceServiceFutureStub(channel, callOptions); + } + } + + private static final int METHODID_STREAMING_ANNOTATE_VIDEO = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final StreamingVideoIntelligenceServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(StreamingVideoIntelligenceServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_ANNOTATE_VIDEO: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamingAnnotateVideo( + (io.grpc.stub.StreamObserver< + com.google.cloud.videointelligence.v1p3beta1 + .StreamingAnnotateVideoResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class StreamingVideoIntelligenceServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + StreamingVideoIntelligenceServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("StreamingVideoIntelligenceService"); + } + } + + private static final class StreamingVideoIntelligenceServiceFileDescriptorSupplier + extends StreamingVideoIntelligenceServiceBaseDescriptorSupplier { + StreamingVideoIntelligenceServiceFileDescriptorSupplier() {} + } + + private static final class StreamingVideoIntelligenceServiceMethodDescriptorSupplier + extends StreamingVideoIntelligenceServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + StreamingVideoIntelligenceServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (StreamingVideoIntelligenceServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new StreamingVideoIntelligenceServiceFileDescriptorSupplier()) + .addMethod(getStreamingAnnotateVideoMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceGrpc.java b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceGrpc.java new file mode 100644 index 000000000000..df8a05c00c12 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceGrpc.java @@ -0,0 +1,364 @@ +package com.google.cloud.videointelligence.v1p3beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * Service that implements Google Cloud Video Intelligence API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto") +public final class VideoIntelligenceServiceGrpc { + + private VideoIntelligenceServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getAnnotateVideoMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation> + METHOD_ANNOTATE_VIDEO = getAnnotateVideoMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation> + getAnnotateVideoMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation> + getAnnotateVideoMethod() { + return getAnnotateVideoMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation> + getAnnotateVideoMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation> + getAnnotateVideoMethod; + if ((getAnnotateVideoMethod = VideoIntelligenceServiceGrpc.getAnnotateVideoMethod) == null) { + synchronized (VideoIntelligenceServiceGrpc.class) { + if ((getAnnotateVideoMethod = VideoIntelligenceServiceGrpc.getAnnotateVideoMethod) + == null) { + VideoIntelligenceServiceGrpc.getAnnotateVideoMethod = + getAnnotateVideoMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService", + "AnnotateVideo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VideoIntelligenceServiceMethodDescriptorSupplier("AnnotateVideo")) + .build(); + } + } + } + return getAnnotateVideoMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static VideoIntelligenceServiceStub newStub(io.grpc.Channel channel) { + return new VideoIntelligenceServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VideoIntelligenceServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new VideoIntelligenceServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static VideoIntelligenceServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new VideoIntelligenceServiceFutureStub(channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Video Intelligence API.
+   * 
+ */ + public abstract static class VideoIntelligenceServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Performs asynchronous video annotation. Progress and results can be
+     * retrieved through the `google.longrunning.Operations` interface.
+     * `Operation.metadata` contains `AnnotateVideoProgress` (progress).
+     * `Operation.response` contains `AnnotateVideoResponse` (results).
+     * 
+ */ + public void annotateVideo( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getAnnotateVideoMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getAnnotateVideoMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation>(this, METHODID_ANNOTATE_VIDEO))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Video Intelligence API.
+   * 
+ */ + public static final class VideoIntelligenceServiceStub + extends io.grpc.stub.AbstractStub { + private VideoIntelligenceServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private VideoIntelligenceServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VideoIntelligenceServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VideoIntelligenceServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs asynchronous video annotation. Progress and results can be
+     * retrieved through the `google.longrunning.Operations` interface.
+     * `Operation.metadata` contains `AnnotateVideoProgress` (progress).
+     * `Operation.response` contains `AnnotateVideoResponse` (results).
+     * 
+ */ + public void annotateVideo( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getAnnotateVideoMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Video Intelligence API.
+   * 
+ */ + public static final class VideoIntelligenceServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private VideoIntelligenceServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private VideoIntelligenceServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VideoIntelligenceServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VideoIntelligenceServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs asynchronous video annotation. Progress and results can be
+     * retrieved through the `google.longrunning.Operations` interface.
+     * `Operation.metadata` contains `AnnotateVideoProgress` (progress).
+     * `Operation.response` contains `AnnotateVideoResponse` (results).
+     * 
+ */ + public com.google.longrunning.Operation annotateVideo( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest request) { + return blockingUnaryCall( + getChannel(), getAnnotateVideoMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Video Intelligence API.
+   * 
+ */ + public static final class VideoIntelligenceServiceFutureStub + extends io.grpc.stub.AbstractStub { + private VideoIntelligenceServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private VideoIntelligenceServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VideoIntelligenceServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VideoIntelligenceServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs asynchronous video annotation. Progress and results can be
+     * retrieved through the `google.longrunning.Operations` interface.
+     * `Operation.metadata` contains `AnnotateVideoProgress` (progress).
+     * `Operation.response` contains `AnnotateVideoResponse` (results).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + annotateVideo(com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest request) { + return futureUnaryCall( + getChannel().newCall(getAnnotateVideoMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_ANNOTATE_VIDEO = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final VideoIntelligenceServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(VideoIntelligenceServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_ANNOTATE_VIDEO: + serviceImpl.annotateVideo( + (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class VideoIntelligenceServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VideoIntelligenceServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("VideoIntelligenceService"); + } + } + + private static final class VideoIntelligenceServiceFileDescriptorSupplier + extends VideoIntelligenceServiceBaseDescriptorSupplier { + VideoIntelligenceServiceFileDescriptorSupplier() {} + } + + private static final class VideoIntelligenceServiceMethodDescriptorSupplier + extends VideoIntelligenceServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + VideoIntelligenceServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (VideoIntelligenceServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VideoIntelligenceServiceFileDescriptorSupplier()) + .addMethod(getAnnotateVideoMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index f333662374da..ea4922559385 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -634,6 +634,16 @@ grpc-google-cloud-video-intelligence-v1p2beta1 0.48.1-SNAPSHOT
+ + com.google.api.grpc + proto-google-cloud-video-intelligence-v1p3beta1 + 0.48.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-video-intelligence-v1p3beta1 + 0.48.1-SNAPSHOT + com.google.api.grpc proto-google-cloud-iot-v1 @@ -736,6 +746,7 @@ grpc-google-cloud-video-intelligence-v1beta2 grpc-google-cloud-video-intelligence-v1p1beta1 grpc-google-cloud-video-intelligence-v1p2beta1 + grpc-google-cloud-video-intelligence-v1p3beta1 grpc-google-cloud-vision-v1 grpc-google-cloud-vision-v1p1beta1 grpc-google-cloud-vision-v1p2beta1 @@ -792,6 +803,7 @@ proto-google-cloud-video-intelligence-v1beta2 proto-google-cloud-video-intelligence-v1p1beta1 proto-google-cloud-video-intelligence-v1p2beta1 + proto-google-cloud-video-intelligence-v1p3beta1 proto-google-cloud-vision-v1 proto-google-cloud-vision-v1p1beta1 proto-google-cloud-vision-v1p2beta1 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml new file mode 100644 index 000000000000..91d7ac9a8d72 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -0,0 +1,26 @@ + + 4.0.0 + proto-google-cloud-video-intelligence-v1p3beta1 + 0.48.1-SNAPSHOT + proto-google-cloud-video-intelligence-v1p3beta1 + PROTO library for proto-google-cloud-video-intelligence-v1p3beta1 + + com.google.api.grpc + google-api-grpc + 0.48.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + compile + + + com.google.api.grpc + proto-google-common-protos + compile + + + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgress.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgress.java new file mode 100644 index 000000000000..5d4dd05b7f93 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgress.java @@ -0,0 +1,1025 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video annotation progress. Included in the `metadata`
+ * field of the `Operation` returned by the `GetOperation`
+ * call of the `google::longrunning::Operations` service.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress} + */ +public final class AnnotateVideoProgress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) + AnnotateVideoProgressOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnnotateVideoProgress.newBuilder() to construct. + private AnnotateVideoProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnnotateVideoProgress() { + annotationProgress_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AnnotateVideoProgress( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress>(); + mutable_bitField0_ |= 0x00000001; + } + annotationProgress_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = java.util.Collections.unmodifiableList(annotationProgress_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress.class, + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress.Builder.class); + } + + public static final int ANNOTATION_PROGRESS_FIELD_NUMBER = 1; + private java.util.List + annotationProgress_; + /** + * + * + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public java.util.List + getAnnotationProgressList() { + return annotationProgress_; + } + /** + * + * + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder> + getAnnotationProgressOrBuilderList() { + return annotationProgress_; + } + /** + * + * + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public int getAnnotationProgressCount() { + return annotationProgress_.size(); + } + /** + * + * + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress getAnnotationProgress( + int index) { + return annotationProgress_.get(index); + } + /** + * + * + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder + getAnnotationProgressOrBuilder(int index) { + return annotationProgress_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < annotationProgress_.size(); i++) { + output.writeMessage(1, annotationProgress_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < annotationProgress_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, annotationProgress_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress other = + (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) obj; + + boolean result = true; + result = result && getAnnotationProgressList().equals(other.getAnnotationProgressList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAnnotationProgressCount() > 0) { + hash = (37 * hash) + ANNOTATION_PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationProgressList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video annotation progress. Included in the `metadata`
+   * field of the `Operation` returned by the `GetOperation`
+   * call of the `google::longrunning::Operations` service.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress.class, + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAnnotationProgressFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (annotationProgressBuilder_ == null) { + annotationProgress_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + annotationProgressBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress build() { + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress result = + new com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress(this); + int from_bitField0_ = bitField0_; + if (annotationProgressBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = java.util.Collections.unmodifiableList(annotationProgress_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.annotationProgress_ = annotationProgress_; + } else { + result.annotationProgress_ = annotationProgressBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress + .getDefaultInstance()) return this; + if (annotationProgressBuilder_ == null) { + if (!other.annotationProgress_.isEmpty()) { + if (annotationProgress_.isEmpty()) { + annotationProgress_ = other.annotationProgress_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnnotationProgressIsMutable(); + annotationProgress_.addAll(other.annotationProgress_); + } + onChanged(); + } + } else { + if (!other.annotationProgress_.isEmpty()) { + if (annotationProgressBuilder_.isEmpty()) { + annotationProgressBuilder_.dispose(); + annotationProgressBuilder_ = null; + annotationProgress_ = other.annotationProgress_; + bitField0_ = (bitField0_ & ~0x00000001); + annotationProgressBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAnnotationProgressFieldBuilder() + : null; + } else { + annotationProgressBuilder_.addAllMessages(other.annotationProgress_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + annotationProgress_ = java.util.Collections.emptyList(); + + private void ensureAnnotationProgressIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress>( + annotationProgress_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder> + annotationProgressBuilder_; + + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public java.util.List + getAnnotationProgressList() { + if (annotationProgressBuilder_ == null) { + return java.util.Collections.unmodifiableList(annotationProgress_); + } else { + return annotationProgressBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public int getAnnotationProgressCount() { + if (annotationProgressBuilder_ == null) { + return annotationProgress_.size(); + } else { + return annotationProgressBuilder_.getCount(); + } + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + getAnnotationProgress(int index) { + if (annotationProgressBuilder_ == null) { + return annotationProgress_.get(index); + } else { + return annotationProgressBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public Builder setAnnotationProgress( + int index, com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress value) { + if (annotationProgressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationProgressIsMutable(); + annotationProgress_.set(index, value); + onChanged(); + } else { + annotationProgressBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public Builder setAnnotationProgress( + int index, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder + builderForValue) { + if (annotationProgressBuilder_ == null) { + ensureAnnotationProgressIsMutable(); + annotationProgress_.set(index, builderForValue.build()); + onChanged(); + } else { + annotationProgressBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public Builder addAnnotationProgress( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress value) { + if (annotationProgressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationProgressIsMutable(); + annotationProgress_.add(value); + onChanged(); + } else { + annotationProgressBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public Builder addAnnotationProgress( + int index, com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress value) { + if (annotationProgressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationProgressIsMutable(); + annotationProgress_.add(index, value); + onChanged(); + } else { + annotationProgressBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public Builder addAnnotationProgress( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder + builderForValue) { + if (annotationProgressBuilder_ == null) { + ensureAnnotationProgressIsMutable(); + annotationProgress_.add(builderForValue.build()); + onChanged(); + } else { + annotationProgressBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public Builder addAnnotationProgress( + int index, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder + builderForValue) { + if (annotationProgressBuilder_ == null) { + ensureAnnotationProgressIsMutable(); + annotationProgress_.add(index, builderForValue.build()); + onChanged(); + } else { + annotationProgressBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public Builder addAllAnnotationProgress( + java.lang.Iterable< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress> + values) { + if (annotationProgressBuilder_ == null) { + ensureAnnotationProgressIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationProgress_); + onChanged(); + } else { + annotationProgressBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public Builder clearAnnotationProgress() { + if (annotationProgressBuilder_ == null) { + annotationProgress_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + annotationProgressBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public Builder removeAnnotationProgress(int index) { + if (annotationProgressBuilder_ == null) { + ensureAnnotationProgressIsMutable(); + annotationProgress_.remove(index); + onChanged(); + } else { + annotationProgressBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder + getAnnotationProgressBuilder(int index) { + return getAnnotationProgressFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder + getAnnotationProgressOrBuilder(int index) { + if (annotationProgressBuilder_ == null) { + return annotationProgress_.get(index); + } else { + return annotationProgressBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder> + getAnnotationProgressOrBuilderList() { + if (annotationProgressBuilder_ != null) { + return annotationProgressBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(annotationProgress_); + } + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder + addAnnotationProgressBuilder() { + return getAnnotationProgressFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + .getDefaultInstance()); + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder + addAnnotationProgressBuilder(int index) { + return getAnnotationProgressFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + .getDefaultInstance()); + } + /** + * + * + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + public java.util.List< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder> + getAnnotationProgressBuilderList() { + return getAnnotationProgressFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder> + getAnnotationProgressFieldBuilder() { + if (annotationProgressBuilder_ == null) { + annotationProgressBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder>( + annotationProgress_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + annotationProgress_ = null; + } + return annotationProgressBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) + private static final com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateVideoProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateVideoProgress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgressOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgressOrBuilder.java new file mode 100644 index 000000000000..d5c702898d9b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgressOrBuilder.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface AnnotateVideoProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + java.util.List + getAnnotationProgressList(); + /** + * + * + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress getAnnotationProgress( + int index); + /** + * + * + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + int getAnnotationProgressCount(); + /** + * + * + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder> + getAnnotationProgressOrBuilderList(); + /** + * + * + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder + getAnnotationProgressOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java new file mode 100644 index 000000000000..fd0bc4192263 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java @@ -0,0 +1,1754 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video annotation request.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest} + */ +public final class AnnotateVideoRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) + AnnotateVideoRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnnotateVideoRequest.newBuilder() to construct. + private AnnotateVideoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnnotateVideoRequest() { + inputUri_ = ""; + inputContent_ = com.google.protobuf.ByteString.EMPTY; + features_ = java.util.Collections.emptyList(); + outputUri_ = ""; + locationId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AnnotateVideoRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + features_.add(rawValue); + break; + } + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + features_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 26: + { + com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder subBuilder = null; + if (videoContext_ != null) { + subBuilder = videoContext_.toBuilder(); + } + videoContext_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoContext.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(videoContext_); + videoContext_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + outputUri_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + locationId_ = s; + break; + } + case 50: + { + inputContent_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + features_ = java.util.Collections.unmodifiableList(features_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest.class, + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest.Builder.class); + } + + private int bitField0_; + public static final int INPUT_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object inputUri_; + /** + * + * + *
+   * Input video location. Currently, only
+   * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+   * supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+   * more information, see [Request URIs](/storage/docs/reference-uris). A video
+   * URI may include wildcards in `object-id`, and thus identify multiple
+   * videos. Supported wildcards: '*' to match 0 or more characters;
+   * '?' to match 1 character. If unset, the input video should be embedded
+   * in the request as `input_content`. If set, `input_content` should be unset.
+   * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } + } + /** + * + * + *
+   * Input video location. Currently, only
+   * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+   * supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+   * more information, see [Request URIs](/storage/docs/reference-uris). A video
+   * URI may include wildcards in `object-id`, and thus identify multiple
+   * videos. Supported wildcards: '*' to match 0 or more characters;
+   * '?' to match 1 character. If unset, the input video should be embedded
+   * in the request as `input_content`. If set, `input_content` should be unset.
+   * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_CONTENT_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString inputContent_; + /** + * + * + *
+   * The video data bytes.
+   * If unset, the input video(s) should be specified via `input_uri`.
+   * If set, `input_uri` should be unset.
+   * 
+ * + * bytes input_content = 6; + */ + public com.google.protobuf.ByteString getInputContent() { + return inputContent_; + } + + public static final int FEATURES_FIELD_NUMBER = 2; + private java.util.List features_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.videointelligence.v1p3beta1.Feature> + features_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.videointelligence.v1p3beta1.Feature>() { + public com.google.cloud.videointelligence.v1p3beta1.Feature convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p3beta1.Feature result = + com.google.cloud.videointelligence.v1p3beta1.Feature.valueOf(from); + return result == null + ? com.google.cloud.videointelligence.v1p3beta1.Feature.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public java.util.List getFeaturesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.videointelligence.v1p3beta1.Feature>( + features_, features_converter_); + } + /** + * + * + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public int getFeaturesCount() { + return features_.size(); + } + /** + * + * + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index) { + return features_converter_.convert(features_.get(index)); + } + /** + * + * + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public java.util.List getFeaturesValueList() { + return features_; + } + /** + * + * + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public int getFeaturesValue(int index) { + return features_.get(index); + } + + private int featuresMemoizedSerializedSize; + + public static final int VIDEO_CONTEXT_FIELD_NUMBER = 3; + private com.google.cloud.videointelligence.v1p3beta1.VideoContext videoContext_; + /** + * + * + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public boolean hasVideoContext() { + return videoContext_ != null; + } + /** + * + * + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext() { + return videoContext_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoContext.getDefaultInstance() + : videoContext_; + } + /** + * + * + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder + getVideoContextOrBuilder() { + return getVideoContext(); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 4; + private volatile java.lang.Object outputUri_; + /** + * + * + *
+   * Optional location where the output (in JSON format) should be stored.
+   * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+   * URIs are supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+   * more information, see [Request URIs](/storage/docs/reference-uris).
+   * 
+ * + * string output_uri = 4; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional location where the output (in JSON format) should be stored.
+   * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+   * URIs are supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+   * more information, see [Request URIs](/storage/docs/reference-uris).
+   * 
+ * + * string output_uri = 4; + */ + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object locationId_; + /** + * + * + *
+   * Optional cloud region where annotation should take place. Supported cloud
+   * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+   * is specified, a region will be determined based on video file location.
+   * 
+ * + * string location_id = 5; + */ + public java.lang.String getLocationId() { + java.lang.Object ref = locationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locationId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional cloud region where annotation should take place. Supported cloud
+   * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+   * is specified, a region will be determined based on video file location.
+   * 
+ * + * string location_id = 5; + */ + public com.google.protobuf.ByteString getLocationIdBytes() { + java.lang.Object ref = locationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + locationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); + } + if (getFeaturesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(featuresMemoizedSerializedSize); + } + for (int i = 0; i < features_.size(); i++) { + output.writeEnumNoTag(features_.get(i)); + } + if (videoContext_ != null) { + output.writeMessage(3, getVideoContext()); + } + if (!getOutputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputUri_); + } + if (!getLocationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, locationId_); + } + if (!inputContent_.isEmpty()) { + output.writeBytes(6, inputContent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); + } + { + int dataSize = 0; + for (int i = 0; i < features_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(features_.get(i)); + } + size += dataSize; + if (!getFeaturesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + featuresMemoizedSerializedSize = dataSize; + } + if (videoContext_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVideoContext()); + } + if (!getOutputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputUri_); + } + if (!getLocationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, locationId_); + } + if (!inputContent_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, inputContent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest other = + (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) obj; + + boolean result = true; + result = result && getInputUri().equals(other.getInputUri()); + result = result && getInputContent().equals(other.getInputContent()); + result = result && features_.equals(other.features_); + result = result && (hasVideoContext() == other.hasVideoContext()); + if (hasVideoContext()) { + result = result && getVideoContext().equals(other.getVideoContext()); + } + result = result && getOutputUri().equals(other.getOutputUri()); + result = result && getLocationId().equals(other.getLocationId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + hash = (37 * hash) + INPUT_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getInputContent().hashCode(); + if (getFeaturesCount() > 0) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + features_.hashCode(); + } + if (hasVideoContext()) { + hash = (37 * hash) + VIDEO_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getVideoContext().hashCode(); + } + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getLocationId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video annotation request.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest.class, + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + inputUri_ = ""; + + inputContent_ = com.google.protobuf.ByteString.EMPTY; + + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + if (videoContextBuilder_ == null) { + videoContext_ = null; + } else { + videoContext_ = null; + videoContextBuilder_ = null; + } + outputUri_ = ""; + + locationId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest build() { + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest result = + new com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.inputUri_ = inputUri_; + result.inputContent_ = inputContent_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + features_ = java.util.Collections.unmodifiableList(features_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.features_ = features_; + if (videoContextBuilder_ == null) { + result.videoContext_ = videoContext_; + } else { + result.videoContext_ = videoContextBuilder_.build(); + } + result.outputUri_ = outputUri_; + result.locationId_ = locationId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest.getDefaultInstance()) + return this; + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.getInputContent() != com.google.protobuf.ByteString.EMPTY) { + setInputContent(other.getInputContent()); + } + if (!other.features_.isEmpty()) { + if (features_.isEmpty()) { + features_ = other.features_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFeaturesIsMutable(); + features_.addAll(other.features_); + } + onChanged(); + } + if (other.hasVideoContext()) { + mergeVideoContext(other.getVideoContext()); + } + if (!other.getOutputUri().isEmpty()) { + outputUri_ = other.outputUri_; + onChanged(); + } + if (!other.getLocationId().isEmpty()) { + locationId_ = other.locationId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object inputUri_ = ""; + /** + * + * + *
+     * Input video location. Currently, only
+     * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+     * supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+     * more information, see [Request URIs](/storage/docs/reference-uris). A video
+     * URI may include wildcards in `object-id`, and thus identify multiple
+     * videos. Supported wildcards: '*' to match 0 or more characters;
+     * '?' to match 1 character. If unset, the input video should be embedded
+     * in the request as `input_content`. If set, `input_content` should be unset.
+     * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Input video location. Currently, only
+     * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+     * supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+     * more information, see [Request URIs](/storage/docs/reference-uris). A video
+     * URI may include wildcards in `object-id`, and thus identify multiple
+     * videos. Supported wildcards: '*' to match 0 or more characters;
+     * '?' to match 1 character. If unset, the input video should be embedded
+     * in the request as `input_content`. If set, `input_content` should be unset.
+     * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Input video location. Currently, only
+     * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+     * supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+     * more information, see [Request URIs](/storage/docs/reference-uris). A video
+     * URI may include wildcards in `object-id`, and thus identify multiple
+     * videos. Supported wildcards: '*' to match 0 or more characters;
+     * '?' to match 1 character. If unset, the input video should be embedded
+     * in the request as `input_content`. If set, `input_content` should be unset.
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Input video location. Currently, only
+     * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+     * supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+     * more information, see [Request URIs](/storage/docs/reference-uris). A video
+     * URI may include wildcards in `object-id`, and thus identify multiple
+     * videos. Supported wildcards: '*' to match 0 or more characters;
+     * '?' to match 1 character. If unset, the input video should be embedded
+     * in the request as `input_content`. If set, `input_content` should be unset.
+     * 
+ * + * string input_uri = 1; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Input video location. Currently, only
+     * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+     * supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+     * more information, see [Request URIs](/storage/docs/reference-uris). A video
+     * URI may include wildcards in `object-id`, and thus identify multiple
+     * videos. Supported wildcards: '*' to match 0 or more characters;
+     * '?' to match 1 character. If unset, the input video should be embedded
+     * in the request as `input_content`. If set, `input_content` should be unset.
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString inputContent_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * The video data bytes.
+     * If unset, the input video(s) should be specified via `input_uri`.
+     * If set, `input_uri` should be unset.
+     * 
+ * + * bytes input_content = 6; + */ + public com.google.protobuf.ByteString getInputContent() { + return inputContent_; + } + /** + * + * + *
+     * The video data bytes.
+     * If unset, the input video(s) should be specified via `input_uri`.
+     * If set, `input_uri` should be unset.
+     * 
+ * + * bytes input_content = 6; + */ + public Builder setInputContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + inputContent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The video data bytes.
+     * If unset, the input video(s) should be specified via `input_uri`.
+     * If set, `input_uri` should be unset.
+     * 
+ * + * bytes input_content = 6; + */ + public Builder clearInputContent() { + + inputContent_ = getDefaultInstance().getInputContent(); + onChanged(); + return this; + } + + private java.util.List features_ = java.util.Collections.emptyList(); + + private void ensureFeaturesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + features_ = new java.util.ArrayList(features_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public java.util.List getFeaturesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.videointelligence.v1p3beta1.Feature>( + features_, features_converter_); + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public int getFeaturesCount() { + return features_.size(); + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index) { + return features_converter_.convert(features_.get(index)); + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public Builder setFeatures( + int index, com.google.cloud.videointelligence.v1p3beta1.Feature value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public Builder addFeatures(com.google.cloud.videointelligence.v1p3beta1.Feature value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public Builder addAllFeatures( + java.lang.Iterable values) { + ensureFeaturesIsMutable(); + for (com.google.cloud.videointelligence.v1p3beta1.Feature value : values) { + features_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public Builder clearFeatures() { + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public java.util.List getFeaturesValueList() { + return java.util.Collections.unmodifiableList(features_); + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public int getFeaturesValue(int index) { + return features_.get(index); + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public Builder setFeaturesValue(int index, int value) { + ensureFeaturesIsMutable(); + features_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public Builder addFeaturesValue(int value) { + ensureFeaturesIsMutable(); + features_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + public Builder addAllFeaturesValue(java.lang.Iterable values) { + ensureFeaturesIsMutable(); + for (int value : values) { + features_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.videointelligence.v1p3beta1.VideoContext videoContext_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoContext, + com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder> + videoContextBuilder_; + /** + * + * + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public boolean hasVideoContext() { + return videoContextBuilder_ != null || videoContext_ != null; + } + /** + * + * + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext() { + if (videoContextBuilder_ == null) { + return videoContext_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoContext.getDefaultInstance() + : videoContext_; + } else { + return videoContextBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public Builder setVideoContext( + com.google.cloud.videointelligence.v1p3beta1.VideoContext value) { + if (videoContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + videoContext_ = value; + onChanged(); + } else { + videoContextBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public Builder setVideoContext( + com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder builderForValue) { + if (videoContextBuilder_ == null) { + videoContext_ = builderForValue.build(); + onChanged(); + } else { + videoContextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public Builder mergeVideoContext( + com.google.cloud.videointelligence.v1p3beta1.VideoContext value) { + if (videoContextBuilder_ == null) { + if (videoContext_ != null) { + videoContext_ = + com.google.cloud.videointelligence.v1p3beta1.VideoContext.newBuilder(videoContext_) + .mergeFrom(value) + .buildPartial(); + } else { + videoContext_ = value; + } + onChanged(); + } else { + videoContextBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public Builder clearVideoContext() { + if (videoContextBuilder_ == null) { + videoContext_ = null; + onChanged(); + } else { + videoContext_ = null; + videoContextBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder + getVideoContextBuilder() { + + onChanged(); + return getVideoContextFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder + getVideoContextOrBuilder() { + if (videoContextBuilder_ != null) { + return videoContextBuilder_.getMessageOrBuilder(); + } else { + return videoContext_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoContext.getDefaultInstance() + : videoContext_; + } + } + /** + * + * + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoContext, + com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder> + getVideoContextFieldBuilder() { + if (videoContextBuilder_ == null) { + videoContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoContext, + com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder>( + getVideoContext(), getParentForChildren(), isClean()); + videoContext_ = null; + } + return videoContextBuilder_; + } + + private java.lang.Object outputUri_ = ""; + /** + * + * + *
+     * Optional location where the output (in JSON format) should be stored.
+     * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+     * URIs are supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+     * more information, see [Request URIs](/storage/docs/reference-uris).
+     * 
+ * + * string output_uri = 4; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional location where the output (in JSON format) should be stored.
+     * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+     * URIs are supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+     * more information, see [Request URIs](/storage/docs/reference-uris).
+     * 
+ * + * string output_uri = 4; + */ + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional location where the output (in JSON format) should be stored.
+     * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+     * URIs are supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+     * more information, see [Request URIs](/storage/docs/reference-uris).
+     * 
+ * + * string output_uri = 4; + */ + public Builder setOutputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional location where the output (in JSON format) should be stored.
+     * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+     * URIs are supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+     * more information, see [Request URIs](/storage/docs/reference-uris).
+     * 
+ * + * string output_uri = 4; + */ + public Builder clearOutputUri() { + + outputUri_ = getDefaultInstance().getOutputUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional location where the output (in JSON format) should be stored.
+     * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+     * URIs are supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+     * more information, see [Request URIs](/storage/docs/reference-uris).
+     * 
+ * + * string output_uri = 4; + */ + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object locationId_ = ""; + /** + * + * + *
+     * Optional cloud region where annotation should take place. Supported cloud
+     * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+     * is specified, a region will be determined based on video file location.
+     * 
+ * + * string location_id = 5; + */ + public java.lang.String getLocationId() { + java.lang.Object ref = locationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional cloud region where annotation should take place. Supported cloud
+     * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+     * is specified, a region will be determined based on video file location.
+     * 
+ * + * string location_id = 5; + */ + public com.google.protobuf.ByteString getLocationIdBytes() { + java.lang.Object ref = locationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + locationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional cloud region where annotation should take place. Supported cloud
+     * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+     * is specified, a region will be determined based on video file location.
+     * 
+ * + * string location_id = 5; + */ + public Builder setLocationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + locationId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional cloud region where annotation should take place. Supported cloud
+     * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+     * is specified, a region will be determined based on video file location.
+     * 
+ * + * string location_id = 5; + */ + public Builder clearLocationId() { + + locationId_ = getDefaultInstance().getLocationId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional cloud region where annotation should take place. Supported cloud
+     * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+     * is specified, a region will be determined based on video file location.
+     * 
+ * + * string location_id = 5; + */ + public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + locationId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) + private static final com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateVideoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateVideoRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java new file mode 100644 index 000000000000..6b2f71c00784 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java @@ -0,0 +1,200 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface AnnotateVideoRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Input video location. Currently, only
+   * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+   * supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+   * more information, see [Request URIs](/storage/docs/reference-uris). A video
+   * URI may include wildcards in `object-id`, and thus identify multiple
+   * videos. Supported wildcards: '*' to match 0 or more characters;
+   * '?' to match 1 character. If unset, the input video should be embedded
+   * in the request as `input_content`. If set, `input_content` should be unset.
+   * 
+ * + * string input_uri = 1; + */ + java.lang.String getInputUri(); + /** + * + * + *
+   * Input video location. Currently, only
+   * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+   * supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+   * more information, see [Request URIs](/storage/docs/reference-uris). A video
+   * URI may include wildcards in `object-id`, and thus identify multiple
+   * videos. Supported wildcards: '*' to match 0 or more characters;
+   * '?' to match 1 character. If unset, the input video should be embedded
+   * in the request as `input_content`. If set, `input_content` should be unset.
+   * 
+ * + * string input_uri = 1; + */ + com.google.protobuf.ByteString getInputUriBytes(); + + /** + * + * + *
+   * The video data bytes.
+   * If unset, the input video(s) should be specified via `input_uri`.
+   * If set, `input_uri` should be unset.
+   * 
+ * + * bytes input_content = 6; + */ + com.google.protobuf.ByteString getInputContent(); + + /** + * + * + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + java.util.List getFeaturesList(); + /** + * + * + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + int getFeaturesCount(); + /** + * + * + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index); + /** + * + * + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + java.util.List getFeaturesValueList(); + /** + * + * + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + */ + int getFeaturesValue(int index); + + /** + * + * + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + boolean hasVideoContext(); + /** + * + * + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext(); + /** + * + * + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder getVideoContextOrBuilder(); + + /** + * + * + *
+   * Optional location where the output (in JSON format) should be stored.
+   * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+   * URIs are supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+   * more information, see [Request URIs](/storage/docs/reference-uris).
+   * 
+ * + * string output_uri = 4; + */ + java.lang.String getOutputUri(); + /** + * + * + *
+   * Optional location where the output (in JSON format) should be stored.
+   * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+   * URIs are supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
+   * more information, see [Request URIs](/storage/docs/reference-uris).
+   * 
+ * + * string output_uri = 4; + */ + com.google.protobuf.ByteString getOutputUriBytes(); + + /** + * + * + *
+   * Optional cloud region where annotation should take place. Supported cloud
+   * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+   * is specified, a region will be determined based on video file location.
+   * 
+ * + * string location_id = 5; + */ + java.lang.String getLocationId(); + /** + * + * + *
+   * Optional cloud region where annotation should take place. Supported cloud
+   * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+   * is specified, a region will be determined based on video file location.
+   * 
+ * + * string location_id = 5; + */ + com.google.protobuf.ByteString getLocationIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java new file mode 100644 index 000000000000..6589d08cc00c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java @@ -0,0 +1,1025 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video annotation response. Included in the `response`
+ * field of the `Operation` returned by the `GetOperation`
+ * call of the `google::longrunning::Operations` service.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse} + */ +public final class AnnotateVideoResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) + AnnotateVideoResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnnotateVideoResponse.newBuilder() to construct. + private AnnotateVideoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnnotateVideoResponse() { + annotationResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AnnotateVideoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationResults_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults>(); + mutable_bitField0_ |= 0x00000001; + } + annotationResults_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationResults_ = java.util.Collections.unmodifiableList(annotationResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse.class, + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse.Builder.class); + } + + public static final int ANNOTATION_RESULTS_FIELD_NUMBER = 1; + private java.util.List + annotationResults_; + /** + * + * + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public java.util.List + getAnnotationResultsList() { + return annotationResults_; + } + /** + * + * + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder> + getAnnotationResultsOrBuilderList() { + return annotationResults_; + } + /** + * + * + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public int getAnnotationResultsCount() { + return annotationResults_.size(); + } + /** + * + * + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults getAnnotationResults( + int index) { + return annotationResults_.get(index); + } + /** + * + * + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder + getAnnotationResultsOrBuilder(int index) { + return annotationResults_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < annotationResults_.size(); i++) { + output.writeMessage(1, annotationResults_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < annotationResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, annotationResults_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse other = + (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) obj; + + boolean result = true; + result = result && getAnnotationResultsList().equals(other.getAnnotationResultsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAnnotationResultsCount() > 0) { + hash = (37 * hash) + ANNOTATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationResultsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video annotation response. Included in the `response`
+   * field of the `Operation` returned by the `GetOperation`
+   * call of the `google::longrunning::Operations` service.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse.class, + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAnnotationResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (annotationResultsBuilder_ == null) { + annotationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + annotationResultsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse build() { + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse result = + new com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse(this); + int from_bitField0_ = bitField0_; + if (annotationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + annotationResults_ = java.util.Collections.unmodifiableList(annotationResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.annotationResults_ = annotationResults_; + } else { + result.annotationResults_ = annotationResultsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse + .getDefaultInstance()) return this; + if (annotationResultsBuilder_ == null) { + if (!other.annotationResults_.isEmpty()) { + if (annotationResults_.isEmpty()) { + annotationResults_ = other.annotationResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnnotationResultsIsMutable(); + annotationResults_.addAll(other.annotationResults_); + } + onChanged(); + } + } else { + if (!other.annotationResults_.isEmpty()) { + if (annotationResultsBuilder_.isEmpty()) { + annotationResultsBuilder_.dispose(); + annotationResultsBuilder_ = null; + annotationResults_ = other.annotationResults_; + bitField0_ = (bitField0_ & ~0x00000001); + annotationResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAnnotationResultsFieldBuilder() + : null; + } else { + annotationResultsBuilder_.addAllMessages(other.annotationResults_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + annotationResults_ = java.util.Collections.emptyList(); + + private void ensureAnnotationResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + annotationResults_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults>( + annotationResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder> + annotationResultsBuilder_; + + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public java.util.List + getAnnotationResultsList() { + if (annotationResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(annotationResults_); + } else { + return annotationResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public int getAnnotationResultsCount() { + if (annotationResultsBuilder_ == null) { + return annotationResults_.size(); + } else { + return annotationResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults getAnnotationResults( + int index) { + if (annotationResultsBuilder_ == null) { + return annotationResults_.get(index); + } else { + return annotationResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public Builder setAnnotationResults( + int index, com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults value) { + if (annotationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationResultsIsMutable(); + annotationResults_.set(index, value); + onChanged(); + } else { + annotationResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public Builder setAnnotationResults( + int index, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder + builderForValue) { + if (annotationResultsBuilder_ == null) { + ensureAnnotationResultsIsMutable(); + annotationResults_.set(index, builderForValue.build()); + onChanged(); + } else { + annotationResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public Builder addAnnotationResults( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults value) { + if (annotationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationResultsIsMutable(); + annotationResults_.add(value); + onChanged(); + } else { + annotationResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public Builder addAnnotationResults( + int index, com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults value) { + if (annotationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationResultsIsMutable(); + annotationResults_.add(index, value); + onChanged(); + } else { + annotationResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public Builder addAnnotationResults( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder + builderForValue) { + if (annotationResultsBuilder_ == null) { + ensureAnnotationResultsIsMutable(); + annotationResults_.add(builderForValue.build()); + onChanged(); + } else { + annotationResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public Builder addAnnotationResults( + int index, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder + builderForValue) { + if (annotationResultsBuilder_ == null) { + ensureAnnotationResultsIsMutable(); + annotationResults_.add(index, builderForValue.build()); + onChanged(); + } else { + annotationResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public Builder addAllAnnotationResults( + java.lang.Iterable< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults> + values) { + if (annotationResultsBuilder_ == null) { + ensureAnnotationResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationResults_); + onChanged(); + } else { + annotationResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public Builder clearAnnotationResults() { + if (annotationResultsBuilder_ == null) { + annotationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + annotationResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public Builder removeAnnotationResults(int index) { + if (annotationResultsBuilder_ == null) { + ensureAnnotationResultsIsMutable(); + annotationResults_.remove(index); + onChanged(); + } else { + annotationResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder + getAnnotationResultsBuilder(int index) { + return getAnnotationResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder + getAnnotationResultsOrBuilder(int index) { + if (annotationResultsBuilder_ == null) { + return annotationResults_.get(index); + } else { + return annotationResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder> + getAnnotationResultsOrBuilderList() { + if (annotationResultsBuilder_ != null) { + return annotationResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(annotationResults_); + } + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder + addAnnotationResultsBuilder() { + return getAnnotationResultsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults + .getDefaultInstance()); + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder + addAnnotationResultsBuilder(int index) { + return getAnnotationResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults + .getDefaultInstance()); + } + /** + * + * + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + public java.util.List< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder> + getAnnotationResultsBuilderList() { + return getAnnotationResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder> + getAnnotationResultsFieldBuilder() { + if (annotationResultsBuilder_ == null) { + annotationResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder>( + annotationResults_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + annotationResults_ = null; + } + return annotationResultsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) + private static final com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateVideoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateVideoResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponseOrBuilder.java new file mode 100644 index 000000000000..13f69ead06a6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponseOrBuilder.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface AnnotateVideoResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + java.util.List + getAnnotationResultsList(); + /** + * + * + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults getAnnotationResults( + int index); + /** + * + * + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + int getAnnotationResultsCount(); + /** + * + * + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder> + getAnnotationResultsOrBuilderList(); + /** + * + * + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder + getAnnotationResultsOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java new file mode 100644 index 000000000000..088bf998db2e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java @@ -0,0 +1,935 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Detected entity from video analysis.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.Entity} + */ +public final class Entity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.Entity) + EntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use Entity.newBuilder() to construct. + private Entity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Entity() { + entityId_ = ""; + description_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Entity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Entity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Entity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.Entity.class, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder.class); + } + + public static final int ENTITY_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object entityId_; + /** + * + * + *
+   * Opaque entity ID. Some IDs may be available in
+   * [Google Knowledge Graph Search
+   * API](https://developers.google.com/knowledge-graph/).
+   * 
+ * + * string entity_id = 1; + */ + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityId_ = s; + return s; + } + } + /** + * + * + *
+   * Opaque entity ID. Some IDs may be available in
+   * [Google Knowledge Graph Search
+   * API](https://developers.google.com/knowledge-graph/).
+   * 
+ * + * string entity_id = 1; + */ + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Textual description, e.g. `Fixed-gear bicycle`.
+   * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Textual description, e.g. `Fixed-gear bicycle`.
+   * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * Language code for `description` in BCP-47 format.
+   * 
+ * + * string language_code = 3; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Language code for `description` in BCP-47 format.
+   * 
+ * + * string language_code = 3; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getEntityIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntityIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.Entity)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.Entity other = + (com.google.cloud.videointelligence.v1p3beta1.Entity) obj; + + boolean result = true; + result = result && getEntityId().equals(other.getEntityId()); + result = result && getDescription().equals(other.getDescription()); + result = result && getLanguageCode().equals(other.getLanguageCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.videointelligence.v1p3beta1.Entity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Detected entity from video analysis.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.Entity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.Entity) + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Entity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Entity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.Entity.class, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.Entity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entityId_ = ""; + + description_ = ""; + + languageCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Entity_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.Entity getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.Entity build() { + com.google.cloud.videointelligence.v1p3beta1.Entity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.Entity buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.Entity result = + new com.google.cloud.videointelligence.v1p3beta1.Entity(this); + result.entityId_ = entityId_; + result.description_ = description_; + result.languageCode_ = languageCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.Entity) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.Entity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.Entity other) { + if (other == com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance()) + return this; + if (!other.getEntityId().isEmpty()) { + entityId_ = other.entityId_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.Entity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.Entity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object entityId_ = ""; + /** + * + * + *
+     * Opaque entity ID. Some IDs may be available in
+     * [Google Knowledge Graph Search
+     * API](https://developers.google.com/knowledge-graph/).
+     * 
+ * + * string entity_id = 1; + */ + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Opaque entity ID. Some IDs may be available in
+     * [Google Knowledge Graph Search
+     * API](https://developers.google.com/knowledge-graph/).
+     * 
+ * + * string entity_id = 1; + */ + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Opaque entity ID. Some IDs may be available in
+     * [Google Knowledge Graph Search
+     * API](https://developers.google.com/knowledge-graph/).
+     * 
+ * + * string entity_id = 1; + */ + public Builder setEntityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Opaque entity ID. Some IDs may be available in
+     * [Google Knowledge Graph Search
+     * API](https://developers.google.com/knowledge-graph/).
+     * 
+ * + * string entity_id = 1; + */ + public Builder clearEntityId() { + + entityId_ = getDefaultInstance().getEntityId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Opaque entity ID. Some IDs may be available in
+     * [Google Knowledge Graph Search
+     * API](https://developers.google.com/knowledge-graph/).
+     * 
+ * + * string entity_id = 1; + */ + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityId_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Textual description, e.g. `Fixed-gear bicycle`.
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Textual description, e.g. `Fixed-gear bicycle`.
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Textual description, e.g. `Fixed-gear bicycle`.
+     * 
+ * + * string description = 2; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Textual description, e.g. `Fixed-gear bicycle`.
+     * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Textual description, e.g. `Fixed-gear bicycle`.
+     * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Language code for `description` in BCP-47 format.
+     * 
+ * + * string language_code = 3; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Language code for `description` in BCP-47 format.
+     * 
+ * + * string language_code = 3; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Language code for `description` in BCP-47 format.
+     * 
+ * + * string language_code = 3; + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Language code for `description` in BCP-47 format.
+     * 
+ * + * string language_code = 3; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Language code for `description` in BCP-47 format.
+     * 
+ * + * string language_code = 3; + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.Entity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.Entity) + private static final com.google.cloud.videointelligence.v1p3beta1.Entity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.Entity(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Entity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Entity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.Entity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/EntityOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/EntityOrBuilder.java new file mode 100644 index 000000000000..92ef7893c478 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/EntityOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface EntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.Entity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Opaque entity ID. Some IDs may be available in
+   * [Google Knowledge Graph Search
+   * API](https://developers.google.com/knowledge-graph/).
+   * 
+ * + * string entity_id = 1; + */ + java.lang.String getEntityId(); + /** + * + * + *
+   * Opaque entity ID. Some IDs may be available in
+   * [Google Knowledge Graph Search
+   * API](https://developers.google.com/knowledge-graph/).
+   * 
+ * + * string entity_id = 1; + */ + com.google.protobuf.ByteString getEntityIdBytes(); + + /** + * + * + *
+   * Textual description, e.g. `Fixed-gear bicycle`.
+   * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Textual description, e.g. `Fixed-gear bicycle`.
+   * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Language code for `description` in BCP-47 format.
+   * 
+ * + * string language_code = 3; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Language code for `description` in BCP-47 format.
+   * 
+ * + * string language_code = 3; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java new file mode 100644 index 000000000000..66997b5cba0f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java @@ -0,0 +1,994 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Explicit content annotation (based on per-frame visual signals only).
+ * If no explicit content has been detected in a frame, no annotations are
+ * present for that frame.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation} + */ +public final class ExplicitContentAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) + ExplicitContentAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExplicitContentAnnotation.newBuilder() to construct. + private ExplicitContentAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExplicitContentAnnotation() { + frames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExplicitContentAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + frames_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame>(); + mutable_bitField0_ |= 0x00000001; + } + frames_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder.class); + } + + public static final int FRAMES_FIELD_NUMBER = 1; + private java.util.List frames_; + /** + * + * + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public java.util.List + getFramesList() { + return frames_; + } + /** + * + * + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder> + getFramesOrBuilderList() { + return frames_; + } + /** + * + * + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public int getFramesCount() { + return frames_.size(); + } + /** + * + * + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame getFrames(int index) { + return frames_.get(index); + } + /** + * + * + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder + getFramesOrBuilder(int index) { + return frames_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < frames_.size(); i++) { + output.writeMessage(1, frames_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < frames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, frames_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation other = + (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) obj; + + boolean result = true; + result = result && getFramesList().equals(other.getFramesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFramesCount() > 0) { + hash = (37 * hash) + FRAMES_FIELD_NUMBER; + hash = (53 * hash) + getFramesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Explicit content annotation (based on per-frame visual signals only).
+   * If no explicit content has been detected in a frame, no annotations are
+   * present for that frame.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFramesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + framesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation build() { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation result = + new com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation(this); + int from_bitField0_ = bitField0_; + if (framesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.frames_ = frames_; + } else { + result.frames_ = framesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .getDefaultInstance()) return this; + if (framesBuilder_ == null) { + if (!other.frames_.isEmpty()) { + if (frames_.isEmpty()) { + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFramesIsMutable(); + frames_.addAll(other.frames_); + } + onChanged(); + } + } else { + if (!other.frames_.isEmpty()) { + if (framesBuilder_.isEmpty()) { + framesBuilder_.dispose(); + framesBuilder_ = null; + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000001); + framesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFramesFieldBuilder() + : null; + } else { + framesBuilder_.addAllMessages(other.frames_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + frames_ = java.util.Collections.emptyList(); + + private void ensureFramesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + frames_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame>(frames_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder> + framesBuilder_; + + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public java.util.List + getFramesList() { + if (framesBuilder_ == null) { + return java.util.Collections.unmodifiableList(frames_); + } else { + return framesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public int getFramesCount() { + if (framesBuilder_ == null) { + return frames_.size(); + } else { + return framesBuilder_.getCount(); + } + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame getFrames(int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.set(index, value); + onChanged(); + } else { + framesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public Builder setFrames( + int index, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.set(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public Builder addFrames( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(value); + onChanged(); + } else { + framesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(index, value); + onChanged(); + } else { + framesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public Builder addFrames( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public Builder addFrames( + int index, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public Builder addAllFrames( + java.lang.Iterable< + ? extends com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame> + values) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frames_); + onChanged(); + } else { + framesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public Builder clearFrames() { + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + framesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public Builder removeFrames(int index) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.remove(index); + onChanged(); + } else { + framesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder + getFramesBuilder(int index) { + return getFramesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder + getFramesOrBuilder(int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder> + getFramesOrBuilderList() { + if (framesBuilder_ != null) { + return framesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frames_); + } + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder + addFramesBuilder() { + return getFramesFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame + .getDefaultInstance()); + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder + addFramesBuilder(int index) { + return getFramesFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame + .getDefaultInstance()); + } + /** + * + * + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + public java.util.List + getFramesBuilderList() { + return getFramesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder> + getFramesFieldBuilder() { + if (framesBuilder_ == null) { + framesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder>( + frames_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + frames_ = null; + } + return framesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) + private static final com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplicitContentAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExplicitContentAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotationOrBuilder.java new file mode 100644 index 000000000000..2e6ee56a3504 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotationOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface ExplicitContentAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + java.util.List getFramesList(); + /** + * + * + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame getFrames(int index); + /** + * + * + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + int getFramesCount(); + /** + * + * + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder> + getFramesOrBuilderList(); + /** + * + * + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder getFramesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java new file mode 100644 index 000000000000..e56643658a02 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java @@ -0,0 +1,639 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Config for EXPLICIT_CONTENT_DETECTION.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig} + */ +public final class ExplicitContentDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) + ExplicitContentDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExplicitContentDetectionConfig.newBuilder() to construct. + private ExplicitContentDetectionConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExplicitContentDetectionConfig() { + model_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExplicitContentDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder + .class); + } + + public static final int MODEL_FIELD_NUMBER = 1; + private volatile java.lang.Object model_; + /** + * + * + *
+   * Model to use for explicit content detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
+   * Model to use for explicit content detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getModelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getModelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig other = + (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) obj; + + boolean result = true; + result = result && getModel().equals(other.getModel()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + model_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig build() { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig result = + new com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig(this); + result.model_ = model_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + .getDefaultInstance()) return this; + if (!other.getModel().isEmpty()) { + model_ = other.model_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object model_ = ""; + /** + * + * + *
+     * Model to use for explicit content detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Model to use for explicit content detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Model to use for explicit content detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + model_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Model to use for explicit content detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder clearModel() { + + model_ = getDefaultInstance().getModel(); + onChanged(); + return this; + } + /** + * + * + *
+     * Model to use for explicit content detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + model_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) + private static final com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplicitContentDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExplicitContentDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..612fbb26fd26 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfigOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface ExplicitContentDetectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Model to use for explicit content detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + java.lang.String getModel(); + /** + * + * + *
+   * Model to use for explicit content detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + com.google.protobuf.ByteString getModelBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java new file mode 100644 index 000000000000..eacb4d53b3f6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java @@ -0,0 +1,859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video frame level annotation results for explicit content.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame} + */ +public final class ExplicitContentFrame extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) + ExplicitContentFrameOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExplicitContentFrame.newBuilder() to construct. + private ExplicitContentFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExplicitContentFrame() { + pornographyLikelihood_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExplicitContentFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + int rawValue = input.readEnum(); + + pornographyLikelihood_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.class, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder.class); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration timeOffset_; + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public boolean hasTimeOffset() { + return timeOffset_ != null; + } + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration getTimeOffset() { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + return getTimeOffset(); + } + + public static final int PORNOGRAPHY_LIKELIHOOD_FIELD_NUMBER = 2; + private int pornographyLikelihood_; + /** + * + * + *
+   * Likelihood of the pornography content..
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + */ + public int getPornographyLikelihoodValue() { + return pornographyLikelihood_; + } + /** + * + * + *
+   * Likelihood of the pornography content..
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.Likelihood getPornographyLikelihood() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p3beta1.Likelihood result = + com.google.cloud.videointelligence.v1p3beta1.Likelihood.valueOf(pornographyLikelihood_); + return result == null + ? com.google.cloud.videointelligence.v1p3beta1.Likelihood.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (timeOffset_ != null) { + output.writeMessage(1, getTimeOffset()); + } + if (pornographyLikelihood_ + != com.google.cloud.videointelligence.v1p3beta1.Likelihood.LIKELIHOOD_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, pornographyLikelihood_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeOffset()); + } + if (pornographyLikelihood_ + != com.google.cloud.videointelligence.v1p3beta1.Likelihood.LIKELIHOOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, pornographyLikelihood_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame other = + (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) obj; + + boolean result = true; + result = result && (hasTimeOffset() == other.hasTimeOffset()); + if (hasTimeOffset()) { + result = result && getTimeOffset().equals(other.getTimeOffset()); + } + result = result && pornographyLikelihood_ == other.pornographyLikelihood_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTimeOffset()) { + hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTimeOffset().hashCode(); + } + hash = (37 * hash) + PORNOGRAPHY_LIKELIHOOD_FIELD_NUMBER; + hash = (53 * hash) + pornographyLikelihood_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video frame level annotation results for explicit content.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.class, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + pornographyLikelihood_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame build() { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame result = + new com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame(this); + if (timeOffsetBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = timeOffsetBuilder_.build(); + } + result.pornographyLikelihood_ = pornographyLikelihood_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.getDefaultInstance()) + return this; + if (other.hasTimeOffset()) { + mergeTimeOffset(other.getTimeOffset()); + } + if (other.pornographyLikelihood_ != 0) { + setPornographyLikelihoodValue(other.getPornographyLikelihoodValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration timeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeOffsetBuilder_; + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public boolean hasTimeOffset() { + return timeOffsetBuilder_ != null || timeOffset_ != null; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration getTimeOffset() { + if (timeOffsetBuilder_ == null) { + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; + } else { + return timeOffsetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder setTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + timeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { + if (timeOffsetBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + timeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder mergeTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (timeOffset_ != null) { + timeOffset_ = + com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + timeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder clearTimeOffset() { + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + onChanged(); + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { + + onChanged(); + return getTimeOffsetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + if (timeOffsetBuilder_ != null) { + return timeOffsetBuilder_.getMessageOrBuilder(); + } else { + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; + } + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTimeOffsetFieldBuilder() { + if (timeOffsetBuilder_ == null) { + timeOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTimeOffset(), getParentForChildren(), isClean()); + timeOffset_ = null; + } + return timeOffsetBuilder_; + } + + private int pornographyLikelihood_ = 0; + /** + * + * + *
+     * Likelihood of the pornography content..
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + */ + public int getPornographyLikelihoodValue() { + return pornographyLikelihood_; + } + /** + * + * + *
+     * Likelihood of the pornography content..
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + */ + public Builder setPornographyLikelihoodValue(int value) { + pornographyLikelihood_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Likelihood of the pornography content..
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.Likelihood getPornographyLikelihood() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p3beta1.Likelihood result = + com.google.cloud.videointelligence.v1p3beta1.Likelihood.valueOf(pornographyLikelihood_); + return result == null + ? com.google.cloud.videointelligence.v1p3beta1.Likelihood.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Likelihood of the pornography content..
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + */ + public Builder setPornographyLikelihood( + com.google.cloud.videointelligence.v1p3beta1.Likelihood value) { + if (value == null) { + throw new NullPointerException(); + } + + pornographyLikelihood_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Likelihood of the pornography content..
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + */ + public Builder clearPornographyLikelihood() { + + pornographyLikelihood_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) + private static final com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplicitContentFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExplicitContentFrame(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrameOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrameOrBuilder.java new file mode 100644 index 000000000000..95b373798552 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrameOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface ExplicitContentFrameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + boolean hasTimeOffset(); + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + com.google.protobuf.Duration getTimeOffset(); + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); + + /** + * + * + *
+   * Likelihood of the pornography content..
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + */ + int getPornographyLikelihoodValue(); + /** + * + * + *
+   * Likelihood of the pornography content..
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + */ + com.google.cloud.videointelligence.v1p3beta1.Likelihood getPornographyLikelihood(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java new file mode 100644 index 000000000000..1c808587ea21 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java @@ -0,0 +1,218 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video annotation feature.
+ * 
+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p3beta1.Feature} + */ +public enum Feature implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified.
+   * 
+ * + * FEATURE_UNSPECIFIED = 0; + */ + FEATURE_UNSPECIFIED(0), + /** + * + * + *
+   * Label detection. Detect objects, such as dog or flower.
+   * 
+ * + * LABEL_DETECTION = 1; + */ + LABEL_DETECTION(1), + /** + * + * + *
+   * Shot change detection.
+   * 
+ * + * SHOT_CHANGE_DETECTION = 2; + */ + SHOT_CHANGE_DETECTION(2), + /** + * + * + *
+   * Explicit content detection.
+   * 
+ * + * EXPLICIT_CONTENT_DETECTION = 3; + */ + EXPLICIT_CONTENT_DETECTION(3), + /** + * + * + *
+   * OCR text detection and tracking.
+   * 
+ * + * TEXT_DETECTION = 7; + */ + TEXT_DETECTION(7), + /** + * + * + *
+   * Object detection and tracking.
+   * 
+ * + * OBJECT_TRACKING = 9; + */ + OBJECT_TRACKING(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified.
+   * 
+ * + * FEATURE_UNSPECIFIED = 0; + */ + public static final int FEATURE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Label detection. Detect objects, such as dog or flower.
+   * 
+ * + * LABEL_DETECTION = 1; + */ + public static final int LABEL_DETECTION_VALUE = 1; + /** + * + * + *
+   * Shot change detection.
+   * 
+ * + * SHOT_CHANGE_DETECTION = 2; + */ + public static final int SHOT_CHANGE_DETECTION_VALUE = 2; + /** + * + * + *
+   * Explicit content detection.
+   * 
+ * + * EXPLICIT_CONTENT_DETECTION = 3; + */ + public static final int EXPLICIT_CONTENT_DETECTION_VALUE = 3; + /** + * + * + *
+   * OCR text detection and tracking.
+   * 
+ * + * TEXT_DETECTION = 7; + */ + public static final int TEXT_DETECTION_VALUE = 7; + /** + * + * + *
+   * Object detection and tracking.
+   * 
+ * + * OBJECT_TRACKING = 9; + */ + public static final int OBJECT_TRACKING_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Feature valueOf(int value) { + return forNumber(value); + } + + public static Feature forNumber(int value) { + switch (value) { + case 0: + return FEATURE_UNSPECIFIED; + case 1: + return LABEL_DETECTION; + case 2: + return SHOT_CHANGE_DETECTION; + case 3: + return EXPLICIT_CONTENT_DETECTION; + case 7: + return TEXT_DETECTION; + case 9: + return OBJECT_TRACKING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Feature findValueByNumber(int number) { + return Feature.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Feature[] VALUES = values(); + + public static Feature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Feature(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1p3beta1.Feature) +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotation.java new file mode 100644 index 000000000000..8210f5edc2e8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotation.java @@ -0,0 +1,2295 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Label annotation.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelAnnotation} + */ +public final class LabelAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.LabelAnnotation) + LabelAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use LabelAnnotation.newBuilder() to construct. + private LabelAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LabelAnnotation() { + categoryEntities_ = java.util.Collections.emptyList(); + segments_ = java.util.Collections.emptyList(); + frames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LabelAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder subBuilder = null; + if (entity_ != null) { + subBuilder = entity_.toBuilder(); + } + entity_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.Entity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entity_); + entity_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + categoryEntities_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + categoryEntities_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.Entity.parser(), + extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + segments_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.LabelSegment>(); + mutable_bitField0_ |= 0x00000004; + } + segments_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.parser(), + extensionRegistry)); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + frames_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.LabelFrame>(); + mutable_bitField0_ |= 0x00000008; + } + frames_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder.class); + } + + private int bitField0_; + public static final int ENTITY_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p3beta1.Entity entity_; + /** + * + * + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public boolean hasEntity() { + return entity_ != null; + } + /** + * + * + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() { + return entity_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance() + : entity_; + } + /** + * + * + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder() { + return getEntity(); + } + + public static final int CATEGORY_ENTITIES_FIELD_NUMBER = 2; + private java.util.List categoryEntities_; + /** + * + * + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public java.util.List + getCategoryEntitiesList() { + return categoryEntities_; + } + /** + * + * + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public java.util.List + getCategoryEntitiesOrBuilderList() { + return categoryEntities_; + } + /** + * + * + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public int getCategoryEntitiesCount() { + return categoryEntities_.size(); + } + /** + * + * + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity getCategoryEntities(int index) { + return categoryEntities_.get(index); + } + /** + * + * + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getCategoryEntitiesOrBuilder( + int index) { + return categoryEntities_.get(index); + } + + public static final int SEGMENTS_FIELD_NUMBER = 3; + private java.util.List segments_; + /** + * + * + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public java.util.List + getSegmentsList() { + return segments_; + } + /** + * + * + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder> + getSegmentsOrBuilderList() { + return segments_; + } + /** + * + * + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public int getSegmentsCount() { + return segments_.size(); + } + /** + * + * + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelSegment getSegments(int index) { + return segments_.get(index); + } + /** + * + * + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder getSegmentsOrBuilder( + int index) { + return segments_.get(index); + } + + public static final int FRAMES_FIELD_NUMBER = 4; + private java.util.List frames_; + /** + * + * + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public java.util.List getFramesList() { + return frames_; + } + /** + * + * + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public java.util.List + getFramesOrBuilderList() { + return frames_; + } + /** + * + * + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public int getFramesCount() { + return frames_.size(); + } + /** + * + * + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelFrame getFrames(int index) { + return frames_.get(index); + } + /** + * + * + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder getFramesOrBuilder( + int index) { + return frames_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entity_ != null) { + output.writeMessage(1, getEntity()); + } + for (int i = 0; i < categoryEntities_.size(); i++) { + output.writeMessage(2, categoryEntities_.get(i)); + } + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(3, segments_.get(i)); + } + for (int i = 0; i < frames_.size(); i++) { + output.writeMessage(4, frames_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entity_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity()); + } + for (int i = 0; i < categoryEntities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, categoryEntities_.get(i)); + } + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, segments_.get(i)); + } + for (int i = 0; i < frames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, frames_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation other = + (com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation) obj; + + boolean result = true; + result = result && (hasEntity() == other.hasEntity()); + if (hasEntity()) { + result = result && getEntity().equals(other.getEntity()); + } + result = result && getCategoryEntitiesList().equals(other.getCategoryEntitiesList()); + result = result && getSegmentsList().equals(other.getSegmentsList()); + result = result && getFramesList().equals(other.getFramesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + if (getCategoryEntitiesCount() > 0) { + hash = (37 * hash) + CATEGORY_ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getCategoryEntitiesList().hashCode(); + } + if (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + if (getFramesCount() > 0) { + hash = (37 * hash) + FRAMES_FIELD_NUMBER; + hash = (53 * hash) + getFramesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Label annotation.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.LabelAnnotation) + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCategoryEntitiesFieldBuilder(); + getSegmentsFieldBuilder(); + getFramesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (entityBuilder_ == null) { + entity_ = null; + } else { + entity_ = null; + entityBuilder_ = null; + } + if (categoryEntitiesBuilder_ == null) { + categoryEntities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + categoryEntitiesBuilder_.clear(); + } + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + segmentsBuilder_.clear(); + } + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + framesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation build() { + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation result = + new com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entityBuilder_ == null) { + result.entity_ = entity_; + } else { + result.entity_ = entityBuilder_.build(); + } + if (categoryEntitiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.categoryEntities_ = categoryEntities_; + } else { + result.categoryEntities_ = categoryEntitiesBuilder_.build(); + } + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + if (framesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.frames_ = frames_; + } else { + result.frames_ = framesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()) + return this; + if (other.hasEntity()) { + mergeEntity(other.getEntity()); + } + if (categoryEntitiesBuilder_ == null) { + if (!other.categoryEntities_.isEmpty()) { + if (categoryEntities_.isEmpty()) { + categoryEntities_ = other.categoryEntities_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCategoryEntitiesIsMutable(); + categoryEntities_.addAll(other.categoryEntities_); + } + onChanged(); + } + } else { + if (!other.categoryEntities_.isEmpty()) { + if (categoryEntitiesBuilder_.isEmpty()) { + categoryEntitiesBuilder_.dispose(); + categoryEntitiesBuilder_ = null; + categoryEntities_ = other.categoryEntities_; + bitField0_ = (bitField0_ & ~0x00000002); + categoryEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCategoryEntitiesFieldBuilder() + : null; + } else { + categoryEntitiesBuilder_.addAllMessages(other.categoryEntities_); + } + } + } + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000004); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSegmentsFieldBuilder() + : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + if (framesBuilder_ == null) { + if (!other.frames_.isEmpty()) { + if (frames_.isEmpty()) { + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFramesIsMutable(); + frames_.addAll(other.frames_); + } + onChanged(); + } + } else { + if (!other.frames_.isEmpty()) { + if (framesBuilder_.isEmpty()) { + framesBuilder_.dispose(); + framesBuilder_ = null; + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000008); + framesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFramesFieldBuilder() + : null; + } else { + framesBuilder_.addAllMessages(other.frames_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.cloud.videointelligence.v1p3beta1.Entity entity_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Entity, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder, + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder> + entityBuilder_; + /** + * + * + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public boolean hasEntity() { + return entityBuilder_ != null || entity_ != null; + } + /** + * + * + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() { + if (entityBuilder_ == null) { + return entity_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance() + : entity_; + } else { + return entityBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public Builder setEntity(com.google.cloud.videointelligence.v1p3beta1.Entity value) { + if (entityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + onChanged(); + } else { + entityBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public Builder setEntity( + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder builderForValue) { + if (entityBuilder_ == null) { + entity_ = builderForValue.build(); + onChanged(); + } else { + entityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public Builder mergeEntity(com.google.cloud.videointelligence.v1p3beta1.Entity value) { + if (entityBuilder_ == null) { + if (entity_ != null) { + entity_ = + com.google.cloud.videointelligence.v1p3beta1.Entity.newBuilder(entity_) + .mergeFrom(value) + .buildPartial(); + } else { + entity_ = value; + } + onChanged(); + } else { + entityBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public Builder clearEntity() { + if (entityBuilder_ == null) { + entity_ = null; + onChanged(); + } else { + entity_ = null; + entityBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder getEntityBuilder() { + + onChanged(); + return getEntityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder() { + if (entityBuilder_ != null) { + return entityBuilder_.getMessageOrBuilder(); + } else { + return entity_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance() + : entity_; + } + } + /** + * + * + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Entity, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder, + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder> + getEntityFieldBuilder() { + if (entityBuilder_ == null) { + entityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Entity, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder, + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>( + getEntity(), getParentForChildren(), isClean()); + entity_ = null; + } + return entityBuilder_; + } + + private java.util.List categoryEntities_ = + java.util.Collections.emptyList(); + + private void ensureCategoryEntitiesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + categoryEntities_ = + new java.util.ArrayList( + categoryEntities_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Entity, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder, + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder> + categoryEntitiesBuilder_; + + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public java.util.List + getCategoryEntitiesList() { + if (categoryEntitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(categoryEntities_); + } else { + return categoryEntitiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public int getCategoryEntitiesCount() { + if (categoryEntitiesBuilder_ == null) { + return categoryEntities_.size(); + } else { + return categoryEntitiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity getCategoryEntities(int index) { + if (categoryEntitiesBuilder_ == null) { + return categoryEntities_.get(index); + } else { + return categoryEntitiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public Builder setCategoryEntities( + int index, com.google.cloud.videointelligence.v1p3beta1.Entity value) { + if (categoryEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryEntitiesIsMutable(); + categoryEntities_.set(index, value); + onChanged(); + } else { + categoryEntitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public Builder setCategoryEntities( + int index, com.google.cloud.videointelligence.v1p3beta1.Entity.Builder builderForValue) { + if (categoryEntitiesBuilder_ == null) { + ensureCategoryEntitiesIsMutable(); + categoryEntities_.set(index, builderForValue.build()); + onChanged(); + } else { + categoryEntitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public Builder addCategoryEntities(com.google.cloud.videointelligence.v1p3beta1.Entity value) { + if (categoryEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryEntitiesIsMutable(); + categoryEntities_.add(value); + onChanged(); + } else { + categoryEntitiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public Builder addCategoryEntities( + int index, com.google.cloud.videointelligence.v1p3beta1.Entity value) { + if (categoryEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryEntitiesIsMutable(); + categoryEntities_.add(index, value); + onChanged(); + } else { + categoryEntitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public Builder addCategoryEntities( + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder builderForValue) { + if (categoryEntitiesBuilder_ == null) { + ensureCategoryEntitiesIsMutable(); + categoryEntities_.add(builderForValue.build()); + onChanged(); + } else { + categoryEntitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public Builder addCategoryEntities( + int index, com.google.cloud.videointelligence.v1p3beta1.Entity.Builder builderForValue) { + if (categoryEntitiesBuilder_ == null) { + ensureCategoryEntitiesIsMutable(); + categoryEntities_.add(index, builderForValue.build()); + onChanged(); + } else { + categoryEntitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public Builder addAllCategoryEntities( + java.lang.Iterable values) { + if (categoryEntitiesBuilder_ == null) { + ensureCategoryEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categoryEntities_); + onChanged(); + } else { + categoryEntitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public Builder clearCategoryEntities() { + if (categoryEntitiesBuilder_ == null) { + categoryEntities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + categoryEntitiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public Builder removeCategoryEntities(int index) { + if (categoryEntitiesBuilder_ == null) { + ensureCategoryEntitiesIsMutable(); + categoryEntities_.remove(index); + onChanged(); + } else { + categoryEntitiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder getCategoryEntitiesBuilder( + int index) { + return getCategoryEntitiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder + getCategoryEntitiesOrBuilder(int index) { + if (categoryEntitiesBuilder_ == null) { + return categoryEntities_.get(index); + } else { + return categoryEntitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public java.util.List + getCategoryEntitiesOrBuilderList() { + if (categoryEntitiesBuilder_ != null) { + return categoryEntitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(categoryEntities_); + } + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder + addCategoryEntitiesBuilder() { + return getCategoryEntitiesFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance()); + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder addCategoryEntitiesBuilder( + int index) { + return getCategoryEntitiesFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance()); + } + /** + * + * + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + public java.util.List + getCategoryEntitiesBuilderList() { + return getCategoryEntitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Entity, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder, + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder> + getCategoryEntitiesFieldBuilder() { + if (categoryEntitiesBuilder_ == null) { + categoryEntitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Entity, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder, + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>( + categoryEntities_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + categoryEntities_ = null; + } + return categoryEntitiesBuilder_; + } + + private java.util.List segments_ = + java.util.Collections.emptyList(); + + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + segments_ = + new java.util.ArrayList( + segments_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelSegment, + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder> + segmentsBuilder_; + + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public java.util.List + getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelSegment getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public Builder setSegments( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public Builder addSegments(com.google.cloud.videointelligence.v1p3beta1.LabelSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public Builder addSegments( + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public Builder addSegments( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public Builder addAllSegments( + java.lang.Iterable + values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder getSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder getSegmentsOrBuilder( + int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder> + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder addSegmentsBuilder() { + return getSegmentsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.getDefaultInstance()); + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder addSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.getDefaultInstance()); + } + /** + * + * + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + public java.util.List + getSegmentsBuilderList() { + return getSegmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelSegment, + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder> + getSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelSegment, + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder>( + segments_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + + private java.util.List frames_ = + java.util.Collections.emptyList(); + + private void ensureFramesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + frames_ = + new java.util.ArrayList( + frames_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelFrame, + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder> + framesBuilder_; + + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public java.util.List getFramesList() { + if (framesBuilder_ == null) { + return java.util.Collections.unmodifiableList(frames_); + } else { + return framesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public int getFramesCount() { + if (framesBuilder_ == null) { + return frames_.size(); + } else { + return framesBuilder_.getCount(); + } + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelFrame getFrames(int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.set(index, value); + onChanged(); + } else { + framesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public Builder setFrames( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.set(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public Builder addFrames(com.google.cloud.videointelligence.v1p3beta1.LabelFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(value); + onChanged(); + } else { + framesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(index, value); + onChanged(); + } else { + framesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public Builder addFrames( + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public Builder addFrames( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public Builder addAllFrames( + java.lang.Iterable + values) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frames_); + onChanged(); + } else { + framesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public Builder clearFrames() { + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + framesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public Builder removeFrames(int index) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.remove(index); + onChanged(); + } else { + framesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder getFramesBuilder( + int index) { + return getFramesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder getFramesOrBuilder( + int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder> + getFramesOrBuilderList() { + if (framesBuilder_ != null) { + return framesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frames_); + } + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder addFramesBuilder() { + return getFramesFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1p3beta1.LabelFrame.getDefaultInstance()); + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder addFramesBuilder( + int index) { + return getFramesFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1p3beta1.LabelFrame.getDefaultInstance()); + } + /** + * + * + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + public java.util.List + getFramesBuilderList() { + return getFramesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelFrame, + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder> + getFramesFieldBuilder() { + if (framesBuilder_ == null) { + framesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelFrame, + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder>( + frames_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + frames_ = null; + } + return framesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.LabelAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.LabelAnnotation) + private static final com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotationOrBuilder.java new file mode 100644 index 000000000000..57cede7d3563 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotationOrBuilder.java @@ -0,0 +1,214 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface LabelAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.LabelAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + boolean hasEntity(); + /** + * + * + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.Entity getEntity(); + /** + * + * + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder(); + + /** + * + * + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + java.util.List getCategoryEntitiesList(); + /** + * + * + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + com.google.cloud.videointelligence.v1p3beta1.Entity getCategoryEntities(int index); + /** + * + * + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + int getCategoryEntitiesCount(); + /** + * + * + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + java.util.List + getCategoryEntitiesOrBuilderList(); + /** + * + * + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2; + */ + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getCategoryEntitiesOrBuilder( + int index); + + /** + * + * + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + java.util.List getSegmentsList(); + /** + * + * + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + com.google.cloud.videointelligence.v1p3beta1.LabelSegment getSegments(int index); + /** + * + * + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + int getSegmentsCount(); + /** + * + * + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + java.util.List + getSegmentsOrBuilderList(); + /** + * + * + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3; + */ + com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder getSegmentsOrBuilder( + int index); + + /** + * + * + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + java.util.List getFramesList(); + /** + * + * + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + com.google.cloud.videointelligence.v1p3beta1.LabelFrame getFrames(int index); + /** + * + * + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + int getFramesCount(); + /** + * + * + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + java.util.List + getFramesOrBuilderList(); + /** + * + * + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4; + */ + com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder getFramesOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java new file mode 100644 index 000000000000..290baa79ad98 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java @@ -0,0 +1,874 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Config for LABEL_DETECTION.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig} + */ +public final class LabelDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) + LabelDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LabelDetectionConfig.newBuilder() to construct. + private LabelDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LabelDetectionConfig() { + labelDetectionMode_ = 0; + stationaryCamera_ = false; + model_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LabelDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + labelDetectionMode_ = rawValue; + break; + } + case 16: + { + stationaryCamera_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder.class); + } + + public static final int LABEL_DETECTION_MODE_FIELD_NUMBER = 1; + private int labelDetectionMode_; + /** + * + * + *
+   * What labels should be detected with LABEL_DETECTION, in addition to
+   * video-level labels or segment-level labels.
+   * If unspecified, defaults to `SHOT_MODE`.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; + * + */ + public int getLabelDetectionModeValue() { + return labelDetectionMode_; + } + /** + * + * + *
+   * What labels should be detected with LABEL_DETECTION, in addition to
+   * video-level labels or segment-level labels.
+   * If unspecified, defaults to `SHOT_MODE`.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelDetectionMode() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode result = + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode.valueOf( + labelDetectionMode_); + return result == null + ? com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode.UNRECOGNIZED + : result; + } + + public static final int STATIONARY_CAMERA_FIELD_NUMBER = 2; + private boolean stationaryCamera_; + /** + * + * + *
+   * Whether the video has been shot from a stationary (i.e. non-moving) camera.
+   * When set to true, might improve detection accuracy for moving objects.
+   * Should be used with `SHOT_AND_FRAME_MODE` enabled.
+   * 
+ * + * bool stationary_camera = 2; + */ + public boolean getStationaryCamera() { + return stationaryCamera_; + } + + public static final int MODEL_FIELD_NUMBER = 3; + private volatile java.lang.Object model_; + /** + * + * + *
+   * Model to use for label detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 3; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
+   * Model to use for label detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 3; + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (labelDetectionMode_ + != com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode + .LABEL_DETECTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, labelDetectionMode_); + } + if (stationaryCamera_ != false) { + output.writeBool(2, stationaryCamera_); + } + if (!getModelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (labelDetectionMode_ + != com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode + .LABEL_DETECTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, labelDetectionMode_); + } + if (stationaryCamera_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, stationaryCamera_); + } + if (!getModelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig other = + (com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) obj; + + boolean result = true; + result = result && labelDetectionMode_ == other.labelDetectionMode_; + result = result && (getStationaryCamera() == other.getStationaryCamera()); + result = result && getModel().equals(other.getModel()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LABEL_DETECTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + labelDetectionMode_; + hash = (37 * hash) + STATIONARY_CAMERA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStationaryCamera()); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + labelDetectionMode_ = 0; + + stationaryCamera_ = false; + + model_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig build() { + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig result = + new com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig(this); + result.labelDetectionMode_ = labelDetectionMode_; + result.stationaryCamera_ = stationaryCamera_; + result.model_ = model_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.getDefaultInstance()) + return this; + if (other.labelDetectionMode_ != 0) { + setLabelDetectionModeValue(other.getLabelDetectionModeValue()); + } + if (other.getStationaryCamera() != false) { + setStationaryCamera(other.getStationaryCamera()); + } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int labelDetectionMode_ = 0; + /** + * + * + *
+     * What labels should be detected with LABEL_DETECTION, in addition to
+     * video-level labels or segment-level labels.
+     * If unspecified, defaults to `SHOT_MODE`.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; + * + */ + public int getLabelDetectionModeValue() { + return labelDetectionMode_; + } + /** + * + * + *
+     * What labels should be detected with LABEL_DETECTION, in addition to
+     * video-level labels or segment-level labels.
+     * If unspecified, defaults to `SHOT_MODE`.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; + * + */ + public Builder setLabelDetectionModeValue(int value) { + labelDetectionMode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * What labels should be detected with LABEL_DETECTION, in addition to
+     * video-level labels or segment-level labels.
+     * If unspecified, defaults to `SHOT_MODE`.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelDetectionMode() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode result = + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode.valueOf( + labelDetectionMode_); + return result == null + ? com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * What labels should be detected with LABEL_DETECTION, in addition to
+     * video-level labels or segment-level labels.
+     * If unspecified, defaults to `SHOT_MODE`.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; + * + */ + public Builder setLabelDetectionMode( + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode value) { + if (value == null) { + throw new NullPointerException(); + } + + labelDetectionMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * What labels should be detected with LABEL_DETECTION, in addition to
+     * video-level labels or segment-level labels.
+     * If unspecified, defaults to `SHOT_MODE`.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; + * + */ + public Builder clearLabelDetectionMode() { + + labelDetectionMode_ = 0; + onChanged(); + return this; + } + + private boolean stationaryCamera_; + /** + * + * + *
+     * Whether the video has been shot from a stationary (i.e. non-moving) camera.
+     * When set to true, might improve detection accuracy for moving objects.
+     * Should be used with `SHOT_AND_FRAME_MODE` enabled.
+     * 
+ * + * bool stationary_camera = 2; + */ + public boolean getStationaryCamera() { + return stationaryCamera_; + } + /** + * + * + *
+     * Whether the video has been shot from a stationary (i.e. non-moving) camera.
+     * When set to true, might improve detection accuracy for moving objects.
+     * Should be used with `SHOT_AND_FRAME_MODE` enabled.
+     * 
+ * + * bool stationary_camera = 2; + */ + public Builder setStationaryCamera(boolean value) { + + stationaryCamera_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the video has been shot from a stationary (i.e. non-moving) camera.
+     * When set to true, might improve detection accuracy for moving objects.
+     * Should be used with `SHOT_AND_FRAME_MODE` enabled.
+     * 
+ * + * bool stationary_camera = 2; + */ + public Builder clearStationaryCamera() { + + stationaryCamera_ = false; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * + * + *
+     * Model to use for label detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 3; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Model to use for label detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 3; + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Model to use for label detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 3; + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + model_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Model to use for label detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 3; + */ + public Builder clearModel() { + + model_ = getDefaultInstance().getModel(); + onChanged(); + return this; + } + /** + * + * + *
+     * Model to use for label detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 3; + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + model_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) + private static final com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..bb1c78854e62 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfigOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface LabelDetectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * What labels should be detected with LABEL_DETECTION, in addition to
+   * video-level labels or segment-level labels.
+   * If unspecified, defaults to `SHOT_MODE`.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; + * + */ + int getLabelDetectionModeValue(); + /** + * + * + *
+   * What labels should be detected with LABEL_DETECTION, in addition to
+   * video-level labels or segment-level labels.
+   * If unspecified, defaults to `SHOT_MODE`.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelDetectionMode(); + + /** + * + * + *
+   * Whether the video has been shot from a stationary (i.e. non-moving) camera.
+   * When set to true, might improve detection accuracy for moving objects.
+   * Should be used with `SHOT_AND_FRAME_MODE` enabled.
+   * 
+ * + * bool stationary_camera = 2; + */ + boolean getStationaryCamera(); + + /** + * + * + *
+   * Model to use for label detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 3; + */ + java.lang.String getModel(); + /** + * + * + *
+   * Model to use for label detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 3; + */ + com.google.protobuf.ByteString getModelBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java new file mode 100644 index 000000000000..122651f6fb3c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java @@ -0,0 +1,176 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Label detection mode.
+ * 
+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p3beta1.LabelDetectionMode} + */ +public enum LabelDetectionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified.
+   * 
+ * + * LABEL_DETECTION_MODE_UNSPECIFIED = 0; + */ + LABEL_DETECTION_MODE_UNSPECIFIED(0), + /** + * + * + *
+   * Detect shot-level labels.
+   * 
+ * + * SHOT_MODE = 1; + */ + SHOT_MODE(1), + /** + * + * + *
+   * Detect frame-level labels.
+   * 
+ * + * FRAME_MODE = 2; + */ + FRAME_MODE(2), + /** + * + * + *
+   * Detect both shot-level and frame-level labels.
+   * 
+ * + * SHOT_AND_FRAME_MODE = 3; + */ + SHOT_AND_FRAME_MODE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified.
+   * 
+ * + * LABEL_DETECTION_MODE_UNSPECIFIED = 0; + */ + public static final int LABEL_DETECTION_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Detect shot-level labels.
+   * 
+ * + * SHOT_MODE = 1; + */ + public static final int SHOT_MODE_VALUE = 1; + /** + * + * + *
+   * Detect frame-level labels.
+   * 
+ * + * FRAME_MODE = 2; + */ + public static final int FRAME_MODE_VALUE = 2; + /** + * + * + *
+   * Detect both shot-level and frame-level labels.
+   * 
+ * + * SHOT_AND_FRAME_MODE = 3; + */ + public static final int SHOT_AND_FRAME_MODE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static LabelDetectionMode valueOf(int value) { + return forNumber(value); + } + + public static LabelDetectionMode forNumber(int value) { + switch (value) { + case 0: + return LABEL_DETECTION_MODE_UNSPECIFIED; + case 1: + return SHOT_MODE; + case 2: + return FRAME_MODE; + case 3: + return SHOT_AND_FRAME_MODE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LabelDetectionMode findValueByNumber(int number) { + return LabelDetectionMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final LabelDetectionMode[] VALUES = values(); + + public static LabelDetectionMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LabelDetectionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1p3beta1.LabelDetectionMode) +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrame.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrame.java new file mode 100644 index 000000000000..af457047bd8c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrame.java @@ -0,0 +1,795 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video frame level annotation results for label detection.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelFrame} + */ +public final class LabelFrame extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.LabelFrame) + LabelFrameOrBuilder { + private static final long serialVersionUID = 0L; + // Use LabelFrame.newBuilder() to construct. + private LabelFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LabelFrame() { + confidence_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LabelFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.class, + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder.class); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration timeOffset_; + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public boolean hasTimeOffset() { + return timeOffset_ != null; + } + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration getTimeOffset() { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + return getTimeOffset(); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 2; + private float confidence_; + /** + * + * + *
+   * Confidence that the label is accurate. Range: [0, 1].
+   * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (timeOffset_ != null) { + output.writeMessage(1, getTimeOffset()); + } + if (confidence_ != 0F) { + output.writeFloat(2, confidence_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeOffset()); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.LabelFrame)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.LabelFrame other = + (com.google.cloud.videointelligence.v1p3beta1.LabelFrame) obj; + + boolean result = true; + result = result && (hasTimeOffset() == other.hasTimeOffset()); + if (hasTimeOffset()) { + result = result && getTimeOffset().equals(other.getTimeOffset()); + } + result = + result + && (java.lang.Float.floatToIntBits(getConfidence()) + == java.lang.Float.floatToIntBits(other.getConfidence())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTimeOffset()) { + hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTimeOffset().hashCode(); + } + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelFrame prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video frame level annotation results for label detection.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelFrame} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.LabelFrame) + com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.class, + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.LabelFrame.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + confidence_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelFrame getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.LabelFrame.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelFrame build() { + com.google.cloud.videointelligence.v1p3beta1.LabelFrame result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelFrame buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.LabelFrame result = + new com.google.cloud.videointelligence.v1p3beta1.LabelFrame(this); + if (timeOffsetBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = timeOffsetBuilder_.build(); + } + result.confidence_ = confidence_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.LabelFrame) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.LabelFrame) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.LabelFrame other) { + if (other == com.google.cloud.videointelligence.v1p3beta1.LabelFrame.getDefaultInstance()) + return this; + if (other.hasTimeOffset()) { + mergeTimeOffset(other.getTimeOffset()); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.LabelFrame parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.LabelFrame) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration timeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeOffsetBuilder_; + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public boolean hasTimeOffset() { + return timeOffsetBuilder_ != null || timeOffset_ != null; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration getTimeOffset() { + if (timeOffsetBuilder_ == null) { + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; + } else { + return timeOffsetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder setTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + timeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { + if (timeOffsetBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + timeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder mergeTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (timeOffset_ != null) { + timeOffset_ = + com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + timeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder clearTimeOffset() { + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + onChanged(); + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { + + onChanged(); + return getTimeOffsetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + if (timeOffsetBuilder_ != null) { + return timeOffsetBuilder_.getMessageOrBuilder(); + } else { + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; + } + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTimeOffsetFieldBuilder() { + if (timeOffsetBuilder_ == null) { + timeOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTimeOffset(), getParentForChildren(), isClean()); + timeOffset_ = null; + } + return timeOffsetBuilder_; + } + + private float confidence_; + /** + * + * + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + /** + * + * + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public Builder clearConfidence() { + + confidence_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.LabelFrame) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.LabelFrame) + private static final com.google.cloud.videointelligence.v1p3beta1.LabelFrame DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.LabelFrame(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelFrame(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelFrame getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrameOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrameOrBuilder.java new file mode 100644 index 000000000000..6768143890df --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrameOrBuilder.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface LabelFrameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.LabelFrame) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + boolean hasTimeOffset(); + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + com.google.protobuf.Duration getTimeOffset(); + /** + * + * + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); + + /** + * + * + *
+   * Confidence that the label is accurate. Range: [0, 1].
+   * 
+ * + * float confidence = 2; + */ + float getConfidence(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java new file mode 100644 index 000000000000..0869f023e290 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java @@ -0,0 +1,791 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video segment level annotation results for label detection.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelSegment} + */ +public final class LabelSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.LabelSegment) + LabelSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use LabelSegment.newBuilder() to construct. + private LabelSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LabelSegment() { + confidence_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LabelSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder subBuilder = null; + if (segment_ != null) { + subBuilder = segment_.toBuilder(); + } + segment_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segment_); + segment_ = subBuilder.buildPartial(); + } + + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.class, + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder.class); + } + + public static final int SEGMENT_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_; + /** + * + * + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public boolean hasSegment() { + return segment_ != null; + } + /** + * + * + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } + /** + * + * + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + return getSegment(); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 2; + private float confidence_; + /** + * + * + *
+   * Confidence that the label is accurate. Range: [0, 1].
+   * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (segment_ != null) { + output.writeMessage(1, getSegment()); + } + if (confidence_ != 0F) { + output.writeFloat(2, confidence_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (segment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegment()); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.LabelSegment)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.LabelSegment other = + (com.google.cloud.videointelligence.v1p3beta1.LabelSegment) obj; + + boolean result = true; + result = result && (hasSegment() == other.hasSegment()); + if (hasSegment()) { + result = result && getSegment().equals(other.getSegment()); + } + result = + result + && (java.lang.Float.floatToIntBits(getConfidence()) + == java.lang.Float.floatToIntBits(other.getConfidence())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video segment level annotation results for label detection.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.LabelSegment) + com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.class, + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.LabelSegment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (segmentBuilder_ == null) { + segment_ = null; + } else { + segment_ = null; + segmentBuilder_ = null; + } + confidence_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelSegment getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.LabelSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelSegment build() { + com.google.cloud.videointelligence.v1p3beta1.LabelSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelSegment buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.LabelSegment result = + new com.google.cloud.videointelligence.v1p3beta1.LabelSegment(this); + if (segmentBuilder_ == null) { + result.segment_ = segment_; + } else { + result.segment_ = segmentBuilder_.build(); + } + result.confidence_ = confidence_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.LabelSegment) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.LabelSegment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.LabelSegment other) { + if (other == com.google.cloud.videointelligence.v1p3beta1.LabelSegment.getDefaultInstance()) + return this; + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.LabelSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.LabelSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + segmentBuilder_; + /** + * + * + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public boolean hasSegment() { + return segmentBuilder_ != null || segment_ != null; + } + /** + * + * + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public Builder setSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + onChanged(); + } else { + segmentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public Builder setSegment( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + onChanged(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public Builder mergeSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (segment_ != null) { + segment_ = + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.newBuilder(segment_) + .mergeFrom(value) + .buildPartial(); + } else { + segment_ = value; + } + onChanged(); + } else { + segmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public Builder clearSegment() { + if (segmentBuilder_ == null) { + segment_ = null; + onChanged(); + } else { + segment_ = null; + segmentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegmentBuilder() { + + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder + getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } + } + /** + * + * + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( + getSegment(), getParentForChildren(), isClean()); + segment_ = null; + } + return segmentBuilder_; + } + + private float confidence_; + /** + * + * + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + /** + * + * + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public Builder clearConfidence() { + + confidence_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.LabelSegment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.LabelSegment) + private static final com.google.cloud.videointelligence.v1p3beta1.LabelSegment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.LabelSegment(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelSegment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.LabelSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegmentOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegmentOrBuilder.java new file mode 100644 index 000000000000..53cb2e180413 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegmentOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface LabelSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.LabelSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + boolean hasSegment(); + /** + * + * + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); + /** + * + * + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder(); + + /** + * + * + *
+   * Confidence that the label is accurate. Range: [0, 1].
+   * 
+ * + * float confidence = 2; + */ + float getConfidence(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java new file mode 100644 index 000000000000..f14fecb78b5f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java @@ -0,0 +1,218 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Bucketized representation of likelihood.
+ * 
+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p3beta1.Likelihood} + */ +public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified likelihood.
+   * 
+ * + * LIKELIHOOD_UNSPECIFIED = 0; + */ + LIKELIHOOD_UNSPECIFIED(0), + /** + * + * + *
+   * Very unlikely.
+   * 
+ * + * VERY_UNLIKELY = 1; + */ + VERY_UNLIKELY(1), + /** + * + * + *
+   * Unlikely.
+   * 
+ * + * UNLIKELY = 2; + */ + UNLIKELY(2), + /** + * + * + *
+   * Possible.
+   * 
+ * + * POSSIBLE = 3; + */ + POSSIBLE(3), + /** + * + * + *
+   * Likely.
+   * 
+ * + * LIKELY = 4; + */ + LIKELY(4), + /** + * + * + *
+   * Very likely.
+   * 
+ * + * VERY_LIKELY = 5; + */ + VERY_LIKELY(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified likelihood.
+   * 
+ * + * LIKELIHOOD_UNSPECIFIED = 0; + */ + public static final int LIKELIHOOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Very unlikely.
+   * 
+ * + * VERY_UNLIKELY = 1; + */ + public static final int VERY_UNLIKELY_VALUE = 1; + /** + * + * + *
+   * Unlikely.
+   * 
+ * + * UNLIKELY = 2; + */ + public static final int UNLIKELY_VALUE = 2; + /** + * + * + *
+   * Possible.
+   * 
+ * + * POSSIBLE = 3; + */ + public static final int POSSIBLE_VALUE = 3; + /** + * + * + *
+   * Likely.
+   * 
+ * + * LIKELY = 4; + */ + public static final int LIKELY_VALUE = 4; + /** + * + * + *
+   * Very likely.
+   * 
+ * + * VERY_LIKELY = 5; + */ + public static final int VERY_LIKELY_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Likelihood valueOf(int value) { + return forNumber(value); + } + + public static Likelihood forNumber(int value) { + switch (value) { + case 0: + return LIKELIHOOD_UNSPECIFIED; + case 1: + return VERY_UNLIKELY; + case 2: + return UNLIKELY; + case 3: + return POSSIBLE; + case 4: + return LIKELY; + case 5: + return VERY_LIKELY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final Likelihood[] VALUES = values(); + + public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Likelihood(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1p3beta1.Likelihood) +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBox.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBox.java new file mode 100644 index 000000000000..cbb0e2b0ab0f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBox.java @@ -0,0 +1,786 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Normalized bounding box.
+ * The normalized vertex coordinates are relative to the original image.
+ * Range: [0, 1].
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox} + */ +public final class NormalizedBoundingBox extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) + NormalizedBoundingBoxOrBuilder { + private static final long serialVersionUID = 0L; + // Use NormalizedBoundingBox.newBuilder() to construct. + private NormalizedBoundingBox(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NormalizedBoundingBox() { + left_ = 0F; + top_ = 0F; + right_ = 0F; + bottom_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NormalizedBoundingBox( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + left_ = input.readFloat(); + break; + } + case 21: + { + top_ = input.readFloat(); + break; + } + case 29: + { + right_ = input.readFloat(); + break; + } + case 37: + { + bottom_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.class, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder.class); + } + + public static final int LEFT_FIELD_NUMBER = 1; + private float left_; + /** + * + * + *
+   * Left X coordinate.
+   * 
+ * + * float left = 1; + */ + public float getLeft() { + return left_; + } + + public static final int TOP_FIELD_NUMBER = 2; + private float top_; + /** + * + * + *
+   * Top Y coordinate.
+   * 
+ * + * float top = 2; + */ + public float getTop() { + return top_; + } + + public static final int RIGHT_FIELD_NUMBER = 3; + private float right_; + /** + * + * + *
+   * Right X coordinate.
+   * 
+ * + * float right = 3; + */ + public float getRight() { + return right_; + } + + public static final int BOTTOM_FIELD_NUMBER = 4; + private float bottom_; + /** + * + * + *
+   * Bottom Y coordinate.
+   * 
+ * + * float bottom = 4; + */ + public float getBottom() { + return bottom_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (left_ != 0F) { + output.writeFloat(1, left_); + } + if (top_ != 0F) { + output.writeFloat(2, top_); + } + if (right_ != 0F) { + output.writeFloat(3, right_); + } + if (bottom_ != 0F) { + output.writeFloat(4, bottom_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (left_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, left_); + } + if (top_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, top_); + } + if (right_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, right_); + } + if (bottom_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, bottom_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox other = + (com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) obj; + + boolean result = true; + result = + result + && (java.lang.Float.floatToIntBits(getLeft()) + == java.lang.Float.floatToIntBits(other.getLeft())); + result = + result + && (java.lang.Float.floatToIntBits(getTop()) + == java.lang.Float.floatToIntBits(other.getTop())); + result = + result + && (java.lang.Float.floatToIntBits(getRight()) + == java.lang.Float.floatToIntBits(other.getRight())); + result = + result + && (java.lang.Float.floatToIntBits(getBottom()) + == java.lang.Float.floatToIntBits(other.getBottom())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LEFT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLeft()); + hash = (37 * hash) + TOP_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTop()); + hash = (37 * hash) + RIGHT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRight()); + hash = (37 * hash) + BOTTOM_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBottom()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Normalized bounding box.
+   * The normalized vertex coordinates are relative to the original image.
+   * Range: [0, 1].
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.class, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + left_ = 0F; + + top_ = 0F; + + right_ = 0F; + + bottom_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox build() { + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox result = + new com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox(this); + result.left_ = left_; + result.top_ = top_; + result.right_ = right_; + result.bottom_ = bottom_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + .getDefaultInstance()) return this; + if (other.getLeft() != 0F) { + setLeft(other.getLeft()); + } + if (other.getTop() != 0F) { + setTop(other.getTop()); + } + if (other.getRight() != 0F) { + setRight(other.getRight()); + } + if (other.getBottom() != 0F) { + setBottom(other.getBottom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float left_; + /** + * + * + *
+     * Left X coordinate.
+     * 
+ * + * float left = 1; + */ + public float getLeft() { + return left_; + } + /** + * + * + *
+     * Left X coordinate.
+     * 
+ * + * float left = 1; + */ + public Builder setLeft(float value) { + + left_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Left X coordinate.
+     * 
+ * + * float left = 1; + */ + public Builder clearLeft() { + + left_ = 0F; + onChanged(); + return this; + } + + private float top_; + /** + * + * + *
+     * Top Y coordinate.
+     * 
+ * + * float top = 2; + */ + public float getTop() { + return top_; + } + /** + * + * + *
+     * Top Y coordinate.
+     * 
+ * + * float top = 2; + */ + public Builder setTop(float value) { + + top_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Top Y coordinate.
+     * 
+ * + * float top = 2; + */ + public Builder clearTop() { + + top_ = 0F; + onChanged(); + return this; + } + + private float right_; + /** + * + * + *
+     * Right X coordinate.
+     * 
+ * + * float right = 3; + */ + public float getRight() { + return right_; + } + /** + * + * + *
+     * Right X coordinate.
+     * 
+ * + * float right = 3; + */ + public Builder setRight(float value) { + + right_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Right X coordinate.
+     * 
+ * + * float right = 3; + */ + public Builder clearRight() { + + right_ = 0F; + onChanged(); + return this; + } + + private float bottom_; + /** + * + * + *
+     * Bottom Y coordinate.
+     * 
+ * + * float bottom = 4; + */ + public float getBottom() { + return bottom_; + } + /** + * + * + *
+     * Bottom Y coordinate.
+     * 
+ * + * float bottom = 4; + */ + public Builder setBottom(float value) { + + bottom_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Bottom Y coordinate.
+     * 
+ * + * float bottom = 4; + */ + public Builder clearBottom() { + + bottom_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) + private static final com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedBoundingBox parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedBoundingBox(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBoxOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBoxOrBuilder.java new file mode 100644 index 000000000000..c45f157893a9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBoxOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface NormalizedBoundingBoxOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Left X coordinate.
+   * 
+ * + * float left = 1; + */ + float getLeft(); + + /** + * + * + *
+   * Top Y coordinate.
+   * 
+ * + * float top = 2; + */ + float getTop(); + + /** + * + * + *
+   * Right X coordinate.
+   * 
+ * + * float right = 3; + */ + float getRight(); + + /** + * + * + *
+   * Bottom Y coordinate.
+   * 
+ * + * float bottom = 4; + */ + float getBottom(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java new file mode 100644 index 000000000000..3529ba0b3c75 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java @@ -0,0 +1,1009 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Normalized bounding polygon for text (that might not be aligned with axis).
+ * Contains list of the corner points in clockwise order starting from
+ * top-left corner. For example, for a rectangular bounding box:
+ * When the text is horizontal it might look like:
+ *         0----1
+ *         |    |
+ *         3----2
+ * When it's clockwise rotated 180 degrees around the top-left corner it
+ * becomes:
+ *         2----3
+ *         |    |
+ *         1----0
+ * and the vertex order will still be (0, 1, 2, 3). Note that values can be less
+ * than 0, or greater than 1 due to trignometric calculations for location of
+ * the box.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly} + */ +public final class NormalizedBoundingPoly extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) + NormalizedBoundingPolyOrBuilder { + private static final long serialVersionUID = 0L; + // Use NormalizedBoundingPoly.newBuilder() to construct. + private NormalizedBoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NormalizedBoundingPoly() { + vertices_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NormalizedBoundingPoly( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + vertices_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex>(); + mutable_bitField0_ |= 0x00000001; + } + vertices_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + vertices_ = java.util.Collections.unmodifiableList(vertices_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.class, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.Builder.class); + } + + public static final int VERTICES_FIELD_NUMBER = 1; + private java.util.List vertices_; + /** + * + * + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + */ + public java.util.List + getVerticesList() { + return vertices_; + } + /** + * + * + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder> + getVerticesOrBuilderList() { + return vertices_; + } + /** + * + * + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + */ + public int getVerticesCount() { + return vertices_.size(); + } + /** + * + * + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex getVertices(int index) { + return vertices_.get(index); + } + /** + * + * + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder + getVerticesOrBuilder(int index) { + return vertices_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < vertices_.size(); i++) { + output.writeMessage(1, vertices_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < vertices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly other = + (com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) obj; + + boolean result = true; + result = result && getVerticesList().equals(other.getVerticesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVerticesCount() > 0) { + hash = (37 * hash) + VERTICES_FIELD_NUMBER; + hash = (53 * hash) + getVerticesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Normalized bounding polygon for text (that might not be aligned with axis).
+   * Contains list of the corner points in clockwise order starting from
+   * top-left corner. For example, for a rectangular bounding box:
+   * When the text is horizontal it might look like:
+   *         0----1
+   *         |    |
+   *         3----2
+   * When it's clockwise rotated 180 degrees around the top-left corner it
+   * becomes:
+   *         2----3
+   *         |    |
+   *         1----0
+   * and the vertex order will still be (0, 1, 2, 3). Note that values can be less
+   * than 0, or greater than 1 due to trignometric calculations for location of
+   * the box.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPolyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.class, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVerticesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (verticesBuilder_ == null) { + vertices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + verticesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly build() { + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly result = + new com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly(this); + int from_bitField0_ = bitField0_; + if (verticesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + vertices_ = java.util.Collections.unmodifiableList(vertices_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.vertices_ = vertices_; + } else { + result.vertices_ = verticesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + .getDefaultInstance()) return this; + if (verticesBuilder_ == null) { + if (!other.vertices_.isEmpty()) { + if (vertices_.isEmpty()) { + vertices_ = other.vertices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVerticesIsMutable(); + vertices_.addAll(other.vertices_); + } + onChanged(); + } + } else { + if (!other.vertices_.isEmpty()) { + if (verticesBuilder_.isEmpty()) { + verticesBuilder_.dispose(); + verticesBuilder_ = null; + vertices_ = other.vertices_; + bitField0_ = (bitField0_ & ~0x00000001); + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVerticesFieldBuilder() + : null; + } else { + verticesBuilder_.addAllMessages(other.vertices_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + vertices_ = java.util.Collections.emptyList(); + + private void ensureVerticesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + vertices_ = + new java.util.ArrayList( + vertices_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder> + verticesBuilder_; + + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public java.util.List + getVerticesList() { + if (verticesBuilder_ == null) { + return java.util.Collections.unmodifiableList(vertices_); + } else { + return verticesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public int getVerticesCount() { + if (verticesBuilder_ == null) { + return vertices_.size(); + } else { + return verticesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex getVertices(int index) { + if (verticesBuilder_ == null) { + return vertices_.get(index); + } else { + return verticesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public Builder setVertices( + int index, com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex value) { + if (verticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerticesIsMutable(); + vertices_.set(index, value); + onChanged(); + } else { + verticesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public Builder setVertices( + int index, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder builderForValue) { + if (verticesBuilder_ == null) { + ensureVerticesIsMutable(); + vertices_.set(index, builderForValue.build()); + onChanged(); + } else { + verticesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public Builder addVertices( + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex value) { + if (verticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerticesIsMutable(); + vertices_.add(value); + onChanged(); + } else { + verticesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public Builder addVertices( + int index, com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex value) { + if (verticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerticesIsMutable(); + vertices_.add(index, value); + onChanged(); + } else { + verticesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public Builder addVertices( + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder builderForValue) { + if (verticesBuilder_ == null) { + ensureVerticesIsMutable(); + vertices_.add(builderForValue.build()); + onChanged(); + } else { + verticesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public Builder addVertices( + int index, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder builderForValue) { + if (verticesBuilder_ == null) { + ensureVerticesIsMutable(); + vertices_.add(index, builderForValue.build()); + onChanged(); + } else { + verticesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public Builder addAllVertices( + java.lang.Iterable + values) { + if (verticesBuilder_ == null) { + ensureVerticesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); + onChanged(); + } else { + verticesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public Builder clearVertices() { + if (verticesBuilder_ == null) { + vertices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + verticesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public Builder removeVertices(int index) { + if (verticesBuilder_ == null) { + ensureVerticesIsMutable(); + vertices_.remove(index); + onChanged(); + } else { + verticesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder getVerticesBuilder( + int index) { + return getVerticesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder + getVerticesOrBuilder(int index) { + if (verticesBuilder_ == null) { + return vertices_.get(index); + } else { + return verticesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder> + getVerticesOrBuilderList() { + if (verticesBuilder_ != null) { + return verticesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vertices_); + } + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder + addVerticesBuilder() { + return getVerticesFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.getDefaultInstance()); + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder addVerticesBuilder( + int index) { + return getVerticesFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.getDefaultInstance()); + } + /** + * + * + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + * + */ + public java.util.List + getVerticesBuilderList() { + return getVerticesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder> + getVerticesFieldBuilder() { + if (verticesBuilder_ == null) { + verticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder>( + vertices_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + vertices_ = null; + } + return verticesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) + private static final com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedBoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedBoundingPoly(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPolyOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPolyOrBuilder.java new file mode 100644 index 000000000000..21edfc2c32bf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPolyOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface NormalizedBoundingPolyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + */ + java.util.List getVerticesList(); + /** + * + * + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex getVertices(int index); + /** + * + * + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + */ + int getVerticesCount(); + /** + * + * + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + */ + java.util.List + getVerticesOrBuilderList(); + /** + * + * + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder getVerticesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java new file mode 100644 index 000000000000..9dc80bce9e23 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java @@ -0,0 +1,613 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * A vertex represents a 2D point in the image.
+ * NOTE: the normalized vertex coordinates are relative to the original image
+ * and range from 0 to 1.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedVertex} + */ +public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.NormalizedVertex) + NormalizedVertexOrBuilder { + private static final long serialVersionUID = 0L; + // Use NormalizedVertex.newBuilder() to construct. + private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NormalizedVertex() { + x_ = 0F; + y_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NormalizedVertex( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + x_ = input.readFloat(); + break; + } + case 21: + { + y_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.class, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder.class); + } + + public static final int X_FIELD_NUMBER = 1; + private float x_; + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + */ + public float getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private float y_; + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + */ + public float getY() { + return y_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (x_ != 0F) { + output.writeFloat(1, x_); + } + if (y_ != 0F) { + output.writeFloat(2, y_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (x_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + } + if (y_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex other = + (com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex) obj; + + boolean result = true; + result = + result + && (java.lang.Float.floatToIntBits(getX()) + == java.lang.Float.floatToIntBits(other.getX())); + result = + result + && (java.lang.Float.floatToIntBits(getY()) + == java.lang.Float.floatToIntBits(other.getY())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A vertex represents a 2D point in the image.
+   * NOTE: the normalized vertex coordinates are relative to the original image
+   * and range from 0 to 1.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedVertex} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.NormalizedVertex) + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.class, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + x_ = 0F; + + y_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex build() { + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex result = + new com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex(this); + result.x_ = x_; + result.y_ = y_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.getDefaultInstance()) + return this; + if (other.getX() != 0F) { + setX(other.getX()); + } + if (other.getY() != 0F) { + setY(other.getY()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float x_; + /** + * + * + *
+     * X coordinate.
+     * 
+ * + * float x = 1; + */ + public float getX() { + return x_; + } + /** + * + * + *
+     * X coordinate.
+     * 
+ * + * float x = 1; + */ + public Builder setX(float value) { + + x_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * X coordinate.
+     * 
+ * + * float x = 1; + */ + public Builder clearX() { + + x_ = 0F; + onChanged(); + return this; + } + + private float y_; + /** + * + * + *
+     * Y coordinate.
+     * 
+ * + * float y = 2; + */ + public float getY() { + return y_; + } + /** + * + * + *
+     * Y coordinate.
+     * 
+ * + * float y = 2; + */ + public Builder setY(float value) { + + y_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Y coordinate.
+     * 
+ * + * float y = 2; + */ + public Builder clearY() { + + y_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.NormalizedVertex) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.NormalizedVertex) + private static final com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertexOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000000..d104a468bf6f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface NormalizedVertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + */ + float getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + */ + float getY(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java new file mode 100644 index 000000000000..5a80eda4f7b7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java @@ -0,0 +1,1903 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Annotations corresponding to one tracked object.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation} + */ +public final class ObjectTrackingAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) + ObjectTrackingAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectTrackingAnnotation.newBuilder() to construct. + private ObjectTrackingAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ObjectTrackingAnnotation() { + confidence_ = 0F; + frames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ObjectTrackingAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder subBuilder = null; + if (entity_ != null) { + subBuilder = entity_.toBuilder(); + } + entity_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.Entity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entity_); + entity_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame>(); + mutable_bitField0_ |= 0x00000004; + } + frames_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.parser(), + extensionRegistry)); + break; + } + case 26: + { + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder subBuilder = null; + if (trackInfoCase_ == 3) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_) + .toBuilder(); + } + trackInfo_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_); + trackInfo_ = subBuilder.buildPartial(); + } + trackInfoCase_ = 3; + break; + } + case 37: + { + confidence_ = input.readFloat(); + break; + } + case 40: + { + trackInfoCase_ = 5; + trackInfo_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder.class); + } + + private int bitField0_; + private int trackInfoCase_ = 0; + private java.lang.Object trackInfo_; + + public enum TrackInfoCase implements com.google.protobuf.Internal.EnumLite { + SEGMENT(3), + TRACK_ID(5), + TRACKINFO_NOT_SET(0); + private final int value; + + private TrackInfoCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TrackInfoCase valueOf(int value) { + return forNumber(value); + } + + public static TrackInfoCase forNumber(int value) { + switch (value) { + case 3: + return SEGMENT; + case 5: + return TRACK_ID; + case 0: + return TRACKINFO_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TrackInfoCase getTrackInfoCase() { + return TrackInfoCase.forNumber(trackInfoCase_); + } + + public static final int ENTITY_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p3beta1.Entity entity_; + /** + * + * + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public boolean hasEntity() { + return entity_ != null; + } + /** + * + * + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() { + return entity_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance() + : entity_; + } + /** + * + * + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder() { + return getEntity(); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 4; + private float confidence_; + /** + * + * + *
+   * Object category's labeling confidence of this track.
+   * 
+ * + * float confidence = 4; + */ + public float getConfidence() { + return confidence_; + } + + public static final int FRAMES_FIELD_NUMBER = 2; + private java.util.List frames_; + /** + * + * + *
+   * Information corresponding to all frames where this object track appears.
+   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+   * messages in frames.
+   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + */ + public java.util.List + getFramesList() { + return frames_; + } + /** + * + * + *
+   * Information corresponding to all frames where this object track appears.
+   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+   * messages in frames.
+   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder> + getFramesOrBuilderList() { + return frames_; + } + /** + * + * + *
+   * Information corresponding to all frames where this object track appears.
+   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+   * messages in frames.
+   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + */ + public int getFramesCount() { + return frames_.size(); + } + /** + * + * + *
+   * Information corresponding to all frames where this object track appears.
+   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+   * messages in frames.
+   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame getFrames(int index) { + return frames_.get(index); + } + /** + * + * + *
+   * Information corresponding to all frames where this object track appears.
+   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+   * messages in frames.
+   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder + getFramesOrBuilder(int index) { + return frames_.get(index); + } + + public static final int SEGMENT_FIELD_NUMBER = 3; + /** + * + * + *
+   * Non-streaming batch mode ONLY.
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public boolean hasSegment() { + return trackInfoCase_ == 3; + } + /** + * + * + *
+   * Non-streaming batch mode ONLY.
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { + if (trackInfoCase_ == 3) { + return (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_; + } + return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance(); + } + /** + * + * + *
+   * Non-streaming batch mode ONLY.
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + if (trackInfoCase_ == 3) { + return (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_; + } + return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance(); + } + + public static final int TRACK_ID_FIELD_NUMBER = 5; + /** + * + * + *
+   * Streaming mode ONLY.
+   * In streaming mode, we do not know the end time of a tracked object
+   * before it is completed. Hence, there is no VideoSegment info returned.
+   * Instead, we provide a unique identifiable integer track_id so that
+   * the customers can correlate the results of the ongoing
+   * ObjectTrackAnnotation of the same track_id over time.
+   * 
+ * + * int64 track_id = 5; + */ + public long getTrackId() { + if (trackInfoCase_ == 5) { + return (java.lang.Long) trackInfo_; + } + return 0L; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entity_ != null) { + output.writeMessage(1, getEntity()); + } + for (int i = 0; i < frames_.size(); i++) { + output.writeMessage(2, frames_.get(i)); + } + if (trackInfoCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_); + } + if (confidence_ != 0F) { + output.writeFloat(4, confidence_); + } + if (trackInfoCase_ == 5) { + output.writeInt64(5, (long) ((java.lang.Long) trackInfo_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entity_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity()); + } + for (int i = 0; i < frames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, frames_.get(i)); + } + if (trackInfoCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + } + if (trackInfoCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 5, (long) ((java.lang.Long) trackInfo_)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation other = + (com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) obj; + + boolean result = true; + result = result && (hasEntity() == other.hasEntity()); + if (hasEntity()) { + result = result && getEntity().equals(other.getEntity()); + } + result = + result + && (java.lang.Float.floatToIntBits(getConfidence()) + == java.lang.Float.floatToIntBits(other.getConfidence())); + result = result && getFramesList().equals(other.getFramesList()); + result = result && getTrackInfoCase().equals(other.getTrackInfoCase()); + if (!result) return false; + switch (trackInfoCase_) { + case 3: + result = result && getSegment().equals(other.getSegment()); + break; + case 5: + result = result && (getTrackId() == other.getTrackId()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + if (getFramesCount() > 0) { + hash = (37 * hash) + FRAMES_FIELD_NUMBER; + hash = (53 * hash) + getFramesList().hashCode(); + } + switch (trackInfoCase_) { + case 3: + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + break; + case 5: + hash = (37 * hash) + TRACK_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrackId()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Annotations corresponding to one tracked object.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFramesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (entityBuilder_ == null) { + entity_ = null; + } else { + entity_ = null; + entityBuilder_ = null; + } + confidence_ = 0F; + + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + framesBuilder_.clear(); + } + trackInfoCase_ = 0; + trackInfo_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation build() { + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation result = + new com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entityBuilder_ == null) { + result.entity_ = entity_; + } else { + result.entity_ = entityBuilder_.build(); + } + result.confidence_ = confidence_; + if (framesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.frames_ = frames_; + } else { + result.frames_ = framesBuilder_.build(); + } + if (trackInfoCase_ == 3) { + if (segmentBuilder_ == null) { + result.trackInfo_ = trackInfo_; + } else { + result.trackInfo_ = segmentBuilder_.build(); + } + } + if (trackInfoCase_ == 5) { + result.trackInfo_ = trackInfo_; + } + result.bitField0_ = to_bitField0_; + result.trackInfoCase_ = trackInfoCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + .getDefaultInstance()) return this; + if (other.hasEntity()) { + mergeEntity(other.getEntity()); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + if (framesBuilder_ == null) { + if (!other.frames_.isEmpty()) { + if (frames_.isEmpty()) { + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFramesIsMutable(); + frames_.addAll(other.frames_); + } + onChanged(); + } + } else { + if (!other.frames_.isEmpty()) { + if (framesBuilder_.isEmpty()) { + framesBuilder_.dispose(); + framesBuilder_ = null; + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000004); + framesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFramesFieldBuilder() + : null; + } else { + framesBuilder_.addAllMessages(other.frames_); + } + } + } + switch (other.getTrackInfoCase()) { + case SEGMENT: + { + mergeSegment(other.getSegment()); + break; + } + case TRACK_ID: + { + setTrackId(other.getTrackId()); + break; + } + case TRACKINFO_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int trackInfoCase_ = 0; + private java.lang.Object trackInfo_; + + public TrackInfoCase getTrackInfoCase() { + return TrackInfoCase.forNumber(trackInfoCase_); + } + + public Builder clearTrackInfo() { + trackInfoCase_ = 0; + trackInfo_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.cloud.videointelligence.v1p3beta1.Entity entity_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Entity, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder, + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder> + entityBuilder_; + /** + * + * + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public boolean hasEntity() { + return entityBuilder_ != null || entity_ != null; + } + /** + * + * + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() { + if (entityBuilder_ == null) { + return entity_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance() + : entity_; + } else { + return entityBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public Builder setEntity(com.google.cloud.videointelligence.v1p3beta1.Entity value) { + if (entityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + onChanged(); + } else { + entityBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public Builder setEntity( + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder builderForValue) { + if (entityBuilder_ == null) { + entity_ = builderForValue.build(); + onChanged(); + } else { + entityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public Builder mergeEntity(com.google.cloud.videointelligence.v1p3beta1.Entity value) { + if (entityBuilder_ == null) { + if (entity_ != null) { + entity_ = + com.google.cloud.videointelligence.v1p3beta1.Entity.newBuilder(entity_) + .mergeFrom(value) + .buildPartial(); + } else { + entity_ = value; + } + onChanged(); + } else { + entityBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public Builder clearEntity() { + if (entityBuilder_ == null) { + entity_ = null; + onChanged(); + } else { + entity_ = null; + entityBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder getEntityBuilder() { + + onChanged(); + return getEntityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder() { + if (entityBuilder_ != null) { + return entityBuilder_.getMessageOrBuilder(); + } else { + return entity_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance() + : entity_; + } + } + /** + * + * + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Entity, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder, + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder> + getEntityFieldBuilder() { + if (entityBuilder_ == null) { + entityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Entity, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder, + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>( + getEntity(), getParentForChildren(), isClean()); + entity_ = null; + } + return entityBuilder_; + } + + private float confidence_; + /** + * + * + *
+     * Object category's labeling confidence of this track.
+     * 
+ * + * float confidence = 4; + */ + public float getConfidence() { + return confidence_; + } + /** + * + * + *
+     * Object category's labeling confidence of this track.
+     * 
+ * + * float confidence = 4; + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Object category's labeling confidence of this track.
+     * 
+ * + * float confidence = 4; + */ + public Builder clearConfidence() { + + confidence_ = 0F; + onChanged(); + return this; + } + + private java.util.List + frames_ = java.util.Collections.emptyList(); + + private void ensureFramesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame>(frames_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder> + framesBuilder_; + + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public java.util.List + getFramesList() { + if (framesBuilder_ == null) { + return java.util.Collections.unmodifiableList(frames_); + } else { + return framesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public int getFramesCount() { + if (framesBuilder_ == null) { + return frames_.size(); + } else { + return framesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame getFrames(int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.set(index, value); + onChanged(); + } else { + framesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public Builder setFrames( + int index, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.set(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public Builder addFrames( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(value); + onChanged(); + } else { + framesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(index, value); + onChanged(); + } else { + framesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public Builder addFrames( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public Builder addFrames( + int index, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public Builder addAllFrames( + java.lang.Iterable< + ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame> + values) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frames_); + onChanged(); + } else { + framesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public Builder clearFrames() { + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + framesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public Builder removeFrames(int index) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.remove(index); + onChanged(); + } else { + framesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder + getFramesBuilder(int index) { + return getFramesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder + getFramesOrBuilder(int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder> + getFramesOrBuilderList() { + if (framesBuilder_ != null) { + return framesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frames_); + } + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder + addFramesBuilder() { + return getFramesFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame + .getDefaultInstance()); + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder + addFramesBuilder(int index) { + return getFramesFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame + .getDefaultInstance()); + } + /** + * + * + *
+     * Information corresponding to all frames where this object track appears.
+     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+     * messages in frames.
+     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + * + */ + public java.util.List + getFramesBuilderList() { + return getFramesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder> + getFramesFieldBuilder() { + if (framesBuilder_ == null) { + framesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder>( + frames_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + frames_ = null; + } + return framesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + segmentBuilder_; + /** + * + * + *
+     * Non-streaming batch mode ONLY.
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public boolean hasSegment() { + return trackInfoCase_ == 3; + } + /** + * + * + *
+     * Non-streaming batch mode ONLY.
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { + if (segmentBuilder_ == null) { + if (trackInfoCase_ == 3) { + return (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_; + } + return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance(); + } else { + if (trackInfoCase_ == 3) { + return segmentBuilder_.getMessage(); + } + return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance(); + } + } + /** + * + * + *
+     * Non-streaming batch mode ONLY.
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public Builder setSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trackInfo_ = value; + onChanged(); + } else { + segmentBuilder_.setMessage(value); + } + trackInfoCase_ = 3; + return this; + } + /** + * + * + *
+     * Non-streaming batch mode ONLY.
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public Builder setSegment( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (segmentBuilder_ == null) { + trackInfo_ = builderForValue.build(); + onChanged(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + trackInfoCase_ = 3; + return this; + } + /** + * + * + *
+     * Non-streaming batch mode ONLY.
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public Builder mergeSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (trackInfoCase_ == 3 + && trackInfo_ + != com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()) { + trackInfo_ = + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.newBuilder( + (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + trackInfo_ = value; + } + onChanged(); + } else { + if (trackInfoCase_ == 3) { + segmentBuilder_.mergeFrom(value); + } + segmentBuilder_.setMessage(value); + } + trackInfoCase_ = 3; + return this; + } + /** + * + * + *
+     * Non-streaming batch mode ONLY.
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public Builder clearSegment() { + if (segmentBuilder_ == null) { + if (trackInfoCase_ == 3) { + trackInfoCase_ = 0; + trackInfo_ = null; + onChanged(); + } + } else { + if (trackInfoCase_ == 3) { + trackInfoCase_ = 0; + trackInfo_ = null; + } + segmentBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Non-streaming batch mode ONLY.
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegmentBuilder() { + return getSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Non-streaming batch mode ONLY.
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder + getSegmentOrBuilder() { + if ((trackInfoCase_ == 3) && (segmentBuilder_ != null)) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + if (trackInfoCase_ == 3) { + return (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_; + } + return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance(); + } + } + /** + * + * + *
+     * Non-streaming batch mode ONLY.
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + if (!(trackInfoCase_ == 3)) { + trackInfo_ = + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance(); + } + segmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( + (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_, + getParentForChildren(), + isClean()); + trackInfo_ = null; + } + trackInfoCase_ = 3; + onChanged(); + ; + return segmentBuilder_; + } + + /** + * + * + *
+     * Streaming mode ONLY.
+     * In streaming mode, we do not know the end time of a tracked object
+     * before it is completed. Hence, there is no VideoSegment info returned.
+     * Instead, we provide a unique identifiable integer track_id so that
+     * the customers can correlate the results of the ongoing
+     * ObjectTrackAnnotation of the same track_id over time.
+     * 
+ * + * int64 track_id = 5; + */ + public long getTrackId() { + if (trackInfoCase_ == 5) { + return (java.lang.Long) trackInfo_; + } + return 0L; + } + /** + * + * + *
+     * Streaming mode ONLY.
+     * In streaming mode, we do not know the end time of a tracked object
+     * before it is completed. Hence, there is no VideoSegment info returned.
+     * Instead, we provide a unique identifiable integer track_id so that
+     * the customers can correlate the results of the ongoing
+     * ObjectTrackAnnotation of the same track_id over time.
+     * 
+ * + * int64 track_id = 5; + */ + public Builder setTrackId(long value) { + trackInfoCase_ = 5; + trackInfo_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Streaming mode ONLY.
+     * In streaming mode, we do not know the end time of a tracked object
+     * before it is completed. Hence, there is no VideoSegment info returned.
+     * Instead, we provide a unique identifiable integer track_id so that
+     * the customers can correlate the results of the ongoing
+     * ObjectTrackAnnotation of the same track_id over time.
+     * 
+ * + * int64 track_id = 5; + */ + public Builder clearTrackId() { + if (trackInfoCase_ == 5) { + trackInfoCase_ = 0; + trackInfo_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) + private static final com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectTrackingAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectTrackingAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotationOrBuilder.java new file mode 100644 index 000000000000..ba25d626dc09 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotationOrBuilder.java @@ -0,0 +1,174 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface ObjectTrackingAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + boolean hasEntity(); + /** + * + * + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.Entity getEntity(); + /** + * + * + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder(); + + /** + * + * + *
+   * Object category's labeling confidence of this track.
+   * 
+ * + * float confidence = 4; + */ + float getConfidence(); + + /** + * + * + *
+   * Information corresponding to all frames where this object track appears.
+   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+   * messages in frames.
+   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + */ + java.util.List getFramesList(); + /** + * + * + *
+   * Information corresponding to all frames where this object track appears.
+   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+   * messages in frames.
+   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + */ + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame getFrames(int index); + /** + * + * + *
+   * Information corresponding to all frames where this object track appears.
+   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+   * messages in frames.
+   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + */ + int getFramesCount(); + /** + * + * + *
+   * Information corresponding to all frames where this object track appears.
+   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+   * messages in frames.
+   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + */ + java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder> + getFramesOrBuilderList(); + /** + * + * + *
+   * Information corresponding to all frames where this object track appears.
+   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
+   * messages in frames.
+   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2; + */ + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder getFramesOrBuilder( + int index); + + /** + * + * + *
+   * Non-streaming batch mode ONLY.
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + boolean hasSegment(); + /** + * + * + *
+   * Non-streaming batch mode ONLY.
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); + /** + * + * + *
+   * Non-streaming batch mode ONLY.
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder(); + + /** + * + * + *
+   * Streaming mode ONLY.
+   * In streaming mode, we do not know the end time of a tracked object
+   * before it is completed. Hence, there is no VideoSegment info returned.
+   * Instead, we provide a unique identifiable integer track_id so that
+   * the customers can correlate the results of the ongoing
+   * ObjectTrackAnnotation of the same track_id over time.
+   * 
+ * + * int64 track_id = 5; + */ + long getTrackId(); + + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.TrackInfoCase + getTrackInfoCase(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java new file mode 100644 index 000000000000..f293e743dc87 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java @@ -0,0 +1,1014 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video frame level annotations for object detection and tracking. This field
+ * stores per frame location, time offset, and confidence.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame} + */ +public final class ObjectTrackingFrame extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) + ObjectTrackingFrameOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectTrackingFrame.newBuilder() to construct. + private ObjectTrackingFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ObjectTrackingFrame() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ObjectTrackingFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder + subBuilder = null; + if (normalizedBoundingBox_ != null) { + subBuilder = normalizedBoundingBox_.toBuilder(); + } + normalizedBoundingBox_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(normalizedBoundingBox_); + normalizedBoundingBox_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.class, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder.class); + } + + public static final int NORMALIZED_BOUNDING_BOX_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalizedBoundingBox_; + /** + * + * + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public boolean hasNormalizedBoundingBox() { + return normalizedBoundingBox_ != null; + } + /** + * + * + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + getNormalizedBoundingBox() { + return normalizedBoundingBox_ == null + ? com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.getDefaultInstance() + : normalizedBoundingBox_; + } + /** + * + * + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder + getNormalizedBoundingBoxOrBuilder() { + return getNormalizedBoundingBox(); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 2; + private com.google.protobuf.Duration timeOffset_; + /** + * + * + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public boolean hasTimeOffset() { + return timeOffset_ != null; + } + /** + * + * + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration getTimeOffset() { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + /** + * + * + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + return getTimeOffset(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (normalizedBoundingBox_ != null) { + output.writeMessage(1, getNormalizedBoundingBox()); + } + if (timeOffset_ != null) { + output.writeMessage(2, getTimeOffset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (normalizedBoundingBox_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNormalizedBoundingBox()); + } + if (timeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeOffset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame other = + (com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) obj; + + boolean result = true; + result = result && (hasNormalizedBoundingBox() == other.hasNormalizedBoundingBox()); + if (hasNormalizedBoundingBox()) { + result = result && getNormalizedBoundingBox().equals(other.getNormalizedBoundingBox()); + } + result = result && (hasTimeOffset() == other.hasTimeOffset()); + if (hasTimeOffset()) { + result = result && getTimeOffset().equals(other.getTimeOffset()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNormalizedBoundingBox()) { + hash = (37 * hash) + NORMALIZED_BOUNDING_BOX_FIELD_NUMBER; + hash = (53 * hash) + getNormalizedBoundingBox().hashCode(); + } + if (hasTimeOffset()) { + hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTimeOffset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video frame level annotations for object detection and tracking. This field
+   * stores per frame location, time offset, and confidence.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.class, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBox_ = null; + } else { + normalizedBoundingBox_ = null; + normalizedBoundingBoxBuilder_ = null; + } + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame build() { + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame result = + new com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame(this); + if (normalizedBoundingBoxBuilder_ == null) { + result.normalizedBoundingBox_ = normalizedBoundingBox_; + } else { + result.normalizedBoundingBox_ = normalizedBoundingBoxBuilder_.build(); + } + if (timeOffsetBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = timeOffsetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.getDefaultInstance()) + return this; + if (other.hasNormalizedBoundingBox()) { + mergeNormalizedBoundingBox(other.getNormalizedBoundingBox()); + } + if (other.hasTimeOffset()) { + mergeTimeOffset(other.getTimeOffset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + normalizedBoundingBox_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder> + normalizedBoundingBoxBuilder_; + /** + * + * + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public boolean hasNormalizedBoundingBox() { + return normalizedBoundingBoxBuilder_ != null || normalizedBoundingBox_ != null; + } + /** + * + * + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + getNormalizedBoundingBox() { + if (normalizedBoundingBoxBuilder_ == null) { + return normalizedBoundingBox_ == null + ? com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + .getDefaultInstance() + : normalizedBoundingBox_; + } else { + return normalizedBoundingBoxBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public Builder setNormalizedBoundingBox( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox value) { + if (normalizedBoundingBoxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + normalizedBoundingBox_ = value; + onChanged(); + } else { + normalizedBoundingBoxBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public Builder setNormalizedBoundingBox( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder + builderForValue) { + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBox_ = builderForValue.build(); + onChanged(); + } else { + normalizedBoundingBoxBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public Builder mergeNormalizedBoundingBox( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox value) { + if (normalizedBoundingBoxBuilder_ == null) { + if (normalizedBoundingBox_ != null) { + normalizedBoundingBox_ = + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.newBuilder( + normalizedBoundingBox_) + .mergeFrom(value) + .buildPartial(); + } else { + normalizedBoundingBox_ = value; + } + onChanged(); + } else { + normalizedBoundingBoxBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public Builder clearNormalizedBoundingBox() { + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBox_ = null; + onChanged(); + } else { + normalizedBoundingBox_ = null; + normalizedBoundingBoxBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder + getNormalizedBoundingBoxBuilder() { + + onChanged(); + return getNormalizedBoundingBoxFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder + getNormalizedBoundingBoxOrBuilder() { + if (normalizedBoundingBoxBuilder_ != null) { + return normalizedBoundingBoxBuilder_.getMessageOrBuilder(); + } else { + return normalizedBoundingBox_ == null + ? com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox + .getDefaultInstance() + : normalizedBoundingBox_; + } + } + /** + * + * + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder> + getNormalizedBoundingBoxFieldBuilder() { + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBoxBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder>( + getNormalizedBoundingBox(), getParentForChildren(), isClean()); + normalizedBoundingBox_ = null; + } + return normalizedBoundingBoxBuilder_; + } + + private com.google.protobuf.Duration timeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeOffsetBuilder_; + /** + * + * + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public boolean hasTimeOffset() { + return timeOffsetBuilder_ != null || timeOffset_ != null; + } + /** + * + * + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration getTimeOffset() { + if (timeOffsetBuilder_ == null) { + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; + } else { + return timeOffsetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder setTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + timeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { + if (timeOffsetBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + timeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder mergeTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (timeOffset_ != null) { + timeOffset_ = + com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + timeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder clearTimeOffset() { + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + onChanged(); + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { + + onChanged(); + return getTimeOffsetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + if (timeOffsetBuilder_ != null) { + return timeOffsetBuilder_.getMessageOrBuilder(); + } else { + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; + } + } + /** + * + * + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTimeOffsetFieldBuilder() { + if (timeOffsetBuilder_ == null) { + timeOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTimeOffset(), getParentForChildren(), isClean()); + timeOffset_ = null; + } + return timeOffsetBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) + private static final com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectTrackingFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectTrackingFrame(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrameOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrameOrBuilder.java new file mode 100644 index 000000000000..a2841a7af86a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrameOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface ObjectTrackingFrameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + boolean hasNormalizedBoundingBox(); + /** + * + * + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox getNormalizedBoundingBox(); + /** + * + * + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder + getNormalizedBoundingBoxOrBuilder(); + + /** + * + * + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + boolean hasTimeOffset(); + /** + * + * + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + com.google.protobuf.Duration getTimeOffset(); + /** + * + * + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java new file mode 100644 index 000000000000..f1181ed136dc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java @@ -0,0 +1,626 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Config for SHOT_CHANGE_DETECTION.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig} + */ +public final class ShotChangeDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) + ShotChangeDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShotChangeDetectionConfig.newBuilder() to construct. + private ShotChangeDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShotChangeDetectionConfig() { + model_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ShotChangeDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder.class); + } + + public static final int MODEL_FIELD_NUMBER = 1; + private volatile java.lang.Object model_; + /** + * + * + *
+   * Model to use for shot change detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
+   * Model to use for shot change detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getModelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getModelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig other = + (com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) obj; + + boolean result = true; + result = result && getModel().equals(other.getModel()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + model_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig build() { + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig result = + new com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig(this); + result.model_ = model_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + .getDefaultInstance()) return this; + if (!other.getModel().isEmpty()) { + model_ = other.model_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object model_ = ""; + /** + * + * + *
+     * Model to use for shot change detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Model to use for shot change detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Model to use for shot change detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + model_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Model to use for shot change detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder clearModel() { + + model_ = getDefaultInstance().getModel(); + onChanged(); + return this; + } + /** + * + * + *
+     * Model to use for shot change detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + model_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) + private static final com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShotChangeDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ShotChangeDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..f7a74b83d421 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfigOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface ShotChangeDetectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Model to use for shot change detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + java.lang.String getModel(); + /** + * + * + *
+   * Model to use for shot change detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + com.google.protobuf.ByteString getModelBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java new file mode 100644 index 000000000000..800c6b5d47cf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java @@ -0,0 +1,993 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * The top-level message sent by the client for the `StreamingAnnotateVideo`
+ * method. Multiple `StreamingAnnotateVideoRequest` messages are sent.
+ * The first message must only contain a `StreamingVideoConfig` message.
+ * All subsequent messages must only contain `input_content` data.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest} + */ +public final class StreamingAnnotateVideoRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) + StreamingAnnotateVideoRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingAnnotateVideoRequest.newBuilder() to construct. + private StreamingAnnotateVideoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamingAnnotateVideoRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingAnnotateVideoRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder subBuilder = + null; + if (streamingRequestCase_ == 1) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + streamingRequest_) + .toBuilder(); + } + streamingRequest_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + streamingRequest_); + streamingRequest_ = subBuilder.buildPartial(); + } + streamingRequestCase_ = 1; + break; + } + case 18: + { + streamingRequestCase_ = 2; + streamingRequest_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest.Builder + .class); + } + + private int streamingRequestCase_ = 0; + private java.lang.Object streamingRequest_; + + public enum StreamingRequestCase implements com.google.protobuf.Internal.EnumLite { + VIDEO_CONFIG(1), + INPUT_CONTENT(2), + STREAMINGREQUEST_NOT_SET(0); + private final int value; + + private StreamingRequestCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static StreamingRequestCase valueOf(int value) { + return forNumber(value); + } + + public static StreamingRequestCase forNumber(int value) { + switch (value) { + case 1: + return VIDEO_CONFIG; + case 2: + return INPUT_CONTENT; + case 0: + return STREAMINGREQUEST_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StreamingRequestCase getStreamingRequestCase() { + return StreamingRequestCase.forNumber(streamingRequestCase_); + } + + public static final int VIDEO_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+   * Provides information to the annotator, specifing how to process the
+   * request. The first `AnnotateStreamingVideoRequest` message must only
+   * contain a `video_config` message.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public boolean hasVideoConfig() { + return streamingRequestCase_ == 1; + } + /** + * + * + *
+   * Provides information to the annotator, specifing how to process the
+   * request. The first `AnnotateStreamingVideoRequest` message must only
+   * contain a `video_config` message.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getVideoConfig() { + if (streamingRequestCase_ == 1) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) streamingRequest_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Provides information to the annotator, specifing how to process the
+   * request. The first `AnnotateStreamingVideoRequest` message must only
+   * contain a `video_config` message.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder + getVideoConfigOrBuilder() { + if (streamingRequestCase_ == 1) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) streamingRequest_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.getDefaultInstance(); + } + + public static final int INPUT_CONTENT_FIELD_NUMBER = 2; + /** + * + * + *
+   * The video data to be annotated. Chunks of video data are sequentially
+   * sent in `StreamingAnnotateVideoRequest` messages. Except the initial
+   * `StreamingAnnotateVideoRequest` message containing only
+   * `video_config`, all subsequent `AnnotateStreamingVideoRequest`
+   * messages must only contain `input_content` field.
+   * 
+ * + * bytes input_content = 2; + */ + public com.google.protobuf.ByteString getInputContent() { + if (streamingRequestCase_ == 2) { + return (com.google.protobuf.ByteString) streamingRequest_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (streamingRequestCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) streamingRequest_); + } + if (streamingRequestCase_ == 2) { + output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (streamingRequestCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + streamingRequest_); + } + if (streamingRequestCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) obj; + + boolean result = true; + result = result && getStreamingRequestCase().equals(other.getStreamingRequestCase()); + if (!result) return false; + switch (streamingRequestCase_) { + case 1: + result = result && getVideoConfig().equals(other.getVideoConfig()); + break; + case 2: + result = result && getInputContent().equals(other.getInputContent()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (streamingRequestCase_) { + case 1: + hash = (37 * hash) + VIDEO_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVideoConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + INPUT_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getInputContent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The top-level message sent by the client for the `StreamingAnnotateVideo`
+   * method. Multiple `StreamingAnnotateVideoRequest` messages are sent.
+   * The first message must only contain a `StreamingVideoConfig` message.
+   * All subsequent messages must only contain `input_content` data.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + streamingRequestCase_ = 0; + streamingRequest_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest build() { + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest result = + new com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest(this); + if (streamingRequestCase_ == 1) { + if (videoConfigBuilder_ == null) { + result.streamingRequest_ = streamingRequest_; + } else { + result.streamingRequest_ = videoConfigBuilder_.build(); + } + } + if (streamingRequestCase_ == 2) { + result.streamingRequest_ = streamingRequest_; + } + result.streamingRequestCase_ = streamingRequestCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + .getDefaultInstance()) return this; + switch (other.getStreamingRequestCase()) { + case VIDEO_CONFIG: + { + mergeVideoConfig(other.getVideoConfig()); + break; + } + case INPUT_CONTENT: + { + setInputContent(other.getInputContent()); + break; + } + case STREAMINGREQUEST_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int streamingRequestCase_ = 0; + private java.lang.Object streamingRequest_; + + public StreamingRequestCase getStreamingRequestCase() { + return StreamingRequestCase.forNumber(streamingRequestCase_); + } + + public Builder clearStreamingRequest() { + streamingRequestCase_ = 0; + streamingRequest_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder> + videoConfigBuilder_; + /** + * + * + *
+     * Provides information to the annotator, specifing how to process the
+     * request. The first `AnnotateStreamingVideoRequest` message must only
+     * contain a `video_config` message.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public boolean hasVideoConfig() { + return streamingRequestCase_ == 1; + } + /** + * + * + *
+     * Provides information to the annotator, specifing how to process the
+     * request. The first `AnnotateStreamingVideoRequest` message must only
+     * contain a `video_config` message.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getVideoConfig() { + if (videoConfigBuilder_ == null) { + if (streamingRequestCase_ == 1) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + streamingRequest_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + .getDefaultInstance(); + } else { + if (streamingRequestCase_ == 1) { + return videoConfigBuilder_.getMessage(); + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Provides information to the annotator, specifing how to process the
+     * request. The first `AnnotateStreamingVideoRequest` message must only
+     * contain a `video_config` message.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public Builder setVideoConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig value) { + if (videoConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamingRequest_ = value; + onChanged(); + } else { + videoConfigBuilder_.setMessage(value); + } + streamingRequestCase_ = 1; + return this; + } + /** + * + * + *
+     * Provides information to the annotator, specifing how to process the
+     * request. The first `AnnotateStreamingVideoRequest` message must only
+     * contain a `video_config` message.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public Builder setVideoConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder builderForValue) { + if (videoConfigBuilder_ == null) { + streamingRequest_ = builderForValue.build(); + onChanged(); + } else { + videoConfigBuilder_.setMessage(builderForValue.build()); + } + streamingRequestCase_ = 1; + return this; + } + /** + * + * + *
+     * Provides information to the annotator, specifing how to process the
+     * request. The first `AnnotateStreamingVideoRequest` message must only
+     * contain a `video_config` message.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public Builder mergeVideoConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig value) { + if (videoConfigBuilder_ == null) { + if (streamingRequestCase_ == 1 + && streamingRequest_ + != com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + .getDefaultInstance()) { + streamingRequest_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.newBuilder( + (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + streamingRequest_) + .mergeFrom(value) + .buildPartial(); + } else { + streamingRequest_ = value; + } + onChanged(); + } else { + if (streamingRequestCase_ == 1) { + videoConfigBuilder_.mergeFrom(value); + } + videoConfigBuilder_.setMessage(value); + } + streamingRequestCase_ = 1; + return this; + } + /** + * + * + *
+     * Provides information to the annotator, specifing how to process the
+     * request. The first `AnnotateStreamingVideoRequest` message must only
+     * contain a `video_config` message.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public Builder clearVideoConfig() { + if (videoConfigBuilder_ == null) { + if (streamingRequestCase_ == 1) { + streamingRequestCase_ = 0; + streamingRequest_ = null; + onChanged(); + } + } else { + if (streamingRequestCase_ == 1) { + streamingRequestCase_ = 0; + streamingRequest_ = null; + } + videoConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Provides information to the annotator, specifing how to process the
+     * request. The first `AnnotateStreamingVideoRequest` message must only
+     * contain a `video_config` message.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder + getVideoConfigBuilder() { + return getVideoConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Provides information to the annotator, specifing how to process the
+     * request. The first `AnnotateStreamingVideoRequest` message must only
+     * contain a `video_config` message.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder + getVideoConfigOrBuilder() { + if ((streamingRequestCase_ == 1) && (videoConfigBuilder_ != null)) { + return videoConfigBuilder_.getMessageOrBuilder(); + } else { + if (streamingRequestCase_ == 1) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + streamingRequest_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Provides information to the annotator, specifing how to process the
+     * request. The first `AnnotateStreamingVideoRequest` message must only
+     * contain a `video_config` message.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder> + getVideoConfigFieldBuilder() { + if (videoConfigBuilder_ == null) { + if (!(streamingRequestCase_ == 1)) { + streamingRequest_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + .getDefaultInstance(); + } + videoConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder>( + (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + streamingRequest_, + getParentForChildren(), + isClean()); + streamingRequest_ = null; + } + streamingRequestCase_ = 1; + onChanged(); + ; + return videoConfigBuilder_; + } + + /** + * + * + *
+     * The video data to be annotated. Chunks of video data are sequentially
+     * sent in `StreamingAnnotateVideoRequest` messages. Except the initial
+     * `StreamingAnnotateVideoRequest` message containing only
+     * `video_config`, all subsequent `AnnotateStreamingVideoRequest`
+     * messages must only contain `input_content` field.
+     * 
+ * + * bytes input_content = 2; + */ + public com.google.protobuf.ByteString getInputContent() { + if (streamingRequestCase_ == 2) { + return (com.google.protobuf.ByteString) streamingRequest_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + * + * + *
+     * The video data to be annotated. Chunks of video data are sequentially
+     * sent in `StreamingAnnotateVideoRequest` messages. Except the initial
+     * `StreamingAnnotateVideoRequest` message containing only
+     * `video_config`, all subsequent `AnnotateStreamingVideoRequest`
+     * messages must only contain `input_content` field.
+     * 
+ * + * bytes input_content = 2; + */ + public Builder setInputContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + streamingRequestCase_ = 2; + streamingRequest_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The video data to be annotated. Chunks of video data are sequentially
+     * sent in `StreamingAnnotateVideoRequest` messages. Except the initial
+     * `StreamingAnnotateVideoRequest` message containing only
+     * `video_config`, all subsequent `AnnotateStreamingVideoRequest`
+     * messages must only contain `input_content` field.
+     * 
+ * + * bytes input_content = 2; + */ + public Builder clearInputContent() { + if (streamingRequestCase_ == 2) { + streamingRequestCase_ = 0; + streamingRequest_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) + private static final com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingAnnotateVideoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingAnnotateVideoRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequestOrBuilder.java new file mode 100644 index 000000000000..8bc749593981 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequestOrBuilder.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface StreamingAnnotateVideoRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Provides information to the annotator, specifing how to process the
+   * request. The first `AnnotateStreamingVideoRequest` message must only
+   * contain a `video_config` message.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + boolean hasVideoConfig(); + /** + * + * + *
+   * Provides information to the annotator, specifing how to process the
+   * request. The first `AnnotateStreamingVideoRequest` message must only
+   * contain a `video_config` message.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getVideoConfig(); + /** + * + * + *
+   * Provides information to the annotator, specifing how to process the
+   * request. The first `AnnotateStreamingVideoRequest` message must only
+   * contain a `video_config` message.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder + getVideoConfigOrBuilder(); + + /** + * + * + *
+   * The video data to be annotated. Chunks of video data are sequentially
+   * sent in `StreamingAnnotateVideoRequest` messages. Except the initial
+   * `StreamingAnnotateVideoRequest` message containing only
+   * `video_config`, all subsequent `AnnotateStreamingVideoRequest`
+   * messages must only contain `input_content` field.
+   * 
+ * + * bytes input_content = 2; + */ + com.google.protobuf.ByteString getInputContent(); + + public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest + .StreamingRequestCase + getStreamingRequestCase(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java new file mode 100644 index 000000000000..729773262d45 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java @@ -0,0 +1,1222 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * `StreamingAnnotateVideoResponse` is the only message returned to the client
+ * by `StreamingAnnotateVideo`. A series of zero or more
+ * `StreamingAnnotateVideoResponse` messages are streamed back to the client.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse} + */ +public final class StreamingAnnotateVideoResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) + StreamingAnnotateVideoResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingAnnotateVideoResponse.newBuilder() to construct. + private StreamingAnnotateVideoResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamingAnnotateVideoResponse() { + annotationResultsUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingAnnotateVideoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder + subBuilder = null; + if (annotationResults_ != null) { + subBuilder = annotationResults_.toBuilder(); + } + annotationResults_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationResults_); + annotationResults_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + annotationResultsUri_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.Builder + .class); + } + + public static final int ERROR_FIELD_NUMBER = 1; + private com.google.rpc.Status error_; + /** + * + * + *
+   * If set, returns a [google.rpc.Status][] message that
+   * specifies the error for the operation.
+   * 
+ * + * .google.rpc.Status error = 1; + */ + public boolean hasError() { + return error_ != null; + } + /** + * + * + *
+   * If set, returns a [google.rpc.Status][] message that
+   * specifies the error for the operation.
+   * 
+ * + * .google.rpc.Status error = 1; + */ + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
+   * If set, returns a [google.rpc.Status][] message that
+   * specifies the error for the operation.
+   * 
+ * + * .google.rpc.Status error = 1; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + + public static final int ANNOTATION_RESULTS_FIELD_NUMBER = 2; + private com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + annotationResults_; + /** + * + * + *
+   * Streaming annotation results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public boolean hasAnnotationResults() { + return annotationResults_ != null; + } + /** + * + * + *
+   * Streaming annotation results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + getAnnotationResults() { + return annotationResults_ == null + ? com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + .getDefaultInstance() + : annotationResults_; + } + /** + * + * + *
+   * Streaming annotation results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder + getAnnotationResultsOrBuilder() { + return getAnnotationResults(); + } + + public static final int ANNOTATION_RESULTS_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object annotationResultsUri_; + /** + * + * + *
+   * GCS URI that stores annotation results of one streaming session.
+   * It is a directory that can hold multiple files in JSON format.
+   * Example uri format:
+   * gs://bucket_id/object_id/cloud_project_name-session_id
+   * 
+ * + * string annotation_results_uri = 3; + */ + public java.lang.String getAnnotationResultsUri() { + java.lang.Object ref = annotationResultsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + annotationResultsUri_ = s; + return s; + } + } + /** + * + * + *
+   * GCS URI that stores annotation results of one streaming session.
+   * It is a directory that can hold multiple files in JSON format.
+   * Example uri format:
+   * gs://bucket_id/object_id/cloud_project_name-session_id
+   * 
+ * + * string annotation_results_uri = 3; + */ + public com.google.protobuf.ByteString getAnnotationResultsUriBytes() { + java.lang.Object ref = annotationResultsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationResultsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (error_ != null) { + output.writeMessage(1, getError()); + } + if (annotationResults_ != null) { + output.writeMessage(2, getAnnotationResults()); + } + if (!getAnnotationResultsUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, annotationResultsUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError()); + } + if (annotationResults_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnnotationResults()); + } + if (!getAnnotationResultsUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, annotationResultsUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) obj; + + boolean result = true; + result = result && (hasError() == other.hasError()); + if (hasError()) { + result = result && getError().equals(other.getError()); + } + result = result && (hasAnnotationResults() == other.hasAnnotationResults()); + if (hasAnnotationResults()) { + result = result && getAnnotationResults().equals(other.getAnnotationResults()); + } + result = result && getAnnotationResultsUri().equals(other.getAnnotationResultsUri()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (hasAnnotationResults()) { + hash = (37 * hash) + ANNOTATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationResults().hashCode(); + } + hash = (37 * hash) + ANNOTATION_RESULTS_URI_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationResultsUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `StreamingAnnotateVideoResponse` is the only message returned to the client
+   * by `StreamingAnnotateVideo`. A series of zero or more
+   * `StreamingAnnotateVideoResponse` messages are streamed back to the client.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + if (annotationResultsBuilder_ == null) { + annotationResults_ = null; + } else { + annotationResults_ = null; + annotationResultsBuilder_ = null; + } + annotationResultsUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse build() { + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse result = + new com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse(this); + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + if (annotationResultsBuilder_ == null) { + result.annotationResults_ = annotationResults_; + } else { + result.annotationResults_ = annotationResultsBuilder_.build(); + } + result.annotationResultsUri_ = annotationResultsUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + .getDefaultInstance()) return this; + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.hasAnnotationResults()) { + mergeAnnotationResults(other.getAnnotationResults()); + } + if (!other.getAnnotationResultsUri().isEmpty()) { + annotationResultsUri_ = other.annotationResultsUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.rpc.Status error_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * If set, returns a [google.rpc.Status][] message that
+     * specifies the error for the operation.
+     * 
+ * + * .google.rpc.Status error = 1; + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + * + * + *
+     * If set, returns a [google.rpc.Status][] message that
+     * specifies the error for the operation.
+     * 
+ * + * .google.rpc.Status error = 1; + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If set, returns a [google.rpc.Status][] message that
+     * specifies the error for the operation.
+     * 
+ * + * .google.rpc.Status error = 1; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If set, returns a [google.rpc.Status][] message that
+     * specifies the error for the operation.
+     * 
+ * + * .google.rpc.Status error = 1; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If set, returns a [google.rpc.Status][] message that
+     * specifies the error for the operation.
+     * 
+ * + * .google.rpc.Status error = 1; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If set, returns a [google.rpc.Status][] message that
+     * specifies the error for the operation.
+     * 
+ * + * .google.rpc.Status error = 1; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If set, returns a [google.rpc.Status][] message that
+     * specifies the error for the operation.
+     * 
+ * + * .google.rpc.Status error = 1; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If set, returns a [google.rpc.Status][] message that
+     * specifies the error for the operation.
+     * 
+ * + * .google.rpc.Status error = 1; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * If set, returns a [google.rpc.Status][] message that
+     * specifies the error for the operation.
+     * 
+ * + * .google.rpc.Status error = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + annotationResults_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder> + annotationResultsBuilder_; + /** + * + * + *
+     * Streaming annotation results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public boolean hasAnnotationResults() { + return annotationResultsBuilder_ != null || annotationResults_ != null; + } + /** + * + * + *
+     * Streaming annotation results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + getAnnotationResults() { + if (annotationResultsBuilder_ == null) { + return annotationResults_ == null + ? com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + .getDefaultInstance() + : annotationResults_; + } else { + return annotationResultsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Streaming annotation results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public Builder setAnnotationResults( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults value) { + if (annotationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotationResults_ = value; + onChanged(); + } else { + annotationResultsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Streaming annotation results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public Builder setAnnotationResults( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder + builderForValue) { + if (annotationResultsBuilder_ == null) { + annotationResults_ = builderForValue.build(); + onChanged(); + } else { + annotationResultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Streaming annotation results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public Builder mergeAnnotationResults( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults value) { + if (annotationResultsBuilder_ == null) { + if (annotationResults_ != null) { + annotationResults_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + .newBuilder(annotationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + annotationResults_ = value; + } + onChanged(); + } else { + annotationResultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Streaming annotation results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public Builder clearAnnotationResults() { + if (annotationResultsBuilder_ == null) { + annotationResults_ = null; + onChanged(); + } else { + annotationResults_ = null; + annotationResultsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Streaming annotation results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder + getAnnotationResultsBuilder() { + + onChanged(); + return getAnnotationResultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Streaming annotation results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder + getAnnotationResultsOrBuilder() { + if (annotationResultsBuilder_ != null) { + return annotationResultsBuilder_.getMessageOrBuilder(); + } else { + return annotationResults_ == null + ? com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + .getDefaultInstance() + : annotationResults_; + } + } + /** + * + * + *
+     * Streaming annotation results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder> + getAnnotationResultsFieldBuilder() { + if (annotationResultsBuilder_ == null) { + annotationResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + .Builder, + com.google.cloud.videointelligence.v1p3beta1 + .StreamingVideoAnnotationResultsOrBuilder>( + getAnnotationResults(), getParentForChildren(), isClean()); + annotationResults_ = null; + } + return annotationResultsBuilder_; + } + + private java.lang.Object annotationResultsUri_ = ""; + /** + * + * + *
+     * GCS URI that stores annotation results of one streaming session.
+     * It is a directory that can hold multiple files in JSON format.
+     * Example uri format:
+     * gs://bucket_id/object_id/cloud_project_name-session_id
+     * 
+ * + * string annotation_results_uri = 3; + */ + public java.lang.String getAnnotationResultsUri() { + java.lang.Object ref = annotationResultsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + annotationResultsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * GCS URI that stores annotation results of one streaming session.
+     * It is a directory that can hold multiple files in JSON format.
+     * Example uri format:
+     * gs://bucket_id/object_id/cloud_project_name-session_id
+     * 
+ * + * string annotation_results_uri = 3; + */ + public com.google.protobuf.ByteString getAnnotationResultsUriBytes() { + java.lang.Object ref = annotationResultsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationResultsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * GCS URI that stores annotation results of one streaming session.
+     * It is a directory that can hold multiple files in JSON format.
+     * Example uri format:
+     * gs://bucket_id/object_id/cloud_project_name-session_id
+     * 
+ * + * string annotation_results_uri = 3; + */ + public Builder setAnnotationResultsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + annotationResultsUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * GCS URI that stores annotation results of one streaming session.
+     * It is a directory that can hold multiple files in JSON format.
+     * Example uri format:
+     * gs://bucket_id/object_id/cloud_project_name-session_id
+     * 
+ * + * string annotation_results_uri = 3; + */ + public Builder clearAnnotationResultsUri() { + + annotationResultsUri_ = getDefaultInstance().getAnnotationResultsUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * GCS URI that stores annotation results of one streaming session.
+     * It is a directory that can hold multiple files in JSON format.
+     * Example uri format:
+     * gs://bucket_id/object_id/cloud_project_name-session_id
+     * 
+ * + * string annotation_results_uri = 3; + */ + public Builder setAnnotationResultsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + annotationResultsUri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) + private static final com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingAnnotateVideoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingAnnotateVideoResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponseOrBuilder.java new file mode 100644 index 000000000000..84664791114b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponseOrBuilder.java @@ -0,0 +1,110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface StreamingAnnotateVideoResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If set, returns a [google.rpc.Status][] message that
+   * specifies the error for the operation.
+   * 
+ * + * .google.rpc.Status error = 1; + */ + boolean hasError(); + /** + * + * + *
+   * If set, returns a [google.rpc.Status][] message that
+   * specifies the error for the operation.
+   * 
+ * + * .google.rpc.Status error = 1; + */ + com.google.rpc.Status getError(); + /** + * + * + *
+   * If set, returns a [google.rpc.Status][] message that
+   * specifies the error for the operation.
+   * 
+ * + * .google.rpc.Status error = 1; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
+   * Streaming annotation results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + boolean hasAnnotationResults(); + /** + * + * + *
+   * Streaming annotation results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + getAnnotationResults(); + /** + * + * + *
+   * Streaming annotation results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder + getAnnotationResultsOrBuilder(); + + /** + * + * + *
+   * GCS URI that stores annotation results of one streaming session.
+   * It is a directory that can hold multiple files in JSON format.
+   * Example uri format:
+   * gs://bucket_id/object_id/cloud_project_name-session_id
+   * 
+ * + * string annotation_results_uri = 3; + */ + java.lang.String getAnnotationResultsUri(); + /** + * + * + *
+   * GCS URI that stores annotation results of one streaming session.
+   * It is a directory that can hold multiple files in JSON format.
+   * Example uri format:
+   * gs://bucket_id/object_id/cloud_project_name-session_id
+   * 
+ * + * string annotation_results_uri = 3; + */ + com.google.protobuf.ByteString getAnnotationResultsUriBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java new file mode 100644 index 000000000000..af2d93c9fc76 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java @@ -0,0 +1,476 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Config for EXPLICIT_CONTENT_DETECTION in streaming mode.
+ * 
+ * + * Protobuf type {@code + * google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig} + */ +public final class StreamingExplicitContentDetectionConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + StreamingExplicitContentDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingExplicitContentDetectionConfig.newBuilder() to construct. + private StreamingExplicitContentDetectionConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamingExplicitContentDetectionConfig() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingExplicitContentDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .class, + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config for EXPLICIT_CONTENT_DETECTION in streaming mode.
+   * 
+ * + * Protobuf type {@code + * google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .class, + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + build() { + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig result = + new com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig( + this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + private static final com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingExplicitContentDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingExplicitContentDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..8bf079e00399 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfigOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface StreamingExplicitContentDetectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingFeature.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingFeature.java new file mode 100644 index 000000000000..5b4390c71bd8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingFeature.java @@ -0,0 +1,196 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Streaming video annotation feature.
+ * 
+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p3beta1.StreamingFeature} + */ +public enum StreamingFeature implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified.
+   * 
+ * + * STREAMING_FEATURE_UNSPECIFIED = 0; + */ + STREAMING_FEATURE_UNSPECIFIED(0), + /** + * + * + *
+   * Label detection. Detect objects, such as dog or flower.
+   * 
+ * + * STREAMING_LABEL_DETECTION = 1; + */ + STREAMING_LABEL_DETECTION(1), + /** + * + * + *
+   * Shot change detection.
+   * 
+ * + * STREAMING_SHOT_CHANGE_DETECTION = 2; + */ + STREAMING_SHOT_CHANGE_DETECTION(2), + /** + * + * + *
+   * Explicit content detection.
+   * 
+ * + * STREAMING_EXPLICIT_CONTENT_DETECTION = 3; + */ + STREAMING_EXPLICIT_CONTENT_DETECTION(3), + /** + * + * + *
+   * Object detection and tracking.
+   * 
+ * + * STREAMING_OBJECT_TRACKING = 4; + */ + STREAMING_OBJECT_TRACKING(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified.
+   * 
+ * + * STREAMING_FEATURE_UNSPECIFIED = 0; + */ + public static final int STREAMING_FEATURE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Label detection. Detect objects, such as dog or flower.
+   * 
+ * + * STREAMING_LABEL_DETECTION = 1; + */ + public static final int STREAMING_LABEL_DETECTION_VALUE = 1; + /** + * + * + *
+   * Shot change detection.
+   * 
+ * + * STREAMING_SHOT_CHANGE_DETECTION = 2; + */ + public static final int STREAMING_SHOT_CHANGE_DETECTION_VALUE = 2; + /** + * + * + *
+   * Explicit content detection.
+   * 
+ * + * STREAMING_EXPLICIT_CONTENT_DETECTION = 3; + */ + public static final int STREAMING_EXPLICIT_CONTENT_DETECTION_VALUE = 3; + /** + * + * + *
+   * Object detection and tracking.
+   * 
+ * + * STREAMING_OBJECT_TRACKING = 4; + */ + public static final int STREAMING_OBJECT_TRACKING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static StreamingFeature valueOf(int value) { + return forNumber(value); + } + + public static StreamingFeature forNumber(int value) { + switch (value) { + case 0: + return STREAMING_FEATURE_UNSPECIFIED; + case 1: + return STREAMING_LABEL_DETECTION; + case 2: + return STREAMING_SHOT_CHANGE_DETECTION; + case 3: + return STREAMING_EXPLICIT_CONTENT_DETECTION; + case 4: + return STREAMING_OBJECT_TRACKING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StreamingFeature findValueByNumber(int number) { + return StreamingFeature.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final StreamingFeature[] VALUES = values(); + + public static StreamingFeature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private StreamingFeature(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1p3beta1.StreamingFeature) +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java new file mode 100644 index 000000000000..4f6d70570350 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java @@ -0,0 +1,551 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Config for LABEL_DETECTION in streaming mode.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig} + */ +public final class StreamingLabelDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + StreamingLabelDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingLabelDetectionConfig.newBuilder() to construct. + private StreamingLabelDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamingLabelDetectionConfig() { + stationaryCamera_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingLabelDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + stationaryCamera_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder + .class); + } + + public static final int STATIONARY_CAMERA_FIELD_NUMBER = 1; + private boolean stationaryCamera_; + /** + * + * + *
+   * Whether the video has been captured from a stationary (i.e. non-moving)
+   * camera. When set to true, might improve detection accuracy for moving
+   * objects. Default: false.
+   * 
+ * + * bool stationary_camera = 1; + */ + public boolean getStationaryCamera() { + return stationaryCamera_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (stationaryCamera_ != false) { + output.writeBool(1, stationaryCamera_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (stationaryCamera_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, stationaryCamera_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) obj; + + boolean result = true; + result = result && (getStationaryCamera() == other.getStationaryCamera()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATIONARY_CAMERA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStationaryCamera()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config for LABEL_DETECTION in streaming mode.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + stationaryCamera_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig build() { + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig result = + new com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig(this); + result.stationaryCamera_ = stationaryCamera_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .getDefaultInstance()) return this; + if (other.getStationaryCamera() != false) { + setStationaryCamera(other.getStationaryCamera()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean stationaryCamera_; + /** + * + * + *
+     * Whether the video has been captured from a stationary (i.e. non-moving)
+     * camera. When set to true, might improve detection accuracy for moving
+     * objects. Default: false.
+     * 
+ * + * bool stationary_camera = 1; + */ + public boolean getStationaryCamera() { + return stationaryCamera_; + } + /** + * + * + *
+     * Whether the video has been captured from a stationary (i.e. non-moving)
+     * camera. When set to true, might improve detection accuracy for moving
+     * objects. Default: false.
+     * 
+ * + * bool stationary_camera = 1; + */ + public Builder setStationaryCamera(boolean value) { + + stationaryCamera_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the video has been captured from a stationary (i.e. non-moving)
+     * camera. When set to true, might improve detection accuracy for moving
+     * objects. Default: false.
+     * 
+ * + * bool stationary_camera = 1; + */ + public Builder clearStationaryCamera() { + + stationaryCamera_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + private static final com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingLabelDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingLabelDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..260d8ddafd6f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfigOrBuilder.java @@ -0,0 +1,23 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface StreamingLabelDetectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the video has been captured from a stationary (i.e. non-moving)
+   * camera. When set to true, might improve detection accuracy for moving
+   * objects. Default: false.
+   * 
+ * + * bool stationary_camera = 1; + */ + boolean getStationaryCamera(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java new file mode 100644 index 000000000000..70742a3d15f7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java @@ -0,0 +1,461 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Config for STREAMING_OBJECT_TRACKING.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig} + */ +public final class StreamingObjectTrackingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + StreamingObjectTrackingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingObjectTrackingConfig.newBuilder() to construct. + private StreamingObjectTrackingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamingObjectTrackingConfig() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingObjectTrackingConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config for STREAMING_OBJECT_TRACKING.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig build() { + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig result = + new com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + private static final com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingObjectTrackingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingObjectTrackingConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfigOrBuilder.java new file mode 100644 index 000000000000..4c572a00c7cc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfigOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface StreamingObjectTrackingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java new file mode 100644 index 000000000000..1f4ea411fac1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java @@ -0,0 +1,467 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Config for SHOT_CHANGE_DETECTION in streaming mode.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig} + */ +public final class StreamingShotChangeDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + StreamingShotChangeDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingShotChangeDetectionConfig.newBuilder() to construct. + private StreamingShotChangeDetectionConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamingShotChangeDetectionConfig() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingShotChangeDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION in streaming mode.
+   * 
+ * + * Protobuf type {@code + * google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig build() { + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig result = + new com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + private static final com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingShotChangeDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingShotChangeDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..3588e1117c7e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfigOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface StreamingShotChangeDetectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfig.java new file mode 100644 index 000000000000..bc9126724cff --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfig.java @@ -0,0 +1,764 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Config for streaming storage option.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig} + */ +public final class StreamingStorageConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) + StreamingStorageConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingStorageConfig.newBuilder() to construct. + private StreamingStorageConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamingStorageConfig() { + enableStorageAnnotationResult_ = false; + annotationResultStorageDirectory_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingStorageConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableStorageAnnotationResult_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + annotationResultStorageDirectory_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder.class); + } + + public static final int ENABLE_STORAGE_ANNOTATION_RESULT_FIELD_NUMBER = 1; + private boolean enableStorageAnnotationResult_; + /** + * + * + *
+   * Enable streaming storage. Default: false.
+   * 
+ * + * bool enable_storage_annotation_result = 1; + */ + public boolean getEnableStorageAnnotationResult() { + return enableStorageAnnotationResult_; + } + + public static final int ANNOTATION_RESULT_STORAGE_DIRECTORY_FIELD_NUMBER = 3; + private volatile java.lang.Object annotationResultStorageDirectory_; + /** + * + * + *
+   * GCS URI to store all annotation results for one client. Client should
+   * specify this field as the top-level storage directory. Annotation results
+   * of different sessions will be put into different sub-directories denoted
+   * by project_name and session_id. All sub-directories will be auto generated
+   * by program and will be made accessible to client in response proto.
+   * URIs must be specified in the following format: `gs://bucket-id/object-id`
+   * `bucket-id` should be a valid GCS bucket created by client and bucket
+   * permission shall also be configured properly. `object-id` can be arbitrary
+   * string that make sense to client. Other URI formats will return error and
+   * cause GCS write failure.
+   * 
+ * + * string annotation_result_storage_directory = 3; + */ + public java.lang.String getAnnotationResultStorageDirectory() { + java.lang.Object ref = annotationResultStorageDirectory_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + annotationResultStorageDirectory_ = s; + return s; + } + } + /** + * + * + *
+   * GCS URI to store all annotation results for one client. Client should
+   * specify this field as the top-level storage directory. Annotation results
+   * of different sessions will be put into different sub-directories denoted
+   * by project_name and session_id. All sub-directories will be auto generated
+   * by program and will be made accessible to client in response proto.
+   * URIs must be specified in the following format: `gs://bucket-id/object-id`
+   * `bucket-id` should be a valid GCS bucket created by client and bucket
+   * permission shall also be configured properly. `object-id` can be arbitrary
+   * string that make sense to client. Other URI formats will return error and
+   * cause GCS write failure.
+   * 
+ * + * string annotation_result_storage_directory = 3; + */ + public com.google.protobuf.ByteString getAnnotationResultStorageDirectoryBytes() { + java.lang.Object ref = annotationResultStorageDirectory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationResultStorageDirectory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableStorageAnnotationResult_ != false) { + output.writeBool(1, enableStorageAnnotationResult_); + } + if (!getAnnotationResultStorageDirectoryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, annotationResultStorageDirectory_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableStorageAnnotationResult_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableStorageAnnotationResult_); + } + if (!getAnnotationResultStorageDirectoryBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 3, annotationResultStorageDirectory_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) obj; + + boolean result = true; + result = + result && (getEnableStorageAnnotationResult() == other.getEnableStorageAnnotationResult()); + result = + result + && getAnnotationResultStorageDirectory() + .equals(other.getAnnotationResultStorageDirectory()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_STORAGE_ANNOTATION_RESULT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStorageAnnotationResult()); + hash = (37 * hash) + ANNOTATION_RESULT_STORAGE_DIRECTORY_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationResultStorageDirectory().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config for streaming storage option.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enableStorageAnnotationResult_ = false; + + annotationResultStorageDirectory_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig build() { + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig result = + new com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig(this); + result.enableStorageAnnotationResult_ = enableStorageAnnotationResult_; + result.annotationResultStorageDirectory_ = annotationResultStorageDirectory_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig + .getDefaultInstance()) return this; + if (other.getEnableStorageAnnotationResult() != false) { + setEnableStorageAnnotationResult(other.getEnableStorageAnnotationResult()); + } + if (!other.getAnnotationResultStorageDirectory().isEmpty()) { + annotationResultStorageDirectory_ = other.annotationResultStorageDirectory_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enableStorageAnnotationResult_; + /** + * + * + *
+     * Enable streaming storage. Default: false.
+     * 
+ * + * bool enable_storage_annotation_result = 1; + */ + public boolean getEnableStorageAnnotationResult() { + return enableStorageAnnotationResult_; + } + /** + * + * + *
+     * Enable streaming storage. Default: false.
+     * 
+ * + * bool enable_storage_annotation_result = 1; + */ + public Builder setEnableStorageAnnotationResult(boolean value) { + + enableStorageAnnotationResult_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable streaming storage. Default: false.
+     * 
+ * + * bool enable_storage_annotation_result = 1; + */ + public Builder clearEnableStorageAnnotationResult() { + + enableStorageAnnotationResult_ = false; + onChanged(); + return this; + } + + private java.lang.Object annotationResultStorageDirectory_ = ""; + /** + * + * + *
+     * GCS URI to store all annotation results for one client. Client should
+     * specify this field as the top-level storage directory. Annotation results
+     * of different sessions will be put into different sub-directories denoted
+     * by project_name and session_id. All sub-directories will be auto generated
+     * by program and will be made accessible to client in response proto.
+     * URIs must be specified in the following format: `gs://bucket-id/object-id`
+     * `bucket-id` should be a valid GCS bucket created by client and bucket
+     * permission shall also be configured properly. `object-id` can be arbitrary
+     * string that make sense to client. Other URI formats will return error and
+     * cause GCS write failure.
+     * 
+ * + * string annotation_result_storage_directory = 3; + */ + public java.lang.String getAnnotationResultStorageDirectory() { + java.lang.Object ref = annotationResultStorageDirectory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + annotationResultStorageDirectory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * GCS URI to store all annotation results for one client. Client should
+     * specify this field as the top-level storage directory. Annotation results
+     * of different sessions will be put into different sub-directories denoted
+     * by project_name and session_id. All sub-directories will be auto generated
+     * by program and will be made accessible to client in response proto.
+     * URIs must be specified in the following format: `gs://bucket-id/object-id`
+     * `bucket-id` should be a valid GCS bucket created by client and bucket
+     * permission shall also be configured properly. `object-id` can be arbitrary
+     * string that make sense to client. Other URI formats will return error and
+     * cause GCS write failure.
+     * 
+ * + * string annotation_result_storage_directory = 3; + */ + public com.google.protobuf.ByteString getAnnotationResultStorageDirectoryBytes() { + java.lang.Object ref = annotationResultStorageDirectory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationResultStorageDirectory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * GCS URI to store all annotation results for one client. Client should
+     * specify this field as the top-level storage directory. Annotation results
+     * of different sessions will be put into different sub-directories denoted
+     * by project_name and session_id. All sub-directories will be auto generated
+     * by program and will be made accessible to client in response proto.
+     * URIs must be specified in the following format: `gs://bucket-id/object-id`
+     * `bucket-id` should be a valid GCS bucket created by client and bucket
+     * permission shall also be configured properly. `object-id` can be arbitrary
+     * string that make sense to client. Other URI formats will return error and
+     * cause GCS write failure.
+     * 
+ * + * string annotation_result_storage_directory = 3; + */ + public Builder setAnnotationResultStorageDirectory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + annotationResultStorageDirectory_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * GCS URI to store all annotation results for one client. Client should
+     * specify this field as the top-level storage directory. Annotation results
+     * of different sessions will be put into different sub-directories denoted
+     * by project_name and session_id. All sub-directories will be auto generated
+     * by program and will be made accessible to client in response proto.
+     * URIs must be specified in the following format: `gs://bucket-id/object-id`
+     * `bucket-id` should be a valid GCS bucket created by client and bucket
+     * permission shall also be configured properly. `object-id` can be arbitrary
+     * string that make sense to client. Other URI formats will return error and
+     * cause GCS write failure.
+     * 
+ * + * string annotation_result_storage_directory = 3; + */ + public Builder clearAnnotationResultStorageDirectory() { + + annotationResultStorageDirectory_ = + getDefaultInstance().getAnnotationResultStorageDirectory(); + onChanged(); + return this; + } + /** + * + * + *
+     * GCS URI to store all annotation results for one client. Client should
+     * specify this field as the top-level storage directory. Annotation results
+     * of different sessions will be put into different sub-directories denoted
+     * by project_name and session_id. All sub-directories will be auto generated
+     * by program and will be made accessible to client in response proto.
+     * URIs must be specified in the following format: `gs://bucket-id/object-id`
+     * `bucket-id` should be a valid GCS bucket created by client and bucket
+     * permission shall also be configured properly. `object-id` can be arbitrary
+     * string that make sense to client. Other URI formats will return error and
+     * cause GCS write failure.
+     * 
+ * + * string annotation_result_storage_directory = 3; + */ + public Builder setAnnotationResultStorageDirectoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + annotationResultStorageDirectory_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) + private static final com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingStorageConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingStorageConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfigOrBuilder.java new file mode 100644 index 000000000000..241956db876c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfigOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface StreamingStorageConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable streaming storage. Default: false.
+   * 
+ * + * bool enable_storage_annotation_result = 1; + */ + boolean getEnableStorageAnnotationResult(); + + /** + * + * + *
+   * GCS URI to store all annotation results for one client. Client should
+   * specify this field as the top-level storage directory. Annotation results
+   * of different sessions will be put into different sub-directories denoted
+   * by project_name and session_id. All sub-directories will be auto generated
+   * by program and will be made accessible to client in response proto.
+   * URIs must be specified in the following format: `gs://bucket-id/object-id`
+   * `bucket-id` should be a valid GCS bucket created by client and bucket
+   * permission shall also be configured properly. `object-id` can be arbitrary
+   * string that make sense to client. Other URI formats will return error and
+   * cause GCS write failure.
+   * 
+ * + * string annotation_result_storage_directory = 3; + */ + java.lang.String getAnnotationResultStorageDirectory(); + /** + * + * + *
+   * GCS URI to store all annotation results for one client. Client should
+   * specify this field as the top-level storage directory. Annotation results
+   * of different sessions will be put into different sub-directories denoted
+   * by project_name and session_id. All sub-directories will be auto generated
+   * by program and will be made accessible to client in response proto.
+   * URIs must be specified in the following format: `gs://bucket-id/object-id`
+   * `bucket-id` should be a valid GCS bucket created by client and bucket
+   * permission shall also be configured properly. `object-id` can be arbitrary
+   * string that make sense to client. Other URI formats will return error and
+   * cause GCS write failure.
+   * 
+ * + * string annotation_result_storage_directory = 3; + */ + com.google.protobuf.ByteString getAnnotationResultStorageDirectoryBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java new file mode 100644 index 000000000000..d04db2fc740f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java @@ -0,0 +1,2436 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Streaming annotation results corresponding to a portion of the video
+ * that is currently being processed.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults} + */ +public final class StreamingVideoAnnotationResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) + StreamingVideoAnnotationResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingVideoAnnotationResults.newBuilder() to construct. + private StreamingVideoAnnotationResults( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamingVideoAnnotationResults() { + shotAnnotations_ = java.util.Collections.emptyList(); + labelAnnotations_ = java.util.Collections.emptyList(); + objectAnnotations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingVideoAnnotationResults( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + shotAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment>(); + mutable_bitField0_ |= 0x00000001; + } + shotAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), + extensionRegistry)); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + labelAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); + mutable_bitField0_ |= 0x00000002; + } + labelAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.parser(), + extensionRegistry)); + break; + } + case 26: + { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder + subBuilder = null; + if (explicitAnnotation_ != null) { + subBuilder = explicitAnnotation_.toBuilder(); + } + explicitAnnotation_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(explicitAnnotation_); + explicitAnnotation_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + objectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>(); + mutable_bitField0_ |= 0x00000008; + } + objectAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + labelAnnotations_ = java.util.Collections.unmodifiableList(labelAnnotations_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder + .class); + } + + private int bitField0_; + public static final int SHOT_ANNOTATIONS_FIELD_NUMBER = 1; + private java.util.List + shotAnnotations_; + /** + * + * + *
+   * Shot annotation results. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public java.util.List + getShotAnnotationsList() { + return shotAnnotations_; + } + /** + * + * + *
+   * Shot annotation results. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getShotAnnotationsOrBuilderList() { + return shotAnnotations_; + } + /** + * + * + *
+   * Shot annotation results. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public int getShotAnnotationsCount() { + return shotAnnotations_.size(); + } + /** + * + * + *
+   * Shot annotation results. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index) { + return shotAnnotations_.get(index); + } + /** + * + * + *
+   * Shot annotation results. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder + getShotAnnotationsOrBuilder(int index) { + return shotAnnotations_.get(index); + } + + public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 2; + private java.util.List + labelAnnotations_; + /** + * + * + *
+   * Label annotation results.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public java.util.List + getLabelAnnotationsList() { + return labelAnnotations_; + } + /** + * + * + *
+   * Label annotation results.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getLabelAnnotationsOrBuilderList() { + return labelAnnotations_; + } + /** + * + * + *
+   * Label annotation results.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public int getLabelAnnotationsCount() { + return labelAnnotations_.size(); + } + /** + * + * + *
+   * Label annotation results.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getLabelAnnotations( + int index) { + return labelAnnotations_.get(index); + } + /** + * + * + *
+   * Label annotation results.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getLabelAnnotationsOrBuilder(int index) { + return labelAnnotations_.get(index); + } + + public static final int EXPLICIT_ANNOTATION_FIELD_NUMBER = 3; + private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + explicitAnnotation_; + /** + * + * + *
+   * Explicit content detection results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public boolean hasExplicitAnnotation() { + return explicitAnnotation_ != null; + } + /** + * + * + *
+   * Explicit content detection results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + getExplicitAnnotation() { + return explicitAnnotation_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .getDefaultInstance() + : explicitAnnotation_; + } + /** + * + * + *
+   * Explicit content detection results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder + getExplicitAnnotationOrBuilder() { + return getExplicitAnnotation(); + } + + public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 4; + private java.util.List + objectAnnotations_; + /** + * + * + *
+   * Object tracking results.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public java.util.List + getObjectAnnotationsList() { + return objectAnnotations_; + } + /** + * + * + *
+   * Object tracking results.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList() { + return objectAnnotations_; + } + /** + * + * + *
+   * Object tracking results.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public int getObjectAnnotationsCount() { + return objectAnnotations_.size(); + } + /** + * + * + *
+   * Object tracking results.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectAnnotations( + int index) { + return objectAnnotations_.get(index); + } + /** + * + * + *
+   * Object tracking results.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { + return objectAnnotations_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < shotAnnotations_.size(); i++) { + output.writeMessage(1, shotAnnotations_.get(i)); + } + for (int i = 0; i < labelAnnotations_.size(); i++) { + output.writeMessage(2, labelAnnotations_.get(i)); + } + if (explicitAnnotation_ != null) { + output.writeMessage(3, getExplicitAnnotation()); + } + for (int i = 0; i < objectAnnotations_.size(); i++) { + output.writeMessage(4, objectAnnotations_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < shotAnnotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, shotAnnotations_.get(i)); + } + for (int i = 0; i < labelAnnotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labelAnnotations_.get(i)); + } + if (explicitAnnotation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExplicitAnnotation()); + } + for (int i = 0; i < objectAnnotations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, objectAnnotations_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) obj; + + boolean result = true; + result = result && getShotAnnotationsList().equals(other.getShotAnnotationsList()); + result = result && getLabelAnnotationsList().equals(other.getLabelAnnotationsList()); + result = result && (hasExplicitAnnotation() == other.hasExplicitAnnotation()); + if (hasExplicitAnnotation()) { + result = result && getExplicitAnnotation().equals(other.getExplicitAnnotation()); + } + result = result && getObjectAnnotationsList().equals(other.getObjectAnnotationsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getShotAnnotationsCount() > 0) { + hash = (37 * hash) + SHOT_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getShotAnnotationsList().hashCode(); + } + if (getLabelAnnotationsCount() > 0) { + hash = (37 * hash) + LABEL_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLabelAnnotationsList().hashCode(); + } + if (hasExplicitAnnotation()) { + hash = (37 * hash) + EXPLICIT_ANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + getExplicitAnnotation().hashCode(); + } + if (getObjectAnnotationsCount() > 0) { + hash = (37 * hash) + OBJECT_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getObjectAnnotationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Streaming annotation results corresponding to a portion of the video
+   * that is currently being processed.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder + .class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getShotAnnotationsFieldBuilder(); + getLabelAnnotationsFieldBuilder(); + getObjectAnnotationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (shotAnnotationsBuilder_ == null) { + shotAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + shotAnnotationsBuilder_.clear(); + } + if (labelAnnotationsBuilder_ == null) { + labelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + labelAnnotationsBuilder_.clear(); + } + if (explicitAnnotationBuilder_ == null) { + explicitAnnotation_ = null; + } else { + explicitAnnotation_ = null; + explicitAnnotationBuilder_ = null; + } + if (objectAnnotationsBuilder_ == null) { + objectAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + objectAnnotationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults build() { + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults result = + new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (shotAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.shotAnnotations_ = shotAnnotations_; + } else { + result.shotAnnotations_ = shotAnnotationsBuilder_.build(); + } + if (labelAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + labelAnnotations_ = java.util.Collections.unmodifiableList(labelAnnotations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.labelAnnotations_ = labelAnnotations_; + } else { + result.labelAnnotations_ = labelAnnotationsBuilder_.build(); + } + if (explicitAnnotationBuilder_ == null) { + result.explicitAnnotation_ = explicitAnnotation_; + } else { + result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); + } + if (objectAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.objectAnnotations_ = objectAnnotations_; + } else { + result.objectAnnotations_ = objectAnnotationsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + .getDefaultInstance()) return this; + if (shotAnnotationsBuilder_ == null) { + if (!other.shotAnnotations_.isEmpty()) { + if (shotAnnotations_.isEmpty()) { + shotAnnotations_ = other.shotAnnotations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.addAll(other.shotAnnotations_); + } + onChanged(); + } + } else { + if (!other.shotAnnotations_.isEmpty()) { + if (shotAnnotationsBuilder_.isEmpty()) { + shotAnnotationsBuilder_.dispose(); + shotAnnotationsBuilder_ = null; + shotAnnotations_ = other.shotAnnotations_; + bitField0_ = (bitField0_ & ~0x00000001); + shotAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getShotAnnotationsFieldBuilder() + : null; + } else { + shotAnnotationsBuilder_.addAllMessages(other.shotAnnotations_); + } + } + } + if (labelAnnotationsBuilder_ == null) { + if (!other.labelAnnotations_.isEmpty()) { + if (labelAnnotations_.isEmpty()) { + labelAnnotations_ = other.labelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLabelAnnotationsIsMutable(); + labelAnnotations_.addAll(other.labelAnnotations_); + } + onChanged(); + } + } else { + if (!other.labelAnnotations_.isEmpty()) { + if (labelAnnotationsBuilder_.isEmpty()) { + labelAnnotationsBuilder_.dispose(); + labelAnnotationsBuilder_ = null; + labelAnnotations_ = other.labelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000002); + labelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLabelAnnotationsFieldBuilder() + : null; + } else { + labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); + } + } + } + if (other.hasExplicitAnnotation()) { + mergeExplicitAnnotation(other.getExplicitAnnotation()); + } + if (objectAnnotationsBuilder_ == null) { + if (!other.objectAnnotations_.isEmpty()) { + if (objectAnnotations_.isEmpty()) { + objectAnnotations_ = other.objectAnnotations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.addAll(other.objectAnnotations_); + } + onChanged(); + } + } else { + if (!other.objectAnnotations_.isEmpty()) { + if (objectAnnotationsBuilder_.isEmpty()) { + objectAnnotationsBuilder_.dispose(); + objectAnnotationsBuilder_ = null; + objectAnnotations_ = other.objectAnnotations_; + bitField0_ = (bitField0_ & ~0x00000008); + objectAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getObjectAnnotationsFieldBuilder() + : null; + } else { + objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + shotAnnotations_ = java.util.Collections.emptyList(); + + private void ensureShotAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + shotAnnotations_ = + new java.util.ArrayList( + shotAnnotations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + shotAnnotationsBuilder_; + + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public java.util.List + getShotAnnotationsList() { + if (shotAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(shotAnnotations_); + } else { + return shotAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public int getShotAnnotationsCount() { + if (shotAnnotationsBuilder_ == null) { + return shotAnnotations_.size(); + } else { + return shotAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index) { + if (shotAnnotationsBuilder_ == null) { + return shotAnnotations_.get(index); + } else { + return shotAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public Builder setShotAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (shotAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotAnnotationsIsMutable(); + shotAnnotations_.set(index, value); + onChanged(); + } else { + shotAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public Builder setShotAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + shotAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public Builder addShotAnnotations( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (shotAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(value); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public Builder addShotAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (shotAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(index, value); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public Builder addShotAnnotations( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public Builder addShotAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public Builder addAllShotAnnotations( + java.lang.Iterable + values) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shotAnnotations_); + onChanged(); + } else { + shotAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public Builder clearShotAnnotations() { + if (shotAnnotationsBuilder_ == null) { + shotAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + shotAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public Builder removeShotAnnotations(int index) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.remove(index); + onChanged(); + } else { + shotAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder + getShotAnnotationsBuilder(int index) { + return getShotAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder + getShotAnnotationsOrBuilder(int index) { + if (shotAnnotationsBuilder_ == null) { + return shotAnnotations_.get(index); + } else { + return shotAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getShotAnnotationsOrBuilderList() { + if (shotAnnotationsBuilder_ != null) { + return shotAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shotAnnotations_); + } + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder + addShotAnnotationsBuilder() { + return getShotAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()); + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder + addShotAnnotationsBuilder(int index) { + return getShotAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()); + } + /** + * + * + *
+     * Shot annotation results. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + public java.util.List + getShotAnnotationsBuilderList() { + return getShotAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getShotAnnotationsFieldBuilder() { + if (shotAnnotationsBuilder_ == null) { + shotAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( + shotAnnotations_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + shotAnnotations_ = null; + } + return shotAnnotationsBuilder_; + } + + private java.util.List + labelAnnotations_ = java.util.Collections.emptyList(); + + private void ensureLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + labelAnnotations_ = + new java.util.ArrayList( + labelAnnotations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + labelAnnotationsBuilder_; + + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public java.util.List + getLabelAnnotationsList() { + if (labelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(labelAnnotations_); + } else { + return labelAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public int getLabelAnnotationsCount() { + if (labelAnnotationsBuilder_ == null) { + return labelAnnotations_.size(); + } else { + return labelAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getLabelAnnotations( + int index) { + if (labelAnnotationsBuilder_ == null) { + return labelAnnotations_.get(index); + } else { + return labelAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public Builder setLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (labelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLabelAnnotationsIsMutable(); + labelAnnotations_.set(index, value); + onChanged(); + } else { + labelAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public Builder setLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (labelAnnotationsBuilder_ == null) { + ensureLabelAnnotationsIsMutable(); + labelAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + labelAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public Builder addLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (labelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLabelAnnotationsIsMutable(); + labelAnnotations_.add(value); + onChanged(); + } else { + labelAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public Builder addLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (labelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLabelAnnotationsIsMutable(); + labelAnnotations_.add(index, value); + onChanged(); + } else { + labelAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public Builder addLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (labelAnnotationsBuilder_ == null) { + ensureLabelAnnotationsIsMutable(); + labelAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + labelAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public Builder addLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (labelAnnotationsBuilder_ == null) { + ensureLabelAnnotationsIsMutable(); + labelAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + labelAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public Builder addAllLabelAnnotations( + java.lang.Iterable + values) { + if (labelAnnotationsBuilder_ == null) { + ensureLabelAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); + onChanged(); + } else { + labelAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public Builder clearLabelAnnotations() { + if (labelAnnotationsBuilder_ == null) { + labelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + labelAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public Builder removeLabelAnnotations(int index) { + if (labelAnnotationsBuilder_ == null) { + ensureLabelAnnotationsIsMutable(); + labelAnnotations_.remove(index); + onChanged(); + } else { + labelAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + getLabelAnnotationsBuilder(int index) { + return getLabelAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getLabelAnnotationsOrBuilder(int index) { + if (labelAnnotationsBuilder_ == null) { + return labelAnnotations_.get(index); + } else { + return labelAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getLabelAnnotationsOrBuilderList() { + if (labelAnnotationsBuilder_ != null) { + return labelAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(labelAnnotations_); + } + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addLabelAnnotationsBuilder() { + return getLabelAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addLabelAnnotationsBuilder(int index) { + return getLabelAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Label annotation results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + public java.util.List + getLabelAnnotationsBuilderList() { + return getLabelAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getLabelAnnotationsFieldBuilder() { + if (labelAnnotationsBuilder_ == null) { + labelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( + labelAnnotations_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + labelAnnotations_ = null; + } + return labelAnnotationsBuilder_; + } + + private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + explicitAnnotation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder> + explicitAnnotationBuilder_; + /** + * + * + *
+     * Explicit content detection results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public boolean hasExplicitAnnotation() { + return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null; + } + /** + * + * + *
+     * Explicit content detection results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + getExplicitAnnotation() { + if (explicitAnnotationBuilder_ == null) { + return explicitAnnotation_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .getDefaultInstance() + : explicitAnnotation_; + } else { + return explicitAnnotationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Explicit content detection results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public Builder setExplicitAnnotation( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation value) { + if (explicitAnnotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + explicitAnnotation_ = value; + onChanged(); + } else { + explicitAnnotationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Explicit content detection results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public Builder setExplicitAnnotation( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder + builderForValue) { + if (explicitAnnotationBuilder_ == null) { + explicitAnnotation_ = builderForValue.build(); + onChanged(); + } else { + explicitAnnotationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Explicit content detection results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public Builder mergeExplicitAnnotation( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation value) { + if (explicitAnnotationBuilder_ == null) { + if (explicitAnnotation_ != null) { + explicitAnnotation_ = + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.newBuilder( + explicitAnnotation_) + .mergeFrom(value) + .buildPartial(); + } else { + explicitAnnotation_ = value; + } + onChanged(); + } else { + explicitAnnotationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Explicit content detection results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public Builder clearExplicitAnnotation() { + if (explicitAnnotationBuilder_ == null) { + explicitAnnotation_ = null; + onChanged(); + } else { + explicitAnnotation_ = null; + explicitAnnotationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Explicit content detection results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder + getExplicitAnnotationBuilder() { + + onChanged(); + return getExplicitAnnotationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Explicit content detection results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder + getExplicitAnnotationOrBuilder() { + if (explicitAnnotationBuilder_ != null) { + return explicitAnnotationBuilder_.getMessageOrBuilder(); + } else { + return explicitAnnotation_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .getDefaultInstance() + : explicitAnnotation_; + } + } + /** + * + * + *
+     * Explicit content detection results.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder> + getExplicitAnnotationFieldBuilder() { + if (explicitAnnotationBuilder_ == null) { + explicitAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder>( + getExplicitAnnotation(), getParentForChildren(), isClean()); + explicitAnnotation_ = null; + } + return explicitAnnotationBuilder_; + } + + private java.util.List + objectAnnotations_ = java.util.Collections.emptyList(); + + private void ensureObjectAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + objectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>( + objectAnnotations_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> + objectAnnotationsBuilder_; + + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public java.util.List + getObjectAnnotationsList() { + if (objectAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(objectAnnotations_); + } else { + return objectAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public int getObjectAnnotationsCount() { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.size(); + } else { + return objectAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + getObjectAnnotations(int index) { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.get(index); + } else { + return objectAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public Builder setObjectAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.set(index, value); + onChanged(); + } else { + objectAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public Builder setObjectAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public Builder addObjectAnnotations( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(value); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public Builder addObjectAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(index, value); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public Builder addObjectAnnotations( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public Builder addObjectAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public Builder addAllObjectAnnotations( + java.lang.Iterable< + ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation> + values) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_); + onChanged(); + } else { + objectAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public Builder clearObjectAnnotations() { + if (objectAnnotationsBuilder_ == null) { + objectAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + objectAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public Builder removeObjectAnnotations(int index) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.remove(index); + onChanged(); + } else { + objectAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + getObjectAnnotationsBuilder(int index) { + return getObjectAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.get(index); + } else { + return objectAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList() { + if (objectAnnotationsBuilder_ != null) { + return objectAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(objectAnnotations_); + } + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + addObjectAnnotationsBuilder() { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + .getDefaultInstance()); + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + addObjectAnnotationsBuilder(int index) { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + .getDefaultInstance()); + } + /** + * + * + *
+     * Object tracking results.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + public java.util.List< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder> + getObjectAnnotationsBuilderList() { + return getObjectAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> + getObjectAnnotationsFieldBuilder() { + if (objectAnnotationsBuilder_ == null) { + objectAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>( + objectAnnotations_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + objectAnnotations_ = null; + } + return objectAnnotationsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) + private static final com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingVideoAnnotationResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingVideoAnnotationResults(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResultsOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResultsOrBuilder.java new file mode 100644 index 000000000000..30ab5053a79b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResultsOrBuilder.java @@ -0,0 +1,232 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface StreamingVideoAnnotationResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Shot annotation results. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + java.util.List + getShotAnnotationsList(); + /** + * + * + *
+   * Shot annotation results. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index); + /** + * + * + *
+   * Shot annotation results. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + int getShotAnnotationsCount(); + /** + * + * + *
+   * Shot annotation results. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + java.util.List + getShotAnnotationsOrBuilderList(); + /** + * + * + *
+   * Shot annotation results. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getShotAnnotationsOrBuilder( + int index); + + /** + * + * + *
+   * Label annotation results.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + java.util.List + getLabelAnnotationsList(); + /** + * + * + *
+   * Label annotation results.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getLabelAnnotations(int index); + /** + * + * + *
+   * Label annotation results.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + int getLabelAnnotationsCount(); + /** + * + * + *
+   * Label annotation results.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + java.util.List + getLabelAnnotationsOrBuilderList(); + /** + * + * + *
+   * Label annotation results.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getLabelAnnotationsOrBuilder(int index); + + /** + * + * + *
+   * Explicit content detection results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + boolean hasExplicitAnnotation(); + /** + * + * + *
+   * Explicit content detection results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation(); + /** + * + * + *
+   * Explicit content detection results.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder + getExplicitAnnotationOrBuilder(); + + /** + * + * + *
+   * Object tracking results.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + java.util.List + getObjectAnnotationsList(); + /** + * + * + *
+   * Object tracking results.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectAnnotations( + int index); + /** + * + * + *
+   * Object tracking results.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + int getObjectAnnotationsCount(); + /** + * + * + *
+   * Object tracking results.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList(); + /** + * + * + *
+   * Object tracking results.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java new file mode 100644 index 000000000000..797bee67af74 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java @@ -0,0 +1,2390 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Provides information to the annotator that specifies how to process the
+ * request.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig} + */ +public final class StreamingVideoConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + StreamingVideoConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingVideoConfig.newBuilder() to construct. + private StreamingVideoConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamingVideoConfig() { + feature_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingVideoConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + feature_ = rawValue; + break; + } + case 18: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .Builder + subBuilder = null; + if (streamingConfigCase_ == 2) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfig) + streamingConfig_) + .toBuilder(); + } + streamingConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfig) + streamingConfig_); + streamingConfig_ = subBuilder.buildPartial(); + } + streamingConfigCase_ = 2; + break; + } + case 26: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder + subBuilder = null; + if (streamingConfigCase_ == 3) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_) + .toBuilder(); + } + streamingConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_); + streamingConfig_ = subBuilder.buildPartial(); + } + streamingConfigCase_ = 3; + break; + } + case 34: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .Builder + subBuilder = null; + if (streamingConfigCase_ == 4) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig) + streamingConfig_) + .toBuilder(); + } + streamingConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig) + streamingConfig_); + streamingConfig_ = subBuilder.buildPartial(); + } + streamingConfigCase_ = 4; + break; + } + case 42: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder + subBuilder = null; + if (streamingConfigCase_ == 5) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_) + .toBuilder(); + } + streamingConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_); + streamingConfig_ = subBuilder.buildPartial(); + } + streamingConfigCase_ = 5; + break; + } + case 242: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder + subBuilder = null; + if (storageConfig_ != null) { + subBuilder = storageConfig_.toBuilder(); + } + storageConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storageConfig_); + storageConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder.class); + } + + private int streamingConfigCase_ = 0; + private java.lang.Object streamingConfig_; + + public enum StreamingConfigCase implements com.google.protobuf.Internal.EnumLite { + SHOT_CHANGE_DETECTION_CONFIG(2), + LABEL_DETECTION_CONFIG(3), + EXPLICIT_CONTENT_DETECTION_CONFIG(4), + OBJECT_TRACKING_CONFIG(5), + STREAMINGCONFIG_NOT_SET(0); + private final int value; + + private StreamingConfigCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static StreamingConfigCase valueOf(int value) { + return forNumber(value); + } + + public static StreamingConfigCase forNumber(int value) { + switch (value) { + case 2: + return SHOT_CHANGE_DETECTION_CONFIG; + case 3: + return LABEL_DETECTION_CONFIG; + case 4: + return EXPLICIT_CONTENT_DETECTION_CONFIG; + case 5: + return OBJECT_TRACKING_CONFIG; + case 0: + return STREAMINGCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StreamingConfigCase getStreamingConfigCase() { + return StreamingConfigCase.forNumber(streamingConfigCase_); + } + + public static final int FEATURE_FIELD_NUMBER = 1; + private int feature_; + /** + * + * + *
+   * Requested annotation feature.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + */ + public int getFeatureValue() { + return feature_; + } + /** + * + * + *
+   * Requested annotation feature.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p3beta1.StreamingFeature result = + com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.valueOf(feature_); + return result == null + ? com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.UNRECOGNIZED + : result; + } + + public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER = 2; + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public boolean hasShotChangeDetectionConfig() { + return streamingConfigCase_ == 2; + } + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + getShotChangeDetectionConfig() { + if (streamingConfigCase_ == 2) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .getDefaultInstance(); + } + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfigOrBuilder + getShotChangeDetectionConfigOrBuilder() { + if (streamingConfigCase_ == 2) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .getDefaultInstance(); + } + + public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER = 3; + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public boolean hasLabelDetectionConfig() { + return streamingConfigCase_ == 3; + } + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + getLabelDetectionConfig() { + if (streamingConfigCase_ == 3) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .getDefaultInstance(); + } + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder + getLabelDetectionConfigOrBuilder() { + if (streamingConfigCase_ == 3) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .getDefaultInstance(); + } + + public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER = 4; + /** + * + * + *
+   * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public boolean hasExplicitContentDetectionConfig() { + return streamingConfigCase_ == 4; + } + /** + * + * + *
+   * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + getExplicitContentDetectionConfig() { + if (streamingConfigCase_ == 4) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .getDefaultInstance(); + } + /** + * + * + *
+   * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfigOrBuilder + getExplicitContentDetectionConfigOrBuilder() { + if (streamingConfigCase_ == 4) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .getDefaultInstance(); + } + + public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER = 5; + /** + * + * + *
+   * Config for STREAMING_OBJECT_TRACKING.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public boolean hasObjectTrackingConfig() { + return streamingConfigCase_ == 5; + } + /** + * + * + *
+   * Config for STREAMING_OBJECT_TRACKING.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + getObjectTrackingConfig() { + if (streamingConfigCase_ == 5) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .getDefaultInstance(); + } + /** + * + * + *
+   * Config for STREAMING_OBJECT_TRACKING.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder + getObjectTrackingConfigOrBuilder() { + if (streamingConfigCase_ == 5) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .getDefaultInstance(); + } + + public static final int STORAGE_CONFIG_FIELD_NUMBER = 30; + private com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storageConfig_; + /** + * + * + *
+   * Streaming storage option. By default: storage is disabled.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public boolean hasStorageConfig() { + return storageConfig_ != null; + } + /** + * + * + *
+   * Streaming storage option. By default: storage is disabled.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig() { + return storageConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.getDefaultInstance() + : storageConfig_; + } + /** + * + * + *
+   * Streaming storage option. By default: storage is disabled.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder + getStorageConfigOrBuilder() { + return getStorageConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (feature_ + != com.google.cloud.videointelligence.v1p3beta1.StreamingFeature + .STREAMING_FEATURE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, feature_); + } + if (streamingConfigCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + streamingConfig_); + } + if (streamingConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_); + } + if (streamingConfigCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + streamingConfig_); + } + if (streamingConfigCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_); + } + if (storageConfig_ != null) { + output.writeMessage(30, getStorageConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (feature_ + != com.google.cloud.videointelligence.v1p3beta1.StreamingFeature + .STREAMING_FEATURE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, feature_); + } + if (streamingConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + streamingConfig_); + } + if (streamingConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_); + } + if (streamingConfigCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + streamingConfig_); + } + if (streamingConfigCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_); + } + if (storageConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getStorageConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) obj; + + boolean result = true; + result = result && feature_ == other.feature_; + result = result && (hasStorageConfig() == other.hasStorageConfig()); + if (hasStorageConfig()) { + result = result && getStorageConfig().equals(other.getStorageConfig()); + } + result = result && getStreamingConfigCase().equals(other.getStreamingConfigCase()); + if (!result) return false; + switch (streamingConfigCase_) { + case 2: + result = + result && getShotChangeDetectionConfig().equals(other.getShotChangeDetectionConfig()); + break; + case 3: + result = result && getLabelDetectionConfig().equals(other.getLabelDetectionConfig()); + break; + case 4: + result = + result + && getExplicitContentDetectionConfig() + .equals(other.getExplicitContentDetectionConfig()); + break; + case 5: + result = result && getObjectTrackingConfig().equals(other.getObjectTrackingConfig()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FEATURE_FIELD_NUMBER; + hash = (53 * hash) + feature_; + if (hasStorageConfig()) { + hash = (37 * hash) + STORAGE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStorageConfig().hashCode(); + } + switch (streamingConfigCase_) { + case 2: + hash = (37 * hash) + SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShotChangeDetectionConfig().hashCode(); + break; + case 3: + hash = (37 * hash) + LABEL_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLabelDetectionConfig().hashCode(); + break; + case 4: + hash = (37 * hash) + EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExplicitContentDetectionConfig().hashCode(); + break; + case 5: + hash = (37 * hash) + OBJECT_TRACKING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getObjectTrackingConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Provides information to the annotator that specifies how to process the
+   * request.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + feature_ = 0; + + if (storageConfigBuilder_ == null) { + storageConfig_ = null; + } else { + storageConfig_ = null; + storageConfigBuilder_ = null; + } + streamingConfigCase_ = 0; + streamingConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig build() { + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig result = + new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig(this); + result.feature_ = feature_; + if (streamingConfigCase_ == 2) { + if (shotChangeDetectionConfigBuilder_ == null) { + result.streamingConfig_ = streamingConfig_; + } else { + result.streamingConfig_ = shotChangeDetectionConfigBuilder_.build(); + } + } + if (streamingConfigCase_ == 3) { + if (labelDetectionConfigBuilder_ == null) { + result.streamingConfig_ = streamingConfig_; + } else { + result.streamingConfig_ = labelDetectionConfigBuilder_.build(); + } + } + if (streamingConfigCase_ == 4) { + if (explicitContentDetectionConfigBuilder_ == null) { + result.streamingConfig_ = streamingConfig_; + } else { + result.streamingConfig_ = explicitContentDetectionConfigBuilder_.build(); + } + } + if (streamingConfigCase_ == 5) { + if (objectTrackingConfigBuilder_ == null) { + result.streamingConfig_ = streamingConfig_; + } else { + result.streamingConfig_ = objectTrackingConfigBuilder_.build(); + } + } + if (storageConfigBuilder_ == null) { + result.storageConfig_ = storageConfig_; + } else { + result.storageConfig_ = storageConfigBuilder_.build(); + } + result.streamingConfigCase_ = streamingConfigCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.getDefaultInstance()) + return this; + if (other.feature_ != 0) { + setFeatureValue(other.getFeatureValue()); + } + if (other.hasStorageConfig()) { + mergeStorageConfig(other.getStorageConfig()); + } + switch (other.getStreamingConfigCase()) { + case SHOT_CHANGE_DETECTION_CONFIG: + { + mergeShotChangeDetectionConfig(other.getShotChangeDetectionConfig()); + break; + } + case LABEL_DETECTION_CONFIG: + { + mergeLabelDetectionConfig(other.getLabelDetectionConfig()); + break; + } + case EXPLICIT_CONTENT_DETECTION_CONFIG: + { + mergeExplicitContentDetectionConfig(other.getExplicitContentDetectionConfig()); + break; + } + case OBJECT_TRACKING_CONFIG: + { + mergeObjectTrackingConfig(other.getObjectTrackingConfig()); + break; + } + case STREAMINGCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int streamingConfigCase_ = 0; + private java.lang.Object streamingConfig_; + + public StreamingConfigCase getStreamingConfigCase() { + return StreamingConfigCase.forNumber(streamingConfigCase_); + } + + public Builder clearStreamingConfig() { + streamingConfigCase_ = 0; + streamingConfig_ = null; + onChanged(); + return this; + } + + private int feature_ = 0; + /** + * + * + *
+     * Requested annotation feature.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + */ + public int getFeatureValue() { + return feature_; + } + /** + * + * + *
+     * Requested annotation feature.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + */ + public Builder setFeatureValue(int value) { + feature_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested annotation feature.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p3beta1.StreamingFeature result = + com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.valueOf(feature_); + return result == null + ? com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Requested annotation feature.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + */ + public Builder setFeature(com.google.cloud.videointelligence.v1p3beta1.StreamingFeature value) { + if (value == null) { + throw new NullPointerException(); + } + + feature_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Requested annotation feature.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + */ + public Builder clearFeature() { + + feature_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfigOrBuilder> + shotChangeDetectionConfigBuilder_; + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public boolean hasShotChangeDetectionConfig() { + return streamingConfigCase_ == 2; + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + getShotChangeDetectionConfig() { + if (shotChangeDetectionConfigBuilder_ == null) { + if (streamingConfigCase_ == 2) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .getDefaultInstance(); + } else { + if (streamingConfigCase_ == 2) { + return shotChangeDetectionConfigBuilder_.getMessage(); + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public Builder setShotChangeDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig value) { + if (shotChangeDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamingConfig_ = value; + onChanged(); + } else { + shotChangeDetectionConfigBuilder_.setMessage(value); + } + streamingConfigCase_ = 2; + return this; + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public Builder setShotChangeDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder + builderForValue) { + if (shotChangeDetectionConfigBuilder_ == null) { + streamingConfig_ = builderForValue.build(); + onChanged(); + } else { + shotChangeDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + streamingConfigCase_ = 2; + return this; + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public Builder mergeShotChangeDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig value) { + if (shotChangeDetectionConfigBuilder_ == null) { + if (streamingConfigCase_ == 2 + && streamingConfig_ + != com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .getDefaultInstance()) { + streamingConfig_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .newBuilder( + (com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfig) + streamingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + streamingConfig_ = value; + } + onChanged(); + } else { + if (streamingConfigCase_ == 2) { + shotChangeDetectionConfigBuilder_.mergeFrom(value); + } + shotChangeDetectionConfigBuilder_.setMessage(value); + } + streamingConfigCase_ = 2; + return this; + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public Builder clearShotChangeDetectionConfig() { + if (shotChangeDetectionConfigBuilder_ == null) { + if (streamingConfigCase_ == 2) { + streamingConfigCase_ = 0; + streamingConfig_ = null; + onChanged(); + } + } else { + if (streamingConfigCase_ == 2) { + streamingConfigCase_ = 0; + streamingConfig_ = null; + } + shotChangeDetectionConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder + getShotChangeDetectionConfigBuilder() { + return getShotChangeDetectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfigOrBuilder + getShotChangeDetectionConfigOrBuilder() { + if ((streamingConfigCase_ == 2) && (shotChangeDetectionConfigBuilder_ != null)) { + return shotChangeDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + if (streamingConfigCase_ == 2) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfigOrBuilder> + getShotChangeDetectionConfigFieldBuilder() { + if (shotChangeDetectionConfigBuilder_ == null) { + if (!(streamingConfigCase_ == 2)) { + streamingConfig_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .getDefaultInstance(); + } + shotChangeDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .Builder, + com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfigOrBuilder>( + (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + streamingConfig_, + getParentForChildren(), + isClean()); + streamingConfig_ = null; + } + streamingConfigCase_ = 2; + onChanged(); + ; + return shotChangeDetectionConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder> + labelDetectionConfigBuilder_; + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public boolean hasLabelDetectionConfig() { + return streamingConfigCase_ == 3; + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + getLabelDetectionConfig() { + if (labelDetectionConfigBuilder_ == null) { + if (streamingConfigCase_ == 3) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .getDefaultInstance(); + } else { + if (streamingConfigCase_ == 3) { + return labelDetectionConfigBuilder_.getMessage(); + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public Builder setLabelDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig value) { + if (labelDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamingConfig_ = value; + onChanged(); + } else { + labelDetectionConfigBuilder_.setMessage(value); + } + streamingConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public Builder setLabelDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder + builderForValue) { + if (labelDetectionConfigBuilder_ == null) { + streamingConfig_ = builderForValue.build(); + onChanged(); + } else { + labelDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + streamingConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public Builder mergeLabelDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig value) { + if (labelDetectionConfigBuilder_ == null) { + if (streamingConfigCase_ == 3 + && streamingConfig_ + != com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .getDefaultInstance()) { + streamingConfig_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.newBuilder( + (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + streamingConfig_ = value; + } + onChanged(); + } else { + if (streamingConfigCase_ == 3) { + labelDetectionConfigBuilder_.mergeFrom(value); + } + labelDetectionConfigBuilder_.setMessage(value); + } + streamingConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public Builder clearLabelDetectionConfig() { + if (labelDetectionConfigBuilder_ == null) { + if (streamingConfigCase_ == 3) { + streamingConfigCase_ = 0; + streamingConfig_ = null; + onChanged(); + } + } else { + if (streamingConfigCase_ == 3) { + streamingConfigCase_ = 0; + streamingConfig_ = null; + } + labelDetectionConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder + getLabelDetectionConfigBuilder() { + return getLabelDetectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder + getLabelDetectionConfigOrBuilder() { + if ((streamingConfigCase_ == 3) && (labelDetectionConfigBuilder_ != null)) { + return labelDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + if (streamingConfigCase_ == 3) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder> + getLabelDetectionConfigFieldBuilder() { + if (labelDetectionConfigBuilder_ == null) { + if (!(streamingConfigCase_ == 3)) { + streamingConfig_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .getDefaultInstance(); + } + labelDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1 + .StreamingLabelDetectionConfigOrBuilder>( + (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_, + getParentForChildren(), + isClean()); + streamingConfig_ = null; + } + streamingConfigCase_ = 3; + onChanged(); + ; + return labelDetectionConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .Builder, + com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfigOrBuilder> + explicitContentDetectionConfigBuilder_; + /** + * + * + *
+     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public boolean hasExplicitContentDetectionConfig() { + return streamingConfigCase_ == 4; + } + /** + * + * + *
+     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + getExplicitContentDetectionConfig() { + if (explicitContentDetectionConfigBuilder_ == null) { + if (streamingConfigCase_ == 4) { + return (com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .getDefaultInstance(); + } else { + if (streamingConfigCase_ == 4) { + return explicitContentDetectionConfigBuilder_.getMessage(); + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public Builder setExplicitContentDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + value) { + if (explicitContentDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamingConfig_ = value; + onChanged(); + } else { + explicitContentDetectionConfigBuilder_.setMessage(value); + } + streamingConfigCase_ = 4; + return this; + } + /** + * + * + *
+     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public Builder setExplicitContentDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig.Builder + builderForValue) { + if (explicitContentDetectionConfigBuilder_ == null) { + streamingConfig_ = builderForValue.build(); + onChanged(); + } else { + explicitContentDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + streamingConfigCase_ = 4; + return this; + } + /** + * + * + *
+     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public Builder mergeExplicitContentDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + value) { + if (explicitContentDetectionConfigBuilder_ == null) { + if (streamingConfigCase_ == 4 + && streamingConfig_ + != com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig.getDefaultInstance()) { + streamingConfig_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .newBuilder( + (com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig) + streamingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + streamingConfig_ = value; + } + onChanged(); + } else { + if (streamingConfigCase_ == 4) { + explicitContentDetectionConfigBuilder_.mergeFrom(value); + } + explicitContentDetectionConfigBuilder_.setMessage(value); + } + streamingConfigCase_ = 4; + return this; + } + /** + * + * + *
+     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public Builder clearExplicitContentDetectionConfig() { + if (explicitContentDetectionConfigBuilder_ == null) { + if (streamingConfigCase_ == 4) { + streamingConfigCase_ = 0; + streamingConfig_ = null; + onChanged(); + } + } else { + if (streamingConfigCase_ == 4) { + streamingConfigCase_ = 0; + streamingConfig_ = null; + } + explicitContentDetectionConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .Builder + getExplicitContentDetectionConfigBuilder() { + return getExplicitContentDetectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfigOrBuilder + getExplicitContentDetectionConfigOrBuilder() { + if ((streamingConfigCase_ == 4) && (explicitContentDetectionConfigBuilder_ != null)) { + return explicitContentDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + if (streamingConfigCase_ == 4) { + return (com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .Builder, + com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfigOrBuilder> + getExplicitContentDetectionConfigFieldBuilder() { + if (explicitContentDetectionConfigBuilder_ == null) { + if (!(streamingConfigCase_ == 4)) { + streamingConfig_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .getDefaultInstance(); + } + explicitContentDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .Builder, + com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfigOrBuilder>( + (com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig) + streamingConfig_, + getParentForChildren(), + isClean()); + streamingConfig_ = null; + } + streamingConfigCase_ = 4; + onChanged(); + ; + return explicitContentDetectionConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder> + objectTrackingConfigBuilder_; + /** + * + * + *
+     * Config for STREAMING_OBJECT_TRACKING.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public boolean hasObjectTrackingConfig() { + return streamingConfigCase_ == 5; + } + /** + * + * + *
+     * Config for STREAMING_OBJECT_TRACKING.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + getObjectTrackingConfig() { + if (objectTrackingConfigBuilder_ == null) { + if (streamingConfigCase_ == 5) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .getDefaultInstance(); + } else { + if (streamingConfigCase_ == 5) { + return objectTrackingConfigBuilder_.getMessage(); + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Config for STREAMING_OBJECT_TRACKING.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public Builder setObjectTrackingConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig value) { + if (objectTrackingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamingConfig_ = value; + onChanged(); + } else { + objectTrackingConfigBuilder_.setMessage(value); + } + streamingConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Config for STREAMING_OBJECT_TRACKING.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public Builder setObjectTrackingConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder + builderForValue) { + if (objectTrackingConfigBuilder_ == null) { + streamingConfig_ = builderForValue.build(); + onChanged(); + } else { + objectTrackingConfigBuilder_.setMessage(builderForValue.build()); + } + streamingConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Config for STREAMING_OBJECT_TRACKING.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public Builder mergeObjectTrackingConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig value) { + if (objectTrackingConfigBuilder_ == null) { + if (streamingConfigCase_ == 5 + && streamingConfig_ + != com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .getDefaultInstance()) { + streamingConfig_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.newBuilder( + (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + streamingConfig_ = value; + } + onChanged(); + } else { + if (streamingConfigCase_ == 5) { + objectTrackingConfigBuilder_.mergeFrom(value); + } + objectTrackingConfigBuilder_.setMessage(value); + } + streamingConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Config for STREAMING_OBJECT_TRACKING.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public Builder clearObjectTrackingConfig() { + if (objectTrackingConfigBuilder_ == null) { + if (streamingConfigCase_ == 5) { + streamingConfigCase_ = 0; + streamingConfig_ = null; + onChanged(); + } + } else { + if (streamingConfigCase_ == 5) { + streamingConfigCase_ = 0; + streamingConfig_ = null; + } + objectTrackingConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Config for STREAMING_OBJECT_TRACKING.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder + getObjectTrackingConfigBuilder() { + return getObjectTrackingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Config for STREAMING_OBJECT_TRACKING.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder + getObjectTrackingConfigOrBuilder() { + if ((streamingConfigCase_ == 5) && (objectTrackingConfigBuilder_ != null)) { + return objectTrackingConfigBuilder_.getMessageOrBuilder(); + } else { + if (streamingConfigCase_ == 5) { + return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_; + } + return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Config for STREAMING_OBJECT_TRACKING.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder> + getObjectTrackingConfigFieldBuilder() { + if (objectTrackingConfigBuilder_ == null) { + if (!(streamingConfigCase_ == 5)) { + streamingConfig_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .getDefaultInstance(); + } + objectTrackingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1 + .StreamingObjectTrackingConfigOrBuilder>( + (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_, + getParentForChildren(), + isClean()); + streamingConfig_ = null; + } + streamingConfigCase_ = 5; + onChanged(); + ; + return objectTrackingConfigBuilder_; + } + + private com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storageConfig_ = + null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder> + storageConfigBuilder_; + /** + * + * + *
+     * Streaming storage option. By default: storage is disabled.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public boolean hasStorageConfig() { + return storageConfigBuilder_ != null || storageConfig_ != null; + } + /** + * + * + *
+     * Streaming storage option. By default: storage is disabled.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig() { + if (storageConfigBuilder_ == null) { + return storageConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig + .getDefaultInstance() + : storageConfig_; + } else { + return storageConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Streaming storage option. By default: storage is disabled.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public Builder setStorageConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig value) { + if (storageConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storageConfig_ = value; + onChanged(); + } else { + storageConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Streaming storage option. By default: storage is disabled.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public Builder setStorageConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder + builderForValue) { + if (storageConfigBuilder_ == null) { + storageConfig_ = builderForValue.build(); + onChanged(); + } else { + storageConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Streaming storage option. By default: storage is disabled.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public Builder mergeStorageConfig( + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig value) { + if (storageConfigBuilder_ == null) { + if (storageConfig_ != null) { + storageConfig_ = + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.newBuilder( + storageConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + storageConfig_ = value; + } + onChanged(); + } else { + storageConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Streaming storage option. By default: storage is disabled.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public Builder clearStorageConfig() { + if (storageConfigBuilder_ == null) { + storageConfig_ = null; + onChanged(); + } else { + storageConfig_ = null; + storageConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Streaming storage option. By default: storage is disabled.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder + getStorageConfigBuilder() { + + onChanged(); + return getStorageConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Streaming storage option. By default: storage is disabled.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder + getStorageConfigOrBuilder() { + if (storageConfigBuilder_ != null) { + return storageConfigBuilder_.getMessageOrBuilder(); + } else { + return storageConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig + .getDefaultInstance() + : storageConfig_; + } + } + /** + * + * + *
+     * Streaming storage option. By default: storage is disabled.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder> + getStorageConfigFieldBuilder() { + if (storageConfigBuilder_ == null) { + storageConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig, + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder>( + getStorageConfig(), getParentForChildren(), isClean()); + storageConfig_ = null; + } + return storageConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + private static final com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingVideoConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingVideoConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfigOrBuilder.java new file mode 100644 index 000000000000..a8e7792a5edf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfigOrBuilder.java @@ -0,0 +1,225 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface StreamingVideoConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Requested annotation feature.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + */ + int getFeatureValue(); + /** + * + * + *
+   * Requested annotation feature.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature(); + + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + boolean hasShotChangeDetectionConfig(); + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + getShotChangeDetectionConfig(); + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfigOrBuilder + getShotChangeDetectionConfigOrBuilder(); + + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + boolean hasLabelDetectionConfig(); + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + getLabelDetectionConfig(); + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder + getLabelDetectionConfigOrBuilder(); + + /** + * + * + *
+   * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + boolean hasExplicitContentDetectionConfig(); + /** + * + * + *
+   * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + getExplicitContentDetectionConfig(); + /** + * + * + *
+   * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfigOrBuilder + getExplicitContentDetectionConfigOrBuilder(); + + /** + * + * + *
+   * Config for STREAMING_OBJECT_TRACKING.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + boolean hasObjectTrackingConfig(); + /** + * + * + *
+   * Config for STREAMING_OBJECT_TRACKING.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + getObjectTrackingConfig(); + /** + * + * + *
+   * Config for STREAMING_OBJECT_TRACKING.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder + getObjectTrackingConfigOrBuilder(); + + /** + * + * + *
+   * Streaming storage option. By default: storage is disabled.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + boolean hasStorageConfig(); + /** + * + * + *
+   * Streaming storage option. By default: storage is disabled.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig(); + /** + * + * + *
+   * Streaming storage option. By default: storage is disabled.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; + * + */ + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder + getStorageConfigOrBuilder(); + + public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.StreamingConfigCase + getStreamingConfigCase(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java new file mode 100644 index 000000000000..a9097a4ed6a8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java @@ -0,0 +1,1116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Annotations related to one detected OCR text snippet. This will contain the
+ * corresponding text, confidence value, and frame level information for each
+ * detection.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.TextAnnotation} + */ +public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.TextAnnotation) + TextAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextAnnotation.newBuilder() to construct. + private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextAnnotation() { + text_ = ""; + segments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + segments_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.TextSegment>(); + mutable_bitField0_ |= 0x00000002; + } + segments_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.TextSegment.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder.class); + } + + private int bitField0_; + public static final int TEXT_FIELD_NUMBER = 1; + private volatile java.lang.Object text_; + /** + * + * + *
+   * The detected text.
+   * 
+ * + * string text = 1; + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + /** + * + * + *
+   * The detected text.
+   * 
+ * + * string text = 1; + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEGMENTS_FIELD_NUMBER = 2; + private java.util.List segments_; + /** + * + * + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public java.util.List + getSegmentsList() { + return segments_; + } + /** + * + * + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public java.util.List + getSegmentsOrBuilderList() { + return segments_; + } + /** + * + * + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public int getSegmentsCount() { + return segments_.size(); + } + /** + * + * + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextSegment getSegments(int index) { + return segments_.get(index); + } + /** + * + * + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextSegmentOrBuilder getSegmentsOrBuilder( + int index) { + return segments_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); + } + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(2, segments_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); + } + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, segments_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.TextAnnotation)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation other = + (com.google.cloud.videointelligence.v1p3beta1.TextAnnotation) obj; + + boolean result = true; + result = result && getText().equals(other.getText()); + result = result && getSegmentsList().equals(other.getSegmentsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + if (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Annotations related to one detected OCR text snippet. This will contain the
+   * corresponding text, confidence value, and frame level information for each
+   * detection.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.TextAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.TextAnnotation) + com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSegmentsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + text_ = ""; + + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + segmentsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotation getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotation build() { + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotation buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation result = + new com.google.cloud.videointelligence.v1p3beta1.TextAnnotation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.text_ = text_; + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.TextAnnotation) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.TextAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.TextAnnotation other) { + if (other == com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.getDefaultInstance()) + return this; + if (!other.getText().isEmpty()) { + text_ = other.text_; + onChanged(); + } + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000002); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSegmentsFieldBuilder() + : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.TextAnnotation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object text_ = ""; + /** + * + * + *
+     * The detected text.
+     * 
+ * + * string text = 1; + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The detected text.
+     * 
+ * + * string text = 1; + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The detected text.
+     * 
+ * + * string text = 1; + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + text_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The detected text.
+     * 
+ * + * string text = 1; + */ + public Builder clearText() { + + text_ = getDefaultInstance().getText(); + onChanged(); + return this; + } + /** + * + * + *
+     * The detected text.
+     * 
+ * + * string text = 1; + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + text_ = value; + onChanged(); + return this; + } + + private java.util.List segments_ = + java.util.Collections.emptyList(); + + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + segments_ = + new java.util.ArrayList( + segments_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextSegment, + com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextSegmentOrBuilder> + segmentsBuilder_; + + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public java.util.List + getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextSegment getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1p3beta1.TextSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public Builder setSegments( + int index, + com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public Builder addSegments(com.google.cloud.videointelligence.v1p3beta1.TextSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1p3beta1.TextSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public Builder addSegments( + com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public Builder addSegments( + int index, + com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public Builder addAllSegments( + java.lang.Iterable + values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder getSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextSegmentOrBuilder getSegmentsOrBuilder( + int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.TextSegmentOrBuilder> + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder addSegmentsBuilder() { + return getSegmentsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.TextSegment.getDefaultInstance()); + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder addSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1p3beta1.TextSegment.getDefaultInstance()); + } + /** + * + * + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + public java.util.List + getSegmentsBuilderList() { + return getSegmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextSegment, + com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextSegmentOrBuilder> + getSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextSegment, + com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextSegmentOrBuilder>( + segments_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.TextAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.TextAnnotation) + private static final com.google.cloud.videointelligence.v1p3beta1.TextAnnotation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.TextAnnotation(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextAnnotation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotationOrBuilder.java new file mode 100644 index 000000000000..2d92facb55bf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotationOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface TextAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.TextAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The detected text.
+   * 
+ * + * string text = 1; + */ + java.lang.String getText(); + /** + * + * + *
+   * The detected text.
+   * 
+ * + * string text = 1; + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + java.util.List getSegmentsList(); + /** + * + * + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + com.google.cloud.videointelligence.v1p3beta1.TextSegment getSegments(int index); + /** + * + * + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + int getSegmentsCount(); + /** + * + * + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + java.util.List + getSegmentsOrBuilderList(); + /** + * + * + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextSegment segments = 2; + */ + com.google.cloud.videointelligence.v1p3beta1.TextSegmentOrBuilder getSegmentsOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfig.java new file mode 100644 index 000000000000..c34fb19b4410 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfig.java @@ -0,0 +1,729 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Config for TEXT_DETECTION.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.TextDetectionConfig} + */ +public final class TextDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.TextDetectionConfig) + TextDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextDetectionConfig.newBuilder() to construct. + private TextDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextDetectionConfig() { + languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + languageHints_ = languageHints_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder.class); + } + + public static final int LANGUAGE_HINTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList languageHints_; + /** + * + * + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + return languageHints_; + } + /** + * + * + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + public int getLanguageHintsCount() { + return languageHints_.size(); + } + /** + * + * + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + public java.lang.String getLanguageHints(int index) { + return languageHints_.get(index); + } + /** + * + * + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + return languageHints_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < languageHints_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageHints_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < languageHints_.size(); i++) { + dataSize += computeStringSizeNoTag(languageHints_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguageHintsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig other = + (com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig) obj; + + boolean result = true; + result = result && getLanguageHintsList().equals(other.getLanguageHintsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLanguageHintsCount() > 0) { + hash = (37 * hash) + LANGUAGE_HINTS_FIELD_NUMBER; + hash = (53 * hash) + getLanguageHintsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.TextDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.TextDetectionConfig) + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig build() { + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig result = + new com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + languageHints_ = languageHints_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.languageHints_ = languageHints_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.getDefaultInstance()) + return this; + if (!other.languageHints_.isEmpty()) { + if (languageHints_.isEmpty()) { + languageHints_ = other.languageHints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLanguageHintsIsMutable(); + languageHints_.addAll(other.languageHints_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList languageHints_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLanguageHintsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public com.google.protobuf.ProtocolStringList getLanguageHintsList() { + return languageHints_.getUnmodifiableView(); + } + /** + * + * + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public int getLanguageHintsCount() { + return languageHints_.size(); + } + /** + * + * + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public java.lang.String getLanguageHints(int index) { + return languageHints_.get(index); + } + /** + * + * + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { + return languageHints_.getByteString(index); + } + /** + * + * + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public Builder setLanguageHints(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); + languageHints_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public Builder addLanguageHints(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); + languageHints_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public Builder addAllLanguageHints(java.lang.Iterable values) { + ensureLanguageHintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageHints_); + onChanged(); + return this; + } + /** + * + * + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public Builder clearLanguageHints() { + languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguageHintsIsMutable(); + languageHints_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.TextDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.TextDetectionConfig) + private static final com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..719afb9f910f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfigOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface TextDetectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.TextDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + java.util.List getLanguageHintsList(); + /** + * + * + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + int getLanguageHintsCount(); + /** + * + * + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + java.lang.String getLanguageHints(int index); + /** + * + * + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + com.google.protobuf.ByteString getLanguageHintsBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrame.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrame.java new file mode 100644 index 000000000000..38a046ea72d5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrame.java @@ -0,0 +1,1008 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video frame level annotation results for text annotation (OCR).
+ * Contains information regarding timestamp and bounding box locations for the
+ * frames containing detected OCR text snippets.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.TextFrame} + */ +public final class TextFrame extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.TextFrame) + TextFrameOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextFrame.newBuilder() to construct. + private TextFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextFrame() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.Builder + subBuilder = null; + if (rotatedBoundingBox_ != null) { + subBuilder = rotatedBoundingBox_.toBuilder(); + } + rotatedBoundingBox_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rotatedBoundingBox_); + rotatedBoundingBox_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.TextFrame.class, + com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder.class); + } + + public static final int ROTATED_BOUNDING_BOX_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotatedBoundingBox_; + /** + * + * + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public boolean hasRotatedBoundingBox() { + return rotatedBoundingBox_ != null; + } + /** + * + * + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + getRotatedBoundingBox() { + return rotatedBoundingBox_ == null + ? com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.getDefaultInstance() + : rotatedBoundingBox_; + } + /** + * + * + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPolyOrBuilder + getRotatedBoundingBoxOrBuilder() { + return getRotatedBoundingBox(); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 2; + private com.google.protobuf.Duration timeOffset_; + /** + * + * + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public boolean hasTimeOffset() { + return timeOffset_ != null; + } + /** + * + * + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration getTimeOffset() { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + /** + * + * + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + return getTimeOffset(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rotatedBoundingBox_ != null) { + output.writeMessage(1, getRotatedBoundingBox()); + } + if (timeOffset_ != null) { + output.writeMessage(2, getTimeOffset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rotatedBoundingBox_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRotatedBoundingBox()); + } + if (timeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeOffset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.TextFrame)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.TextFrame other = + (com.google.cloud.videointelligence.v1p3beta1.TextFrame) obj; + + boolean result = true; + result = result && (hasRotatedBoundingBox() == other.hasRotatedBoundingBox()); + if (hasRotatedBoundingBox()) { + result = result && getRotatedBoundingBox().equals(other.getRotatedBoundingBox()); + } + result = result && (hasTimeOffset() == other.hasTimeOffset()); + if (hasTimeOffset()) { + result = result && getTimeOffset().equals(other.getTimeOffset()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRotatedBoundingBox()) { + hash = (37 * hash) + ROTATED_BOUNDING_BOX_FIELD_NUMBER; + hash = (53 * hash) + getRotatedBoundingBox().hashCode(); + } + if (hasTimeOffset()) { + hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTimeOffset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.TextFrame prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video frame level annotation results for text annotation (OCR).
+   * Contains information regarding timestamp and bounding box locations for the
+   * frames containing detected OCR text snippets.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.TextFrame} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.TextFrame) + com.google.cloud.videointelligence.v1p3beta1.TextFrameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.TextFrame.class, + com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.TextFrame.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (rotatedBoundingBoxBuilder_ == null) { + rotatedBoundingBox_ = null; + } else { + rotatedBoundingBox_ = null; + rotatedBoundingBoxBuilder_ = null; + } + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextFrame getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.TextFrame.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextFrame build() { + com.google.cloud.videointelligence.v1p3beta1.TextFrame result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextFrame buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.TextFrame result = + new com.google.cloud.videointelligence.v1p3beta1.TextFrame(this); + if (rotatedBoundingBoxBuilder_ == null) { + result.rotatedBoundingBox_ = rotatedBoundingBox_; + } else { + result.rotatedBoundingBox_ = rotatedBoundingBoxBuilder_.build(); + } + if (timeOffsetBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = timeOffsetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.TextFrame) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.TextFrame) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.TextFrame other) { + if (other == com.google.cloud.videointelligence.v1p3beta1.TextFrame.getDefaultInstance()) + return this; + if (other.hasRotatedBoundingBox()) { + mergeRotatedBoundingBox(other.getRotatedBoundingBox()); + } + if (other.hasTimeOffset()) { + mergeTimeOffset(other.getTimeOffset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.TextFrame parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.TextFrame) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + rotatedBoundingBox_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.Builder, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPolyOrBuilder> + rotatedBoundingBoxBuilder_; + /** + * + * + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public boolean hasRotatedBoundingBox() { + return rotatedBoundingBoxBuilder_ != null || rotatedBoundingBox_ != null; + } + /** + * + * + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + getRotatedBoundingBox() { + if (rotatedBoundingBoxBuilder_ == null) { + return rotatedBoundingBox_ == null + ? com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + .getDefaultInstance() + : rotatedBoundingBox_; + } else { + return rotatedBoundingBoxBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public Builder setRotatedBoundingBox( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly value) { + if (rotatedBoundingBoxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rotatedBoundingBox_ = value; + onChanged(); + } else { + rotatedBoundingBoxBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public Builder setRotatedBoundingBox( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.Builder + builderForValue) { + if (rotatedBoundingBoxBuilder_ == null) { + rotatedBoundingBox_ = builderForValue.build(); + onChanged(); + } else { + rotatedBoundingBoxBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public Builder mergeRotatedBoundingBox( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly value) { + if (rotatedBoundingBoxBuilder_ == null) { + if (rotatedBoundingBox_ != null) { + rotatedBoundingBox_ = + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.newBuilder( + rotatedBoundingBox_) + .mergeFrom(value) + .buildPartial(); + } else { + rotatedBoundingBox_ = value; + } + onChanged(); + } else { + rotatedBoundingBoxBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public Builder clearRotatedBoundingBox() { + if (rotatedBoundingBoxBuilder_ == null) { + rotatedBoundingBox_ = null; + onChanged(); + } else { + rotatedBoundingBox_ = null; + rotatedBoundingBoxBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.Builder + getRotatedBoundingBoxBuilder() { + + onChanged(); + return getRotatedBoundingBoxFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPolyOrBuilder + getRotatedBoundingBoxOrBuilder() { + if (rotatedBoundingBoxBuilder_ != null) { + return rotatedBoundingBoxBuilder_.getMessageOrBuilder(); + } else { + return rotatedBoundingBox_ == null + ? com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly + .getDefaultInstance() + : rotatedBoundingBox_; + } + } + /** + * + * + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.Builder, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPolyOrBuilder> + getRotatedBoundingBoxFieldBuilder() { + if (rotatedBoundingBoxBuilder_ == null) { + rotatedBoundingBoxBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.Builder, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPolyOrBuilder>( + getRotatedBoundingBox(), getParentForChildren(), isClean()); + rotatedBoundingBox_ = null; + } + return rotatedBoundingBoxBuilder_; + } + + private com.google.protobuf.Duration timeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeOffsetBuilder_; + /** + * + * + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public boolean hasTimeOffset() { + return timeOffsetBuilder_ != null || timeOffset_ != null; + } + /** + * + * + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration getTimeOffset() { + if (timeOffsetBuilder_ == null) { + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; + } else { + return timeOffsetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder setTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + timeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { + if (timeOffsetBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + timeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder mergeTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (timeOffset_ != null) { + timeOffset_ = + com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + timeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder clearTimeOffset() { + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + onChanged(); + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { + + onChanged(); + return getTimeOffsetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + if (timeOffsetBuilder_ != null) { + return timeOffsetBuilder_.getMessageOrBuilder(); + } else { + return timeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeOffset_; + } + } + /** + * + * + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTimeOffsetFieldBuilder() { + if (timeOffsetBuilder_ == null) { + timeOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTimeOffset(), getParentForChildren(), isClean()); + timeOffset_ = null; + } + return timeOffsetBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.TextFrame) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.TextFrame) + private static final com.google.cloud.videointelligence.v1p3beta1.TextFrame DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.TextFrame(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextFrame getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextFrame(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextFrame getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrameOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrameOrBuilder.java new file mode 100644 index 000000000000..f926925c9f09 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrameOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface TextFrameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.TextFrame) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + boolean hasRotatedBoundingBox(); + /** + * + * + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly getRotatedBoundingBox(); + /** + * + * + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPolyOrBuilder + getRotatedBoundingBoxOrBuilder(); + + /** + * + * + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + boolean hasTimeOffset(); + /** + * + * + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + com.google.protobuf.Duration getTimeOffset(); + /** + * + * + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegment.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegment.java new file mode 100644 index 000000000000..742e55514d6c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegment.java @@ -0,0 +1,1301 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video segment level annotation results for text detection.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.TextSegment} + */ +public final class TextSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.TextSegment) + TextSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextSegment.newBuilder() to construct. + private TextSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextSegment() { + confidence_ = 0F; + frames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder subBuilder = null; + if (segment_ != null) { + subBuilder = segment_.toBuilder(); + } + segment_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segment_); + segment_ = subBuilder.buildPartial(); + } + + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.TextFrame>(); + mutable_bitField0_ |= 0x00000004; + } + frames_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.TextFrame.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.TextSegment.class, + com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder.class); + } + + private int bitField0_; + public static final int SEGMENT_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_; + /** + * + * + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public boolean hasSegment() { + return segment_ != null; + } + /** + * + * + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } + /** + * + * + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + return getSegment(); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 2; + private float confidence_; + /** + * + * + *
+   * Confidence for the track of detected text. It is calculated as the highest
+   * over all frames where OCR detected text appears.
+   * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + + public static final int FRAMES_FIELD_NUMBER = 3; + private java.util.List frames_; + /** + * + * + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public java.util.List getFramesList() { + return frames_; + } + /** + * + * + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public java.util.List + getFramesOrBuilderList() { + return frames_; + } + /** + * + * + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public int getFramesCount() { + return frames_.size(); + } + /** + * + * + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextFrame getFrames(int index) { + return frames_.get(index); + } + /** + * + * + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextFrameOrBuilder getFramesOrBuilder( + int index) { + return frames_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (segment_ != null) { + output.writeMessage(1, getSegment()); + } + if (confidence_ != 0F) { + output.writeFloat(2, confidence_); + } + for (int i = 0; i < frames_.size(); i++) { + output.writeMessage(3, frames_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (segment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegment()); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + } + for (int i = 0; i < frames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, frames_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.TextSegment)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.TextSegment other = + (com.google.cloud.videointelligence.v1p3beta1.TextSegment) obj; + + boolean result = true; + result = result && (hasSegment() == other.hasSegment()); + if (hasSegment()) { + result = result && getSegment().equals(other.getSegment()); + } + result = + result + && (java.lang.Float.floatToIntBits(getConfidence()) + == java.lang.Float.floatToIntBits(other.getConfidence())); + result = result && getFramesList().equals(other.getFramesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + if (getFramesCount() > 0) { + hash = (37 * hash) + FRAMES_FIELD_NUMBER; + hash = (53 * hash) + getFramesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.TextSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video segment level annotation results for text detection.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.TextSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.TextSegment) + com.google.cloud.videointelligence.v1p3beta1.TextSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.TextSegment.class, + com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.TextSegment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFramesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (segmentBuilder_ == null) { + segment_ = null; + } else { + segment_ = null; + segmentBuilder_ = null; + } + confidence_ = 0F; + + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + framesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextSegment getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.TextSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextSegment build() { + com.google.cloud.videointelligence.v1p3beta1.TextSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextSegment buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.TextSegment result = + new com.google.cloud.videointelligence.v1p3beta1.TextSegment(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (segmentBuilder_ == null) { + result.segment_ = segment_; + } else { + result.segment_ = segmentBuilder_.build(); + } + result.confidence_ = confidence_; + if (framesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.frames_ = frames_; + } else { + result.frames_ = framesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.TextSegment) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.TextSegment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.TextSegment other) { + if (other == com.google.cloud.videointelligence.v1p3beta1.TextSegment.getDefaultInstance()) + return this; + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + if (framesBuilder_ == null) { + if (!other.frames_.isEmpty()) { + if (frames_.isEmpty()) { + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFramesIsMutable(); + frames_.addAll(other.frames_); + } + onChanged(); + } + } else { + if (!other.frames_.isEmpty()) { + if (framesBuilder_.isEmpty()) { + framesBuilder_.dispose(); + framesBuilder_ = null; + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000004); + framesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFramesFieldBuilder() + : null; + } else { + framesBuilder_.addAllMessages(other.frames_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.TextSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.TextSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + segmentBuilder_; + /** + * + * + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public boolean hasSegment() { + return segmentBuilder_ != null || segment_ != null; + } + /** + * + * + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public Builder setSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + onChanged(); + } else { + segmentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public Builder setSegment( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + onChanged(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public Builder mergeSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (segment_ != null) { + segment_ = + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.newBuilder(segment_) + .mergeFrom(value) + .buildPartial(); + } else { + segment_ = value; + } + onChanged(); + } else { + segmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public Builder clearSegment() { + if (segmentBuilder_ == null) { + segment_ = null; + onChanged(); + } else { + segment_ = null; + segmentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegmentBuilder() { + + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder + getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } + } + /** + * + * + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( + getSegment(), getParentForChildren(), isClean()); + segment_ = null; + } + return segmentBuilder_; + } + + private float confidence_; + /** + * + * + *
+     * Confidence for the track of detected text. It is calculated as the highest
+     * over all frames where OCR detected text appears.
+     * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + /** + * + * + *
+     * Confidence for the track of detected text. It is calculated as the highest
+     * over all frames where OCR detected text appears.
+     * 
+ * + * float confidence = 2; + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence for the track of detected text. It is calculated as the highest
+     * over all frames where OCR detected text appears.
+     * 
+ * + * float confidence = 2; + */ + public Builder clearConfidence() { + + confidence_ = 0F; + onChanged(); + return this; + } + + private java.util.List frames_ = + java.util.Collections.emptyList(); + + private void ensureFramesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = + new java.util.ArrayList( + frames_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextFrame, + com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextFrameOrBuilder> + framesBuilder_; + + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public java.util.List getFramesList() { + if (framesBuilder_ == null) { + return java.util.Collections.unmodifiableList(frames_); + } else { + return framesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public int getFramesCount() { + if (framesBuilder_ == null) { + return frames_.size(); + } else { + return framesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextFrame getFrames(int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p3beta1.TextFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.set(index, value); + onChanged(); + } else { + framesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.set(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public Builder addFrames(com.google.cloud.videointelligence.v1p3beta1.TextFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(value); + onChanged(); + } else { + framesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p3beta1.TextFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(index, value); + onChanged(); + } else { + framesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public Builder addFrames( + com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public Builder addAllFrames( + java.lang.Iterable + values) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frames_); + onChanged(); + } else { + framesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public Builder clearFrames() { + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + framesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public Builder removeFrames(int index) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.remove(index); + onChanged(); + } else { + framesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder getFramesBuilder( + int index) { + return getFramesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextFrameOrBuilder getFramesOrBuilder( + int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public java.util.List + getFramesOrBuilderList() { + if (framesBuilder_ != null) { + return framesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frames_); + } + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder addFramesBuilder() { + return getFramesFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1p3beta1.TextFrame.getDefaultInstance()); + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder addFramesBuilder( + int index) { + return getFramesFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1p3beta1.TextFrame.getDefaultInstance()); + } + /** + * + * + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + public java.util.List + getFramesBuilderList() { + return getFramesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextFrame, + com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextFrameOrBuilder> + getFramesFieldBuilder() { + if (framesBuilder_ == null) { + framesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextFrame, + com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextFrameOrBuilder>( + frames_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + frames_ = null; + } + return framesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.TextSegment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.TextSegment) + private static final com.google.cloud.videointelligence.v1p3beta1.TextSegment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.TextSegment(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.TextSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSegment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.TextSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegmentOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegmentOrBuilder.java new file mode 100644 index 000000000000..ee05e74dadf8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegmentOrBuilder.java @@ -0,0 +1,105 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface TextSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.TextSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + boolean hasSegment(); + /** + * + * + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); + /** + * + * + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder(); + + /** + * + * + *
+   * Confidence for the track of detected text. It is calculated as the highest
+   * over all frames where OCR detected text appears.
+   * 
+ * + * float confidence = 2; + */ + float getConfidence(); + + /** + * + * + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + java.util.List getFramesList(); + /** + * + * + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + com.google.cloud.videointelligence.v1p3beta1.TextFrame getFrames(int index); + /** + * + * + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + int getFramesCount(); + /** + * + * + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + java.util.List + getFramesOrBuilderList(); + /** + * + * + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3; + */ + com.google.cloud.videointelligence.v1p3beta1.TextFrameOrBuilder getFramesOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java new file mode 100644 index 000000000000..4ae3f57419d5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java @@ -0,0 +1,1220 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Annotation progress for a single video.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress} + */ +public final class VideoAnnotationProgress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress) + VideoAnnotationProgressOrBuilder { + private static final long serialVersionUID = 0L; + // Use VideoAnnotationProgress.newBuilder() to construct. + private VideoAnnotationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VideoAnnotationProgress() { + inputUri_ = ""; + progressPercent_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VideoAnnotationProgress( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 16: + { + progressPercent_ = input.readInt32(); + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.class, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder.class); + } + + public static final int INPUT_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object inputUri_; + /** + * + * + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } + } + /** + * + * + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_PERCENT_FIELD_NUMBER = 2; + private int progressPercent_; + /** + * + * + *
+   * Approximate percentage processed thus far. Guaranteed to be
+   * 100 when fully processed.
+   * 
+ * + * int32 progress_percent = 2; + */ + public int getProgressPercent() { + return progressPercent_; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); + } + if (progressPercent_ != 0) { + output.writeInt32(2, progressPercent_); + } + if (startTime_ != null) { + output.writeMessage(3, getStartTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); + } + if (progressPercent_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, progressPercent_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress other = + (com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress) obj; + + boolean result = true; + result = result && getInputUri().equals(other.getInputUri()); + result = result && (getProgressPercent() == other.getProgressPercent()); + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime()) { + result = result && getUpdateTime().equals(other.getUpdateTime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; + hash = (53 * hash) + getProgressPercent(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Annotation progress for a single video.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress) + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.class, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + inputUri_ = ""; + + progressPercent_ = 0; + + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress build() { + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress result = + new com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress(this); + result.inputUri_ = inputUri_; + result.progressPercent_ = progressPercent_; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + .getDefaultInstance()) return this; + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.getProgressPercent() != 0) { + setProgressPercent(other.getProgressPercent()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object inputUri_ = ""; + /** + * + * + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private int progressPercent_; + /** + * + * + *
+     * Approximate percentage processed thus far. Guaranteed to be
+     * 100 when fully processed.
+     * 
+ * + * int32 progress_percent = 2; + */ + public int getProgressPercent() { + return progressPercent_; + } + /** + * + * + *
+     * Approximate percentage processed thus far. Guaranteed to be
+     * 100 when fully processed.
+     * 
+ * + * int32 progress_percent = 2; + */ + public Builder setProgressPercent(int value) { + + progressPercent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Approximate percentage processed thus far. Guaranteed to be
+     * 100 when fully processed.
+     * 
+ * + * int32 progress_percent = 2; + */ + public Builder clearProgressPercent() { + + progressPercent_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress) + private static final com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoAnnotationProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoAnnotationProgress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java new file mode 100644 index 000000000000..b5037584448e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java @@ -0,0 +1,107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface VideoAnnotationProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + java.lang.String getInputUri(); + /** + * + * + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + com.google.protobuf.ByteString getInputUriBytes(); + + /** + * + * + *
+   * Approximate percentage processed thus far. Guaranteed to be
+   * 100 when fully processed.
+   * 
+ * + * int32 progress_percent = 2; + */ + int getProgressPercent(); + + /** + * + * + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + boolean hasStartTime(); + /** + * + * + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java new file mode 100644 index 000000000000..84fd88448bcb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java @@ -0,0 +1,4645 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Annotation results for a single video.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults} + */ +public final class VideoAnnotationResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults) + VideoAnnotationResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use VideoAnnotationResults.newBuilder() to construct. + private VideoAnnotationResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VideoAnnotationResults() { + inputUri_ = ""; + segmentLabelAnnotations_ = java.util.Collections.emptyList(); + shotLabelAnnotations_ = java.util.Collections.emptyList(); + frameLabelAnnotations_ = java.util.Collections.emptyList(); + shotAnnotations_ = java.util.Collections.emptyList(); + textAnnotations_ = java.util.Collections.emptyList(); + objectAnnotations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VideoAnnotationResults( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + segmentLabelAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); + mutable_bitField0_ |= 0x00000002; + } + segmentLabelAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.parser(), + extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + shotLabelAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); + mutable_bitField0_ |= 0x00000004; + } + shotLabelAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.parser(), + extensionRegistry)); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + frameLabelAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); + mutable_bitField0_ |= 0x00000008; + } + frameLabelAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.parser(), + extensionRegistry)); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + shotAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment>(); + mutable_bitField0_ |= 0x00000010; + } + shotAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), + extensionRegistry)); + break; + } + case 58: + { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder + subBuilder = null; + if (explicitAnnotation_ != null) { + subBuilder = explicitAnnotation_.toBuilder(); + } + explicitAnnotation_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(explicitAnnotation_); + explicitAnnotation_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + textAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation>(); + mutable_bitField0_ |= 0x00000040; + } + textAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.parser(), + extensionRegistry)); + break; + } + case 114: + { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + objectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>(); + mutable_bitField0_ |= 0x00000080; + } + objectAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.class, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder.class); + } + + private int bitField0_; + public static final int INPUT_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object inputUri_; + /** + * + * + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } + } + /** + * + * + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEGMENT_LABEL_ANNOTATIONS_FIELD_NUMBER = 2; + private java.util.List + segmentLabelAnnotations_; + /** + * + * + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public java.util.List + getSegmentLabelAnnotationsList() { + return segmentLabelAnnotations_; + } + /** + * + * + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getSegmentLabelAnnotationsOrBuilderList() { + return segmentLabelAnnotations_; + } + /** + * + * + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public int getSegmentLabelAnnotationsCount() { + return segmentLabelAnnotations_.size(); + } + /** + * + * + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnnotations( + int index) { + return segmentLabelAnnotations_.get(index); + } + /** + * + * + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getSegmentLabelAnnotationsOrBuilder(int index) { + return segmentLabelAnnotations_.get(index); + } + + public static final int SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER = 3; + private java.util.List + shotLabelAnnotations_; + /** + * + * + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public java.util.List + getShotLabelAnnotationsList() { + return shotLabelAnnotations_; + } + /** + * + * + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getShotLabelAnnotationsOrBuilderList() { + return shotLabelAnnotations_; + } + /** + * + * + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public int getShotLabelAnnotationsCount() { + return shotLabelAnnotations_.size(); + } + /** + * + * + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getShotLabelAnnotations( + int index) { + return shotLabelAnnotations_.get(index); + } + /** + * + * + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getShotLabelAnnotationsOrBuilder(int index) { + return shotLabelAnnotations_.get(index); + } + + public static final int FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER = 4; + private java.util.List + frameLabelAnnotations_; + /** + * + * + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public java.util.List + getFrameLabelAnnotationsList() { + return frameLabelAnnotations_; + } + /** + * + * + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getFrameLabelAnnotationsOrBuilderList() { + return frameLabelAnnotations_; + } + /** + * + * + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public int getFrameLabelAnnotationsCount() { + return frameLabelAnnotations_.size(); + } + /** + * + * + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getFrameLabelAnnotations( + int index) { + return frameLabelAnnotations_.get(index); + } + /** + * + * + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getFrameLabelAnnotationsOrBuilder(int index) { + return frameLabelAnnotations_.get(index); + } + + public static final int SHOT_ANNOTATIONS_FIELD_NUMBER = 6; + private java.util.List + shotAnnotations_; + /** + * + * + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public java.util.List + getShotAnnotationsList() { + return shotAnnotations_; + } + /** + * + * + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getShotAnnotationsOrBuilderList() { + return shotAnnotations_; + } + /** + * + * + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public int getShotAnnotationsCount() { + return shotAnnotations_.size(); + } + /** + * + * + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index) { + return shotAnnotations_.get(index); + } + /** + * + * + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder + getShotAnnotationsOrBuilder(int index) { + return shotAnnotations_.get(index); + } + + public static final int EXPLICIT_ANNOTATION_FIELD_NUMBER = 7; + private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + explicitAnnotation_; + /** + * + * + *
+   * Explicit content annotation.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public boolean hasExplicitAnnotation() { + return explicitAnnotation_ != null; + } + /** + * + * + *
+   * Explicit content annotation.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + getExplicitAnnotation() { + return explicitAnnotation_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .getDefaultInstance() + : explicitAnnotation_; + } + /** + * + * + *
+   * Explicit content annotation.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder + getExplicitAnnotationOrBuilder() { + return getExplicitAnnotation(); + } + + public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 12; + private java.util.List + textAnnotations_; + /** + * + * + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public java.util.List + getTextAnnotationsList() { + return textAnnotations_; + } + /** + * + * + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder> + getTextAnnotationsOrBuilderList() { + return textAnnotations_; + } + /** + * + * + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public int getTextAnnotationsCount() { + return textAnnotations_.size(); + } + /** + * + * + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotation getTextAnnotations(int index) { + return textAnnotations_.get(index); + } + /** + * + * + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder + getTextAnnotationsOrBuilder(int index) { + return textAnnotations_.get(index); + } + + public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 14; + private java.util.List + objectAnnotations_; + /** + * + * + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public java.util.List + getObjectAnnotationsList() { + return objectAnnotations_; + } + /** + * + * + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList() { + return objectAnnotations_; + } + /** + * + * + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public int getObjectAnnotationsCount() { + return objectAnnotations_.size(); + } + /** + * + * + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectAnnotations( + int index) { + return objectAnnotations_.get(index); + } + /** + * + * + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { + return objectAnnotations_.get(index); + } + + public static final int ERROR_FIELD_NUMBER = 9; + private com.google.rpc.Status error_; + /** + * + * + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + public boolean hasError() { + return error_ != null; + } + /** + * + * + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); + } + for (int i = 0; i < segmentLabelAnnotations_.size(); i++) { + output.writeMessage(2, segmentLabelAnnotations_.get(i)); + } + for (int i = 0; i < shotLabelAnnotations_.size(); i++) { + output.writeMessage(3, shotLabelAnnotations_.get(i)); + } + for (int i = 0; i < frameLabelAnnotations_.size(); i++) { + output.writeMessage(4, frameLabelAnnotations_.get(i)); + } + for (int i = 0; i < shotAnnotations_.size(); i++) { + output.writeMessage(6, shotAnnotations_.get(i)); + } + if (explicitAnnotation_ != null) { + output.writeMessage(7, getExplicitAnnotation()); + } + if (error_ != null) { + output.writeMessage(9, getError()); + } + for (int i = 0; i < textAnnotations_.size(); i++) { + output.writeMessage(12, textAnnotations_.get(i)); + } + for (int i = 0; i < objectAnnotations_.size(); i++) { + output.writeMessage(14, objectAnnotations_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); + } + for (int i = 0; i < segmentLabelAnnotations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, segmentLabelAnnotations_.get(i)); + } + for (int i = 0; i < shotLabelAnnotations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, shotLabelAnnotations_.get(i)); + } + for (int i = 0; i < frameLabelAnnotations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, frameLabelAnnotations_.get(i)); + } + for (int i = 0; i < shotAnnotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, shotAnnotations_.get(i)); + } + if (explicitAnnotation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getExplicitAnnotation()); + } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError()); + } + for (int i = 0; i < textAnnotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, textAnnotations_.get(i)); + } + for (int i = 0; i < objectAnnotations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, objectAnnotations_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults other = + (com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults) obj; + + boolean result = true; + result = result && getInputUri().equals(other.getInputUri()); + result = + result && getSegmentLabelAnnotationsList().equals(other.getSegmentLabelAnnotationsList()); + result = result && getShotLabelAnnotationsList().equals(other.getShotLabelAnnotationsList()); + result = result && getFrameLabelAnnotationsList().equals(other.getFrameLabelAnnotationsList()); + result = result && getShotAnnotationsList().equals(other.getShotAnnotationsList()); + result = result && (hasExplicitAnnotation() == other.hasExplicitAnnotation()); + if (hasExplicitAnnotation()) { + result = result && getExplicitAnnotation().equals(other.getExplicitAnnotation()); + } + result = result && getTextAnnotationsList().equals(other.getTextAnnotationsList()); + result = result && getObjectAnnotationsList().equals(other.getObjectAnnotationsList()); + result = result && (hasError() == other.hasError()); + if (hasError()) { + result = result && getError().equals(other.getError()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (getSegmentLabelAnnotationsCount() > 0) { + hash = (37 * hash) + SEGMENT_LABEL_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentLabelAnnotationsList().hashCode(); + } + if (getShotLabelAnnotationsCount() > 0) { + hash = (37 * hash) + SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getShotLabelAnnotationsList().hashCode(); + } + if (getFrameLabelAnnotationsCount() > 0) { + hash = (37 * hash) + FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getFrameLabelAnnotationsList().hashCode(); + } + if (getShotAnnotationsCount() > 0) { + hash = (37 * hash) + SHOT_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getShotAnnotationsList().hashCode(); + } + if (hasExplicitAnnotation()) { + hash = (37 * hash) + EXPLICIT_ANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + getExplicitAnnotation().hashCode(); + } + if (getTextAnnotationsCount() > 0) { + hash = (37 * hash) + TEXT_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getTextAnnotationsList().hashCode(); + } + if (getObjectAnnotationsCount() > 0) { + hash = (37 * hash) + OBJECT_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getObjectAnnotationsList().hashCode(); + } + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Annotation results for a single video.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults) + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.class, + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSegmentLabelAnnotationsFieldBuilder(); + getShotLabelAnnotationsFieldBuilder(); + getFrameLabelAnnotationsFieldBuilder(); + getShotAnnotationsFieldBuilder(); + getTextAnnotationsFieldBuilder(); + getObjectAnnotationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + inputUri_ = ""; + + if (segmentLabelAnnotationsBuilder_ == null) { + segmentLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + segmentLabelAnnotationsBuilder_.clear(); + } + if (shotLabelAnnotationsBuilder_ == null) { + shotLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + shotLabelAnnotationsBuilder_.clear(); + } + if (frameLabelAnnotationsBuilder_ == null) { + frameLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + frameLabelAnnotationsBuilder_.clear(); + } + if (shotAnnotationsBuilder_ == null) { + shotAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + shotAnnotationsBuilder_.clear(); + } + if (explicitAnnotationBuilder_ == null) { + explicitAnnotation_ = null; + } else { + explicitAnnotation_ = null; + explicitAnnotationBuilder_ = null; + } + if (textAnnotationsBuilder_ == null) { + textAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + textAnnotationsBuilder_.clear(); + } + if (objectAnnotationsBuilder_ == null) { + objectAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + objectAnnotationsBuilder_.clear(); + } + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults build() { + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults result = + new com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.inputUri_ = inputUri_; + if (segmentLabelAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + segmentLabelAnnotations_ = + java.util.Collections.unmodifiableList(segmentLabelAnnotations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.segmentLabelAnnotations_ = segmentLabelAnnotations_; + } else { + result.segmentLabelAnnotations_ = segmentLabelAnnotationsBuilder_.build(); + } + if (shotLabelAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.shotLabelAnnotations_ = shotLabelAnnotations_; + } else { + result.shotLabelAnnotations_ = shotLabelAnnotationsBuilder_.build(); + } + if (frameLabelAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.frameLabelAnnotations_ = frameLabelAnnotations_; + } else { + result.frameLabelAnnotations_ = frameLabelAnnotationsBuilder_.build(); + } + if (shotAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.shotAnnotations_ = shotAnnotations_; + } else { + result.shotAnnotations_ = shotAnnotationsBuilder_.build(); + } + if (explicitAnnotationBuilder_ == null) { + result.explicitAnnotation_ = explicitAnnotation_; + } else { + result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); + } + if (textAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.textAnnotations_ = textAnnotations_; + } else { + result.textAnnotations_ = textAnnotationsBuilder_.build(); + } + if (objectAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.objectAnnotations_ = objectAnnotations_; + } else { + result.objectAnnotations_ = objectAnnotationsBuilder_.build(); + } + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults + .getDefaultInstance()) return this; + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (segmentLabelAnnotationsBuilder_ == null) { + if (!other.segmentLabelAnnotations_.isEmpty()) { + if (segmentLabelAnnotations_.isEmpty()) { + segmentLabelAnnotations_ = other.segmentLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.addAll(other.segmentLabelAnnotations_); + } + onChanged(); + } + } else { + if (!other.segmentLabelAnnotations_.isEmpty()) { + if (segmentLabelAnnotationsBuilder_.isEmpty()) { + segmentLabelAnnotationsBuilder_.dispose(); + segmentLabelAnnotationsBuilder_ = null; + segmentLabelAnnotations_ = other.segmentLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000002); + segmentLabelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSegmentLabelAnnotationsFieldBuilder() + : null; + } else { + segmentLabelAnnotationsBuilder_.addAllMessages(other.segmentLabelAnnotations_); + } + } + } + if (shotLabelAnnotationsBuilder_ == null) { + if (!other.shotLabelAnnotations_.isEmpty()) { + if (shotLabelAnnotations_.isEmpty()) { + shotLabelAnnotations_ = other.shotLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.addAll(other.shotLabelAnnotations_); + } + onChanged(); + } + } else { + if (!other.shotLabelAnnotations_.isEmpty()) { + if (shotLabelAnnotationsBuilder_.isEmpty()) { + shotLabelAnnotationsBuilder_.dispose(); + shotLabelAnnotationsBuilder_ = null; + shotLabelAnnotations_ = other.shotLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000004); + shotLabelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getShotLabelAnnotationsFieldBuilder() + : null; + } else { + shotLabelAnnotationsBuilder_.addAllMessages(other.shotLabelAnnotations_); + } + } + } + if (frameLabelAnnotationsBuilder_ == null) { + if (!other.frameLabelAnnotations_.isEmpty()) { + if (frameLabelAnnotations_.isEmpty()) { + frameLabelAnnotations_ = other.frameLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.addAll(other.frameLabelAnnotations_); + } + onChanged(); + } + } else { + if (!other.frameLabelAnnotations_.isEmpty()) { + if (frameLabelAnnotationsBuilder_.isEmpty()) { + frameLabelAnnotationsBuilder_.dispose(); + frameLabelAnnotationsBuilder_ = null; + frameLabelAnnotations_ = other.frameLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000008); + frameLabelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFrameLabelAnnotationsFieldBuilder() + : null; + } else { + frameLabelAnnotationsBuilder_.addAllMessages(other.frameLabelAnnotations_); + } + } + } + if (shotAnnotationsBuilder_ == null) { + if (!other.shotAnnotations_.isEmpty()) { + if (shotAnnotations_.isEmpty()) { + shotAnnotations_ = other.shotAnnotations_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.addAll(other.shotAnnotations_); + } + onChanged(); + } + } else { + if (!other.shotAnnotations_.isEmpty()) { + if (shotAnnotationsBuilder_.isEmpty()) { + shotAnnotationsBuilder_.dispose(); + shotAnnotationsBuilder_ = null; + shotAnnotations_ = other.shotAnnotations_; + bitField0_ = (bitField0_ & ~0x00000010); + shotAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getShotAnnotationsFieldBuilder() + : null; + } else { + shotAnnotationsBuilder_.addAllMessages(other.shotAnnotations_); + } + } + } + if (other.hasExplicitAnnotation()) { + mergeExplicitAnnotation(other.getExplicitAnnotation()); + } + if (textAnnotationsBuilder_ == null) { + if (!other.textAnnotations_.isEmpty()) { + if (textAnnotations_.isEmpty()) { + textAnnotations_ = other.textAnnotations_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureTextAnnotationsIsMutable(); + textAnnotations_.addAll(other.textAnnotations_); + } + onChanged(); + } + } else { + if (!other.textAnnotations_.isEmpty()) { + if (textAnnotationsBuilder_.isEmpty()) { + textAnnotationsBuilder_.dispose(); + textAnnotationsBuilder_ = null; + textAnnotations_ = other.textAnnotations_; + bitField0_ = (bitField0_ & ~0x00000040); + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTextAnnotationsFieldBuilder() + : null; + } else { + textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); + } + } + } + if (objectAnnotationsBuilder_ == null) { + if (!other.objectAnnotations_.isEmpty()) { + if (objectAnnotations_.isEmpty()) { + objectAnnotations_ = other.objectAnnotations_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.addAll(other.objectAnnotations_); + } + onChanged(); + } + } else { + if (!other.objectAnnotations_.isEmpty()) { + if (objectAnnotationsBuilder_.isEmpty()) { + objectAnnotationsBuilder_.dispose(); + objectAnnotationsBuilder_ = null; + objectAnnotations_ = other.objectAnnotations_; + bitField0_ = (bitField0_ & ~0x00000080); + objectAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getObjectAnnotationsFieldBuilder() + : null; + } else { + objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_); + } + } + } + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object inputUri_ = ""; + /** + * + * + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private java.util.List + segmentLabelAnnotations_ = java.util.Collections.emptyList(); + + private void ensureSegmentLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + segmentLabelAnnotations_ = + new java.util.ArrayList( + segmentLabelAnnotations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + segmentLabelAnnotationsBuilder_; + + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public java.util.List + getSegmentLabelAnnotationsList() { + if (segmentLabelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segmentLabelAnnotations_); + } else { + return segmentLabelAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public int getSegmentLabelAnnotationsCount() { + if (segmentLabelAnnotationsBuilder_ == null) { + return segmentLabelAnnotations_.size(); + } else { + return segmentLabelAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnnotations( + int index) { + if (segmentLabelAnnotationsBuilder_ == null) { + return segmentLabelAnnotations_.get(index); + } else { + return segmentLabelAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public Builder setSegmentLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (segmentLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.set(index, value); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public Builder setSegmentLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (segmentLabelAnnotationsBuilder_ == null) { + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public Builder addSegmentLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (segmentLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.add(value); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public Builder addSegmentLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (segmentLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.add(index, value); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public Builder addSegmentLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (segmentLabelAnnotationsBuilder_ == null) { + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public Builder addSegmentLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (segmentLabelAnnotationsBuilder_ == null) { + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public Builder addAllSegmentLabelAnnotations( + java.lang.Iterable + values) { + if (segmentLabelAnnotationsBuilder_ == null) { + ensureSegmentLabelAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segmentLabelAnnotations_); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public Builder clearSegmentLabelAnnotations() { + if (segmentLabelAnnotationsBuilder_ == null) { + segmentLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public Builder removeSegmentLabelAnnotations(int index) { + if (segmentLabelAnnotationsBuilder_ == null) { + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.remove(index); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + getSegmentLabelAnnotationsBuilder(int index) { + return getSegmentLabelAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getSegmentLabelAnnotationsOrBuilder(int index) { + if (segmentLabelAnnotationsBuilder_ == null) { + return segmentLabelAnnotations_.get(index); + } else { + return segmentLabelAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getSegmentLabelAnnotationsOrBuilderList() { + if (segmentLabelAnnotationsBuilder_ != null) { + return segmentLabelAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segmentLabelAnnotations_); + } + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addSegmentLabelAnnotationsBuilder() { + return getSegmentLabelAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addSegmentLabelAnnotationsBuilder(int index) { + return getSegmentLabelAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + public java.util.List + getSegmentLabelAnnotationsBuilderList() { + return getSegmentLabelAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getSegmentLabelAnnotationsFieldBuilder() { + if (segmentLabelAnnotationsBuilder_ == null) { + segmentLabelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( + segmentLabelAnnotations_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + segmentLabelAnnotations_ = null; + } + return segmentLabelAnnotationsBuilder_; + } + + private java.util.List + shotLabelAnnotations_ = java.util.Collections.emptyList(); + + private void ensureShotLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + shotLabelAnnotations_ = + new java.util.ArrayList( + shotLabelAnnotations_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + shotLabelAnnotationsBuilder_; + + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public java.util.List + getShotLabelAnnotationsList() { + if (shotLabelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(shotLabelAnnotations_); + } else { + return shotLabelAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public int getShotLabelAnnotationsCount() { + if (shotLabelAnnotationsBuilder_ == null) { + return shotLabelAnnotations_.size(); + } else { + return shotLabelAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getShotLabelAnnotations( + int index) { + if (shotLabelAnnotationsBuilder_ == null) { + return shotLabelAnnotations_.get(index); + } else { + return shotLabelAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder setShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (shotLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.set(index, value); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder setShotLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addShotLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (shotLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(value); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (shotLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(index, value); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addShotLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addShotLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addAllShotLabelAnnotations( + java.lang.Iterable + values) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shotLabelAnnotations_); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder clearShotLabelAnnotations() { + if (shotLabelAnnotationsBuilder_ == null) { + shotLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder removeShotLabelAnnotations(int index) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.remove(index); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + getShotLabelAnnotationsBuilder(int index) { + return getShotLabelAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getShotLabelAnnotationsOrBuilder(int index) { + if (shotLabelAnnotationsBuilder_ == null) { + return shotLabelAnnotations_.get(index); + } else { + return shotLabelAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getShotLabelAnnotationsOrBuilderList() { + if (shotLabelAnnotationsBuilder_ != null) { + return shotLabelAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shotLabelAnnotations_); + } + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addShotLabelAnnotationsBuilder() { + return getShotLabelAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addShotLabelAnnotationsBuilder(int index) { + return getShotLabelAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public java.util.List + getShotLabelAnnotationsBuilderList() { + return getShotLabelAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getShotLabelAnnotationsFieldBuilder() { + if (shotLabelAnnotationsBuilder_ == null) { + shotLabelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( + shotLabelAnnotations_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + shotLabelAnnotations_ = null; + } + return shotLabelAnnotationsBuilder_; + } + + private java.util.List + frameLabelAnnotations_ = java.util.Collections.emptyList(); + + private void ensureFrameLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + frameLabelAnnotations_ = + new java.util.ArrayList( + frameLabelAnnotations_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + frameLabelAnnotationsBuilder_; + + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public java.util.List + getFrameLabelAnnotationsList() { + if (frameLabelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(frameLabelAnnotations_); + } else { + return frameLabelAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public int getFrameLabelAnnotationsCount() { + if (frameLabelAnnotationsBuilder_ == null) { + return frameLabelAnnotations_.size(); + } else { + return frameLabelAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getFrameLabelAnnotations( + int index) { + if (frameLabelAnnotationsBuilder_ == null) { + return frameLabelAnnotations_.get(index); + } else { + return frameLabelAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public Builder setFrameLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (frameLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.set(index, value); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public Builder setFrameLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (frameLabelAnnotationsBuilder_ == null) { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public Builder addFrameLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (frameLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.add(value); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public Builder addFrameLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (frameLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.add(index, value); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public Builder addFrameLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (frameLabelAnnotationsBuilder_ == null) { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public Builder addFrameLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (frameLabelAnnotationsBuilder_ == null) { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public Builder addAllFrameLabelAnnotations( + java.lang.Iterable + values) { + if (frameLabelAnnotationsBuilder_ == null) { + ensureFrameLabelAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frameLabelAnnotations_); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public Builder clearFrameLabelAnnotations() { + if (frameLabelAnnotationsBuilder_ == null) { + frameLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public Builder removeFrameLabelAnnotations(int index) { + if (frameLabelAnnotationsBuilder_ == null) { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.remove(index); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + getFrameLabelAnnotationsBuilder(int index) { + return getFrameLabelAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getFrameLabelAnnotationsOrBuilder(int index) { + if (frameLabelAnnotationsBuilder_ == null) { + return frameLabelAnnotations_.get(index); + } else { + return frameLabelAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getFrameLabelAnnotationsOrBuilderList() { + if (frameLabelAnnotationsBuilder_ != null) { + return frameLabelAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frameLabelAnnotations_); + } + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addFrameLabelAnnotationsBuilder() { + return getFrameLabelAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addFrameLabelAnnotationsBuilder(int index) { + return getFrameLabelAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + public java.util.List + getFrameLabelAnnotationsBuilderList() { + return getFrameLabelAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getFrameLabelAnnotationsFieldBuilder() { + if (frameLabelAnnotationsBuilder_ == null) { + frameLabelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( + frameLabelAnnotations_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + frameLabelAnnotations_ = null; + } + return frameLabelAnnotationsBuilder_; + } + + private java.util.List + shotAnnotations_ = java.util.Collections.emptyList(); + + private void ensureShotAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + shotAnnotations_ = + new java.util.ArrayList( + shotAnnotations_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + shotAnnotationsBuilder_; + + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public java.util.List + getShotAnnotationsList() { + if (shotAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(shotAnnotations_); + } else { + return shotAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public int getShotAnnotationsCount() { + if (shotAnnotationsBuilder_ == null) { + return shotAnnotations_.size(); + } else { + return shotAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index) { + if (shotAnnotationsBuilder_ == null) { + return shotAnnotations_.get(index); + } else { + return shotAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public Builder setShotAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (shotAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotAnnotationsIsMutable(); + shotAnnotations_.set(index, value); + onChanged(); + } else { + shotAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public Builder setShotAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + shotAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public Builder addShotAnnotations( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (shotAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(value); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public Builder addShotAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (shotAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(index, value); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public Builder addShotAnnotations( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public Builder addShotAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public Builder addAllShotAnnotations( + java.lang.Iterable + values) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shotAnnotations_); + onChanged(); + } else { + shotAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public Builder clearShotAnnotations() { + if (shotAnnotationsBuilder_ == null) { + shotAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + shotAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public Builder removeShotAnnotations(int index) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.remove(index); + onChanged(); + } else { + shotAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder + getShotAnnotationsBuilder(int index) { + return getShotAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder + getShotAnnotationsOrBuilder(int index) { + if (shotAnnotationsBuilder_ == null) { + return shotAnnotations_.get(index); + } else { + return shotAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getShotAnnotationsOrBuilderList() { + if (shotAnnotationsBuilder_ != null) { + return shotAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shotAnnotations_); + } + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder + addShotAnnotationsBuilder() { + return getShotAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()); + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder + addShotAnnotationsBuilder(int index) { + return getShotAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()); + } + /** + * + * + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + public java.util.List + getShotAnnotationsBuilderList() { + return getShotAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getShotAnnotationsFieldBuilder() { + if (shotAnnotationsBuilder_ == null) { + shotAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( + shotAnnotations_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + shotAnnotations_ = null; + } + return shotAnnotationsBuilder_; + } + + private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + explicitAnnotation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder> + explicitAnnotationBuilder_; + /** + * + * + *
+     * Explicit content annotation.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public boolean hasExplicitAnnotation() { + return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null; + } + /** + * + * + *
+     * Explicit content annotation.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + getExplicitAnnotation() { + if (explicitAnnotationBuilder_ == null) { + return explicitAnnotation_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .getDefaultInstance() + : explicitAnnotation_; + } else { + return explicitAnnotationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Explicit content annotation.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public Builder setExplicitAnnotation( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation value) { + if (explicitAnnotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + explicitAnnotation_ = value; + onChanged(); + } else { + explicitAnnotationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Explicit content annotation.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public Builder setExplicitAnnotation( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder + builderForValue) { + if (explicitAnnotationBuilder_ == null) { + explicitAnnotation_ = builderForValue.build(); + onChanged(); + } else { + explicitAnnotationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Explicit content annotation.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public Builder mergeExplicitAnnotation( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation value) { + if (explicitAnnotationBuilder_ == null) { + if (explicitAnnotation_ != null) { + explicitAnnotation_ = + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.newBuilder( + explicitAnnotation_) + .mergeFrom(value) + .buildPartial(); + } else { + explicitAnnotation_ = value; + } + onChanged(); + } else { + explicitAnnotationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Explicit content annotation.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public Builder clearExplicitAnnotation() { + if (explicitAnnotationBuilder_ == null) { + explicitAnnotation_ = null; + onChanged(); + } else { + explicitAnnotation_ = null; + explicitAnnotationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Explicit content annotation.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder + getExplicitAnnotationBuilder() { + + onChanged(); + return getExplicitAnnotationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Explicit content annotation.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder + getExplicitAnnotationOrBuilder() { + if (explicitAnnotationBuilder_ != null) { + return explicitAnnotationBuilder_.getMessageOrBuilder(); + } else { + return explicitAnnotation_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .getDefaultInstance() + : explicitAnnotation_; + } + } + /** + * + * + *
+     * Explicit content annotation.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder> + getExplicitAnnotationFieldBuilder() { + if (explicitAnnotationBuilder_ == null) { + explicitAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder>( + getExplicitAnnotation(), getParentForChildren(), isClean()); + explicitAnnotation_ = null; + } + return explicitAnnotationBuilder_; + } + + private java.util.List + textAnnotations_ = java.util.Collections.emptyList(); + + private void ensureTextAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + textAnnotations_ = + new java.util.ArrayList( + textAnnotations_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder> + textAnnotationsBuilder_; + + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public java.util.List + getTextAnnotationsList() { + if (textAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(textAnnotations_); + } else { + return textAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public int getTextAnnotationsCount() { + if (textAnnotationsBuilder_ == null) { + return textAnnotations_.size(); + } else { + return textAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotation getTextAnnotations( + int index) { + if (textAnnotationsBuilder_ == null) { + return textAnnotations_.get(index); + } else { + return textAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public Builder setTextAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.TextAnnotation value) { + if (textAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextAnnotationsIsMutable(); + textAnnotations_.set(index, value); + onChanged(); + } else { + textAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public Builder setTextAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder builderForValue) { + if (textAnnotationsBuilder_ == null) { + ensureTextAnnotationsIsMutable(); + textAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + textAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public Builder addTextAnnotations( + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation value) { + if (textAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextAnnotationsIsMutable(); + textAnnotations_.add(value); + onChanged(); + } else { + textAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public Builder addTextAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.TextAnnotation value) { + if (textAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextAnnotationsIsMutable(); + textAnnotations_.add(index, value); + onChanged(); + } else { + textAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public Builder addTextAnnotations( + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder builderForValue) { + if (textAnnotationsBuilder_ == null) { + ensureTextAnnotationsIsMutable(); + textAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + textAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public Builder addTextAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder builderForValue) { + if (textAnnotationsBuilder_ == null) { + ensureTextAnnotationsIsMutable(); + textAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + textAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public Builder addAllTextAnnotations( + java.lang.Iterable + values) { + if (textAnnotationsBuilder_ == null) { + ensureTextAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, textAnnotations_); + onChanged(); + } else { + textAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public Builder clearTextAnnotations() { + if (textAnnotationsBuilder_ == null) { + textAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + textAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public Builder removeTextAnnotations(int index) { + if (textAnnotationsBuilder_ == null) { + ensureTextAnnotationsIsMutable(); + textAnnotations_.remove(index); + onChanged(); + } else { + textAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder + getTextAnnotationsBuilder(int index) { + return getTextAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder + getTextAnnotationsOrBuilder(int index) { + if (textAnnotationsBuilder_ == null) { + return textAnnotations_.get(index); + } else { + return textAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder> + getTextAnnotationsOrBuilderList() { + if (textAnnotationsBuilder_ != null) { + return textAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(textAnnotations_); + } + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder + addTextAnnotationsBuilder() { + return getTextAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder + addTextAnnotationsBuilder(int index) { + return getTextAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + public java.util.List + getTextAnnotationsBuilderList() { + return getTextAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder> + getTextAnnotationsFieldBuilder() { + if (textAnnotationsBuilder_ == null) { + textAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder>( + textAnnotations_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + textAnnotations_ = null; + } + return textAnnotationsBuilder_; + } + + private java.util.List + objectAnnotations_ = java.util.Collections.emptyList(); + + private void ensureObjectAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + objectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>( + objectAnnotations_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> + objectAnnotationsBuilder_; + + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public java.util.List + getObjectAnnotationsList() { + if (objectAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(objectAnnotations_); + } else { + return objectAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public int getObjectAnnotationsCount() { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.size(); + } else { + return objectAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + getObjectAnnotations(int index) { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.get(index); + } else { + return objectAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public Builder setObjectAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.set(index, value); + onChanged(); + } else { + objectAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public Builder setObjectAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public Builder addObjectAnnotations( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(value); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public Builder addObjectAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(index, value); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public Builder addObjectAnnotations( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public Builder addObjectAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public Builder addAllObjectAnnotations( + java.lang.Iterable< + ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation> + values) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_); + onChanged(); + } else { + objectAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public Builder clearObjectAnnotations() { + if (objectAnnotationsBuilder_ == null) { + objectAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + objectAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public Builder removeObjectAnnotations(int index) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.remove(index); + onChanged(); + } else { + objectAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + getObjectAnnotationsBuilder(int index) { + return getObjectAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.get(index); + } else { + return objectAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public java.util.List< + ? extends + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList() { + if (objectAnnotationsBuilder_ != null) { + return objectAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(objectAnnotations_); + } + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + addObjectAnnotationsBuilder() { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + .getDefaultInstance()); + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder + addObjectAnnotationsBuilder(int index) { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + .getDefaultInstance()); + } + /** + * + * + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + public java.util.List< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder> + getObjectAnnotationsBuilderList() { + return getObjectAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> + getObjectAnnotationsFieldBuilder() { + if (objectAnnotationsBuilder_ == null) { + objectAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>( + objectAnnotations_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + objectAnnotations_ = null; + } + return objectAnnotationsBuilder_; + } + + private com.google.rpc.Status error_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + * + * + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults) + private static final com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoAnnotationResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoAnnotationResults(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java new file mode 100644 index 000000000000..16955d870503 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java @@ -0,0 +1,507 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface VideoAnnotationResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + java.lang.String getInputUri(); + /** + * + * + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + com.google.protobuf.ByteString getInputUriBytes(); + + /** + * + * + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + java.util.List + getSegmentLabelAnnotationsList(); + /** + * + * + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnnotations( + int index); + /** + * + * + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + int getSegmentLabelAnnotationsCount(); + /** + * + * + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + java.util.List + getSegmentLabelAnnotationsOrBuilderList(); + /** + * + * + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_label_annotations = 2; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getSegmentLabelAnnotationsOrBuilder(int index); + + /** + * + * + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + java.util.List + getShotLabelAnnotationsList(); + /** + * + * + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getShotLabelAnnotations(int index); + /** + * + * + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + int getShotLabelAnnotationsCount(); + /** + * + * + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + java.util.List + getShotLabelAnnotationsOrBuilderList(); + /** + * + * + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getShotLabelAnnotationsOrBuilder(int index); + + /** + * + * + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + java.util.List + getFrameLabelAnnotationsList(); + /** + * + * + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getFrameLabelAnnotations(int index); + /** + * + * + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + int getFrameLabelAnnotationsCount(); + /** + * + * + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + java.util.List + getFrameLabelAnnotationsOrBuilderList(); + /** + * + * + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation frame_label_annotations = 4; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getFrameLabelAnnotationsOrBuilder(int index); + + /** + * + * + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + java.util.List + getShotAnnotationsList(); + /** + * + * + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index); + /** + * + * + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + int getShotAnnotationsCount(); + /** + * + * + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + java.util.List + getShotAnnotationsOrBuilderList(); + /** + * + * + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 6; + * + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getShotAnnotationsOrBuilder( + int index); + + /** + * + * + *
+   * Explicit content annotation.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + boolean hasExplicitAnnotation(); + /** + * + * + *
+   * Explicit content annotation.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation(); + /** + * + * + *
+   * Explicit content annotation.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder + getExplicitAnnotationOrBuilder(); + + /** + * + * + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + java.util.List + getTextAnnotationsList(); + /** + * + * + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation getTextAnnotations(int index); + /** + * + * + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + int getTextAnnotationsCount(); + /** + * + * + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + java.util.List + getTextAnnotationsOrBuilderList(); + /** + * + * + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.TextAnnotation text_annotations = 12; + * + */ + com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder getTextAnnotationsOrBuilder( + int index); + + /** + * + * + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + java.util.List + getObjectAnnotationsList(); + /** + * + * + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectAnnotations( + int index); + /** + * + * + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + int getObjectAnnotationsCount(); + /** + * + * + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList(); + /** + * + * + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 14; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index); + + /** + * + * + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + boolean hasError(); + /** + * + * + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + com.google.rpc.Status getError(); + /** + * + * + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContext.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContext.java new file mode 100644 index 000000000000..913cb876e12f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContext.java @@ -0,0 +1,2228 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video context and/or feature-specific parameters.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.VideoContext} + */ +public final class VideoContext extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.VideoContext) + VideoContextOrBuilder { + private static final long serialVersionUID = 0L; + // Use VideoContext.newBuilder() to construct. + private VideoContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VideoContext() { + segments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VideoContext( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + segments_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment>(); + mutable_bitField0_ |= 0x00000001; + } + segments_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), + extensionRegistry)); + break; + } + case 18: + { + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder subBuilder = + null; + if (labelDetectionConfig_ != null) { + subBuilder = labelDetectionConfig_.toBuilder(); + } + labelDetectionConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labelDetectionConfig_); + labelDetectionConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder + subBuilder = null; + if (shotChangeDetectionConfig_ != null) { + subBuilder = shotChangeDetectionConfig_.toBuilder(); + } + shotChangeDetectionConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(shotChangeDetectionConfig_); + shotChangeDetectionConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder + subBuilder = null; + if (explicitContentDetectionConfig_ != null) { + subBuilder = explicitContentDetectionConfig_.toBuilder(); + } + explicitContentDetectionConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(explicitContentDetectionConfig_); + explicitContentDetectionConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder subBuilder = + null; + if (textDetectionConfig_ != null) { + subBuilder = textDetectionConfig_.toBuilder(); + } + textDetectionConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionConfig_); + textDetectionConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.VideoContext.class, + com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder.class); + } + + private int bitField0_; + public static final int SEGMENTS_FIELD_NUMBER = 1; + private java.util.List segments_; + /** + * + * + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public java.util.List + getSegmentsList() { + return segments_; + } + /** + * + * + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getSegmentsOrBuilderList() { + return segments_; + } + /** + * + * + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public int getSegmentsCount() { + return segments_.size(); + } + /** + * + * + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegments(int index) { + return segments_.get(index); + } + /** + * + * + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOrBuilder( + int index) { + return segments_.get(index); + } + + public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig labelDetectionConfig_; + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public boolean hasLabelDetectionConfig() { + return labelDetectionConfig_ != null; + } + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig + getLabelDetectionConfig() { + return labelDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.getDefaultInstance() + : labelDetectionConfig_; + } + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder + getLabelDetectionConfigOrBuilder() { + return getLabelDetectionConfig(); + } + + public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + shotChangeDetectionConfig_; + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public boolean hasShotChangeDetectionConfig() { + return shotChangeDetectionConfig_ != null; + } + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + getShotChangeDetectionConfig() { + return shotChangeDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + .getDefaultInstance() + : shotChangeDetectionConfig_; + } + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder + getShotChangeDetectionConfigOrBuilder() { + return getShotChangeDetectionConfig(); + } + + public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + explicitContentDetectionConfig_; + /** + * + * + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public boolean hasExplicitContentDetectionConfig() { + return explicitContentDetectionConfig_ != null; + } + /** + * + * + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + getExplicitContentDetectionConfig() { + return explicitContentDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + .getDefaultInstance() + : explicitContentDetectionConfig_; + } + /** + * + * + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfigOrBuilder + getExplicitContentDetectionConfigOrBuilder() { + return getExplicitContentDetectionConfig(); + } + + public static final int TEXT_DETECTION_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig textDetectionConfig_; + /** + * + * + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public boolean hasTextDetectionConfig() { + return textDetectionConfig_ != null; + } + /** + * + * + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig getTextDetectionConfig() { + return textDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.getDefaultInstance() + : textDetectionConfig_; + } + /** + * + * + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder + getTextDetectionConfigOrBuilder() { + return getTextDetectionConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(1, segments_.get(i)); + } + if (labelDetectionConfig_ != null) { + output.writeMessage(2, getLabelDetectionConfig()); + } + if (shotChangeDetectionConfig_ != null) { + output.writeMessage(3, getShotChangeDetectionConfig()); + } + if (explicitContentDetectionConfig_ != null) { + output.writeMessage(4, getExplicitContentDetectionConfig()); + } + if (textDetectionConfig_ != null) { + output.writeMessage(8, getTextDetectionConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, segments_.get(i)); + } + if (labelDetectionConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLabelDetectionConfig()); + } + if (shotChangeDetectionConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getShotChangeDetectionConfig()); + } + if (explicitContentDetectionConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getExplicitContentDetectionConfig()); + } + if (textDetectionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTextDetectionConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.VideoContext)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.VideoContext other = + (com.google.cloud.videointelligence.v1p3beta1.VideoContext) obj; + + boolean result = true; + result = result && getSegmentsList().equals(other.getSegmentsList()); + result = result && (hasLabelDetectionConfig() == other.hasLabelDetectionConfig()); + if (hasLabelDetectionConfig()) { + result = result && getLabelDetectionConfig().equals(other.getLabelDetectionConfig()); + } + result = result && (hasShotChangeDetectionConfig() == other.hasShotChangeDetectionConfig()); + if (hasShotChangeDetectionConfig()) { + result = + result && getShotChangeDetectionConfig().equals(other.getShotChangeDetectionConfig()); + } + result = + result + && (hasExplicitContentDetectionConfig() == other.hasExplicitContentDetectionConfig()); + if (hasExplicitContentDetectionConfig()) { + result = + result + && getExplicitContentDetectionConfig() + .equals(other.getExplicitContentDetectionConfig()); + } + result = result && (hasTextDetectionConfig() == other.hasTextDetectionConfig()); + if (hasTextDetectionConfig()) { + result = result && getTextDetectionConfig().equals(other.getTextDetectionConfig()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + if (hasLabelDetectionConfig()) { + hash = (37 * hash) + LABEL_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLabelDetectionConfig().hashCode(); + } + if (hasShotChangeDetectionConfig()) { + hash = (37 * hash) + SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShotChangeDetectionConfig().hashCode(); + } + if (hasExplicitContentDetectionConfig()) { + hash = (37 * hash) + EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExplicitContentDetectionConfig().hashCode(); + } + if (hasTextDetectionConfig()) { + hash = (37 * hash) + TEXT_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTextDetectionConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.VideoContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video context and/or feature-specific parameters.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.VideoContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.VideoContext) + com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.VideoContext.class, + com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.VideoContext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSegmentsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + segmentsBuilder_.clear(); + } + if (labelDetectionConfigBuilder_ == null) { + labelDetectionConfig_ = null; + } else { + labelDetectionConfig_ = null; + labelDetectionConfigBuilder_ = null; + } + if (shotChangeDetectionConfigBuilder_ == null) { + shotChangeDetectionConfig_ = null; + } else { + shotChangeDetectionConfig_ = null; + shotChangeDetectionConfigBuilder_ = null; + } + if (explicitContentDetectionConfigBuilder_ == null) { + explicitContentDetectionConfig_ = null; + } else { + explicitContentDetectionConfig_ = null; + explicitContentDetectionConfigBuilder_ = null; + } + if (textDetectionConfigBuilder_ == null) { + textDetectionConfig_ = null; + } else { + textDetectionConfig_ = null; + textDetectionConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoContext getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoContext build() { + com.google.cloud.videointelligence.v1p3beta1.VideoContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoContext buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.VideoContext result = + new com.google.cloud.videointelligence.v1p3beta1.VideoContext(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + if (labelDetectionConfigBuilder_ == null) { + result.labelDetectionConfig_ = labelDetectionConfig_; + } else { + result.labelDetectionConfig_ = labelDetectionConfigBuilder_.build(); + } + if (shotChangeDetectionConfigBuilder_ == null) { + result.shotChangeDetectionConfig_ = shotChangeDetectionConfig_; + } else { + result.shotChangeDetectionConfig_ = shotChangeDetectionConfigBuilder_.build(); + } + if (explicitContentDetectionConfigBuilder_ == null) { + result.explicitContentDetectionConfig_ = explicitContentDetectionConfig_; + } else { + result.explicitContentDetectionConfig_ = explicitContentDetectionConfigBuilder_.build(); + } + if (textDetectionConfigBuilder_ == null) { + result.textDetectionConfig_ = textDetectionConfig_; + } else { + result.textDetectionConfig_ = textDetectionConfigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.VideoContext) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.VideoContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.VideoContext other) { + if (other == com.google.cloud.videointelligence.v1p3beta1.VideoContext.getDefaultInstance()) + return this; + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000001); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSegmentsFieldBuilder() + : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + if (other.hasLabelDetectionConfig()) { + mergeLabelDetectionConfig(other.getLabelDetectionConfig()); + } + if (other.hasShotChangeDetectionConfig()) { + mergeShotChangeDetectionConfig(other.getShotChangeDetectionConfig()); + } + if (other.hasExplicitContentDetectionConfig()) { + mergeExplicitContentDetectionConfig(other.getExplicitContentDetectionConfig()); + } + if (other.hasTextDetectionConfig()) { + mergeTextDetectionConfig(other.getTextDetectionConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.VideoContext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.VideoContext) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List segments_ = + java.util.Collections.emptyList(); + + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + segments_ = + new java.util.ArrayList( + segments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + segmentsBuilder_; + + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public java.util.List + getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public Builder setSegments( + int index, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public Builder addSegments(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public Builder addSegments( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public Builder addSegments( + int index, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public Builder addAllSegments( + java.lang.Iterable + values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOrBuilder( + int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder addSegmentsBuilder() { + return getSegmentsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()); + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder addSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()); + } + /** + * + * + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + public java.util.List + getSegmentsBuilderList() { + return getSegmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( + segments_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + + private com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig + labelDetectionConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder> + labelDetectionConfigBuilder_; + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public boolean hasLabelDetectionConfig() { + return labelDetectionConfigBuilder_ != null || labelDetectionConfig_ != null; + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig + getLabelDetectionConfig() { + if (labelDetectionConfigBuilder_ == null) { + return labelDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.getDefaultInstance() + : labelDetectionConfig_; + } else { + return labelDetectionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public Builder setLabelDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig value) { + if (labelDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labelDetectionConfig_ = value; + onChanged(); + } else { + labelDetectionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public Builder setLabelDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder builderForValue) { + if (labelDetectionConfigBuilder_ == null) { + labelDetectionConfig_ = builderForValue.build(); + onChanged(); + } else { + labelDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public Builder mergeLabelDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig value) { + if (labelDetectionConfigBuilder_ == null) { + if (labelDetectionConfig_ != null) { + labelDetectionConfig_ = + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.newBuilder( + labelDetectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + labelDetectionConfig_ = value; + } + onChanged(); + } else { + labelDetectionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public Builder clearLabelDetectionConfig() { + if (labelDetectionConfigBuilder_ == null) { + labelDetectionConfig_ = null; + onChanged(); + } else { + labelDetectionConfig_ = null; + labelDetectionConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder + getLabelDetectionConfigBuilder() { + + onChanged(); + return getLabelDetectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder + getLabelDetectionConfigOrBuilder() { + if (labelDetectionConfigBuilder_ != null) { + return labelDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + return labelDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.getDefaultInstance() + : labelDetectionConfig_; + } + } + /** + * + * + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder> + getLabelDetectionConfigFieldBuilder() { + if (labelDetectionConfigBuilder_ == null) { + labelDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder>( + getLabelDetectionConfig(), getParentForChildren(), isClean()); + labelDetectionConfig_ = null; + } + return labelDetectionConfigBuilder_; + } + + private com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + shotChangeDetectionConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder> + shotChangeDetectionConfigBuilder_; + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public boolean hasShotChangeDetectionConfig() { + return shotChangeDetectionConfigBuilder_ != null || shotChangeDetectionConfig_ != null; + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + getShotChangeDetectionConfig() { + if (shotChangeDetectionConfigBuilder_ == null) { + return shotChangeDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + .getDefaultInstance() + : shotChangeDetectionConfig_; + } else { + return shotChangeDetectionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public Builder setShotChangeDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig value) { + if (shotChangeDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shotChangeDetectionConfig_ = value; + onChanged(); + } else { + shotChangeDetectionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public Builder setShotChangeDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder + builderForValue) { + if (shotChangeDetectionConfigBuilder_ == null) { + shotChangeDetectionConfig_ = builderForValue.build(); + onChanged(); + } else { + shotChangeDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public Builder mergeShotChangeDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig value) { + if (shotChangeDetectionConfigBuilder_ == null) { + if (shotChangeDetectionConfig_ != null) { + shotChangeDetectionConfig_ = + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.newBuilder( + shotChangeDetectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + shotChangeDetectionConfig_ = value; + } + onChanged(); + } else { + shotChangeDetectionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public Builder clearShotChangeDetectionConfig() { + if (shotChangeDetectionConfigBuilder_ == null) { + shotChangeDetectionConfig_ = null; + onChanged(); + } else { + shotChangeDetectionConfig_ = null; + shotChangeDetectionConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder + getShotChangeDetectionConfigBuilder() { + + onChanged(); + return getShotChangeDetectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder + getShotChangeDetectionConfigOrBuilder() { + if (shotChangeDetectionConfigBuilder_ != null) { + return shotChangeDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + return shotChangeDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + .getDefaultInstance() + : shotChangeDetectionConfig_; + } + } + /** + * + * + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder> + getShotChangeDetectionConfigFieldBuilder() { + if (shotChangeDetectionConfigBuilder_ == null) { + shotChangeDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder>( + getShotChangeDetectionConfig(), getParentForChildren(), isClean()); + shotChangeDetectionConfig_ = null; + } + return shotChangeDetectionConfigBuilder_; + } + + private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + explicitContentDetectionConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfigOrBuilder> + explicitContentDetectionConfigBuilder_; + /** + * + * + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public boolean hasExplicitContentDetectionConfig() { + return explicitContentDetectionConfigBuilder_ != null + || explicitContentDetectionConfig_ != null; + } + /** + * + * + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + getExplicitContentDetectionConfig() { + if (explicitContentDetectionConfigBuilder_ == null) { + return explicitContentDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + .getDefaultInstance() + : explicitContentDetectionConfig_; + } else { + return explicitContentDetectionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public Builder setExplicitContentDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig value) { + if (explicitContentDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + explicitContentDetectionConfig_ = value; + onChanged(); + } else { + explicitContentDetectionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public Builder setExplicitContentDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder + builderForValue) { + if (explicitContentDetectionConfigBuilder_ == null) { + explicitContentDetectionConfig_ = builderForValue.build(); + onChanged(); + } else { + explicitContentDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public Builder mergeExplicitContentDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig value) { + if (explicitContentDetectionConfigBuilder_ == null) { + if (explicitContentDetectionConfig_ != null) { + explicitContentDetectionConfig_ = + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + .newBuilder(explicitContentDetectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + explicitContentDetectionConfig_ = value; + } + onChanged(); + } else { + explicitContentDetectionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public Builder clearExplicitContentDetectionConfig() { + if (explicitContentDetectionConfigBuilder_ == null) { + explicitContentDetectionConfig_ = null; + onChanged(); + } else { + explicitContentDetectionConfig_ = null; + explicitContentDetectionConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder + getExplicitContentDetectionConfigBuilder() { + + onChanged(); + return getExplicitContentDetectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfigOrBuilder + getExplicitContentDetectionConfigOrBuilder() { + if (explicitContentDetectionConfigBuilder_ != null) { + return explicitContentDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + return explicitContentDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + .getDefaultInstance() + : explicitContentDetectionConfig_; + } + } + /** + * + * + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfigOrBuilder> + getExplicitContentDetectionConfigFieldBuilder() { + if (explicitContentDetectionConfigBuilder_ == null) { + explicitContentDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1 + .ExplicitContentDetectionConfigOrBuilder>( + getExplicitContentDetectionConfig(), getParentForChildren(), isClean()); + explicitContentDetectionConfig_ = null; + } + return explicitContentDetectionConfigBuilder_; + } + + private com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig textDetectionConfig_ = + null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder> + textDetectionConfigBuilder_; + /** + * + * + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public boolean hasTextDetectionConfig() { + return textDetectionConfigBuilder_ != null || textDetectionConfig_ != null; + } + /** + * + * + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig + getTextDetectionConfig() { + if (textDetectionConfigBuilder_ == null) { + return textDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.getDefaultInstance() + : textDetectionConfig_; + } else { + return textDetectionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public Builder setTextDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig value) { + if (textDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textDetectionConfig_ = value; + onChanged(); + } else { + textDetectionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public Builder setTextDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder builderForValue) { + if (textDetectionConfigBuilder_ == null) { + textDetectionConfig_ = builderForValue.build(); + onChanged(); + } else { + textDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public Builder mergeTextDetectionConfig( + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig value) { + if (textDetectionConfigBuilder_ == null) { + if (textDetectionConfig_ != null) { + textDetectionConfig_ = + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.newBuilder( + textDetectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + textDetectionConfig_ = value; + } + onChanged(); + } else { + textDetectionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public Builder clearTextDetectionConfig() { + if (textDetectionConfigBuilder_ == null) { + textDetectionConfig_ = null; + onChanged(); + } else { + textDetectionConfig_ = null; + textDetectionConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder + getTextDetectionConfigBuilder() { + + onChanged(); + return getTextDetectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder + getTextDetectionConfigOrBuilder() { + if (textDetectionConfigBuilder_ != null) { + return textDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + return textDetectionConfig_ == null + ? com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.getDefaultInstance() + : textDetectionConfig_; + } + } + /** + * + * + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder> + getTextDetectionConfigFieldBuilder() { + if (textDetectionConfigBuilder_ == null) { + textDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig, + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder, + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder>( + getTextDetectionConfig(), getParentForChildren(), isClean()); + textDetectionConfig_ = null; + } + return textDetectionConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.VideoContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.VideoContext) + private static final com.google.cloud.videointelligence.v1p3beta1.VideoContext DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.VideoContext(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoContext(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContextOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContextOrBuilder.java new file mode 100644 index 000000000000..146a1315c9a7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContextOrBuilder.java @@ -0,0 +1,224 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface VideoContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.VideoContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + java.util.List getSegmentsList(); + /** + * + * + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegments(int index); + /** + * + * + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + int getSegmentsCount(); + /** + * + * + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + java.util.List + getSegmentsOrBuilderList(); + /** + * + * + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment segments = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOrBuilder( + int index); + + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + boolean hasLabelDetectionConfig(); + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig getLabelDetectionConfig(); + /** + * + * + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfigOrBuilder + getLabelDetectionConfigOrBuilder(); + + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + boolean hasShotChangeDetectionConfig(); + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig + getShotChangeDetectionConfig(); + /** + * + * + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfigOrBuilder + getShotChangeDetectionConfigOrBuilder(); + + /** + * + * + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + boolean hasExplicitContentDetectionConfig(); + /** + * + * + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig + getExplicitContentDetectionConfig(); + /** + * + * + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + * + */ + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfigOrBuilder + getExplicitContentDetectionConfigOrBuilder(); + + /** + * + * + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + boolean hasTextDetectionConfig(); + /** + * + * + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig getTextDetectionConfig(); + /** + * + * + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; + * + */ + com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfigOrBuilder + getTextDetectionConfigOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java new file mode 100644 index 000000000000..6668e7c4092b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java @@ -0,0 +1,665 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public final class VideoIntelligenceServiceProto { + private VideoIntelligenceServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_TextDetectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_TextDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_VideoSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_VideoSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_Entity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_Entity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_LabelAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_LabelAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/videointelligence/v1p3bet" + + "a1/video_intelligence.proto\022(google.clou" + + "d.videointelligence.v1p3beta1\032\034google/ap" + + "i/annotations.proto\032#google/longrunning/" + + "operations.proto\032\036google/protobuf/durati" + + "on.proto\032\037google/protobuf/timestamp.prot" + + "o\032\027google/rpc/status.proto\"\375\001\n\024AnnotateV" + + "ideoRequest\022\021\n\tinput_uri\030\001 \001(\t\022\025\n\rinput_" + + "content\030\006 \001(\014\022C\n\010features\030\002 \003(\01621.google" + + ".cloud.videointelligence.v1p3beta1.Featu" + + "re\022M\n\rvideo_context\030\003 \001(\01326.google.cloud" + + ".videointelligence.v1p3beta1.VideoContex" + + "t\022\022\n\noutput_uri\030\004 \001(\t\022\023\n\013location_id\030\005 \001" + + "(\t\"\366\003\n\014VideoContext\022H\n\010segments\030\001 \003(\01326." + + "google.cloud.videointelligence.v1p3beta1" + + ".VideoSegment\022^\n\026label_detection_config\030" + + "\002 \001(\0132>.google.cloud.videointelligence.v" + + "1p3beta1.LabelDetectionConfig\022i\n\034shot_ch" + + "ange_detection_config\030\003 \001(\0132C.google.clo" + + "ud.videointelligence.v1p3beta1.ShotChang" + + "eDetectionConfig\022s\n!explicit_content_det" + + "ection_config\030\004 \001(\0132H.google.cloud.video" + + "intelligence.v1p3beta1.ExplicitContentDe" + + "tectionConfig\022\\\n\025text_detection_config\030\010" + + " \001(\0132=.google.cloud.videointelligence.v1" + + "p3beta1.TextDetectionConfig\"\234\001\n\024LabelDet" + + "ectionConfig\022Z\n\024label_detection_mode\030\001 \001" + + "(\0162<.google.cloud.videointelligence.v1p3" + + "beta1.LabelDetectionMode\022\031\n\021stationary_c" + + "amera\030\002 \001(\010\022\r\n\005model\030\003 \001(\t\"*\n\031ShotChange" + + "DetectionConfig\022\r\n\005model\030\001 \001(\t\"/\n\036Explic" + + "itContentDetectionConfig\022\r\n\005model\030\001 \001(\t\"" + + "-\n\023TextDetectionConfig\022\026\n\016language_hints" + + "\030\001 \003(\t\"x\n\014VideoSegment\0224\n\021start_time_off" + + "set\030\001 \001(\0132\031.google.protobuf.Duration\0222\n\017" + + "end_time_offset\030\002 \001(\0132\031.google.protobuf." + + "Duration\"k\n\014LabelSegment\022G\n\007segment\030\001 \001(" + + "\01326.google.cloud.videointelligence.v1p3b" + + "eta1.VideoSegment\022\022\n\nconfidence\030\002 \001(\002\"P\n" + + "\nLabelFrame\022.\n\013time_offset\030\001 \001(\0132\031.googl" + + "e.protobuf.Duration\022\022\n\nconfidence\030\002 \001(\002\"" + + "G\n\006Entity\022\021\n\tentity_id\030\001 \001(\t\022\023\n\013descript" + + "ion\030\002 \001(\t\022\025\n\rlanguage_code\030\003 \001(\t\"\260\002\n\017Lab" + + "elAnnotation\022@\n\006entity\030\001 \001(\01320.google.cl" + + "oud.videointelligence.v1p3beta1.Entity\022K" + + "\n\021category_entities\030\002 \003(\01320.google.cloud" + + ".videointelligence.v1p3beta1.Entity\022H\n\010s" + + "egments\030\003 \003(\01326.google.cloud.videointell" + + "igence.v1p3beta1.LabelSegment\022D\n\006frames\030" + + "\004 \003(\01324.google.cloud.videointelligence.v" + + "1p3beta1.LabelFrame\"\234\001\n\024ExplicitContentF" + + "rame\022.\n\013time_offset\030\001 \001(\0132\031.google.proto" + + "buf.Duration\022T\n\026pornography_likelihood\030\002" + + " \001(\01624.google.cloud.videointelligence.v1" + + "p3beta1.Likelihood\"k\n\031ExplicitContentAnn" + + "otation\022N\n\006frames\030\001 \003(\0132>.google.cloud.v" + + "ideointelligence.v1p3beta1.ExplicitConte" + + "ntFrame\"Q\n\025NormalizedBoundingBox\022\014\n\004left" + + "\030\001 \001(\002\022\013\n\003top\030\002 \001(\002\022\r\n\005right\030\003 \001(\002\022\016\n\006bo" + + "ttom\030\004 \001(\002\"\313\005\n\026VideoAnnotationResults\022\021\n" + + "\tinput_uri\030\001 \001(\t\022\\\n\031segment_label_annota" + + "tions\030\002 \003(\01329.google.cloud.videointellig" + + "ence.v1p3beta1.LabelAnnotation\022Y\n\026shot_l" + + "abel_annotations\030\003 \003(\01329.google.cloud.vi" + + "deointelligence.v1p3beta1.LabelAnnotatio" + + "n\022Z\n\027frame_label_annotations\030\004 \003(\01329.goo" + + "gle.cloud.videointelligence.v1p3beta1.La" + + "belAnnotation\022P\n\020shot_annotations\030\006 \003(\0132" + + "6.google.cloud.videointelligence.v1p3bet" + + "a1.VideoSegment\022`\n\023explicit_annotation\030\007" + + " \001(\0132C.google.cloud.videointelligence.v1" + + "p3beta1.ExplicitContentAnnotation\022R\n\020tex" + + "t_annotations\030\014 \003(\01328.google.cloud.video" + + "intelligence.v1p3beta1.TextAnnotation\022^\n" + + "\022object_annotations\030\016 \003(\0132B.google.cloud" + + ".videointelligence.v1p3beta1.ObjectTrack" + + "ingAnnotation\022!\n\005error\030\t \001(\0132\022.google.rp" + + "c.Status\"u\n\025AnnotateVideoResponse\022\\\n\022ann" + + "otation_results\030\001 \003(\0132@.google.cloud.vid" + + "eointelligence.v1p3beta1.VideoAnnotation" + + "Results\"\247\001\n\027VideoAnnotationProgress\022\021\n\ti" + + "nput_uri\030\001 \001(\t\022\030\n\020progress_percent\030\002 \001(\005" + + "\022.\n\nstart_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestamp\022/\n\013update_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"w\n\025AnnotateVideoProgre" + + "ss\022^\n\023annotation_progress\030\001 \003(\0132A.google" + + ".cloud.videointelligence.v1p3beta1.Video" + + "AnnotationProgress\"(\n\020NormalizedVertex\022\t" + + "\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"f\n\026NormalizedBoundi" + + "ngPoly\022L\n\010vertices\030\001 \003(\0132:.google.cloud." + + "videointelligence.v1p3beta1.NormalizedVe" + + "rtex\"\257\001\n\013TextSegment\022G\n\007segment\030\001 \001(\01326." + + "google.cloud.videointelligence.v1p3beta1" + + ".VideoSegment\022\022\n\nconfidence\030\002 \001(\002\022C\n\006fra" + + "mes\030\003 \003(\01323.google.cloud.videointelligen" + + "ce.v1p3beta1.TextFrame\"\233\001\n\tTextFrame\022^\n\024" + + "rotated_bounding_box\030\001 \001(\0132@.google.clou" + + "d.videointelligence.v1p3beta1.Normalized" + + "BoundingPoly\022.\n\013time_offset\030\002 \001(\0132\031.goog" + + "le.protobuf.Duration\"g\n\016TextAnnotation\022\014" + + "\n\004text\030\001 \001(\t\022G\n\010segments\030\002 \003(\01325.google." + + "cloud.videointelligence.v1p3beta1.TextSe" + + "gment\"\247\001\n\023ObjectTrackingFrame\022`\n\027normali" + + "zed_bounding_box\030\001 \001(\0132?.google.cloud.vi" + + "deointelligence.v1p3beta1.NormalizedBoun" + + "dingBox\022.\n\013time_offset\030\002 \001(\0132\031.google.pr" + + "otobuf.Duration\"\254\002\n\030ObjectTrackingAnnota" + + "tion\022@\n\006entity\030\001 \001(\01320.google.cloud.vide" + + "ointelligence.v1p3beta1.Entity\022\022\n\nconfid" + + "ence\030\004 \001(\002\022M\n\006frames\030\002 \003(\0132=.google.clou" + + "d.videointelligence.v1p3beta1.ObjectTrac" + + "kingFrame\022I\n\007segment\030\003 \001(\01326.google.clou" + + "d.videointelligence.v1p3beta1.VideoSegme" + + "ntH\000\022\022\n\010track_id\030\005 \001(\003H\000B\014\n\ntrack_info\"\245" + + "\001\n\035StreamingAnnotateVideoRequest\022V\n\014vide" + + "o_config\030\001 \001(\0132>.google.cloud.videointel" + + "ligence.v1p3beta1.StreamingVideoConfigH\000" + + "\022\027\n\rinput_content\030\002 \001(\014H\000B\023\n\021streaming_r" + + "equest\"\312\001\n\036StreamingAnnotateVideoRespons" + + "e\022!\n\005error\030\001 \001(\0132\022.google.rpc.Status\022e\n\022" + + "annotation_results\030\002 \001(\0132I.google.cloud." + + "videointelligence.v1p3beta1.StreamingVid" + + "eoAnnotationResults\022\036\n\026annotation_result" + + "s_uri\030\003 \001(\t\")\n\'StreamingExplicitContentD" + + "etectionConfig\":\n\035StreamingLabelDetectio" + + "nConfig\022\031\n\021stationary_camera\030\001 \001(\010\"\037\n\035St" + + "reamingObjectTrackingConfig\"$\n\"Streaming" + + "ShotChangeDetectionConfig\"o\n\026StreamingSt" + + "orageConfig\022(\n enable_storage_annotation" + + "_result\030\001 \001(\010\022+\n#annotation_result_stora" + + "ge_directory\030\003 \001(\t\"\213\003\n\037StreamingVideoAnn" + + "otationResults\022P\n\020shot_annotations\030\001 \003(\013" + + "26.google.cloud.videointelligence.v1p3be" + + "ta1.VideoSegment\022T\n\021label_annotations\030\002 " + + "\003(\01329.google.cloud.videointelligence.v1p" + + "3beta1.LabelAnnotation\022`\n\023explicit_annot" + + "ation\030\003 \001(\0132C.google.cloud.videointellig" + + "ence.v1p3beta1.ExplicitContentAnnotation" + + "\022^\n\022object_annotations\030\004 \003(\0132B.google.cl" + + "oud.videointelligence.v1p3beta1.ObjectTr" + + "ackingAnnotation\"\235\005\n\024StreamingVideoConfi" + + "g\022K\n\007feature\030\001 \001(\0162:.google.cloud.videoi" + + "ntelligence.v1p3beta1.StreamingFeature\022t" + + "\n\034shot_change_detection_config\030\002 \001(\0132L.g" + + "oogle.cloud.videointelligence.v1p3beta1." + + "StreamingShotChangeDetectionConfigH\000\022i\n\026" + + "label_detection_config\030\003 \001(\0132G.google.cl" + + "oud.videointelligence.v1p3beta1.Streamin" + + "gLabelDetectionConfigH\000\022~\n!explicit_cont" + + "ent_detection_config\030\004 \001(\0132Q.google.clou" + + "d.videointelligence.v1p3beta1.StreamingE" + + "xplicitContentDetectionConfigH\000\022i\n\026objec" + + "t_tracking_config\030\005 \001(\0132G.google.cloud.v" + + "ideointelligence.v1p3beta1.StreamingObje" + + "ctTrackingConfigH\000\022X\n\016storage_config\030\036 \001" + + "(\0132@.google.cloud.videointelligence.v1p3" + + "beta1.StreamingStorageConfigB\022\n\020streamin" + + "g_config*\233\001\n\007Feature\022\027\n\023FEATURE_UNSPECIF" + + "IED\020\000\022\023\n\017LABEL_DETECTION\020\001\022\031\n\025SHOT_CHANG" + + "E_DETECTION\020\002\022\036\n\032EXPLICIT_CONTENT_DETECT" + + "ION\020\003\022\022\n\016TEXT_DETECTION\020\007\022\023\n\017OBJECT_TRAC" + + "KING\020\t*r\n\022LabelDetectionMode\022$\n LABEL_DE" + + "TECTION_MODE_UNSPECIFIED\020\000\022\r\n\tSHOT_MODE\020" + + "\001\022\016\n\nFRAME_MODE\020\002\022\027\n\023SHOT_AND_FRAME_MODE" + + "\020\003*t\n\nLikelihood\022\032\n\026LIKELIHOOD_UNSPECIFI" + + "ED\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n" + + "\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005" + + "*\302\001\n\020StreamingFeature\022!\n\035STREAMING_FEATU" + + "RE_UNSPECIFIED\020\000\022\035\n\031STREAMING_LABEL_DETE" + + "CTION\020\001\022#\n\037STREAMING_SHOT_CHANGE_DETECTI" + + "ON\020\002\022(\n$STREAMING_EXPLICIT_CONTENT_DETEC" + + "TION\020\003\022\035\n\031STREAMING_OBJECT_TRACKING\020\0042\262\001" + + "\n\030VideoIntelligenceService\022\225\001\n\rAnnotateV" + + "ideo\022>.google.cloud.videointelligence.v1" + + "p3beta1.AnnotateVideoRequest\032\035.google.lo" + + "ngrunning.Operation\"%\202\323\344\223\002\037\"\032/v1p3beta1/" + + "videos:annotate:\001*2\325\001\n!StreamingVideoInt" + + "elligenceService\022\257\001\n\026StreamingAnnotateVi" + + "deo\022G.google.cloud.videointelligence.v1p" + + "3beta1.StreamingAnnotateVideoRequest\032H.g" + + "oogle.cloud.videointelligence.v1p3beta1." + + "StreamingAnnotateVideoResponse(\0010\001B\200\002\n,c" + + "om.google.cloud.videointelligence.v1p3be" + + "ta1B\035VideoIntelligenceServiceProtoP\001ZYgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/videointelligence/v1p3beta1;videointel" + + "ligence\252\002(Google.Cloud.VideoIntelligence" + + ".V1P3Beta1\312\002(Google\\Cloud\\VideoIntellige" + + "nce\\V1p3beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_descriptor, + new java.lang.String[] { + "InputUri", "InputContent", "Features", "VideoContext", "OutputUri", "LocationId", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_VideoContext_descriptor, + new java.lang.String[] { + "Segments", + "LabelDetectionConfig", + "ShotChangeDetectionConfig", + "ExplicitContentDetectionConfig", + "TextDetectionConfig", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_descriptor, + new java.lang.String[] { + "LabelDetectionMode", "StationaryCamera", "Model", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_descriptor, + new java.lang.String[] { + "Model", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_descriptor, + new java.lang.String[] { + "Model", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_TextDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_videointelligence_v1p3beta1_TextDetectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_TextDetectionConfig_descriptor, + new java.lang.String[] { + "LanguageHints", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_VideoSegment_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_videointelligence_v1p3beta1_VideoSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_VideoSegment_descriptor, + new java.lang.String[] { + "StartTimeOffset", "EndTimeOffset", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_descriptor, + new java.lang.String[] { + "Segment", "Confidence", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_descriptor, + new java.lang.String[] { + "TimeOffset", "Confidence", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_Entity_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_videointelligence_v1p3beta1_Entity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_Entity_descriptor, + new java.lang.String[] { + "EntityId", "Description", "LanguageCode", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_LabelAnnotation_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_videointelligence_v1p3beta1_LabelAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_LabelAnnotation_descriptor, + new java.lang.String[] { + "Entity", "CategoryEntities", "Segments", "Frames", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_descriptor, + new java.lang.String[] { + "TimeOffset", "PornographyLikelihood", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_descriptor, + new java.lang.String[] { + "Frames", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_descriptor, + new java.lang.String[] { + "Left", "Top", "Right", "Bottom", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_descriptor, + new java.lang.String[] { + "InputUri", + "SegmentLabelAnnotations", + "ShotLabelAnnotations", + "FrameLabelAnnotations", + "ShotAnnotations", + "ExplicitAnnotation", + "TextAnnotations", + "ObjectAnnotations", + "Error", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_descriptor, + new java.lang.String[] { + "AnnotationResults", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_descriptor, + new java.lang.String[] { + "InputUri", "ProgressPercent", "StartTime", "UpdateTime", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_descriptor, + new java.lang.String[] { + "AnnotationProgress", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_descriptor, + new java.lang.String[] { + "Vertices", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_descriptor, + new java.lang.String[] { + "Segment", "Confidence", "Frames", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_descriptor, + new java.lang.String[] { + "RotatedBoundingBox", "TimeOffset", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_descriptor, + new java.lang.String[] { + "Text", "Segments", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_descriptor, + new java.lang.String[] { + "NormalizedBoundingBox", "TimeOffset", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_descriptor, + new java.lang.String[] { + "Entity", "Confidence", "Frames", "Segment", "TrackId", "TrackInfo", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_descriptor, + new java.lang.String[] { + "VideoConfig", "InputContent", "StreamingRequest", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor, + new java.lang.String[] { + "Error", "AnnotationResults", "AnnotationResultsUri", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_descriptor, + new java.lang.String[] { + "StationaryCamera", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_descriptor, + new java.lang.String[] { + "EnableStorageAnnotationResult", "AnnotationResultStorageDirectory", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor, + new java.lang.String[] { + "ShotAnnotations", "LabelAnnotations", "ExplicitAnnotation", "ObjectAnnotations", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor, + new java.lang.String[] { + "Feature", + "ShotChangeDetectionConfig", + "LabelDetectionConfig", + "ExplicitContentDetectionConfig", + "ObjectTrackingConfig", + "StorageConfig", + "StreamingConfig", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegment.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegment.java new file mode 100644 index 000000000000..7d7b76592b7d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegment.java @@ -0,0 +1,992 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Video segment.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.VideoSegment} + */ +public final class VideoSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.VideoSegment) + VideoSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use VideoSegment.newBuilder() to construct. + private VideoSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VideoSegment() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VideoSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTimeOffset_ != null) { + subBuilder = startTimeOffset_.toBuilder(); + } + startTimeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTimeOffset_); + startTimeOffset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTimeOffset_ != null) { + subBuilder = endTimeOffset_.toBuilder(); + } + endTimeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTimeOffset_); + endTimeOffset_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.class, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder.class); + } + + public static final int START_TIME_OFFSET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration startTimeOffset_; + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public boolean hasStartTimeOffset() { + return startTimeOffset_ != null; + } + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.Duration getStartTimeOffset() { + return startTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : startTimeOffset_; + } + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { + return getStartTimeOffset(); + } + + public static final int END_TIME_OFFSET_FIELD_NUMBER = 2; + private com.google.protobuf.Duration endTimeOffset_; + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public boolean hasEndTimeOffset() { + return endTimeOffset_ != null; + } + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.Duration getEndTimeOffset() { + return endTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endTimeOffset_; + } + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() { + return getEndTimeOffset(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTimeOffset_ != null) { + output.writeMessage(1, getStartTimeOffset()); + } + if (endTimeOffset_ != null) { + output.writeMessage(2, getEndTimeOffset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTimeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTimeOffset()); + } + if (endTimeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTimeOffset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.VideoSegment)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.VideoSegment other = + (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) obj; + + boolean result = true; + result = result && (hasStartTimeOffset() == other.hasStartTimeOffset()); + if (hasStartTimeOffset()) { + result = result && getStartTimeOffset().equals(other.getStartTimeOffset()); + } + result = result && (hasEndTimeOffset() == other.hasEndTimeOffset()); + if (hasEndTimeOffset()) { + result = result && getEndTimeOffset().equals(other.getEndTimeOffset()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTimeOffset()) { + hash = (37 * hash) + START_TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getStartTimeOffset().hashCode(); + } + if (hasEndTimeOffset()) { + hash = (37 * hash) + END_TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getEndTimeOffset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Video segment.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.VideoSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.VideoSegment) + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.class, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.VideoSegment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeOffsetBuilder_ == null) { + startTimeOffset_ = null; + } else { + startTimeOffset_ = null; + startTimeOffsetBuilder_ = null; + } + if (endTimeOffsetBuilder_ == null) { + endTimeOffset_ = null; + } else { + endTimeOffset_ = null; + endTimeOffsetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_VideoSegment_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment build() { + com.google.cloud.videointelligence.v1p3beta1.VideoSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.VideoSegment result = + new com.google.cloud.videointelligence.v1p3beta1.VideoSegment(this); + if (startTimeOffsetBuilder_ == null) { + result.startTimeOffset_ = startTimeOffset_; + } else { + result.startTimeOffset_ = startTimeOffsetBuilder_.build(); + } + if (endTimeOffsetBuilder_ == null) { + result.endTimeOffset_ = endTimeOffset_; + } else { + result.endTimeOffset_ = endTimeOffsetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.VideoSegment) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.VideoSegment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.VideoSegment other) { + if (other == com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()) + return this; + if (other.hasStartTimeOffset()) { + mergeStartTimeOffset(other.getStartTimeOffset()); + } + if (other.hasEndTimeOffset()) { + mergeEndTimeOffset(other.getEndTimeOffset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p3beta1.VideoSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration startTimeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + startTimeOffsetBuilder_; + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public boolean hasStartTimeOffset() { + return startTimeOffsetBuilder_ != null || startTimeOffset_ != null; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.Duration getStartTimeOffset() { + if (startTimeOffsetBuilder_ == null) { + return startTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : startTimeOffset_; + } else { + return startTimeOffsetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder setStartTimeOffset(com.google.protobuf.Duration value) { + if (startTimeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTimeOffset_ = value; + onChanged(); + } else { + startTimeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder setStartTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { + if (startTimeOffsetBuilder_ == null) { + startTimeOffset_ = builderForValue.build(); + onChanged(); + } else { + startTimeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder mergeStartTimeOffset(com.google.protobuf.Duration value) { + if (startTimeOffsetBuilder_ == null) { + if (startTimeOffset_ != null) { + startTimeOffset_ = + com.google.protobuf.Duration.newBuilder(startTimeOffset_) + .mergeFrom(value) + .buildPartial(); + } else { + startTimeOffset_ = value; + } + onChanged(); + } else { + startTimeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder clearStartTimeOffset() { + if (startTimeOffsetBuilder_ == null) { + startTimeOffset_ = null; + onChanged(); + } else { + startTimeOffset_ = null; + startTimeOffsetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.Duration.Builder getStartTimeOffsetBuilder() { + + onChanged(); + return getStartTimeOffsetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { + if (startTimeOffsetBuilder_ != null) { + return startTimeOffsetBuilder_.getMessageOrBuilder(); + } else { + return startTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : startTimeOffset_; + } + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getStartTimeOffsetFieldBuilder() { + if (startTimeOffsetBuilder_ == null) { + startTimeOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getStartTimeOffset(), getParentForChildren(), isClean()); + startTimeOffset_ = null; + } + return startTimeOffsetBuilder_; + } + + private com.google.protobuf.Duration endTimeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + endTimeOffsetBuilder_; + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public boolean hasEndTimeOffset() { + return endTimeOffsetBuilder_ != null || endTimeOffset_ != null; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.Duration getEndTimeOffset() { + if (endTimeOffsetBuilder_ == null) { + return endTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endTimeOffset_; + } else { + return endTimeOffsetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder setEndTimeOffset(com.google.protobuf.Duration value) { + if (endTimeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTimeOffset_ = value; + onChanged(); + } else { + endTimeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder setEndTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { + if (endTimeOffsetBuilder_ == null) { + endTimeOffset_ = builderForValue.build(); + onChanged(); + } else { + endTimeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder mergeEndTimeOffset(com.google.protobuf.Duration value) { + if (endTimeOffsetBuilder_ == null) { + if (endTimeOffset_ != null) { + endTimeOffset_ = + com.google.protobuf.Duration.newBuilder(endTimeOffset_) + .mergeFrom(value) + .buildPartial(); + } else { + endTimeOffset_ = value; + } + onChanged(); + } else { + endTimeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder clearEndTimeOffset() { + if (endTimeOffsetBuilder_ == null) { + endTimeOffset_ = null; + onChanged(); + } else { + endTimeOffset_ = null; + endTimeOffsetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.Duration.Builder getEndTimeOffsetBuilder() { + + onChanged(); + return getEndTimeOffsetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() { + if (endTimeOffsetBuilder_ != null) { + return endTimeOffsetBuilder_.getMessageOrBuilder(); + } else { + return endTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endTimeOffset_; + } + } + /** + * + * + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getEndTimeOffsetFieldBuilder() { + if (endTimeOffsetBuilder_ == null) { + endTimeOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getEndTimeOffset(), getParentForChildren(), isClean()); + endTimeOffset_ = null; + } + return endTimeOffsetBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.VideoSegment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.VideoSegment) + private static final com.google.cloud.videointelligence.v1p3beta1.VideoSegment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.VideoSegment(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.VideoSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoSegment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegmentOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegmentOrBuilder.java new file mode 100644 index 000000000000..058457fa9992 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegmentOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface VideoSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.VideoSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + boolean hasStartTimeOffset(); + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + com.google.protobuf.Duration getStartTimeOffset(); + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder(); + + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + boolean hasEndTimeOffset(); + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + com.google.protobuf.Duration getEndTimeOffset(); + /** + * + * + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/proto/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/proto/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto new file mode 100644 index 000000000000..dc65a651e78c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/proto/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto @@ -0,0 +1,627 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.videointelligence.v1p3beta1; + +import "google/api/annotations.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.VideoIntelligence.V1P3Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p3beta1;videointelligence"; +option java_multiple_files = true; +option java_outer_classname = "VideoIntelligenceServiceProto"; +option java_package = "com.google.cloud.videointelligence.v1p3beta1"; +option php_namespace = "Google\\Cloud\\VideoIntelligence\\V1p3beta1"; + +// Service that implements Google Cloud Video Intelligence API. +service VideoIntelligenceService { + // Performs asynchronous video annotation. Progress and results can be + // retrieved through the `google.longrunning.Operations` interface. + // `Operation.metadata` contains `AnnotateVideoProgress` (progress). + // `Operation.response` contains `AnnotateVideoResponse` (results). + rpc AnnotateVideo(AnnotateVideoRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1p3beta1/videos:annotate" + body: "*" + }; + } +} + +// Service that implements Google Cloud Video Intelligence Streaming API. +service StreamingVideoIntelligenceService { + // Performs video annotation with bidirectional streaming: emitting results + // while sending video/audio bytes. + // This method is only available via the gRPC API (not REST). + rpc StreamingAnnotateVideo(stream StreamingAnnotateVideoRequest) + returns (stream StreamingAnnotateVideoResponse); +} + +// Video annotation request. +message AnnotateVideoRequest { + // Input video location. Currently, only + // [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + // supported, which must be specified in the following format: + // `gs://bucket-id/object-id` (other URI formats return + // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + // more information, see [Request URIs](/storage/docs/reference-uris). A video + // URI may include wildcards in `object-id`, and thus identify multiple + // videos. Supported wildcards: '*' to match 0 or more characters; + // '?' to match 1 character. If unset, the input video should be embedded + // in the request as `input_content`. If set, `input_content` should be unset. + string input_uri = 1; + + // The video data bytes. + // If unset, the input video(s) should be specified via `input_uri`. + // If set, `input_uri` should be unset. + bytes input_content = 6; + + // Requested video annotation features. + repeated Feature features = 2; + + // Additional video context and/or feature-specific parameters. + VideoContext video_context = 3; + + // Optional location where the output (in JSON format) should be stored. + // Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + // URIs are supported, which must be specified in the following format: + // `gs://bucket-id/object-id` (other URI formats return + // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + // more information, see [Request URIs](/storage/docs/reference-uris). + string output_uri = 4; + + // Optional cloud region where annotation should take place. Supported cloud + // regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + // is specified, a region will be determined based on video file location. + string location_id = 5; +} + +// Video context and/or feature-specific parameters. +message VideoContext { + // Video segments to annotate. The segments may overlap and are not required + // to be contiguous or span the whole video. If unspecified, each video is + // treated as a single segment. + repeated VideoSegment segments = 1; + + // Config for LABEL_DETECTION. + LabelDetectionConfig label_detection_config = 2; + + // Config for SHOT_CHANGE_DETECTION. + ShotChangeDetectionConfig shot_change_detection_config = 3; + + // Config for EXPLICIT_CONTENT_DETECTION. + ExplicitContentDetectionConfig explicit_content_detection_config = 4; + + // Config for TEXT_DETECTION. + TextDetectionConfig text_detection_config = 8; +} + +// Config for LABEL_DETECTION. +message LabelDetectionConfig { + // What labels should be detected with LABEL_DETECTION, in addition to + // video-level labels or segment-level labels. + // If unspecified, defaults to `SHOT_MODE`. + LabelDetectionMode label_detection_mode = 1; + + // Whether the video has been shot from a stationary (i.e. non-moving) camera. + // When set to true, might improve detection accuracy for moving objects. + // Should be used with `SHOT_AND_FRAME_MODE` enabled. + bool stationary_camera = 2; + + // Model to use for label detection. + // Supported values: "builtin/stable" (the default if unset) and + // "builtin/latest". + string model = 3; +} + +// Config for SHOT_CHANGE_DETECTION. +message ShotChangeDetectionConfig { + // Model to use for shot change detection. + // Supported values: "builtin/stable" (the default if unset) and + // "builtin/latest". + string model = 1; +} + +// Config for EXPLICIT_CONTENT_DETECTION. +message ExplicitContentDetectionConfig { + // Model to use for explicit content detection. + // Supported values: "builtin/stable" (the default if unset) and + // "builtin/latest". + string model = 1; +} + +// Config for TEXT_DETECTION. +message TextDetectionConfig { + // Language hint can be specified if the language to be detected is known a + // priori. It can increase the accuracy of the detection. Language hint must + // be language code in BCP-47 format. + // + // Automatic language detection is performed if no hint is provided. + repeated string language_hints = 1; +} + +// Video segment. +message VideoSegment { + // Time-offset, relative to the beginning of the video, + // corresponding to the start of the segment (inclusive). + google.protobuf.Duration start_time_offset = 1; + + // Time-offset, relative to the beginning of the video, + // corresponding to the end of the segment (inclusive). + google.protobuf.Duration end_time_offset = 2; +} + +// Video segment level annotation results for label detection. +message LabelSegment { + // Video segment where a label was detected. + VideoSegment segment = 1; + + // Confidence that the label is accurate. Range: [0, 1]. + float confidence = 2; +} + +// Video frame level annotation results for label detection. +message LabelFrame { + // Time-offset, relative to the beginning of the video, corresponding to the + // video frame for this location. + google.protobuf.Duration time_offset = 1; + + // Confidence that the label is accurate. Range: [0, 1]. + float confidence = 2; +} + +// Detected entity from video analysis. +message Entity { + // Opaque entity ID. Some IDs may be available in + // [Google Knowledge Graph Search + // API](https://developers.google.com/knowledge-graph/). + string entity_id = 1; + + // Textual description, e.g. `Fixed-gear bicycle`. + string description = 2; + + // Language code for `description` in BCP-47 format. + string language_code = 3; +} + +// Label annotation. +message LabelAnnotation { + // Detected entity. + Entity entity = 1; + + // Common categories for the detected entity. + // E.g. when the label is `Terrier` the category is likely `dog`. And in some + // cases there might be more than one categories e.g. `Terrier` could also be + // a `pet`. + repeated Entity category_entities = 2; + + // All video segments where a label was detected. + repeated LabelSegment segments = 3; + + // All video frames where a label was detected. + repeated LabelFrame frames = 4; +} + +// Video frame level annotation results for explicit content. +message ExplicitContentFrame { + // Time-offset, relative to the beginning of the video, corresponding to the + // video frame for this location. + google.protobuf.Duration time_offset = 1; + + // Likelihood of the pornography content.. + Likelihood pornography_likelihood = 2; +} + +// Explicit content annotation (based on per-frame visual signals only). +// If no explicit content has been detected in a frame, no annotations are +// present for that frame. +message ExplicitContentAnnotation { + // All video frames where explicit content was detected. + repeated ExplicitContentFrame frames = 1; +} + +// Normalized bounding box. +// The normalized vertex coordinates are relative to the original image. +// Range: [0, 1]. +message NormalizedBoundingBox { + // Left X coordinate. + float left = 1; + + // Top Y coordinate. + float top = 2; + + // Right X coordinate. + float right = 3; + + // Bottom Y coordinate. + float bottom = 4; +} + +// Annotation results for a single video. +message VideoAnnotationResults { + // Video file location in + // [Google Cloud Storage](https://cloud.google.com/storage/). + string input_uri = 1; + + // Label annotations on video level or user specified segment level. + // There is exactly one element for each unique label. + repeated LabelAnnotation segment_label_annotations = 2; + + // Label annotations on shot level. + // There is exactly one element for each unique label. + repeated LabelAnnotation shot_label_annotations = 3; + + // Label annotations on frame level. + // There is exactly one element for each unique label. + repeated LabelAnnotation frame_label_annotations = 4; + + // Shot annotations. Each shot is represented as a video segment. + repeated VideoSegment shot_annotations = 6; + + // Explicit content annotation. + ExplicitContentAnnotation explicit_annotation = 7; + + // OCR text detection and tracking. + // Annotations for list of detected text snippets. Each will have list of + // frame information associated with it. + repeated TextAnnotation text_annotations = 12; + + // Annotations for list of objects detected and tracked in video. + repeated ObjectTrackingAnnotation object_annotations = 14; + + // If set, indicates an error. Note that for a single `AnnotateVideoRequest` + // some videos may succeed and some may fail. + google.rpc.Status error = 9; +} + +// Video annotation response. Included in the `response` +// field of the `Operation` returned by the `GetOperation` +// call of the `google::longrunning::Operations` service. +message AnnotateVideoResponse { + // Annotation results for all videos specified in `AnnotateVideoRequest`. + repeated VideoAnnotationResults annotation_results = 1; +} + +// Annotation progress for a single video. +message VideoAnnotationProgress { + // Video file location in + // [Google Cloud Storage](https://cloud.google.com/storage/). + string input_uri = 1; + + // Approximate percentage processed thus far. Guaranteed to be + // 100 when fully processed. + int32 progress_percent = 2; + + // Time when the request was received. + google.protobuf.Timestamp start_time = 3; + + // Time of the most recent update. + google.protobuf.Timestamp update_time = 4; +} + +// Video annotation progress. Included in the `metadata` +// field of the `Operation` returned by the `GetOperation` +// call of the `google::longrunning::Operations` service. +message AnnotateVideoProgress { + // Progress metadata for all videos specified in `AnnotateVideoRequest`. + repeated VideoAnnotationProgress annotation_progress = 1; +} + +// A vertex represents a 2D point in the image. +// NOTE: the normalized vertex coordinates are relative to the original image +// and range from 0 to 1. +message NormalizedVertex { + // X coordinate. + float x = 1; + + // Y coordinate. + float y = 2; +} + +// Normalized bounding polygon for text (that might not be aligned with axis). +// Contains list of the corner points in clockwise order starting from +// top-left corner. For example, for a rectangular bounding box: +// When the text is horizontal it might look like: +// 0----1 +// | | +// 3----2 +// +// When it's clockwise rotated 180 degrees around the top-left corner it +// becomes: +// 2----3 +// | | +// 1----0 +// +// and the vertex order will still be (0, 1, 2, 3). Note that values can be less +// than 0, or greater than 1 due to trignometric calculations for location of +// the box. +message NormalizedBoundingPoly { + // Normalized vertices of the bounding polygon. + repeated NormalizedVertex vertices = 1; +} + +// Video segment level annotation results for text detection. +message TextSegment { + // Video segment where a text snippet was detected. + VideoSegment segment = 1; + + // Confidence for the track of detected text. It is calculated as the highest + // over all frames where OCR detected text appears. + float confidence = 2; + + // Information related to the frames where OCR detected text appears. + repeated TextFrame frames = 3; +} + +// Video frame level annotation results for text annotation (OCR). +// Contains information regarding timestamp and bounding box locations for the +// frames containing detected OCR text snippets. +message TextFrame { + // Bounding polygon of the detected text for this frame. + NormalizedBoundingPoly rotated_bounding_box = 1; + + // Timestamp of this frame. + google.protobuf.Duration time_offset = 2; +} + +// Annotations related to one detected OCR text snippet. This will contain the +// corresponding text, confidence value, and frame level information for each +// detection. +message TextAnnotation { + // The detected text. + string text = 1; + + // All video segments where OCR detected text appears. + repeated TextSegment segments = 2; +} + +// Video frame level annotations for object detection and tracking. This field +// stores per frame location, time offset, and confidence. +message ObjectTrackingFrame { + // The normalized bounding box location of this object track for the frame. + NormalizedBoundingBox normalized_bounding_box = 1; + + // The timestamp of the frame in microseconds. + google.protobuf.Duration time_offset = 2; +} + +// Annotations corresponding to one tracked object. +message ObjectTrackingAnnotation { + // Entity to specify the object category that this track is labeled as. + Entity entity = 1; + + // Object category's labeling confidence of this track. + float confidence = 4; + + // Information corresponding to all frames where this object track appears. + // Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + // messages in frames. + // Streaming mode: it can only be one ObjectTrackingFrame message in frames. + repeated ObjectTrackingFrame frames = 2; + + // Different representation of tracking info in non-streaming batch + // and streaming modes. + oneof track_info { + // Non-streaming batch mode ONLY. + // Each object track corresponds to one video segment where it appears. + VideoSegment segment = 3; + // Streaming mode ONLY. + // In streaming mode, we do not know the end time of a tracked object + // before it is completed. Hence, there is no VideoSegment info returned. + // Instead, we provide a unique identifiable integer track_id so that + // the customers can correlate the results of the ongoing + // ObjectTrackAnnotation of the same track_id over time. + int64 track_id = 5; + } +} + +// The top-level message sent by the client for the `StreamingAnnotateVideo` +// method. Multiple `StreamingAnnotateVideoRequest` messages are sent. +// The first message must only contain a `StreamingVideoConfig` message. +// All subsequent messages must only contain `input_content` data. +message StreamingAnnotateVideoRequest { + // *Required* The streaming request, which is either a streaming config or + // video content. + oneof streaming_request { + // Provides information to the annotator, specifing how to process the + // request. The first `AnnotateStreamingVideoRequest` message must only + // contain a `video_config` message. + StreamingVideoConfig video_config = 1; + + // The video data to be annotated. Chunks of video data are sequentially + // sent in `StreamingAnnotateVideoRequest` messages. Except the initial + // `StreamingAnnotateVideoRequest` message containing only + // `video_config`, all subsequent `AnnotateStreamingVideoRequest` + // messages must only contain `input_content` field. + bytes input_content = 2; + } +} + +// `StreamingAnnotateVideoResponse` is the only message returned to the client +// by `StreamingAnnotateVideo`. A series of zero or more +// `StreamingAnnotateVideoResponse` messages are streamed back to the client. +message StreamingAnnotateVideoResponse { + // If set, returns a [google.rpc.Status][] message that + // specifies the error for the operation. + google.rpc.Status error = 1; + + // Streaming annotation results. + StreamingVideoAnnotationResults annotation_results = 2; + + // GCS URI that stores annotation results of one streaming session. + // It is a directory that can hold multiple files in JSON format. + // Example uri format: + // gs://bucket_id/object_id/cloud_project_name-session_id + string annotation_results_uri = 3; +} + +// Config for EXPLICIT_CONTENT_DETECTION in streaming mode. +message StreamingExplicitContentDetectionConfig { + // No customized config support. +} + +// Config for LABEL_DETECTION in streaming mode. +message StreamingLabelDetectionConfig { + // Whether the video has been captured from a stationary (i.e. non-moving) + // camera. When set to true, might improve detection accuracy for moving + // objects. Default: false. + bool stationary_camera = 1; +} + +// Config for STREAMING_OBJECT_TRACKING. +message StreamingObjectTrackingConfig { + // No customized config support. +} + +// Config for SHOT_CHANGE_DETECTION in streaming mode. +message StreamingShotChangeDetectionConfig { + // No customized config support. +} + +// Config for streaming storage option. +message StreamingStorageConfig { + // Enable streaming storage. Default: false. + bool enable_storage_annotation_result = 1; + + // GCS URI to store all annotation results for one client. Client should + // specify this field as the top-level storage directory. Annotation results + // of different sessions will be put into different sub-directories denoted + // by project_name and session_id. All sub-directories will be auto generated + // by program and will be made accessible to client in response proto. + // URIs must be specified in the following format: `gs://bucket-id/object-id` + // `bucket-id` should be a valid GCS bucket created by client and bucket + // permission shall also be configured properly. `object-id` can be arbitrary + // string that make sense to client. Other URI formats will return error and + // cause GCS write failure. + string annotation_result_storage_directory = 3; +} + +// Streaming annotation results corresponding to a portion of the video +// that is currently being processed. +message StreamingVideoAnnotationResults { + // Shot annotation results. Each shot is represented as a video segment. + repeated VideoSegment shot_annotations = 1; + + // Label annotation results. + repeated LabelAnnotation label_annotations = 2; + + // Explicit content detection results. + ExplicitContentAnnotation explicit_annotation = 3; + + // Object tracking results. + repeated ObjectTrackingAnnotation object_annotations = 4; +} + +// Provides information to the annotator that specifies how to process the +// request. +message StreamingVideoConfig { + // Requested annotation feature. + StreamingFeature feature = 1; + + // Config for requested annotation feature. + oneof streaming_config { + // Config for SHOT_CHANGE_DETECTION. + StreamingShotChangeDetectionConfig shot_change_detection_config = 2; + + // Config for LABEL_DETECTION. + StreamingLabelDetectionConfig label_detection_config = 3; + + // Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + StreamingExplicitContentDetectionConfig explicit_content_detection_config = + 4; + + // Config for STREAMING_OBJECT_TRACKING. + StreamingObjectTrackingConfig object_tracking_config = 5; + } + + // Streaming storage option. By default: storage is disabled. + StreamingStorageConfig storage_config = 30; +} + +// Video annotation feature. +enum Feature { + // Unspecified. + FEATURE_UNSPECIFIED = 0; + + // Label detection. Detect objects, such as dog or flower. + LABEL_DETECTION = 1; + + // Shot change detection. + SHOT_CHANGE_DETECTION = 2; + + // Explicit content detection. + EXPLICIT_CONTENT_DETECTION = 3; + + // OCR text detection and tracking. + TEXT_DETECTION = 7; + + // Object detection and tracking. + OBJECT_TRACKING = 9; +} + +// Label detection mode. +enum LabelDetectionMode { + // Unspecified. + LABEL_DETECTION_MODE_UNSPECIFIED = 0; + + // Detect shot-level labels. + SHOT_MODE = 1; + + // Detect frame-level labels. + FRAME_MODE = 2; + + // Detect both shot-level and frame-level labels. + SHOT_AND_FRAME_MODE = 3; +} + +// Bucketized representation of likelihood. +enum Likelihood { + // Unspecified likelihood. + LIKELIHOOD_UNSPECIFIED = 0; + + // Very unlikely. + VERY_UNLIKELY = 1; + + // Unlikely. + UNLIKELY = 2; + + // Possible. + POSSIBLE = 3; + + // Likely. + LIKELY = 4; + + // Very likely. + VERY_LIKELY = 5; +} + +// Streaming video annotation feature. +enum StreamingFeature { + // Unspecified. + STREAMING_FEATURE_UNSPECIFIED = 0; + // Label detection. Detect objects, such as dog or flower. + STREAMING_LABEL_DETECTION = 1; + // Shot change detection. + STREAMING_SHOT_CHANGE_DETECTION = 2; + // Explicit content detection. + STREAMING_EXPLICIT_CONTENT_DETECTION = 3; + // Object detection and tracking. + STREAMING_OBJECT_TRACKING = 4; +} diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index 8fcad29f6697..bad21c38538a 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -915,6 +915,16 @@ grpc-google-cloud-video-intelligence-v1p2beta1 0.48.1-SNAPSHOT
+ + com.google.api.grpc + proto-google-cloud-video-intelligence-v1p3beta1 + 0.48.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-video-intelligence-v1p3beta1 + 0.48.1-SNAPSHOT + com.google.api.grpc proto-google-cloud-iot-v1 diff --git a/google-cloud-clients/google-cloud-video-intelligence/pom.xml b/google-cloud-clients/google-cloud-video-intelligence/pom.xml index 932cd74870b2..e7edc3c3ab9b 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/pom.xml +++ b/google-cloud-clients/google-cloud-video-intelligence/pom.xml @@ -46,6 +46,10 @@ com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 + + com.google.api.grpc + proto-google-cloud-video-intelligence-v1p3beta1 + io.grpc grpc-netty-shaded @@ -96,6 +100,11 @@ grpc-google-cloud-video-intelligence-v1p2beta1 test + + com.google.api.grpc + grpc-google-cloud-video-intelligence-v1p3beta1 + test + com.google.api diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java new file mode 100644 index 000000000000..7fe7b85ac590 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java @@ -0,0 +1,209 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.cloud.videointelligence.v1p3beta1.stub.StreamingVideoIntelligenceServiceStub; +import com.google.cloud.videointelligence.v1p3beta1.stub.StreamingVideoIntelligenceServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Service that implements Google Cloud Video Intelligence Streaming API. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (StreamingVideoIntelligenceServiceClient streamingVideoIntelligenceServiceClient = StreamingVideoIntelligenceServiceClient.create()) {
+ *   StreamingAnnotateVideoRequest request = StreamingAnnotateVideoRequest.newBuilder().build();
+ *   ApiFuture<StreamingAnnotateVideoResponse> future = streamingVideoIntelligenceServiceClient.streamingAnnotateVideoCallable().futureCall(request);
+ *   // Do something
+ *   StreamingAnnotateVideoResponse response = future.get();
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the streamingVideoIntelligenceServiceClient object to + * clean up resources such as threads. In the example above, try-with-resources is used, which + * automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * StreamingVideoIntelligenceServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * StreamingVideoIntelligenceServiceSettings streamingVideoIntelligenceServiceSettings =
+ *     StreamingVideoIntelligenceServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * StreamingVideoIntelligenceServiceClient streamingVideoIntelligenceServiceClient =
+ *     StreamingVideoIntelligenceServiceClient.create(streamingVideoIntelligenceServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * StreamingVideoIntelligenceServiceSettings streamingVideoIntelligenceServiceSettings =
+ *     StreamingVideoIntelligenceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * StreamingVideoIntelligenceServiceClient streamingVideoIntelligenceServiceClient =
+ *     StreamingVideoIntelligenceServiceClient.create(streamingVideoIntelligenceServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class StreamingVideoIntelligenceServiceClient implements BackgroundResource { + private final StreamingVideoIntelligenceServiceSettings settings; + private final StreamingVideoIntelligenceServiceStub stub; + + /** Constructs an instance of StreamingVideoIntelligenceServiceClient with default settings. */ + public static final StreamingVideoIntelligenceServiceClient create() throws IOException { + return create(StreamingVideoIntelligenceServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of StreamingVideoIntelligenceServiceClient, using the given settings. + * The channels are created based on the settings passed in, or defaults for any settings that are + * not set. + */ + public static final StreamingVideoIntelligenceServiceClient create( + StreamingVideoIntelligenceServiceSettings settings) throws IOException { + return new StreamingVideoIntelligenceServiceClient(settings); + } + + /** + * Constructs an instance of StreamingVideoIntelligenceServiceClient, using the given stub for + * making calls. This is for advanced usage - prefer to use + * StreamingVideoIntelligenceServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final StreamingVideoIntelligenceServiceClient create( + StreamingVideoIntelligenceServiceStub stub) { + return new StreamingVideoIntelligenceServiceClient(stub); + } + + /** + * Constructs an instance of StreamingVideoIntelligenceServiceClient, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected StreamingVideoIntelligenceServiceClient( + StreamingVideoIntelligenceServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = + ((StreamingVideoIntelligenceServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected StreamingVideoIntelligenceServiceClient(StreamingVideoIntelligenceServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final StreamingVideoIntelligenceServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public StreamingVideoIntelligenceServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Performs video annotation with bidirectional streaming: emitting results while sending + * video/audio bytes. This method is only available via the gRPC API (not REST). + * + *

Sample code: + * + *


+   * try (StreamingVideoIntelligenceServiceClient streamingVideoIntelligenceServiceClient = StreamingVideoIntelligenceServiceClient.create()) {
+   *   BidiStream<StreamingAnnotateVideoRequest, StreamingAnnotateVideoResponse> bidiStream =
+   *       streamingVideoIntelligenceServiceClient.streamingAnnotateVideoCallable().call();
+   *
+   *   StreamingAnnotateVideoRequest request = StreamingAnnotateVideoRequest.newBuilder().build();
+   *   bidiStream.send(request);
+   *   for (StreamingAnnotateVideoResponse response : bidiStream) {
+   *     // Do something when receive a response
+   *   }
+   * }
+   * 
+ */ + public final BidiStreamingCallable + streamingAnnotateVideoCallable() { + return stub.streamingAnnotateVideoCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceSettings.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceSettings.java new file mode 100644 index 000000000000..f35d9b1e95df --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceSettings.java @@ -0,0 +1,182 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.videointelligence.v1p3beta1.stub.StreamingVideoIntelligenceServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link StreamingVideoIntelligenceServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (videointelligence.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of streamingAnnotateVideoCallable to 30 seconds: + * + *

+ * 
+ * StreamingVideoIntelligenceServiceSettings.Builder streamingVideoIntelligenceServiceSettingsBuilder =
+ *     StreamingVideoIntelligenceServiceSettings.newBuilder();
+ * streamingVideoIntelligenceServiceSettingsBuilder.streamingAnnotateVideoSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * StreamingVideoIntelligenceServiceSettings streamingVideoIntelligenceServiceSettings = streamingVideoIntelligenceServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class StreamingVideoIntelligenceServiceSettings + extends ClientSettings { + /** Returns the object with the settings used for calls to streamingAnnotateVideo. */ + public StreamingCallSettings + streamingAnnotateVideoSettings() { + return ((StreamingVideoIntelligenceServiceStubSettings) getStubSettings()) + .streamingAnnotateVideoSettings(); + } + + public static final StreamingVideoIntelligenceServiceSettings create( + StreamingVideoIntelligenceServiceStubSettings stub) throws IOException { + return new StreamingVideoIntelligenceServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return StreamingVideoIntelligenceServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return StreamingVideoIntelligenceServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return StreamingVideoIntelligenceServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return StreamingVideoIntelligenceServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return StreamingVideoIntelligenceServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return StreamingVideoIntelligenceServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return StreamingVideoIntelligenceServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected StreamingVideoIntelligenceServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for StreamingVideoIntelligenceServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(StreamingVideoIntelligenceServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(StreamingVideoIntelligenceServiceStubSettings.newBuilder()); + } + + protected Builder(StreamingVideoIntelligenceServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(StreamingVideoIntelligenceServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public StreamingVideoIntelligenceServiceStubSettings.Builder getStubSettingsBuilder() { + return ((StreamingVideoIntelligenceServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to streamingAnnotateVideo. */ + public StreamingCallSettings.Builder< + StreamingAnnotateVideoRequest, StreamingAnnotateVideoResponse> + streamingAnnotateVideoSettings() { + return getStubSettingsBuilder().streamingAnnotateVideoSettings(); + } + + @Override + public StreamingVideoIntelligenceServiceSettings build() throws IOException { + return new StreamingVideoIntelligenceServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java new file mode 100644 index 000000000000..7b199a4c816e --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java @@ -0,0 +1,328 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.videointelligence.v1p3beta1.stub.VideoIntelligenceServiceStub; +import com.google.cloud.videointelligence.v1p3beta1.stub.VideoIntelligenceServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Service that implements Google Cloud Video Intelligence API. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+ *   String inputUri = "gs://demomaker/cat.mp4";
+ *   Feature featuresElement = Feature.LABEL_DETECTION;
+ *   List<Feature> features = Arrays.asList(featuresElement);
+ *   AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features).get();
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the videoIntelligenceServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * VideoIntelligenceServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
+ *     VideoIntelligenceServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * VideoIntelligenceServiceClient videoIntelligenceServiceClient =
+ *     VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
+ *     VideoIntelligenceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * VideoIntelligenceServiceClient videoIntelligenceServiceClient =
+ *     VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class VideoIntelligenceServiceClient implements BackgroundResource { + private final VideoIntelligenceServiceSettings settings; + private final VideoIntelligenceServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of VideoIntelligenceServiceClient with default settings. */ + public static final VideoIntelligenceServiceClient create() throws IOException { + return create(VideoIntelligenceServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of VideoIntelligenceServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final VideoIntelligenceServiceClient create( + VideoIntelligenceServiceSettings settings) throws IOException { + return new VideoIntelligenceServiceClient(settings); + } + + /** + * Constructs an instance of VideoIntelligenceServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer to use VideoIntelligenceServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final VideoIntelligenceServiceClient create(VideoIntelligenceServiceStub stub) { + return new VideoIntelligenceServiceClient(stub); + } + + /** + * Constructs an instance of VideoIntelligenceServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected VideoIntelligenceServiceClient(VideoIntelligenceServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((VideoIntelligenceServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected VideoIntelligenceServiceClient(VideoIntelligenceServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final VideoIntelligenceServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public VideoIntelligenceServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Performs asynchronous video annotation. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. `Operation.metadata` contains + * `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` + * (results). + * + *

Sample code: + * + *


+   * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+   *   String inputUri = "gs://demomaker/cat.mp4";
+   *   Feature featuresElement = Feature.LABEL_DETECTION;
+   *   List<Feature> features = Arrays.asList(featuresElement);
+   *   AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features).get();
+   * }
+   * 
+ * + * @param inputUri Input video location. Currently, only [Google Cloud + * Storage](https://cloud.google.com/storage/) URIs are supported, which must be specified in + * the following format: `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more + * information, see [Request URIs](/storage/docs/reference-uris). A video URI may include + * wildcards in `object-id`, and thus identify multiple videos. Supported wildcards: '*' + * to match 0 or more characters; '?' to match 1 character. If unset, the input video should + * be embedded in the request as `input_content`. If set, `input_content` should be unset. + * @param features Requested video annotation features. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture annotateVideoAsync( + String inputUri, List features) { + + AnnotateVideoRequest request = + AnnotateVideoRequest.newBuilder().setInputUri(inputUri).addAllFeatures(features).build(); + return annotateVideoAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Performs asynchronous video annotation. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. `Operation.metadata` contains + * `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` + * (results). + * + *

Sample code: + * + *


+   * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+   *   String inputUri = "gs://demomaker/cat.mp4";
+   *   Feature featuresElement = Feature.LABEL_DETECTION;
+   *   List<Feature> features = Arrays.asList(featuresElement);
+   *   AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder()
+   *     .setInputUri(inputUri)
+   *     .addAllFeatures(features)
+   *     .build();
+   *   AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(request).get();
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture annotateVideoAsync( + AnnotateVideoRequest request) { + return annotateVideoOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Performs asynchronous video annotation. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. `Operation.metadata` contains + * `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` + * (results). + * + *

Sample code: + * + *


+   * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+   *   String inputUri = "gs://demomaker/cat.mp4";
+   *   Feature featuresElement = Feature.LABEL_DETECTION;
+   *   List<Feature> features = Arrays.asList(featuresElement);
+   *   AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder()
+   *     .setInputUri(inputUri)
+   *     .addAllFeatures(features)
+   *     .build();
+   *   OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> future = videoIntelligenceServiceClient.annotateVideoOperationCallable().futureCall(request);
+   *   // Do something
+   *   AnnotateVideoResponse response = future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + annotateVideoOperationCallable() { + return stub.annotateVideoOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Performs asynchronous video annotation. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. `Operation.metadata` contains + * `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` + * (results). + * + *

Sample code: + * + *


+   * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+   *   String inputUri = "gs://demomaker/cat.mp4";
+   *   Feature featuresElement = Feature.LABEL_DETECTION;
+   *   List<Feature> features = Arrays.asList(featuresElement);
+   *   AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder()
+   *     .setInputUri(inputUri)
+   *     .addAllFeatures(features)
+   *     .build();
+   *   ApiFuture<Operation> future = videoIntelligenceServiceClient.annotateVideoCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable annotateVideoCallable() { + return stub.annotateVideoCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSettings.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSettings.java new file mode 100644 index 000000000000..4bb1d40dbfa0 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSettings.java @@ -0,0 +1,197 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.videointelligence.v1p3beta1.stub.VideoIntelligenceServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link VideoIntelligenceServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (videointelligence.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of annotateVideoAsync to 30 seconds: + * + *

+ * 
+ * VideoIntelligenceServiceSettings.Builder videoIntelligenceServiceSettingsBuilder =
+ *     VideoIntelligenceServiceSettings.newBuilder();
+ * videoIntelligenceServiceSettingsBuilder.annotateVideoSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = videoIntelligenceServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class VideoIntelligenceServiceSettings + extends ClientSettings { + /** Returns the object with the settings used for calls to annotateVideo. */ + public UnaryCallSettings annotateVideoSettings() { + return ((VideoIntelligenceServiceStubSettings) getStubSettings()).annotateVideoSettings(); + } + + /** Returns the object with the settings used for calls to annotateVideo. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings + annotateVideoOperationSettings() { + return ((VideoIntelligenceServiceStubSettings) getStubSettings()) + .annotateVideoOperationSettings(); + } + + public static final VideoIntelligenceServiceSettings create( + VideoIntelligenceServiceStubSettings stub) throws IOException { + return new VideoIntelligenceServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return VideoIntelligenceServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return VideoIntelligenceServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return VideoIntelligenceServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return VideoIntelligenceServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return VideoIntelligenceServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return VideoIntelligenceServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return VideoIntelligenceServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected VideoIntelligenceServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for VideoIntelligenceServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(VideoIntelligenceServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(VideoIntelligenceServiceStubSettings.newBuilder()); + } + + protected Builder(VideoIntelligenceServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(VideoIntelligenceServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public VideoIntelligenceServiceStubSettings.Builder getStubSettingsBuilder() { + return ((VideoIntelligenceServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to annotateVideo. */ + public UnaryCallSettings.Builder annotateVideoSettings() { + return getStubSettingsBuilder().annotateVideoSettings(); + } + + /** Returns the builder for the settings used for calls to annotateVideo. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> + annotateVideoOperationSettings() { + return getStubSettingsBuilder().annotateVideoOperationSettings(); + } + + @Override + public VideoIntelligenceServiceSettings build() throws IOException { + return new VideoIntelligenceServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/package-info.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/package-info.java new file mode 100644 index 000000000000..63c9e753b03c --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/package-info.java @@ -0,0 +1,55 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Video Intelligence API. + * + *

The interfaces provided are listed below, along with usage samples. + * + *

============================== VideoIntelligenceServiceClient ============================== + * + *

Service Description: Service that implements Google Cloud Video Intelligence API. + * + *

Sample for VideoIntelligenceServiceClient: + * + *

+ * 
+ * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+ *   String inputUri = "gs://demomaker/cat.mp4";
+ *   Feature featuresElement = Feature.LABEL_DETECTION;
+ *   List<Feature> features = Arrays.asList(featuresElement);
+ *   AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features);
+ * }
+ * 
+ * 
+ * + * ======================================= StreamingVideoIntelligenceServiceClient + * ======================================= + * + *

Service Description: Service that implements Google Cloud Video Intelligence Streaming API. + * + *

Sample for StreamingVideoIntelligenceServiceClient: + * + *

+ * 
+ * try (StreamingVideoIntelligenceServiceClient streamingVideoIntelligenceServiceClient = StreamingVideoIntelligenceServiceClient.create()) {
+ *   StreamingAnnotateVideoRequest request = StreamingAnnotateVideoRequest.newBuilder().build();
+ *   StreamingAnnotateVideoResponse response = streamingVideoIntelligenceServiceClient.streamingAnnotateVideoCallable(request);
+ * }
+ * 
+ * 
+ */ +package com.google.cloud.videointelligence.v1p3beta1; diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcStreamingVideoIntelligenceServiceCallableFactory.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcStreamingVideoIntelligenceServiceCallableFactory.java new file mode 100644 index 000000000000..a4b66f1b70a7 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcStreamingVideoIntelligenceServiceCallableFactory.java @@ -0,0 +1,116 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Video Intelligence API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcStreamingVideoIntelligenceServiceCallableFactory + implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcStreamingVideoIntelligenceServiceStub.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcStreamingVideoIntelligenceServiceStub.java new file mode 100644 index 000000000000..645a4f8d4a46 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcStreamingVideoIntelligenceServiceStub.java @@ -0,0 +1,157 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Video Intelligence API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcStreamingVideoIntelligenceServiceStub + extends StreamingVideoIntelligenceServiceStub { + + private static final MethodDescriptor< + StreamingAnnotateVideoRequest, StreamingAnnotateVideoResponse> + streamingAnnotateVideoMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService/StreamingAnnotateVideo") + .setRequestMarshaller( + ProtoUtils.marshaller(StreamingAnnotateVideoRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(StreamingAnnotateVideoResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final BidiStreamingCallable + streamingAnnotateVideoCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcStreamingVideoIntelligenceServiceStub create( + StreamingVideoIntelligenceServiceStubSettings settings) throws IOException { + return new GrpcStreamingVideoIntelligenceServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcStreamingVideoIntelligenceServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcStreamingVideoIntelligenceServiceStub( + StreamingVideoIntelligenceServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcStreamingVideoIntelligenceServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcStreamingVideoIntelligenceServiceStub( + StreamingVideoIntelligenceServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcStreamingVideoIntelligenceServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected GrpcStreamingVideoIntelligenceServiceStub( + StreamingVideoIntelligenceServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcStreamingVideoIntelligenceServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcStreamingVideoIntelligenceServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected GrpcStreamingVideoIntelligenceServiceStub( + StreamingVideoIntelligenceServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings + streamingAnnotateVideoTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(streamingAnnotateVideoMethodDescriptor) + .build(); + + this.streamingAnnotateVideoCallable = + callableFactory.createBidiStreamingCallable( + streamingAnnotateVideoTransportSettings, + settings.streamingAnnotateVideoSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public BidiStreamingCallable + streamingAnnotateVideoCallable() { + return streamingAnnotateVideoCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java new file mode 100644 index 000000000000..ca38bdb1b541 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Video Intelligence API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcVideoIntelligenceServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcVideoIntelligenceServiceStub.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcVideoIntelligenceServiceStub.java new file mode 100644 index 000000000000..226374c38a3f --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/GrpcVideoIntelligenceServiceStub.java @@ -0,0 +1,171 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Video Intelligence API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcVideoIntelligenceServiceStub extends VideoIntelligenceServiceStub { + + private static final MethodDescriptor + annotateVideoMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService/AnnotateVideo") + .setRequestMarshaller( + ProtoUtils.marshaller(AnnotateVideoRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + + private final UnaryCallable annotateVideoCallable; + private final OperationCallable< + AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> + annotateVideoOperationCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcVideoIntelligenceServiceStub create( + VideoIntelligenceServiceStubSettings settings) throws IOException { + return new GrpcVideoIntelligenceServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcVideoIntelligenceServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcVideoIntelligenceServiceStub( + VideoIntelligenceServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcVideoIntelligenceServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcVideoIntelligenceServiceStub( + VideoIntelligenceServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcVideoIntelligenceServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcVideoIntelligenceServiceStub( + VideoIntelligenceServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcVideoIntelligenceServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcVideoIntelligenceServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcVideoIntelligenceServiceStub( + VideoIntelligenceServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings annotateVideoTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(annotateVideoMethodDescriptor) + .build(); + + this.annotateVideoCallable = + callableFactory.createUnaryCallable( + annotateVideoTransportSettings, settings.annotateVideoSettings(), clientContext); + this.annotateVideoOperationCallable = + callableFactory.createOperationCallable( + annotateVideoTransportSettings, + settings.annotateVideoOperationSettings(), + clientContext, + this.operationsStub); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + annotateVideoOperationCallable() { + return annotateVideoOperationCallable; + } + + public UnaryCallable annotateVideoCallable() { + return annotateVideoCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStub.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStub.java new file mode 100644 index 000000000000..5ee4e0ceeb71 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStub.java @@ -0,0 +1,42 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Video Intelligence API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class StreamingVideoIntelligenceServiceStub implements BackgroundResource { + + public BidiStreamingCallable + streamingAnnotateVideoCallable() { + throw new UnsupportedOperationException("Not implemented: streamingAnnotateVideoCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java new file mode 100644 index 000000000000..4c6a21dc6d19 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java @@ -0,0 +1,269 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link StreamingVideoIntelligenceServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (videointelligence.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of streamingAnnotateVideoCallable to 30 seconds: + * + *

+ * 
+ * StreamingVideoIntelligenceServiceStubSettings.Builder streamingVideoIntelligenceServiceSettingsBuilder =
+ *     StreamingVideoIntelligenceServiceStubSettings.newBuilder();
+ * streamingVideoIntelligenceServiceSettingsBuilder.streamingAnnotateVideoSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * StreamingVideoIntelligenceServiceStubSettings streamingVideoIntelligenceServiceSettings = streamingVideoIntelligenceServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class StreamingVideoIntelligenceServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final StreamingCallSettings + streamingAnnotateVideoSettings; + + /** Returns the object with the settings used for calls to streamingAnnotateVideo. */ + public StreamingCallSettings + streamingAnnotateVideoSettings() { + return streamingAnnotateVideoSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public StreamingVideoIntelligenceServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcStreamingVideoIntelligenceServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "videointelligence.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(StreamingVideoIntelligenceServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected StreamingVideoIntelligenceServiceStubSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + + streamingAnnotateVideoSettings = settingsBuilder.streamingAnnotateVideoSettings().build(); + } + + /** Builder for StreamingVideoIntelligenceServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final StreamingCallSettings.Builder< + StreamingAnnotateVideoRequest, StreamingAnnotateVideoResponse> + streamingAnnotateVideoSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(10800000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(10800000L)) + .setTotalTimeout(Duration.ofMillis(10800000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + streamingAnnotateVideoSettings = StreamingCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = ImmutableList.>of(); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + return builder; + } + + protected Builder(StreamingVideoIntelligenceServiceStubSettings settings) { + super(settings); + + streamingAnnotateVideoSettings = settings.streamingAnnotateVideoSettings.toBuilder(); + + unaryMethodSettingsBuilders = ImmutableList.>of(); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to streamingAnnotateVideo. */ + public StreamingCallSettings.Builder< + StreamingAnnotateVideoRequest, StreamingAnnotateVideoResponse> + streamingAnnotateVideoSettings() { + return streamingAnnotateVideoSettings; + } + + @Override + public StreamingVideoIntelligenceServiceStubSettings build() throws IOException { + return new StreamingVideoIntelligenceServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStub.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStub.java new file mode 100644 index 000000000000..1d70af85feff --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStub.java @@ -0,0 +1,56 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Video Intelligence API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class VideoIntelligenceServiceStub implements BackgroundResource { + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + annotateVideoOperationCallable() { + throw new UnsupportedOperationException("Not implemented: annotateVideoOperationCallable()"); + } + + public UnaryCallable annotateVideoCallable() { + throw new UnsupportedOperationException("Not implemented: annotateVideoCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java new file mode 100644 index 000000000000..82f5a2a3b75e --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -0,0 +1,322 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link VideoIntelligenceServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (videointelligence.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of annotateVideoAsync to 30 seconds: + * + *

+ * 
+ * VideoIntelligenceServiceStubSettings.Builder videoIntelligenceServiceSettingsBuilder =
+ *     VideoIntelligenceServiceStubSettings.newBuilder();
+ * videoIntelligenceServiceSettingsBuilder.annotateVideoSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * VideoIntelligenceServiceStubSettings videoIntelligenceServiceSettings = videoIntelligenceServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class VideoIntelligenceServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings annotateVideoSettings; + private final OperationCallSettings< + AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> + annotateVideoOperationSettings; + + /** Returns the object with the settings used for calls to annotateVideo. */ + public UnaryCallSettings annotateVideoSettings() { + return annotateVideoSettings; + } + + /** Returns the object with the settings used for calls to annotateVideo. */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings + annotateVideoOperationSettings() { + return annotateVideoOperationSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public VideoIntelligenceServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcVideoIntelligenceServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "videointelligence.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(VideoIntelligenceServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected VideoIntelligenceServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + annotateVideoSettings = settingsBuilder.annotateVideoSettings().build(); + annotateVideoOperationSettings = settingsBuilder.annotateVideoOperationSettings().build(); + } + + /** Builder for VideoIntelligenceServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder annotateVideoSettings; + private final OperationCallSettings.Builder< + AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> + annotateVideoOperationSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(2.5) + .setMaxRetryDelay(Duration.ofMillis(120000L)) + .setInitialRpcTimeout(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(120000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + annotateVideoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + annotateVideoOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(annotateVideoSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .annotateVideoSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .annotateVideoOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AnnotateVideoResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(AnnotateVideoProgress.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(20000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) // ignored + .setRpcTimeoutMultiplier(1.0) // ignored + .setMaxRpcTimeout(Duration.ZERO) // ignored + .setTotalTimeout(Duration.ofMillis(86400000L)) + .build())); + + return builder; + } + + protected Builder(VideoIntelligenceServiceStubSettings settings) { + super(settings); + + annotateVideoSettings = settings.annotateVideoSettings.toBuilder(); + annotateVideoOperationSettings = settings.annotateVideoOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(annotateVideoSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to annotateVideo. */ + public UnaryCallSettings.Builder annotateVideoSettings() { + return annotateVideoSettings; + } + + /** Returns the builder for the settings used for calls to annotateVideo. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> + annotateVideoOperationSettings() { + return annotateVideoOperationSettings; + } + + @Override + public VideoIntelligenceServiceStubSettings build() throws IOException { + return new VideoIntelligenceServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockStreamingVideoIntelligenceService.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockStreamingVideoIntelligenceService.java new file mode 100644 index 000000000000..cb31e97325f4 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockStreamingVideoIntelligenceService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockStreamingVideoIntelligenceService implements MockGrpcService { + private final MockStreamingVideoIntelligenceServiceImpl serviceImpl; + + public MockStreamingVideoIntelligenceService() { + serviceImpl = new MockStreamingVideoIntelligenceServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockStreamingVideoIntelligenceServiceImpl.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockStreamingVideoIntelligenceServiceImpl.java new file mode 100644 index 000000000000..1f57cd15f2d8 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockStreamingVideoIntelligenceServiceImpl.java @@ -0,0 +1,89 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceServiceGrpc.StreamingVideoIntelligenceServiceImplBase; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockStreamingVideoIntelligenceServiceImpl + extends StreamingVideoIntelligenceServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockStreamingVideoIntelligenceServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public StreamObserver streamingAnnotateVideo( + final StreamObserver responseObserver) { + final Object response = responses.remove(); + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(StreamingAnnotateVideoRequest value) { + if (response instanceof StreamingAnnotateVideoResponse) { + responseObserver.onNext((StreamingAnnotateVideoResponse) response); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockVideoIntelligenceService.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockVideoIntelligenceService.java new file mode 100644 index 000000000000..3fa2e6af91a2 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockVideoIntelligenceService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockVideoIntelligenceService implements MockGrpcService { + private final MockVideoIntelligenceServiceImpl serviceImpl; + + public MockVideoIntelligenceService() { + serviceImpl = new MockVideoIntelligenceServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockVideoIntelligenceServiceImpl.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockVideoIntelligenceServiceImpl.java new file mode 100644 index 000000000000..62dce68db766 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/MockVideoIntelligenceServiceImpl.java @@ -0,0 +1,74 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceGrpc.VideoIntelligenceServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockVideoIntelligenceServiceImpl extends VideoIntelligenceServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockVideoIntelligenceServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void annotateVideo( + AnnotateVideoRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClientTest.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClientTest.java new file mode 100644 index 000000000000..6f718a8597ab --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClientTest.java @@ -0,0 +1,135 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class StreamingVideoIntelligenceServiceClientTest { + private static MockVideoIntelligenceService mockVideoIntelligenceService; + private static MockStreamingVideoIntelligenceService mockStreamingVideoIntelligenceService; + private static MockServiceHelper serviceHelper; + private StreamingVideoIntelligenceServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockVideoIntelligenceService = new MockVideoIntelligenceService(); + mockStreamingVideoIntelligenceService = new MockStreamingVideoIntelligenceService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockVideoIntelligenceService, mockStreamingVideoIntelligenceService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + StreamingVideoIntelligenceServiceSettings settings = + StreamingVideoIntelligenceServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = StreamingVideoIntelligenceServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void streamingAnnotateVideoTest() throws Exception { + String annotationResultsUri = "annotationResultsUri-238075757"; + StreamingAnnotateVideoResponse expectedResponse = + StreamingAnnotateVideoResponse.newBuilder() + .setAnnotationResultsUri(annotationResultsUri) + .build(); + mockStreamingVideoIntelligenceService.addResponse(expectedResponse); + StreamingAnnotateVideoRequest request = StreamingAnnotateVideoRequest.newBuilder().build(); + + MockStreamObserver responseObserver = + new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.streamingAnnotateVideoCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + @SuppressWarnings("all") + public void streamingAnnotateVideoExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockStreamingVideoIntelligenceService.addException(exception); + StreamingAnnotateVideoRequest request = StreamingAnnotateVideoRequest.newBuilder().build(); + + MockStreamObserver responseObserver = + new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.streamingAnnotateVideoCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClientTest.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClientTest.java new file mode 100644 index 000000000000..23fe7cc06e58 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClientTest.java @@ -0,0 +1,134 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class VideoIntelligenceServiceClientTest { + private static MockVideoIntelligenceService mockVideoIntelligenceService; + private static MockStreamingVideoIntelligenceService mockStreamingVideoIntelligenceService; + private static MockServiceHelper serviceHelper; + private VideoIntelligenceServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockVideoIntelligenceService = new MockVideoIntelligenceService(); + mockStreamingVideoIntelligenceService = new MockStreamingVideoIntelligenceService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockVideoIntelligenceService, mockStreamingVideoIntelligenceService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + VideoIntelligenceServiceSettings settings = + VideoIntelligenceServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = VideoIntelligenceServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void annotateVideoTest() throws Exception { + AnnotateVideoResponse expectedResponse = AnnotateVideoResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("annotateVideoTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVideoIntelligenceService.addResponse(resultOperation); + + String inputUri = "gs://demomaker/cat.mp4"; + Feature featuresElement = Feature.LABEL_DETECTION; + List features = Arrays.asList(featuresElement); + + AnnotateVideoResponse actualResponse = client.annotateVideoAsync(inputUri, features).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVideoIntelligenceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AnnotateVideoRequest actualRequest = (AnnotateVideoRequest) actualRequests.get(0); + + Assert.assertEquals(inputUri, actualRequest.getInputUri()); + Assert.assertEquals(features, actualRequest.getFeaturesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void annotateVideoExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockVideoIntelligenceService.addException(exception); + + try { + String inputUri = "gs://demomaker/cat.mp4"; + Feature featuresElement = Feature.LABEL_DETECTION; + List features = Arrays.asList(featuresElement); + + client.annotateVideoAsync(inputUri, features).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSmokeTest.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSmokeTest.java new file mode 100644 index 000000000000..e95e91f5abb0 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSmokeTest.java @@ -0,0 +1,66 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p3beta1; + +import com.google.common.base.Preconditions; +import java.util.Arrays; +import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class VideoIntelligenceServiceSmokeTest { + private static final String PROJECT_ENV_NAME = "GOOGLE_CLOUD_PROJECT"; + private static final String LEGACY_PROJECT_ENV_NAME = "GCLOUD_PROJECT"; + + @Test + public void run() { + main(null); + } + + public static void main(String args[]) { + Logger.getLogger("").setLevel(Level.WARNING); + try { + executeNoCatch(); + System.out.println("OK"); + } catch (Exception e) { + System.err.println("Failed with exception:"); + e.printStackTrace(System.err); + System.exit(1); + } + } + + public static void executeNoCatch() throws Exception { + try (VideoIntelligenceServiceClient client = VideoIntelligenceServiceClient.create()) { + String inputUri = "gs://demomaker/cat.mp4"; + Feature featuresElement = Feature.LABEL_DETECTION; + List features = Arrays.asList(featuresElement); + + AnnotateVideoResponse response = client.annotateVideoAsync(inputUri, features).get(); + } + } + + private static String getProjectId() { + String projectId = System.getProperty(PROJECT_ENV_NAME, System.getenv(PROJECT_ENV_NAME)); + if (projectId == null) { + projectId = + System.getProperty(LEGACY_PROJECT_ENV_NAME, System.getenv(LEGACY_PROJECT_ENV_NAME)); + } + Preconditions.checkArgument(projectId != null, "A project ID is required."); + return projectId; + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/synth.metadata b/google-cloud-clients/google-cloud-video-intelligence/synth.metadata index dd2b34ed0cab..d7e6f718dbdc 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/synth.metadata +++ b/google-cloud-clients/google-cloud-video-intelligence/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:57:22.045725Z", + "updateTime": "2019-03-12T17:39:54.262454Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.16", + "dockerImage": "googleapis/artman@sha256:30babbfce7f05a62b1892c63c575aa2c8c502eb4bcc8f3bb90ec83e955d5d319" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "abd1c9a99c5cd7179d8e5e0c8d4c8e761054cc78", + "internalRef": "237945492" } } ], @@ -67,6 +67,16 @@ "generator": "gapic", "config": "google/cloud/videointelligence/artman_videointelligence_v1p2beta1.yaml" } + }, + { + "client": { + "source": "googleapis", + "apiName": "video-intelligence", + "apiVersion": "v1p3beta1", + "language": "java", + "generator": "gapic", + "config": "google/cloud/videointelligence/artman_videointelligence_v1p3beta1.yaml" + } } ] } \ No newline at end of file diff --git a/google-cloud-clients/google-cloud-video-intelligence/synth.py b/google-cloud-clients/google-cloud-video-intelligence/synth.py index 2d29b508c24b..aaf60372b325 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/synth.py +++ b/google-cloud-clients/google-cloud-video-intelligence/synth.py @@ -21,7 +21,7 @@ gapic = gcp.GAPICGenerator() service = 'video-intelligence' -versions = ['v1', 'v1beta1', 'v1beta2', 'v1p1beta1', 'v1p2beta1'] +versions = ['v1', 'v1beta1', 'v1beta2', 'v1p1beta1', 'v1p2beta1', 'v1p3beta1'] config_pattern = '/google/cloud/videointelligence/artman_videointelligence_{version}.yaml' for version in versions: diff --git a/versions.txt b/versions.txt index 7ac4814f306d..22870c7dd649 100644 --- a/versions.txt +++ b/versions.txt @@ -110,6 +110,7 @@ grpc-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p3beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-vision-v1:1.47.0:1.47.1-SNAPSHOT grpc-google-cloud-vision-v1p1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-vision-v1p2beta1:1.47.0:1.47.1-SNAPSHOT @@ -165,6 +166,7 @@ proto-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1p3beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-vision-v1:1.47.0:1.47.1-SNAPSHOT proto-google-cloud-vision-v1p1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-vision-v1p2beta1:1.47.0:1.47.1-SNAPSHOT From d1a504d9a3c7f77cd4b013495c7611bed945eb6d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Thu, 14 Mar 2019 01:36:27 -0700 Subject: [PATCH 38/53] Regenerate language client (#4676) --- .../language/v1/ClassificationCategory.java | 21 +- .../v1/ClassificationCategoryOrBuilder.java | 6 +- .../cloud/language/v1/EncodingType.java | 4 +- .../com/google/cloud/language/v1/Entity.java | 110 ++++++ .../language/v1/LanguageServiceProto.java | 355 +++++++++--------- .../cloud/language/v1/language_service.proto | 73 ++-- .../language/v1/LanguageServiceClient.java | 1 + .../language/v1/LanguageServiceSettings.java | 1 + .../cloud/language/v1/package-info.java | 2 +- .../GrpcLanguageServiceCallableFactory.java | 2 +- .../v1/stub/GrpcLanguageServiceStub.java | 2 +- .../language/v1/stub/LanguageServiceStub.java | 2 +- .../v1/stub/LanguageServiceStubSettings.java | 10 +- .../google-cloud-language/synth.metadata | 10 +- 14 files changed, 371 insertions(+), 228 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/ClassificationCategory.java b/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/ClassificationCategory.java index 17a1820bb174..ab38b272191c 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/ClassificationCategory.java +++ b/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/ClassificationCategory.java @@ -103,7 +103,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The name of the category representing the document.
+   * The name of the category representing the document, from the [predefined
+   * taxonomy](/natural-language/docs/categories).
    * 
* * string name = 1; @@ -123,7 +124,8 @@ public java.lang.String getName() { * * *
-   * The name of the category representing the document.
+   * The name of the category representing the document, from the [predefined
+   * taxonomy](/natural-language/docs/categories).
    * 
* * string name = 1; @@ -498,7 +500,8 @@ public Builder mergeFrom( * * *
-     * The name of the category representing the document.
+     * The name of the category representing the document, from the [predefined
+     * taxonomy](/natural-language/docs/categories).
      * 
* * string name = 1; @@ -518,7 +521,8 @@ public java.lang.String getName() { * * *
-     * The name of the category representing the document.
+     * The name of the category representing the document, from the [predefined
+     * taxonomy](/natural-language/docs/categories).
      * 
* * string name = 1; @@ -538,7 +542,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The name of the category representing the document.
+     * The name of the category representing the document, from the [predefined
+     * taxonomy](/natural-language/docs/categories).
      * 
* * string name = 1; @@ -556,7 +561,8 @@ public Builder setName(java.lang.String value) { * * *
-     * The name of the category representing the document.
+     * The name of the category representing the document, from the [predefined
+     * taxonomy](/natural-language/docs/categories).
      * 
* * string name = 1; @@ -571,7 +577,8 @@ public Builder clearName() { * * *
-     * The name of the category representing the document.
+     * The name of the category representing the document, from the [predefined
+     * taxonomy](/natural-language/docs/categories).
      * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/ClassificationCategoryOrBuilder.java b/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/ClassificationCategoryOrBuilder.java index a02325759a50..b2f2ba38881c 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/ClassificationCategoryOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/ClassificationCategoryOrBuilder.java @@ -12,7 +12,8 @@ public interface ClassificationCategoryOrBuilder * * *
-   * The name of the category representing the document.
+   * The name of the category representing the document, from the [predefined
+   * taxonomy](/natural-language/docs/categories).
    * 
* * string name = 1; @@ -22,7 +23,8 @@ public interface ClassificationCategoryOrBuilder * * *
-   * The name of the category representing the document.
+   * The name of the category representing the document, from the [predefined
+   * taxonomy](/natural-language/docs/categories).
    * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/EncodingType.java b/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/EncodingType.java index 3d265e4c6975..85ba351dc931 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/EncodingType.java +++ b/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/EncodingType.java @@ -45,7 +45,7 @@ public enum EncodingType implements com.google.protobuf.ProtocolMessageEnum { * *
    * Encoding-dependent information (such as `begin_offset`) is calculated based
-   * on the UTF-16 encoding of the input. Java and Javascript are examples of
+   * on the UTF-16 encoding of the input. Java and JavaScript are examples of
    * languages that use this encoding natively.
    * 
* @@ -95,7 +95,7 @@ public enum EncodingType implements com.google.protobuf.ProtocolMessageEnum { * *
    * Encoding-dependent information (such as `begin_offset`) is calculated based
-   * on the UTF-16 encoding of the input. Java and Javascript are examples of
+   * on the UTF-16 encoding of the input. Java and JavaScript are examples of
    * languages that use this encoding natively.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/Entity.java b/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/Entity.java index 558c7566c5b2..426957652208 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/Entity.java +++ b/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/Entity.java @@ -254,6 +254,56 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * OTHER = 7; */ OTHER(7), + /** + * + * + *
+     * Phone number
+     * 
+ * + * PHONE_NUMBER = 9; + */ + PHONE_NUMBER(9), + /** + * + * + *
+     * Address
+     * 
+ * + * ADDRESS = 10; + */ + ADDRESS(10), + /** + * + * + *
+     * Date
+     * 
+ * + * DATE = 11; + */ + DATE(11), + /** + * + * + *
+     * Number
+     * 
+ * + * NUMBER = 12; + */ + NUMBER(12), + /** + * + * + *
+     * Price
+     * 
+ * + * PRICE = 13; + */ + PRICE(13), UNRECOGNIZED(-1), ; @@ -337,6 +387,56 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * OTHER = 7; */ public static final int OTHER_VALUE = 7; + /** + * + * + *
+     * Phone number
+     * 
+ * + * PHONE_NUMBER = 9; + */ + public static final int PHONE_NUMBER_VALUE = 9; + /** + * + * + *
+     * Address
+     * 
+ * + * ADDRESS = 10; + */ + public static final int ADDRESS_VALUE = 10; + /** + * + * + *
+     * Date
+     * 
+ * + * DATE = 11; + */ + public static final int DATE_VALUE = 11; + /** + * + * + *
+     * Number
+     * 
+ * + * NUMBER = 12; + */ + public static final int NUMBER_VALUE = 12; + /** + * + * + *
+     * Price
+     * 
+ * + * PRICE = 13; + */ + public static final int PRICE_VALUE = 13; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -370,6 +470,16 @@ public static Type forNumber(int value) { return CONSUMER_GOOD; case 7: return OTHER; + case 9: + return PHONE_NUMBER; + case 10: + return ADDRESS; + case 11: + return DATE; + case 12: + return NUMBER; + case 13: + return PRICE; default: return null; } diff --git a/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/LanguageServiceProto.java b/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/LanguageServiceProto.java index ae901f09e6b1..73123aa81c2e 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/LanguageServiceProto.java +++ b/google-api-grpc/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/LanguageServiceProto.java @@ -127,7 +127,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "T\020\001\022\010\n\004HTML\020\002B\010\n\006source\"t\n\010Sentence\0220\n\004t" + "ext\030\001 \001(\0132\".google.cloud.language.v1.Tex" + "tSpan\0226\n\tsentiment\030\002 \001(\0132#.google.cloud." - + "language.v1.Sentiment\"\276\003\n\006Entity\022\014\n\004name" + + "language.v1.Sentiment\"\377\003\n\006Entity\022\014\n\004name" + "\030\001 \001(\t\0223\n\004type\030\002 \001(\0162%.google.cloud.lang" + "uage.v1.Entity.Type\022@\n\010metadata\030\003 \003(\0132.." + "google.cloud.language.v1.Entity.Metadata" @@ -135,183 +135,184 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0132\'.google.cloud.language.v1.EntityMenti" + "on\0226\n\tsentiment\030\006 \001(\0132#.google.cloud.lan" + "guage.v1.Sentiment\032/\n\rMetadataEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"y\n\004Type\022\013\n\007U" - + "NKNOWN\020\000\022\n\n\006PERSON\020\001\022\014\n\010LOCATION\020\002\022\020\n\014OR" - + "GANIZATION\020\003\022\t\n\005EVENT\020\004\022\017\n\013WORK_OF_ART\020\005" - + "\022\021\n\rCONSUMER_GOOD\020\006\022\t\n\005OTHER\020\007\"\313\001\n\005Token" - + "\0220\n\004text\030\001 \001(\0132\".google.cloud.language.v" - + "1.TextSpan\022>\n\016part_of_speech\030\002 \001(\0132&.goo" - + "gle.cloud.language.v1.PartOfSpeech\022A\n\017de" - + "pendency_edge\030\003 \001(\0132(.google.cloud.langu" - + "age.v1.DependencyEdge\022\r\n\005lemma\030\004 \001(\t\"-\n\t" - + "Sentiment\022\021\n\tmagnitude\030\002 \001(\002\022\r\n\005score\030\003 " - + "\001(\002\"\243\020\n\014PartOfSpeech\0227\n\003tag\030\001 \001(\0162*.goog" - + "le.cloud.language.v1.PartOfSpeech.Tag\022=\n" - + "\006aspect\030\002 \001(\0162-.google.cloud.language.v1" - + ".PartOfSpeech.Aspect\0229\n\004case\030\003 \001(\0162+.goo" - + "gle.cloud.language.v1.PartOfSpeech.Case\022" - + "9\n\004form\030\004 \001(\0162+.google.cloud.language.v1" - + ".PartOfSpeech.Form\022=\n\006gender\030\005 \001(\0162-.goo" - + "gle.cloud.language.v1.PartOfSpeech.Gende" - + "r\0229\n\004mood\030\006 \001(\0162+.google.cloud.language." - + "v1.PartOfSpeech.Mood\022=\n\006number\030\007 \001(\0162-.g" - + "oogle.cloud.language.v1.PartOfSpeech.Num" - + "ber\022=\n\006person\030\010 \001(\0162-.google.cloud.langu" - + "age.v1.PartOfSpeech.Person\022=\n\006proper\030\t \001" - + "(\0162-.google.cloud.language.v1.PartOfSpee" - + "ch.Proper\022G\n\013reciprocity\030\n \001(\01622.google." - + "cloud.language.v1.PartOfSpeech.Reciproci" - + "ty\022;\n\005tense\030\013 \001(\0162,.google.cloud.languag" - + "e.v1.PartOfSpeech.Tense\022;\n\005voice\030\014 \001(\0162," - + ".google.cloud.language.v1.PartOfSpeech.V" - + "oice\"\215\001\n\003Tag\022\013\n\007UNKNOWN\020\000\022\007\n\003ADJ\020\001\022\007\n\003AD" - + "P\020\002\022\007\n\003ADV\020\003\022\010\n\004CONJ\020\004\022\007\n\003DET\020\005\022\010\n\004NOUN\020" - + "\006\022\007\n\003NUM\020\007\022\010\n\004PRON\020\010\022\007\n\003PRT\020\t\022\t\n\005PUNCT\020\n" - + "\022\010\n\004VERB\020\013\022\005\n\001X\020\014\022\t\n\005AFFIX\020\r\"O\n\006Aspect\022\022" - + "\n\016ASPECT_UNKNOWN\020\000\022\016\n\nPERFECTIVE\020\001\022\020\n\014IM" - + "PERFECTIVE\020\002\022\017\n\013PROGRESSIVE\020\003\"\370\001\n\004Case\022\020" - + "\n\014CASE_UNKNOWN\020\000\022\016\n\nACCUSATIVE\020\001\022\r\n\tADVE" - + "RBIAL\020\002\022\021\n\rCOMPLEMENTIVE\020\003\022\n\n\006DATIVE\020\004\022\014" - + "\n\010GENITIVE\020\005\022\020\n\014INSTRUMENTAL\020\006\022\014\n\010LOCATI" - + "VE\020\007\022\016\n\nNOMINATIVE\020\010\022\013\n\007OBLIQUE\020\t\022\r\n\tPAR" - + "TITIVE\020\n\022\021\n\rPREPOSITIONAL\020\013\022\022\n\016REFLEXIVE" - + "_CASE\020\014\022\021\n\rRELATIVE_CASE\020\r\022\014\n\010VOCATIVE\020\016" - + "\"\257\001\n\004Form\022\020\n\014FORM_UNKNOWN\020\000\022\014\n\010ADNOMIAL\020" - + "\001\022\r\n\tAUXILIARY\020\002\022\022\n\016COMPLEMENTIZER\020\003\022\020\n\014" - + "FINAL_ENDING\020\004\022\n\n\006GERUND\020\005\022\n\n\006REALIS\020\006\022\014" - + "\n\010IRREALIS\020\007\022\t\n\005SHORT\020\010\022\010\n\004LONG\020\t\022\t\n\005ORD" - + "ER\020\n\022\014\n\010SPECIFIC\020\013\"E\n\006Gender\022\022\n\016GENDER_U" - + "NKNOWN\020\000\022\014\n\010FEMININE\020\001\022\r\n\tMASCULINE\020\002\022\n\n" - + "\006NEUTER\020\003\"\177\n\004Mood\022\020\n\014MOOD_UNKNOWN\020\000\022\024\n\020C" - + "ONDITIONAL_MOOD\020\001\022\016\n\nIMPERATIVE\020\002\022\016\n\nIND" - + "ICATIVE\020\003\022\021\n\rINTERROGATIVE\020\004\022\013\n\007JUSSIVE\020" - + "\005\022\017\n\013SUBJUNCTIVE\020\006\"@\n\006Number\022\022\n\016NUMBER_U" - + "NKNOWN\020\000\022\014\n\010SINGULAR\020\001\022\n\n\006PLURAL\020\002\022\010\n\004DU" - + "AL\020\003\"T\n\006Person\022\022\n\016PERSON_UNKNOWN\020\000\022\t\n\005FI" - + "RST\020\001\022\n\n\006SECOND\020\002\022\t\n\005THIRD\020\003\022\024\n\020REFLEXIV" - + "E_PERSON\020\004\"8\n\006Proper\022\022\n\016PROPER_UNKNOWN\020\000" - + "\022\n\n\006PROPER\020\001\022\016\n\nNOT_PROPER\020\002\"J\n\013Reciproc" - + "ity\022\027\n\023RECIPROCITY_UNKNOWN\020\000\022\016\n\nRECIPROC" - + "AL\020\001\022\022\n\016NON_RECIPROCAL\020\002\"s\n\005Tense\022\021\n\rTEN" - + "SE_UNKNOWN\020\000\022\025\n\021CONDITIONAL_TENSE\020\001\022\n\n\006F" - + "UTURE\020\002\022\010\n\004PAST\020\003\022\013\n\007PRESENT\020\004\022\r\n\tIMPERF" - + "ECT\020\005\022\016\n\nPLUPERFECT\020\006\"B\n\005Voice\022\021\n\rVOICE_" - + "UNKNOWN\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tCAUSATIVE\020\002\022\013\n\007" - + "PASSIVE\020\003\"\225\010\n\016DependencyEdge\022\030\n\020head_tok" - + "en_index\030\001 \001(\005\022=\n\005label\030\002 \001(\0162..google.c" - + "loud.language.v1.DependencyEdge.Label\"\251\007" - + "\n\005Label\022\013\n\007UNKNOWN\020\000\022\n\n\006ABBREV\020\001\022\t\n\005ACOM" - + "P\020\002\022\t\n\005ADVCL\020\003\022\n\n\006ADVMOD\020\004\022\010\n\004AMOD\020\005\022\t\n\005" - + "APPOS\020\006\022\010\n\004ATTR\020\007\022\007\n\003AUX\020\010\022\013\n\007AUXPASS\020\t\022" - + "\006\n\002CC\020\n\022\t\n\005CCOMP\020\013\022\010\n\004CONJ\020\014\022\t\n\005CSUBJ\020\r\022" - + "\r\n\tCSUBJPASS\020\016\022\007\n\003DEP\020\017\022\007\n\003DET\020\020\022\r\n\tDISC" - + "OURSE\020\021\022\010\n\004DOBJ\020\022\022\010\n\004EXPL\020\023\022\014\n\010GOESWITH\020" - + "\024\022\010\n\004IOBJ\020\025\022\010\n\004MARK\020\026\022\007\n\003MWE\020\027\022\007\n\003MWV\020\030\022" - + "\007\n\003NEG\020\031\022\006\n\002NN\020\032\022\014\n\010NPADVMOD\020\033\022\t\n\005NSUBJ\020" - + "\034\022\r\n\tNSUBJPASS\020\035\022\007\n\003NUM\020\036\022\n\n\006NUMBER\020\037\022\005\n" - + "\001P\020 \022\r\n\tPARATAXIS\020!\022\013\n\007PARTMOD\020\"\022\t\n\005PCOM" - + "P\020#\022\010\n\004POBJ\020$\022\010\n\004POSS\020%\022\013\n\007POSTNEG\020&\022\013\n\007" - + "PRECOMP\020\'\022\013\n\007PRECONJ\020(\022\n\n\006PREDET\020)\022\010\n\004PR" - + "EF\020*\022\010\n\004PREP\020+\022\t\n\005PRONL\020,\022\007\n\003PRT\020-\022\006\n\002PS" - + "\020.\022\014\n\010QUANTMOD\020/\022\t\n\005RCMOD\0200\022\014\n\010RCMODREL\020" - + "1\022\t\n\005RDROP\0202\022\007\n\003REF\0203\022\013\n\007REMNANT\0204\022\016\n\nRE" - + "PARANDUM\0205\022\010\n\004ROOT\0206\022\010\n\004SNUM\0207\022\010\n\004SUFF\0208" - + "\022\010\n\004TMOD\0209\022\t\n\005TOPIC\020:\022\010\n\004VMOD\020;\022\014\n\010VOCAT" - + "IVE\020<\022\t\n\005XCOMP\020=\022\n\n\006SUFFIX\020>\022\t\n\005TITLE\020?\022" - + "\014\n\010ADVPHMOD\020@\022\013\n\007AUXCAUS\020A\022\t\n\005AUXVV\020B\022\t\n" - + "\005DTMOD\020C\022\013\n\007FOREIGN\020D\022\006\n\002KW\020E\022\010\n\004LIST\020F\022" - + "\010\n\004NOMC\020G\022\014\n\010NOMCSUBJ\020H\022\020\n\014NOMCSUBJPASS\020" - + "I\022\010\n\004NUMC\020J\022\007\n\003COP\020K\022\016\n\nDISLOCATED\020L\022\007\n\003" - + "ASP\020M\022\010\n\004GMOD\020N\022\010\n\004GOBJ\020O\022\n\n\006INFMOD\020P\022\007\n" - + "\003MES\020Q\022\t\n\005NCOMP\020R\"\347\001\n\rEntityMention\0220\n\004t" - + "ext\030\001 \001(\0132\".google.cloud.language.v1.Tex" - + "tSpan\022:\n\004type\030\002 \001(\0162,.google.cloud.langu" - + "age.v1.EntityMention.Type\0226\n\tsentiment\030\003" - + " \001(\0132#.google.cloud.language.v1.Sentimen" - + "t\"0\n\004Type\022\020\n\014TYPE_UNKNOWN\020\000\022\n\n\006PROPER\020\001\022" - + "\n\n\006COMMON\020\002\"1\n\010TextSpan\022\017\n\007content\030\001 \001(\t" - + "\022\024\n\014begin_offset\030\002 \001(\005\":\n\026Classification" - + "Category\022\014\n\004name\030\001 \001(\t\022\022\n\nconfidence\030\002 \001" - + "(\002\"\216\001\n\027AnalyzeSentimentRequest\0224\n\010docume" - + "nt\030\001 \001(\0132\".google.cloud.language.v1.Docu" - + "ment\022=\n\rencoding_type\030\002 \001(\0162&.google.clo" - + "ud.language.v1.EncodingType\"\244\001\n\030AnalyzeS" - + "entimentResponse\022?\n\022document_sentiment\030\001" - + " \001(\0132#.google.cloud.language.v1.Sentimen" - + "t\022\020\n\010language\030\002 \001(\t\0225\n\tsentences\030\003 \003(\0132\"" - + ".google.cloud.language.v1.Sentence\"\224\001\n\035A" - + "nalyzeEntitySentimentRequest\0224\n\010document" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\271\001\n\004Type\022\013\n\007" + + "UNKNOWN\020\000\022\n\n\006PERSON\020\001\022\014\n\010LOCATION\020\002\022\020\n\014O" + + "RGANIZATION\020\003\022\t\n\005EVENT\020\004\022\017\n\013WORK_OF_ART\020" + + "\005\022\021\n\rCONSUMER_GOOD\020\006\022\t\n\005OTHER\020\007\022\020\n\014PHONE" + + "_NUMBER\020\t\022\013\n\007ADDRESS\020\n\022\010\n\004DATE\020\013\022\n\n\006NUMB" + + "ER\020\014\022\t\n\005PRICE\020\r\"\313\001\n\005Token\0220\n\004text\030\001 \001(\0132" + + "\".google.cloud.language.v1.TextSpan\022>\n\016p" + + "art_of_speech\030\002 \001(\0132&.google.cloud.langu" + + "age.v1.PartOfSpeech\022A\n\017dependency_edge\030\003" + + " \001(\0132(.google.cloud.language.v1.Dependen" + + "cyEdge\022\r\n\005lemma\030\004 \001(\t\"-\n\tSentiment\022\021\n\tma" + + "gnitude\030\002 \001(\002\022\r\n\005score\030\003 \001(\002\"\243\020\n\014PartOfS" + + "peech\0227\n\003tag\030\001 \001(\0162*.google.cloud.langua" + + "ge.v1.PartOfSpeech.Tag\022=\n\006aspect\030\002 \001(\0162-" + + ".google.cloud.language.v1.PartOfSpeech.A" + + "spect\0229\n\004case\030\003 \001(\0162+.google.cloud.langu" + + "age.v1.PartOfSpeech.Case\0229\n\004form\030\004 \001(\0162+" + + ".google.cloud.language.v1.PartOfSpeech.F" + + "orm\022=\n\006gender\030\005 \001(\0162-.google.cloud.langu" + + "age.v1.PartOfSpeech.Gender\0229\n\004mood\030\006 \001(\016" + + "2+.google.cloud.language.v1.PartOfSpeech" + + ".Mood\022=\n\006number\030\007 \001(\0162-.google.cloud.lan" + + "guage.v1.PartOfSpeech.Number\022=\n\006person\030\010" + + " \001(\0162-.google.cloud.language.v1.PartOfSp" + + "eech.Person\022=\n\006proper\030\t \001(\0162-.google.clo" + + "ud.language.v1.PartOfSpeech.Proper\022G\n\013re" + + "ciprocity\030\n \001(\01622.google.cloud.language." + + "v1.PartOfSpeech.Reciprocity\022;\n\005tense\030\013 \001" + + "(\0162,.google.cloud.language.v1.PartOfSpee" + + "ch.Tense\022;\n\005voice\030\014 \001(\0162,.google.cloud.l" + + "anguage.v1.PartOfSpeech.Voice\"\215\001\n\003Tag\022\013\n" + + "\007UNKNOWN\020\000\022\007\n\003ADJ\020\001\022\007\n\003ADP\020\002\022\007\n\003ADV\020\003\022\010\n" + + "\004CONJ\020\004\022\007\n\003DET\020\005\022\010\n\004NOUN\020\006\022\007\n\003NUM\020\007\022\010\n\004P" + + "RON\020\010\022\007\n\003PRT\020\t\022\t\n\005PUNCT\020\n\022\010\n\004VERB\020\013\022\005\n\001X" + + "\020\014\022\t\n\005AFFIX\020\r\"O\n\006Aspect\022\022\n\016ASPECT_UNKNOW" + + "N\020\000\022\016\n\nPERFECTIVE\020\001\022\020\n\014IMPERFECTIVE\020\002\022\017\n" + + "\013PROGRESSIVE\020\003\"\370\001\n\004Case\022\020\n\014CASE_UNKNOWN\020" + + "\000\022\016\n\nACCUSATIVE\020\001\022\r\n\tADVERBIAL\020\002\022\021\n\rCOMP" + + "LEMENTIVE\020\003\022\n\n\006DATIVE\020\004\022\014\n\010GENITIVE\020\005\022\020\n" + + "\014INSTRUMENTAL\020\006\022\014\n\010LOCATIVE\020\007\022\016\n\nNOMINAT" + + "IVE\020\010\022\013\n\007OBLIQUE\020\t\022\r\n\tPARTITIVE\020\n\022\021\n\rPRE" + + "POSITIONAL\020\013\022\022\n\016REFLEXIVE_CASE\020\014\022\021\n\rRELA" + + "TIVE_CASE\020\r\022\014\n\010VOCATIVE\020\016\"\257\001\n\004Form\022\020\n\014FO" + + "RM_UNKNOWN\020\000\022\014\n\010ADNOMIAL\020\001\022\r\n\tAUXILIARY\020" + + "\002\022\022\n\016COMPLEMENTIZER\020\003\022\020\n\014FINAL_ENDING\020\004\022" + + "\n\n\006GERUND\020\005\022\n\n\006REALIS\020\006\022\014\n\010IRREALIS\020\007\022\t\n" + + "\005SHORT\020\010\022\010\n\004LONG\020\t\022\t\n\005ORDER\020\n\022\014\n\010SPECIFI" + + "C\020\013\"E\n\006Gender\022\022\n\016GENDER_UNKNOWN\020\000\022\014\n\010FEM" + + "ININE\020\001\022\r\n\tMASCULINE\020\002\022\n\n\006NEUTER\020\003\"\177\n\004Mo" + + "od\022\020\n\014MOOD_UNKNOWN\020\000\022\024\n\020CONDITIONAL_MOOD" + + "\020\001\022\016\n\nIMPERATIVE\020\002\022\016\n\nINDICATIVE\020\003\022\021\n\rIN" + + "TERROGATIVE\020\004\022\013\n\007JUSSIVE\020\005\022\017\n\013SUBJUNCTIV" + + "E\020\006\"@\n\006Number\022\022\n\016NUMBER_UNKNOWN\020\000\022\014\n\010SIN" + + "GULAR\020\001\022\n\n\006PLURAL\020\002\022\010\n\004DUAL\020\003\"T\n\006Person\022" + + "\022\n\016PERSON_UNKNOWN\020\000\022\t\n\005FIRST\020\001\022\n\n\006SECOND" + + "\020\002\022\t\n\005THIRD\020\003\022\024\n\020REFLEXIVE_PERSON\020\004\"8\n\006P" + + "roper\022\022\n\016PROPER_UNKNOWN\020\000\022\n\n\006PROPER\020\001\022\016\n" + + "\nNOT_PROPER\020\002\"J\n\013Reciprocity\022\027\n\023RECIPROC" + + "ITY_UNKNOWN\020\000\022\016\n\nRECIPROCAL\020\001\022\022\n\016NON_REC" + + "IPROCAL\020\002\"s\n\005Tense\022\021\n\rTENSE_UNKNOWN\020\000\022\025\n" + + "\021CONDITIONAL_TENSE\020\001\022\n\n\006FUTURE\020\002\022\010\n\004PAST" + + "\020\003\022\013\n\007PRESENT\020\004\022\r\n\tIMPERFECT\020\005\022\016\n\nPLUPER" + + "FECT\020\006\"B\n\005Voice\022\021\n\rVOICE_UNKNOWN\020\000\022\n\n\006AC" + + "TIVE\020\001\022\r\n\tCAUSATIVE\020\002\022\013\n\007PASSIVE\020\003\"\225\010\n\016D" + + "ependencyEdge\022\030\n\020head_token_index\030\001 \001(\005\022" + + "=\n\005label\030\002 \001(\0162..google.cloud.language.v" + + "1.DependencyEdge.Label\"\251\007\n\005Label\022\013\n\007UNKN" + + "OWN\020\000\022\n\n\006ABBREV\020\001\022\t\n\005ACOMP\020\002\022\t\n\005ADVCL\020\003\022" + + "\n\n\006ADVMOD\020\004\022\010\n\004AMOD\020\005\022\t\n\005APPOS\020\006\022\010\n\004ATTR" + + "\020\007\022\007\n\003AUX\020\010\022\013\n\007AUXPASS\020\t\022\006\n\002CC\020\n\022\t\n\005CCOM" + + "P\020\013\022\010\n\004CONJ\020\014\022\t\n\005CSUBJ\020\r\022\r\n\tCSUBJPASS\020\016\022" + + "\007\n\003DEP\020\017\022\007\n\003DET\020\020\022\r\n\tDISCOURSE\020\021\022\010\n\004DOBJ" + + "\020\022\022\010\n\004EXPL\020\023\022\014\n\010GOESWITH\020\024\022\010\n\004IOBJ\020\025\022\010\n\004" + + "MARK\020\026\022\007\n\003MWE\020\027\022\007\n\003MWV\020\030\022\007\n\003NEG\020\031\022\006\n\002NN\020" + + "\032\022\014\n\010NPADVMOD\020\033\022\t\n\005NSUBJ\020\034\022\r\n\tNSUBJPASS\020" + + "\035\022\007\n\003NUM\020\036\022\n\n\006NUMBER\020\037\022\005\n\001P\020 \022\r\n\tPARATAX" + + "IS\020!\022\013\n\007PARTMOD\020\"\022\t\n\005PCOMP\020#\022\010\n\004POBJ\020$\022\010" + + "\n\004POSS\020%\022\013\n\007POSTNEG\020&\022\013\n\007PRECOMP\020\'\022\013\n\007PR" + + "ECONJ\020(\022\n\n\006PREDET\020)\022\010\n\004PREF\020*\022\010\n\004PREP\020+\022" + + "\t\n\005PRONL\020,\022\007\n\003PRT\020-\022\006\n\002PS\020.\022\014\n\010QUANTMOD\020" + + "/\022\t\n\005RCMOD\0200\022\014\n\010RCMODREL\0201\022\t\n\005RDROP\0202\022\007\n" + + "\003REF\0203\022\013\n\007REMNANT\0204\022\016\n\nREPARANDUM\0205\022\010\n\004R" + + "OOT\0206\022\010\n\004SNUM\0207\022\010\n\004SUFF\0208\022\010\n\004TMOD\0209\022\t\n\005T" + + "OPIC\020:\022\010\n\004VMOD\020;\022\014\n\010VOCATIVE\020<\022\t\n\005XCOMP\020" + + "=\022\n\n\006SUFFIX\020>\022\t\n\005TITLE\020?\022\014\n\010ADVPHMOD\020@\022\013" + + "\n\007AUXCAUS\020A\022\t\n\005AUXVV\020B\022\t\n\005DTMOD\020C\022\013\n\007FOR" + + "EIGN\020D\022\006\n\002KW\020E\022\010\n\004LIST\020F\022\010\n\004NOMC\020G\022\014\n\010NO" + + "MCSUBJ\020H\022\020\n\014NOMCSUBJPASS\020I\022\010\n\004NUMC\020J\022\007\n\003" + + "COP\020K\022\016\n\nDISLOCATED\020L\022\007\n\003ASP\020M\022\010\n\004GMOD\020N" + + "\022\010\n\004GOBJ\020O\022\n\n\006INFMOD\020P\022\007\n\003MES\020Q\022\t\n\005NCOMP" + + "\020R\"\347\001\n\rEntityMention\0220\n\004text\030\001 \001(\0132\".goo" + + "gle.cloud.language.v1.TextSpan\022:\n\004type\030\002" + + " \001(\0162,.google.cloud.language.v1.EntityMe" + + "ntion.Type\0226\n\tsentiment\030\003 \001(\0132#.google.c" + + "loud.language.v1.Sentiment\"0\n\004Type\022\020\n\014TY" + + "PE_UNKNOWN\020\000\022\n\n\006PROPER\020\001\022\n\n\006COMMON\020\002\"1\n\010" + + "TextSpan\022\017\n\007content\030\001 \001(\t\022\024\n\014begin_offse" + + "t\030\002 \001(\005\":\n\026ClassificationCategory\022\014\n\004nam" + + "e\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\"\216\001\n\027AnalyzeS" + + "entimentRequest\0224\n\010document\030\001 \001(\0132\".goog" + + "le.cloud.language.v1.Document\022=\n\rencodin" + + "g_type\030\002 \001(\0162&.google.cloud.language.v1." + + "EncodingType\"\244\001\n\030AnalyzeSentimentRespons" + + "e\022?\n\022document_sentiment\030\001 \001(\0132#.google.c" + + "loud.language.v1.Sentiment\022\020\n\010language\030\002" + + " \001(\t\0225\n\tsentences\030\003 \003(\0132\".google.cloud.l" + + "anguage.v1.Sentence\"\224\001\n\035AnalyzeEntitySen" + + "timentRequest\0224\n\010document\030\001 \001(\0132\".google" + + ".cloud.language.v1.Document\022=\n\rencoding_" + + "type\030\002 \001(\0162&.google.cloud.language.v1.En" + + "codingType\"f\n\036AnalyzeEntitySentimentResp" + + "onse\0222\n\010entities\030\001 \003(\0132 .google.cloud.la" + + "nguage.v1.Entity\022\020\n\010language\030\002 \001(\t\"\215\001\n\026A" + + "nalyzeEntitiesRequest\0224\n\010document\030\001 \001(\0132" + + "\".google.cloud.language.v1.Document\022=\n\re" + + "ncoding_type\030\002 \001(\0162&.google.cloud.langua" + + "ge.v1.EncodingType\"_\n\027AnalyzeEntitiesRes" + + "ponse\0222\n\010entities\030\001 \003(\0132 .google.cloud.l" + + "anguage.v1.Entity\022\020\n\010language\030\002 \001(\t\"\213\001\n\024" + + "AnalyzeSyntaxRequest\0224\n\010document\030\001 \001(\0132\"" + + ".google.cloud.language.v1.Document\022=\n\ren" + + "coding_type\030\002 \001(\0162&.google.cloud.languag" + + "e.v1.EncodingType\"\221\001\n\025AnalyzeSyntaxRespo" + + "nse\0225\n\tsentences\030\001 \003(\0132\".google.cloud.la" + + "nguage.v1.Sentence\022/\n\006tokens\030\002 \003(\0132\037.goo" + + "gle.cloud.language.v1.Token\022\020\n\010language\030" + + "\003 \001(\t\"K\n\023ClassifyTextRequest\0224\n\010document" + "\030\001 \001(\0132\".google.cloud.language.v1.Docume" - + "nt\022=\n\rencoding_type\030\002 \001(\0162&.google.cloud" - + ".language.v1.EncodingType\"f\n\036AnalyzeEnti" - + "tySentimentResponse\0222\n\010entities\030\001 \003(\0132 ." - + "google.cloud.language.v1.Entity\022\020\n\010langu" - + "age\030\002 \001(\t\"\215\001\n\026AnalyzeEntitiesRequest\0224\n\010" - + "document\030\001 \001(\0132\".google.cloud.language.v" - + "1.Document\022=\n\rencoding_type\030\002 \001(\0162&.goog" - + "le.cloud.language.v1.EncodingType\"_\n\027Ana" - + "lyzeEntitiesResponse\0222\n\010entities\030\001 \003(\0132 " - + ".google.cloud.language.v1.Entity\022\020\n\010lang" - + "uage\030\002 \001(\t\"\213\001\n\024AnalyzeSyntaxRequest\0224\n\010d" - + "ocument\030\001 \001(\0132\".google.cloud.language.v1" - + ".Document\022=\n\rencoding_type\030\002 \001(\0162&.googl" - + "e.cloud.language.v1.EncodingType\"\221\001\n\025Ana" - + "lyzeSyntaxResponse\0225\n\tsentences\030\001 \003(\0132\"." - + "google.cloud.language.v1.Sentence\022/\n\006tok" - + "ens\030\002 \003(\0132\037.google.cloud.language.v1.Tok" - + "en\022\020\n\010language\030\003 \001(\t\"K\n\023ClassifyTextRequ" - + "est\0224\n\010document\030\001 \001(\0132\".google.cloud.lan" - + "guage.v1.Document\"\\\n\024ClassifyTextRespons" - + "e\022D\n\ncategories\030\001 \003(\01320.google.cloud.lan" - + "guage.v1.ClassificationCategory\"\360\002\n\023Anno" - + "tateTextRequest\0224\n\010document\030\001 \001(\0132\".goog" - + "le.cloud.language.v1.Document\022H\n\010feature" - + "s\030\002 \001(\01326.google.cloud.language.v1.Annot" - + "ateTextRequest.Features\022=\n\rencoding_type" - + "\030\003 \001(\0162&.google.cloud.language.v1.Encodi" - + "ngType\032\231\001\n\010Features\022\026\n\016extract_syntax\030\001 " - + "\001(\010\022\030\n\020extract_entities\030\002 \001(\010\022\"\n\032extract" - + "_document_sentiment\030\003 \001(\010\022 \n\030extract_ent" - + "ity_sentiment\030\004 \001(\010\022\025\n\rclassify_text\030\006 \001" - + "(\010\"\313\002\n\024AnnotateTextResponse\0225\n\tsentences" - + "\030\001 \003(\0132\".google.cloud.language.v1.Senten" - + "ce\022/\n\006tokens\030\002 \003(\0132\037.google.cloud.langua" - + "ge.v1.Token\0222\n\010entities\030\003 \003(\0132 .google.c" - + "loud.language.v1.Entity\022?\n\022document_sent" - + "iment\030\004 \001(\0132#.google.cloud.language.v1.S" - + "entiment\022\020\n\010language\030\005 \001(\t\022D\n\ncategories" - + "\030\006 \003(\01320.google.cloud.language.v1.Classi" - + "ficationCategory*8\n\014EncodingType\022\010\n\004NONE" - + "\020\000\022\010\n\004UTF8\020\001\022\t\n\005UTF16\020\002\022\t\n\005UTF32\020\0032\343\007\n\017L" - + "anguageService\022\244\001\n\020AnalyzeSentiment\0221.go" - + "ogle.cloud.language.v1.AnalyzeSentimentR" - + "equest\0322.google.cloud.language.v1.Analyz" - + "eSentimentResponse\")\202\323\344\223\002#\"\036/v1/document" - + "s:analyzeSentiment:\001*\022\240\001\n\017AnalyzeEntitie" - + "s\0220.google.cloud.language.v1.AnalyzeEnti" - + "tiesRequest\0321.google.cloud.language.v1.A" - + "nalyzeEntitiesResponse\"(\202\323\344\223\002\"\"\035/v1/docu" - + "ments:analyzeEntities:\001*\022\274\001\n\026AnalyzeEnti" - + "tySentiment\0227.google.cloud.language.v1.A" - + "nalyzeEntitySentimentRequest\0328.google.cl" - + "oud.language.v1.AnalyzeEntitySentimentRe" - + "sponse\"/\202\323\344\223\002)\"$/v1/documents:analyzeEnt" - + "itySentiment:\001*\022\230\001\n\rAnalyzeSyntax\022..goog" - + "le.cloud.language.v1.AnalyzeSyntaxReques" - + "t\032/.google.cloud.language.v1.AnalyzeSynt" - + "axResponse\"&\202\323\344\223\002 \"\033/v1/documents:analyz" - + "eSyntax:\001*\022\224\001\n\014ClassifyText\022-.google.clo" - + "ud.language.v1.ClassifyTextRequest\032..goo" - + "gle.cloud.language.v1.ClassifyTextRespon" - + "se\"%\202\323\344\223\002\037\"\032/v1/documents:classifyText:\001" - + "*\022\224\001\n\014AnnotateText\022-.google.cloud.langua" - + "ge.v1.AnnotateTextRequest\032..google.cloud" - + ".language.v1.AnnotateTextResponse\"%\202\323\344\223\002" - + "\037\"\032/v1/documents:annotateText:\001*Bx\n\034com." - + "google.cloud.language.v1B\024LanguageServic" - + "eProtoP\001Z@google.golang.org/genproto/goo" - + "gleapis/cloud/language/v1;languageb\006prot" - + "o3" + + "nt\"\\\n\024ClassifyTextResponse\022D\n\ncategories" + + "\030\001 \003(\01320.google.cloud.language.v1.Classi" + + "ficationCategory\"\360\002\n\023AnnotateTextRequest" + + "\0224\n\010document\030\001 \001(\0132\".google.cloud.langua" + + "ge.v1.Document\022H\n\010features\030\002 \001(\01326.googl" + + "e.cloud.language.v1.AnnotateTextRequest." + + "Features\022=\n\rencoding_type\030\003 \001(\0162&.google" + + ".cloud.language.v1.EncodingType\032\231\001\n\010Feat" + + "ures\022\026\n\016extract_syntax\030\001 \001(\010\022\030\n\020extract_" + + "entities\030\002 \001(\010\022\"\n\032extract_document_senti" + + "ment\030\003 \001(\010\022 \n\030extract_entity_sentiment\030\004" + + " \001(\010\022\025\n\rclassify_text\030\006 \001(\010\"\313\002\n\024Annotate" + + "TextResponse\0225\n\tsentences\030\001 \003(\0132\".google" + + ".cloud.language.v1.Sentence\022/\n\006tokens\030\002 " + + "\003(\0132\037.google.cloud.language.v1.Token\0222\n\010" + + "entities\030\003 \003(\0132 .google.cloud.language.v" + + "1.Entity\022?\n\022document_sentiment\030\004 \001(\0132#.g" + + "oogle.cloud.language.v1.Sentiment\022\020\n\010lan" + + "guage\030\005 \001(\t\022D\n\ncategories\030\006 \003(\01320.google" + + ".cloud.language.v1.ClassificationCategor" + + "y*8\n\014EncodingType\022\010\n\004NONE\020\000\022\010\n\004UTF8\020\001\022\t\n" + + "\005UTF16\020\002\022\t\n\005UTF32\020\0032\343\007\n\017LanguageService\022" + + "\244\001\n\020AnalyzeSentiment\0221.google.cloud.lang" + + "uage.v1.AnalyzeSentimentRequest\0322.google" + + ".cloud.language.v1.AnalyzeSentimentRespo" + + "nse\")\202\323\344\223\002#\"\036/v1/documents:analyzeSentim" + + "ent:\001*\022\240\001\n\017AnalyzeEntities\0220.google.clou" + + "d.language.v1.AnalyzeEntitiesRequest\0321.g" + + "oogle.cloud.language.v1.AnalyzeEntitiesR" + + "esponse\"(\202\323\344\223\002\"\"\035/v1/documents:analyzeEn" + + "tities:\001*\022\274\001\n\026AnalyzeEntitySentiment\0227.g" + + "oogle.cloud.language.v1.AnalyzeEntitySen" + + "timentRequest\0328.google.cloud.language.v1" + + ".AnalyzeEntitySentimentResponse\"/\202\323\344\223\002)\"" + + "$/v1/documents:analyzeEntitySentiment:\001*" + + "\022\230\001\n\rAnalyzeSyntax\022..google.cloud.langua" + + "ge.v1.AnalyzeSyntaxRequest\032/.google.clou" + + "d.language.v1.AnalyzeSyntaxResponse\"&\202\323\344" + + "\223\002 \"\033/v1/documents:analyzeSyntax:\001*\022\224\001\n\014" + + "ClassifyText\022-.google.cloud.language.v1." + + "ClassifyTextRequest\032..google.cloud.langu" + + "age.v1.ClassifyTextResponse\"%\202\323\344\223\002\037\"\032/v1" + + "/documents:classifyText:\001*\022\224\001\n\014AnnotateT" + + "ext\022-.google.cloud.language.v1.AnnotateT" + + "extRequest\032..google.cloud.language.v1.An" + + "notateTextResponse\"%\202\323\344\223\002\037\"\032/v1/document" + + "s:annotateText:\001*Bx\n\034com.google.cloud.la" + + "nguage.v1B\024LanguageServiceProtoP\001Z@googl" + + "e.golang.org/genproto/googleapis/cloud/l" + + "anguage/v1;languageb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-language-v1/src/main/proto/google/cloud/language/v1/language_service.proto b/google-api-grpc/proto-google-cloud-language-v1/src/main/proto/google/cloud/language/v1/language_service.proto index f9893385ffcc..7a15c8bf14c4 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/src/main/proto/google/cloud/language/v1/language_service.proto +++ b/google-api-grpc/proto-google-cloud-language-v1/src/main/proto/google/cloud/language/v1/language_service.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -170,6 +171,21 @@ message Entity { // Other types OTHER = 7; + + // Phone number + PHONE_NUMBER = 9; + + // Address + ADDRESS = 10; + + // Date + DATE = 11; + + // Number + NUMBER = 12; + + // Price + PRICE = 13; } // The representative name for the entity. @@ -203,6 +219,32 @@ message Entity { Sentiment sentiment = 6; } +// Represents the text encoding that the caller uses to process the output. +// Providing an `EncodingType` is recommended because the API provides the +// beginning offsets for various outputs, such as tokens and mentions, and +// languages that natively use different text encodings may access offsets +// differently. +enum EncodingType { + // If `EncodingType` is not specified, encoding-dependent information (such as + // `begin_offset`) will be set at `-1`. + NONE = 0; + + // Encoding-dependent information (such as `begin_offset`) is calculated based + // on the UTF-8 encoding of the input. C++ and Go are examples of languages + // that use this encoding natively. + UTF8 = 1; + + // Encoding-dependent information (such as `begin_offset`) is calculated based + // on the UTF-16 encoding of the input. Java and JavaScript are examples of + // languages that use this encoding natively. + UTF16 = 2; + + // Encoding-dependent information (such as `begin_offset`) is calculated based + // on the UTF-32 encoding of the input. Python is an example of a language + // that uses this encoding natively. + UTF32 = 3; +} + // Represents the smallest syntactic building block of the text. message Token { // The token text. @@ -870,7 +912,8 @@ message TextSpan { // Represents a category returned from the text classifier. message ClassificationCategory { - // The name of the category representing the document. + // The name of the category representing the document, from the [predefined + // taxonomy](/natural-language/docs/categories). string name = 1; // The classifier's confidence of the category. Number represents how certain @@ -1041,29 +1084,3 @@ message AnnotateTextResponse { // Categories identified in the input document. repeated ClassificationCategory categories = 6; } - -// Represents the text encoding that the caller uses to process the output. -// Providing an `EncodingType` is recommended because the API provides the -// beginning offsets for various outputs, such as tokens and mentions, and -// languages that natively use different text encodings may access offsets -// differently. -enum EncodingType { - // If `EncodingType` is not specified, encoding-dependent information (such as - // `begin_offset`) will be set at `-1`. - NONE = 0; - - // Encoding-dependent information (such as `begin_offset`) is calculated based - // on the UTF-8 encoding of the input. C++ and Go are examples of languages - // that use this encoding natively. - UTF8 = 1; - - // Encoding-dependent information (such as `begin_offset`) is calculated based - // on the UTF-16 encoding of the input. Java and Javascript are examples of - // languages that use this encoding natively. - UTF16 = 2; - - // Encoding-dependent information (such as `begin_offset`) is calculated based - // on the UTF-32 encoding of the input. Python is an example of a language - // that uses this encoding natively. - UTF32 = 3; -} diff --git a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java index 59686ad491a9..df590debd8a9 100644 --- a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java +++ b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java @@ -93,6 +93,7 @@ * */ @Generated("by gapic-generator") +@BetaApi public class LanguageServiceClient implements BackgroundResource { private final LanguageServiceSettings settings; private final LanguageServiceStub stub; diff --git a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java index 2122cc0fadf9..63bb601b1580 100644 --- a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java +++ b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java @@ -57,6 +57,7 @@ * */ @Generated("by gapic-generator") +@BetaApi public class LanguageServiceSettings extends ClientSettings { /** Returns the object with the settings used for calls to analyzeSentiment. */ public UnaryCallSettings diff --git a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/package-info.java b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/package-info.java index 14349d0d96cf..410ff1248de4 100644 --- a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/package-info.java +++ b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/package-info.java @@ -15,7 +15,7 @@ */ /** - * A client to Google Cloud Natural Language API. + * A client to Cloud Natural Language API. * *

The interfaces provided are listed below, along with usage samples. * diff --git a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/GrpcLanguageServiceCallableFactory.java b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/GrpcLanguageServiceCallableFactory.java index b52d426b912a..8687a1d42764 100644 --- a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/GrpcLanguageServiceCallableFactory.java +++ b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/GrpcLanguageServiceCallableFactory.java @@ -36,7 +36,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC callable factory implementation for Google Cloud Natural Language API. + * gRPC callable factory implementation for Cloud Natural Language API. * *

This class is for advanced usage. */ diff --git a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/GrpcLanguageServiceStub.java b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/GrpcLanguageServiceStub.java index 4da34dd16c66..a3fdfc818a9a 100644 --- a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/GrpcLanguageServiceStub.java +++ b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/GrpcLanguageServiceStub.java @@ -42,7 +42,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC stub implementation for Google Cloud Natural Language API. + * gRPC stub implementation for Cloud Natural Language API. * *

This class is for advanced usage and reflects the underlying API directly. */ diff --git a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStub.java b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStub.java index 77dddb2fe08b..5bf82d776263 100644 --- a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStub.java +++ b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStub.java @@ -34,7 +34,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Base stub class for Google Cloud Natural Language API. + * Base stub class for Cloud Natural Language API. * *

This class is for advanced usage and reflects the underlying API directly. */ diff --git a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java index c10ed89aab72..06b792938913 100644 --- a/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java @@ -78,10 +78,14 @@ * */ @Generated("by gapic-generator") +@BetaApi public class LanguageServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-language") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); private final UnaryCallSettings analyzeSentimentSettings; @@ -246,9 +250,9 @@ public static class Builder extends StubSettings.Builder Date: Thu, 14 Mar 2019 02:02:25 -0700 Subject: [PATCH 39/53] Regenerate securitycenter client (#4677) --- .../securitycenter/v1/GroupAssetsRequest.java | 175 ------------------ .../v1/GroupAssetsRequestOrBuilder.java | 25 --- .../v1/GroupFindingsRequest.java | 175 ------------------ .../v1/GroupFindingsRequestOrBuilder.java | 25 --- .../securitycenter/v1/ListAssetsRequest.java | 175 ------------------ .../v1/ListAssetsRequestOrBuilder.java | 25 --- .../v1/ListFindingsRequest.java | 175 ------------------ .../v1/ListFindingsRequestOrBuilder.java | 25 --- .../v1/SecuritycenterService.java | 125 ++++++------- .../v1/securitycenter_service.proto | 28 +-- .../synth.metadata | 10 +- 11 files changed, 67 insertions(+), 896 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java index a6cb10133240..60b5924dcccd 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java @@ -26,7 +26,6 @@ private GroupAssetsRequest() { parent_ = ""; filter_ = ""; groupBy_ = ""; - having_ = ""; pageToken_ = ""; pageSize_ = 0; } @@ -104,13 +103,6 @@ private GroupAssetsRequest( readTime_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -498,53 +490,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } - public static final int HAVING_FIELD_NUMBER = 6; - private volatile java.lang.Object having_; - /** - * - * - *

-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'state_change' is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } - } - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'state_change' is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int PAGE_TOKEN_FIELD_NUMBER = 7; private volatile java.lang.Object pageToken_; /** @@ -637,9 +582,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (readTime_ != null) { output.writeMessage(5, getReadTime()); } - if (!getHavingBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); - } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pageToken_); } @@ -670,9 +612,6 @@ public int getSerializedSize() { if (readTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadTime()); } - if (!getHavingBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); - } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } @@ -707,7 +646,6 @@ public boolean equals(final java.lang.Object obj) { if (hasReadTime()) { result = result && getReadTime().equals(other.getReadTime()); } - result = result && getHaving().equals(other.getHaving()); result = result && getPageToken().equals(other.getPageToken()); result = result && (getPageSize() == other.getPageSize()); result = result && unknownFields.equals(other.unknownFields); @@ -735,8 +673,6 @@ public int hashCode() { hash = (37 * hash) + READ_TIME_FIELD_NUMBER; hash = (53 * hash) + getReadTime().hashCode(); } - hash = (37 * hash) + HAVING_FIELD_NUMBER; - hash = (53 * hash) + getHaving().hashCode(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; @@ -905,8 +841,6 @@ public Builder clear() { readTime_ = null; readTimeBuilder_ = null; } - having_ = ""; - pageToken_ = ""; pageSize_ = 0; @@ -951,7 +885,6 @@ public com.google.cloud.securitycenter.v1.GroupAssetsRequest buildPartial() { } else { result.readTime_ = readTimeBuilder_.build(); } - result.having_ = having_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; onBuilt(); @@ -1022,10 +955,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupAssetsRequest o if (other.hasReadTime()) { mergeReadTime(other.getReadTime()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); @@ -2062,110 +1991,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return readTimeBuilder_; } - private java.lang.Object having_ = ""; - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'state_change' is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'state_change' is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'state_change' is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder setHaving(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - having_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'state_change' is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder clearHaving() { - - having_ = getDefaultInstance().getHaving(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'state_change' is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder setHavingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - having_ = value; - onChanged(); - return this; - } - private java.lang.Object pageToken_ = ""; /** * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java index d213fa6fb270..56a1dee4ee8a 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java @@ -263,31 +263,6 @@ public interface GroupAssetsRequestOrBuilder */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'state_change' is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - java.lang.String getHaving(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'state_change' is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java index 35bbf22866a8..fcc33bbfdae6 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java @@ -26,7 +26,6 @@ private GroupFindingsRequest() { parent_ = ""; filter_ = ""; groupBy_ = ""; - having_ = ""; pageToken_ = ""; pageSize_ = 0; } @@ -104,13 +103,6 @@ private GroupFindingsRequest( compareDuration_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -493,53 +485,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } - public static final int HAVING_FIELD_NUMBER = 6; - private volatile java.lang.Object having_; - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'finding.state' and 'state_change'
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } - } - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'finding.state' and 'state_change'
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int PAGE_TOKEN_FIELD_NUMBER = 7; private volatile java.lang.Object pageToken_; /** @@ -632,9 +577,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (compareDuration_ != null) { output.writeMessage(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); - } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pageToken_); } @@ -665,9 +607,6 @@ public int getSerializedSize() { if (compareDuration_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); - } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } @@ -702,7 +641,6 @@ public boolean equals(final java.lang.Object obj) { if (hasCompareDuration()) { result = result && getCompareDuration().equals(other.getCompareDuration()); } - result = result && getHaving().equals(other.getHaving()); result = result && getPageToken().equals(other.getPageToken()); result = result && (getPageSize() == other.getPageSize()); result = result && unknownFields.equals(other.unknownFields); @@ -730,8 +668,6 @@ public int hashCode() { hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER; hash = (53 * hash) + getCompareDuration().hashCode(); } - hash = (37 * hash) + HAVING_FIELD_NUMBER; - hash = (53 * hash) + getHaving().hashCode(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; @@ -900,8 +836,6 @@ public Builder clear() { compareDuration_ = null; compareDurationBuilder_ = null; } - having_ = ""; - pageToken_ = ""; pageSize_ = 0; @@ -946,7 +880,6 @@ public com.google.cloud.securitycenter.v1.GroupFindingsRequest buildPartial() { } else { result.compareDuration_ = compareDurationBuilder_.build(); } - result.having_ = having_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; onBuilt(); @@ -1017,10 +950,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupFindingsRequest if (other.hasCompareDuration()) { mergeCompareDuration(other.getCompareDuration()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); @@ -2043,110 +1972,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private java.lang.Object having_ = ""; - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'finding.state' and 'state_change'
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'finding.state' and 'state_change'
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'finding.state' and 'state_change'
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder setHaving(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - having_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'finding.state' and 'state_change'
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder clearHaving() { - - having_ = getDefaultInstance().getHaving(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'finding.state' and 'state_change'
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder setHavingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - having_ = value; - onChanged(); - return this; - } - private java.lang.Object pageToken_ = ""; /** * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java index 7f6ed23a6616..28e70e904286 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java @@ -258,31 +258,6 @@ public interface GroupFindingsRequestOrBuilder */ com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'finding.state' and 'state_change'
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - java.lang.String getHaving(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'finding.state' and 'state_change'
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java index 89f6093979cf..4dd033794a61 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java @@ -26,7 +26,6 @@ private ListAssetsRequest() { parent_ = ""; filter_ = ""; orderBy_ = ""; - having_ = ""; pageToken_ = ""; pageSize_ = 0; } @@ -104,13 +103,6 @@ private ListAssetsRequest( compareDuration_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -503,53 +495,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } - public static final int HAVING_FIELD_NUMBER = 6; - private volatile java.lang.Object having_; - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'state_change' is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } - } - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'state_change' is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int FIELD_MASK_FIELD_NUMBER = 7; private com.google.protobuf.FieldMask fieldMask_; /** @@ -690,9 +635,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (compareDuration_ != null) { output.writeMessage(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); - } if (fieldMask_ != null) { output.writeMessage(7, getFieldMask()); } @@ -726,9 +668,6 @@ public int getSerializedSize() { if (compareDuration_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); - } if (fieldMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); } @@ -766,7 +705,6 @@ public boolean equals(final java.lang.Object obj) { if (hasCompareDuration()) { result = result && getCompareDuration().equals(other.getCompareDuration()); } - result = result && getHaving().equals(other.getHaving()); result = result && (hasFieldMask() == other.hasFieldMask()); if (hasFieldMask()) { result = result && getFieldMask().equals(other.getFieldMask()); @@ -798,8 +736,6 @@ public int hashCode() { hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER; hash = (53 * hash) + getCompareDuration().hashCode(); } - hash = (37 * hash) + HAVING_FIELD_NUMBER; - hash = (53 * hash) + getHaving().hashCode(); if (hasFieldMask()) { hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; hash = (53 * hash) + getFieldMask().hashCode(); @@ -971,8 +907,6 @@ public Builder clear() { compareDuration_ = null; compareDurationBuilder_ = null; } - having_ = ""; - if (fieldMaskBuilder_ == null) { fieldMask_ = null; } else { @@ -1023,7 +957,6 @@ public com.google.cloud.securitycenter.v1.ListAssetsRequest buildPartial() { } else { result.compareDuration_ = compareDurationBuilder_.build(); } - result.having_ = having_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; } else { @@ -1099,10 +1032,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsRequest ot if (other.hasCompareDuration()) { mergeCompareDuration(other.getCompareDuration()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (other.hasFieldMask()) { mergeFieldMask(other.getFieldMask()); } @@ -2114,110 +2043,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private java.lang.Object having_ = ""; - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'state_change' is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'state_change' is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'state_change' is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder setHaving(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - having_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'state_change' is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder clearHaving() { - - having_ = getDefaultInstance().getHaving(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'state_change' is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder setHavingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - having_ = value; - onChanged(); - return this; - } - private com.google.protobuf.FieldMask fieldMask_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java index f66ea585751b..ee09babbeeba 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java @@ -253,31 +253,6 @@ public interface ListAssetsRequestOrBuilder */ com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'state_change' is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - java.lang.String getHaving(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'state_change' is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java index 0987f9b8273a..b061bedc7738 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java @@ -26,7 +26,6 @@ private ListFindingsRequest() { parent_ = ""; filter_ = ""; orderBy_ = ""; - having_ = ""; pageToken_ = ""; pageSize_ = 0; } @@ -104,13 +103,6 @@ private ListFindingsRequest( compareDuration_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -503,53 +495,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } - public static final int HAVING_FIELD_NUMBER = 6; - private volatile java.lang.Object having_; - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'finding.state' and 'state_change'
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } - } - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'finding.state' and 'state_change'
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int FIELD_MASK_FIELD_NUMBER = 7; private com.google.protobuf.FieldMask fieldMask_; /** @@ -687,9 +632,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (compareDuration_ != null) { output.writeMessage(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); - } if (fieldMask_ != null) { output.writeMessage(7, getFieldMask()); } @@ -723,9 +665,6 @@ public int getSerializedSize() { if (compareDuration_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); - } if (fieldMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); } @@ -763,7 +702,6 @@ public boolean equals(final java.lang.Object obj) { if (hasCompareDuration()) { result = result && getCompareDuration().equals(other.getCompareDuration()); } - result = result && getHaving().equals(other.getHaving()); result = result && (hasFieldMask() == other.hasFieldMask()); if (hasFieldMask()) { result = result && getFieldMask().equals(other.getFieldMask()); @@ -795,8 +733,6 @@ public int hashCode() { hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER; hash = (53 * hash) + getCompareDuration().hashCode(); } - hash = (37 * hash) + HAVING_FIELD_NUMBER; - hash = (53 * hash) + getHaving().hashCode(); if (hasFieldMask()) { hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; hash = (53 * hash) + getFieldMask().hashCode(); @@ -969,8 +905,6 @@ public Builder clear() { compareDuration_ = null; compareDurationBuilder_ = null; } - having_ = ""; - if (fieldMaskBuilder_ == null) { fieldMask_ = null; } else { @@ -1021,7 +955,6 @@ public com.google.cloud.securitycenter.v1.ListFindingsRequest buildPartial() { } else { result.compareDuration_ = compareDurationBuilder_.build(); } - result.having_ = having_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; } else { @@ -1097,10 +1030,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsRequest if (other.hasCompareDuration()) { mergeCompareDuration(other.getCompareDuration()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (other.hasFieldMask()) { mergeFieldMask(other.getFieldMask()); } @@ -2112,110 +2041,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private java.lang.Object having_ = ""; - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'finding.state' and 'state_change'
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'finding.state' and 'state_change'
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'finding.state' and 'state_change'
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder setHaving(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - having_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'finding.state' and 'state_change'
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder clearHaving() { - - having_ = getDefaultInstance().getHaving(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only 'finding.state' and 'state_change'
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - */ - public Builder setHavingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - having_ = value; - onChanged(); - return this; - } - private com.google.protobuf.FieldMask fieldMask_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java index 77f4daefa6c5..fe3376385d11 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java @@ -253,31 +253,6 @@ public interface ListFindingsRequestOrBuilder */ com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'finding.state' and 'state_change'
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - java.lang.String getHaving(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only 'finding.state' and 'state_change'
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java index acd430ecef07..f1bc76e24cd5 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java @@ -140,62 +140,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&.google.cloud.securitycenter.v1.Source\"" + ".\n\036GetOrganizationSettingsRequest\022\014\n\004nam" + "e\030\001 \001(\t\" \n\020GetSourceRequest\022\014\n\004name\030\001 \001(" - + "\t\"\341\001\n\022GroupAssetsRequest\022\016\n\006parent\030\001 \001(\t" + + "\t\"\327\001\n\022GroupAssetsRequest\022\016\n\006parent\030\001 \001(\t" + "\022\016\n\006filter\030\002 \001(\t\022\020\n\010group_by\030\003 \001(\t\0223\n\020co" + "mpare_duration\030\004 \001(\0132\031.google.protobuf.D" + "uration\022-\n\tread_time\030\005 \001(\0132\032.google.prot" - + "obuf.Timestamp\022\016\n\006having\030\006 \001(\t\022\022\n\npage_t" - + "oken\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\270\001\n\023GroupA" - + "ssetsResponse\022E\n\020group_by_results\030\001 \003(\0132" - + "+.google.cloud.securitycenter.v1.GroupRe" - + "sult\022-\n\tread_time\030\002 \001(\0132\032.google.protobu" - + "f.Timestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\n" - + "total_size\030\004 \001(\005\"\343\001\n\024GroupFindingsReques" - + "t\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010gro" - + "up_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google." - + "protobuf.Timestamp\0223\n\020compare_duration\030\005" - + " \001(\0132\031.google.protobuf.Duration\022\016\n\006havin" - + "g\030\006 \001(\t\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_size" - + "\030\010 \001(\005\"\272\001\n\025GroupFindingsResponse\022E\n\020grou" - + "p_by_results\030\001 \003(\0132+.google.cloud.securi" - + "tycenter.v1.GroupResult\022-\n\tread_time\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\022\027\n\017next_p" - + "age_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\270\001\n\013" - + "GroupResult\022O\n\nproperties\030\001 \003(\0132;.google" - + ".cloud.securitycenter.v1.GroupResult.Pro" - + "pertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Propertie" - + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" - + "gle.protobuf.Value:\0028\001\"K\n\022ListSourcesReq" - + "uest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t" - + "\022\021\n\tpage_size\030\007 \001(\005\"g\n\023ListSourcesRespon" - + "se\0227\n\007sources\030\001 \003(\0132&.google.cloud.secur" - + "itycenter.v1.Source\022\027\n\017next_page_token\030\002" - + " \001(\t\"\220\002\n\021ListAssetsRequest\022\016\n\006parent\030\001 \001" - + "(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\t" - + "read_time\030\004 \001(\0132\032.google.protobuf.Timest" - + "amp\0223\n\020compare_duration\030\005 \001(\0132\031.google.p" - + "rotobuf.Duration\022\016\n\006having\030\006 \001(\t\022.\n\nfiel" - + "d_mask\030\007 \001(\0132\032.google.protobuf.FieldMask" - + "\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"" - + "\303\003\n\022ListAssetsResponse\022`\n\023list_assets_re" - + "sults\030\001 \003(\0132C.google.cloud.securitycente" - + "r.v1.ListAssetsResponse.ListAssetsResult" - + "\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntota" - + "l_size\030\004 \001(\005\032\356\001\n\020ListAssetsResult\0224\n\005ass" - + "et\030\001 \001(\0132%.google.cloud.securitycenter.v" - + "1.Asset\022e\n\014state_change\030\002 \001(\0162O.google.c" - + "loud.securitycenter.v1.ListAssetsRespons" - + "e.ListAssetsResult.StateChange\"=\n\013StateC" - + "hange\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020" - + "\002\022\n\n\006ACTIVE\020\003\"\222\002\n\023ListFindingsRequest\022\016\n" - + "\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_b" - + "y\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.prot" - + "obuf.Timestamp\0223\n\020compare_duration\030\005 \001(\013" - + "2\031.google.protobuf.Duration\022\016\n\006having\030\006 " - + "\001(\t\022.\n\nfield_mask\030\007 \001(\0132\032.google.protobu" - + "f.FieldMask\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_" - + "size\030\t \001(\005\"\345\003\n\024ListFindingsResponse\022f\n\025l" + + "obuf.Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpa" + + "ge_size\030\010 \001(\005J\004\010\006\020\007\"\270\001\n\023GroupAssetsRespo" + + "nse\022E\n\020group_by_results\030\001 \003(\0132+.google.c" + + "loud.securitycenter.v1.GroupResult\022-\n\tre" + + "ad_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_size" + + "\030\004 \001(\005\"\331\001\n\024GroupFindingsRequest\022\016\n\006paren" + + "t\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010group_by\030\003 \001(" + + "\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestamp\0223\n\020compare_duration\030\005 \001(\0132\031.goo" + + "gle.protobuf.Duration\022\022\n\npage_token\030\007 \001(" + + "\t\022\021\n\tpage_size\030\010 \001(\005J\004\010\006\020\007\"\272\001\n\025GroupFind" + + "ingsResponse\022E\n\020group_by_results\030\001 \003(\0132+" + + ".google.cloud.securitycenter.v1.GroupRes" + + "ult\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\nt" + + "otal_size\030\004 \001(\005\"\270\001\n\013GroupResult\022O\n\nprope" + + "rties\030\001 \003(\0132;.google.cloud.securitycente" + + "r.v1.GroupResult.PropertiesEntry\022\r\n\005coun" + + "t\030\002 \001(\003\032I\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022" + + "%\n\005value\030\002 \001(\0132\026.google.protobuf.Value:\002" + + "8\001\"K\n\022ListSourcesRequest\022\016\n\006parent\030\001 \001(\t" + + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"" + + "g\n\023ListSourcesResponse\0227\n\007sources\030\001 \003(\0132" + + "&.google.cloud.securitycenter.v1.Source\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\206\002\n\021ListAssetsR" + + "equest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020" + + "\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\0223\n\020compare_durat" + + "ion\030\005 \001(\0132\031.google.protobuf.Duration\022.\n\n" + + "field_mask\030\007 \001(\0132\032.google.protobuf.Field" + + "Mask\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t " + + "\001(\005J\004\010\006\020\007\"\303\003\n\022ListAssetsResponse\022`\n\023list" + + "_assets_results\030\001 \003(\0132C.google.cloud.sec" + + "uritycenter.v1.ListAssetsResponse.ListAs" + + "setsResult\022-\n\tread_time\030\002 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022\027\n\017next_page_token\030\003 \001" + + "(\t\022\022\n\ntotal_size\030\004 \001(\005\032\356\001\n\020ListAssetsRes" + + "ult\0224\n\005asset\030\001 \001(\0132%.google.cloud.securi" + + "tycenter.v1.Asset\022e\n\014state_change\030\002 \001(\0162" + + "O.google.cloud.securitycenter.v1.ListAss" + + "etsResponse.ListAssetsResult.StateChange" + + "\"=\n\013StateChange\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013" + + "\n\007REMOVED\020\002\022\n\n\006ACTIVE\020\003\"\210\002\n\023ListFindings" + + "Request\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022" + + "\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0223\n\020compare_dura" + + "tion\030\005 \001(\0132\031.google.protobuf.Duration\022.\n" + + "\nfield_mask\030\007 \001(\0132\032.google.protobuf.Fiel" + + "dMask\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t" + + " \001(\005J\004\010\006\020\007\"\345\003\n\024ListFindingsResponse\022f\n\025l" + "ist_findings_results\030\001 \003(\0132G.google.clou" + "d.securitycenter.v1.ListFindingsResponse" + ".ListFindingsResult\022-\n\tread_time\030\002 \001(\0132\032" @@ -382,14 +381,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor, new java.lang.String[] { - "Parent", - "Filter", - "GroupBy", - "CompareDuration", - "ReadTime", - "Having", - "PageToken", - "PageSize", + "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor = getDescriptor().getMessageTypes().get(5); @@ -405,14 +397,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor, new java.lang.String[] { - "Parent", - "Filter", - "GroupBy", - "ReadTime", - "CompareDuration", - "Having", - "PageToken", - "PageSize", + "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor = getDescriptor().getMessageTypes().get(7); @@ -467,7 +452,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "OrderBy", "ReadTime", "CompareDuration", - "Having", "FieldMask", "PageToken", "PageSize", @@ -501,7 +485,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "OrderBy", "ReadTime", "CompareDuration", - "Having", "FieldMask", "PageToken", "PageSize", diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto index f49fb8528d0f..7a5d2e744505 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -331,11 +331,6 @@ message GroupAssetsRequest { // NOW. google.protobuf.Timestamp read_time = 5; - // Filter that specifies what fields to further filter on *after* the query - // filter has been executed. Currently only 'state_change' is supported and - // requires compare_duration to be specified. - string having = 6; - // The value returned by the last `GroupAssetsResponse`; indicates // that this is a continuation of a prior `GroupAssets` call, and that the // system should return the next page of data. @@ -344,6 +339,8 @@ message GroupAssetsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 8; + + reserved 6; } // Response message for grouping by assets. @@ -446,11 +443,6 @@ message GroupFindingsRequest { // `group_by`. google.protobuf.Duration compare_duration = 5; - // Filter that specifies what fields to further filter on *after* the query - // filter has been executed. Currently only 'finding.state' and 'state_change' - // are supported and requires compare_duration to be specified. - string having = 6; - // The value returned by the last `GroupFindingsResponse`; indicates // that this is a continuation of a prior `GroupFindings` call, and // that the system should return the next page of data. @@ -459,6 +451,8 @@ message GroupFindingsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 8; + + reserved 6; } // Response message for group by findings. @@ -591,11 +585,6 @@ message ListAssetsRequest { // read_time. google.protobuf.Duration compare_duration = 5; - // Filter that specifies what fields to further filter on *after* the query - // filter has been executed. Currently only 'state_change' is supported and - // requires compare_duration to be specified. - string having = 6; - // Optional. // // A field mask to specify the ListAssetsResult fields to be listed in the @@ -611,6 +600,8 @@ message ListAssetsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 9; + + reserved 6; } // Response message for listing assets. @@ -735,11 +726,6 @@ message ListFindingsRequest { // read_time. google.protobuf.Duration compare_duration = 5; - // Filter that specifies what fields to further filter on *after* the query - // filter has been executed. Currently only 'finding.state' and 'state_change' - // are supported and requires compare_duration to be specified. - string having = 6; - // Optional. // // A field mask to specify the Finding fields to be listed in the response. @@ -754,6 +740,8 @@ message ListFindingsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 9; + + reserved 6; } // Response message for listing findings. diff --git a/google-cloud-clients/google-cloud-securitycenter/synth.metadata b/google-cloud-clients/google-cloud-securitycenter/synth.metadata index e0717b650ab4..9d1ae46819c9 100644 --- a/google-cloud-clients/google-cloud-securitycenter/synth.metadata +++ b/google-cloud-clients/google-cloud-securitycenter/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-12T07:50:35.842098Z", + "updateTime": "2019-03-14T07:50:15.054260Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.16", - "dockerImage": "googleapis/artman@sha256:30babbfce7f05a62b1892c63c575aa2c8c502eb4bcc8f3bb90ec83e955d5d319" + "version": "0.16.17", + "dockerImage": "googleapis/artman@sha256:7231f27272231a884e09edb5953148c85ecd8467780d33c4a35c3e507885715b" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "abd1c9a99c5cd7179d8e5e0c8d4c8e761054cc78", - "internalRef": "237945492" + "sha": "d05a746ba27b89374c7407c88c0d5dabfb0afc7c", + "internalRef": "238372434" } } ], From b05fadc68b22f58a101285280adebca618192d48 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Sat, 16 Mar 2019 02:49:46 -0700 Subject: [PATCH 40/53] Regenerate firestore client (#4686) --- .../java/com/google/firestore/v1/Write.java | 24 +++++++++---------- .../google/firestore/v1/WriteOrBuilder.java | 6 ++--- .../proto/google/firestore/v1/write.proto | 2 +- .../com/google/firestore/v1beta1/Write.java | 24 +++++++++---------- .../firestore/v1beta1/WriteOrBuilder.java | 6 ++--- .../google/firestore/v1beta1/write.proto | 2 +- .../google-cloud-firestore/synth.metadata | 10 ++++---- 7 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java index 80ab262603b2..53e6ab82a78d 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java @@ -296,7 +296,7 @@ public com.google.protobuf.ByteString getDeleteBytes() { * * *
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
@@ -311,7 +311,7 @@ public boolean hasTransform() {
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
@@ -329,7 +329,7 @@ public com.google.firestore.v1.DocumentTransform getTransform() {
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
@@ -1234,7 +1234,7 @@ public Builder setDeleteBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1249,7 +1249,7 @@ public boolean hasTransform() {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1274,7 +1274,7 @@ public com.google.firestore.v1.DocumentTransform getTransform() {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1299,7 +1299,7 @@ public Builder setTransform(com.google.firestore.v1.DocumentTransform value) {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1321,7 +1321,7 @@ public Builder setTransform(com.google.firestore.v1.DocumentTransform.Builder bu
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1355,7 +1355,7 @@ public Builder mergeTransform(com.google.firestore.v1.DocumentTransform value) {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1383,7 +1383,7 @@ public Builder clearTransform() {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1398,7 +1398,7 @@ public com.google.firestore.v1.DocumentTransform.Builder getTransformBuilder() {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1420,7 +1420,7 @@ public com.google.firestore.v1.DocumentTransformOrBuilder getTransformOrBuilder(
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java
index fc57ec54ce70..3b983afcdffc 100644
--- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java
@@ -66,7 +66,7 @@ public interface WriteOrBuilder
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
@@ -79,7 +79,7 @@ public interface WriteOrBuilder
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
@@ -92,7 +92,7 @@ public interface WriteOrBuilder
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/write.proto b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/write.proto
index 70bb74d2344a..3cd879a18ea8 100644
--- a/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/write.proto
+++ b/google-api-grpc/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/write.proto
@@ -41,7 +41,7 @@ message Write {
     // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
     string delete = 2;
 
-    // Applies a tranformation to a document.
+    // Applies a transformation to a document.
     // At most one `transform` per document is allowed in a given request.
     // An `update` cannot follow a `transform` on the same document in a given
     // request.
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/Write.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/Write.java
index 229eb10684d7..bf65f5cb7b98 100644
--- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/Write.java
+++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/Write.java
@@ -300,7 +300,7 @@ public com.google.protobuf.ByteString getDeleteBytes() {
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
@@ -315,7 +315,7 @@ public boolean hasTransform() {
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
@@ -333,7 +333,7 @@ public com.google.firestore.v1beta1.DocumentTransform getTransform() {
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
@@ -1241,7 +1241,7 @@ public Builder setDeleteBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1256,7 +1256,7 @@ public boolean hasTransform() {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1281,7 +1281,7 @@ public com.google.firestore.v1beta1.DocumentTransform getTransform() {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1306,7 +1306,7 @@ public Builder setTransform(com.google.firestore.v1beta1.DocumentTransform value
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1329,7 +1329,7 @@ public Builder setTransform(
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1363,7 +1363,7 @@ public Builder mergeTransform(com.google.firestore.v1beta1.DocumentTransform val
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1391,7 +1391,7 @@ public Builder clearTransform() {
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1406,7 +1406,7 @@ public com.google.firestore.v1beta1.DocumentTransform.Builder getTransformBuilde
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
@@ -1428,7 +1428,7 @@ public com.google.firestore.v1beta1.DocumentTransformOrBuilder getTransformOrBui
      *
      *
      * 
-     * Applies a tranformation to a document.
+     * Applies a transformation to a document.
      * At most one `transform` per document is allowed in a given request.
      * An `update` cannot follow a `transform` on the same document in a given
      * request.
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteOrBuilder.java
index 1ad5fe37a116..829ef48444aa 100644
--- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteOrBuilder.java
@@ -66,7 +66,7 @@ public interface WriteOrBuilder
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
@@ -79,7 +79,7 @@ public interface WriteOrBuilder
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
@@ -92,7 +92,7 @@ public interface WriteOrBuilder
    *
    *
    * 
-   * Applies a tranformation to a document.
+   * Applies a transformation to a document.
    * At most one `transform` per document is allowed in a given request.
    * An `update` cannot follow a `transform` on the same document in a given
    * request.
diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/write.proto b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/write.proto
index ff7d3f252d50..d1ee7d32f376 100644
--- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/write.proto
+++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/write.proto
@@ -41,7 +41,7 @@ message Write {
     // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
     string delete = 2;
 
-    // Applies a tranformation to a document.
+    // Applies a transformation to a document.
     // At most one `transform` per document is allowed in a given request.
     // An `update` cannot follow a `transform` on the same document in a given
     // request.
diff --git a/google-cloud-clients/google-cloud-firestore/synth.metadata b/google-cloud-clients/google-cloud-firestore/synth.metadata
index d655db71d4b2..b5b51015b214 100644
--- a/google-cloud-clients/google-cloud-firestore/synth.metadata
+++ b/google-cloud-clients/google-cloud-firestore/synth.metadata
@@ -1,19 +1,19 @@
 {
-  "updateTime": "2019-03-06T08:44:01.706383Z",
+  "updateTime": "2019-03-16T07:43:23.809130Z",
   "sources": [
     {
       "generator": {
         "name": "artman",
-        "version": "0.16.15",
-        "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2"
+        "version": "0.16.17",
+        "dockerImage": "googleapis/artman@sha256:7231f27272231a884e09edb5953148c85ecd8467780d33c4a35c3e507885715b"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00",
-        "internalRef": "236931378"
+        "sha": "dab002e28c81adcc5601278c36d4302c2624c8e2",
+        "internalRef": "238726437"
       }
     }
   ],

From 4298f15d05fc1d0cc3590240d858b2385dad2e1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= 
Date: Mon, 18 Mar 2019 16:08:38 +0100
Subject: [PATCH 41/53] #4685 Spanner now extends AutoCloseable (#4687)

---
 .../src/main/java/com/google/cloud/spanner/Spanner.java        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Spanner.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Spanner.java
index fe7064d73b13..75c062f96811 100644
--- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Spanner.java
+++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Spanner.java
@@ -24,7 +24,7 @@
  * longer needed. Failure to do so may result in leaking session resources and exhausting session
  * quota.
  */
-public interface Spanner extends Service {
+public interface Spanner extends Service, AutoCloseable {
   /** Returns a {@code DatabaseAdminClient} to do admin operations on Cloud Spanner databases. */
   /*
    * 
@@ -103,5 +103,6 @@ public interface Spanner extends Service {
    * a hard limit on number of sessions in Cloud Spanner and not calling this method can lead to
    * unused sessions piling up on the backend.
    */
+  @Override
   void close();
 }

From 0a6fc39ab502f112b3cbdd671d8c79189c51bcdf Mon Sep 17 00:00:00 2001
From: kolea2 <45548808+kolea2@users.noreply.github.com>
Date: Mon, 18 Mar 2019 15:49:59 -0400
Subject: [PATCH 42/53] Update speech readme to point to v1 javadoc. (#4693)

---
 google-cloud-clients/google-cloud-speech/README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/google-cloud-clients/google-cloud-speech/README.md b/google-cloud-clients/google-cloud-speech/README.md
index d3a5b5e1aaa7..930aa14c9d8b 100644
--- a/google-cloud-clients/google-cloud-speech/README.md
+++ b/google-cloud-clients/google-cloud-speech/README.md
@@ -134,4 +134,4 @@ Apache 2.0 - See [LICENSE] for more information.
 [cloud-platform]: https://cloud.google.com/
 [cloud-speech]: https://cloud.google.com/speech/
 [speech-product-docs]: https://cloud.google.com/speech/docs
-[speech-client-lib-docs]: https://googleapis.github.io/google-cloud-java/google-cloud-clients/apidocs/index.html?com/google/cloud/speech/v1beta1/package-summary.html
+[speech-client-lib-docs]: https://googleapis.github.io/google-cloud-java/google-cloud-clients/apidocs/index.html?com/google/cloud/speech/v1/package-summary.html

From 03ba9c91cab9113f30bfc43d185fc87d1b515303 Mon Sep 17 00:00:00 2001
From: Kristofer Karlsson 
Date: Tue, 19 Mar 2019 12:16:52 +0100
Subject: [PATCH 43/53] Fix pendingWrite race condition (#4696)

pendingWrites.add() was not guaranteed to be called before pendingWrites.remove()
---
 .../java/com/google/cloud/logging/LoggingImpl.java | 14 +++++++++++---
 .../com/google/cloud/logging/LoggingImplTest.java  |  1 +
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java
index 7c572af069b5..32cc296f29d9 100644
--- a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java
+++ b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java
@@ -37,6 +37,7 @@
 import com.google.cloud.MonitoredResourceDescriptor;
 import com.google.cloud.PageImpl;
 import com.google.cloud.logging.spi.v2.LoggingRpc;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Function;
 import com.google.common.base.Throwables;
 import com.google.common.collect.ImmutableList;
@@ -595,6 +596,9 @@ private void writeLogEntries(Iterable logEntries, WriteOption... write
       case ASYNC:
       default:
         final ApiFuture writeFuture = writeAsync(logEntries, writeOptions);
+        synchronized (writeLock) {
+          pendingWrites.add(writeFuture);
+        }
         ApiFutures.addCallback(
             writeFuture,
             new ApiFutureCallback() {
@@ -619,9 +623,6 @@ public void onFailure(Throwable t) {
                 }
               }
             });
-        synchronized (writeLock) {
-          pendingWrites.add(writeFuture);
-        }
         break;
     }
   }
@@ -707,4 +708,11 @@ public void close() throws Exception {
     }
     return optionMap;
   }
+
+  @VisibleForTesting
+  int getNumPendingWrites() {
+    synchronized (writeLock) {
+      return pendingWrites.size();
+    }
+  }
 }
diff --git a/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/LoggingImplTest.java b/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/LoggingImplTest.java
index 7c711cd44a78..55f231a320e1 100644
--- a/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/LoggingImplTest.java
+++ b/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/LoggingImplTest.java
@@ -1186,6 +1186,7 @@ public void testWriteLogEntries() {
     EasyMock.replay(rpcFactoryMock, loggingRpcMock);
     logging = options.getService();
     logging.write(ImmutableList.of(LOG_ENTRY1, LOG_ENTRY2));
+    assertEquals(0, ((LoggingImpl) logging).getNumPendingWrites());
   }
 
   @Test

From bd8d2cecdfb56b35d41a86697eda279e34f19bcf Mon Sep 17 00:00:00 2001
From: Kristofer Karlsson 
Date: Tue, 19 Mar 2019 17:26:43 +0100
Subject: [PATCH 44/53] Optimize pendingWrites (#4697)

Reduce contention on pendingWrites by using a ConcurrentHashMap instead.
---
 .../com/google/cloud/logging/LoggingImpl.java | 25 ++++++-------------
 1 file changed, 7 insertions(+), 18 deletions(-)

diff --git a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java
index 32cc296f29d9..d10c69012b0f 100644
--- a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java
+++ b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java
@@ -70,11 +70,9 @@
 import com.google.logging.v2.WriteLogEntriesResponse;
 import com.google.protobuf.Empty;
 import java.util.ArrayList;
-import java.util.Collections;
-import java.util.IdentityHashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
+import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
@@ -83,9 +81,7 @@ class LoggingImpl extends BaseService implements Logging {
 
   private static final int FLUSH_WAIT_TIMEOUT_SECONDS = 6;
   private final LoggingRpc rpc;
-  private final Object writeLock = new Object();
-  private final Set> pendingWrites =
-      Collections.newSetFromMap(new IdentityHashMap, Boolean>());
+  private final Map> pendingWrites = new ConcurrentHashMap<>();
 
   private volatile Synchronicity writeSynchronicity = Synchronicity.ASYNC;
   private volatile Severity flushSeverity = null;
@@ -575,9 +571,7 @@ public void flush() {
     // BUG(1795): We should force batcher to issue RPC call for buffered messages,
     // so the code below doesn't wait uselessly.
     ArrayList> writesToFlush = new ArrayList<>();
-    synchronized (writeLock) {
-      writesToFlush.addAll(pendingWrites);
-    }
+    writesToFlush.addAll(pendingWrites.values());
 
     try {
       ApiFutures.allAsList(writesToFlush).get(FLUSH_WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS);
@@ -596,16 +590,13 @@ private void writeLogEntries(Iterable logEntries, WriteOption... write
       case ASYNC:
       default:
         final ApiFuture writeFuture = writeAsync(logEntries, writeOptions);
-        synchronized (writeLock) {
-          pendingWrites.add(writeFuture);
-        }
+        final Object pendingKey = new Object();
+        pendingWrites.put(pendingKey, writeFuture);
         ApiFutures.addCallback(
             writeFuture,
             new ApiFutureCallback() {
               private void removeFromPending() {
-                synchronized (writeLock) {
-                  pendingWrites.remove(writeFuture);
-                }
+                pendingWrites.remove(pendingKey);
               }
 
               @Override
@@ -711,8 +702,6 @@ public void close() throws Exception {
 
   @VisibleForTesting
   int getNumPendingWrites() {
-    synchronized (writeLock) {
-      return pendingWrites.size();
-    }
+    return pendingWrites.size();
   }
 }

From f5744849a2bb093b21577730984510f657968526 Mon Sep 17 00:00:00 2001
From: JP Martin 
Date: Tue, 19 Mar 2019 10:51:33 -0700
Subject: [PATCH 45/53] Better explain how to use explicit credentials (#4694)

* Better explain how to use explicit credentials

This pull request updates the documentation and adds an example.

* Run auto-formatter

mvn com.coveo:fmt-maven-plugin:format

* Updating Copyright year on UseExplicitCredentials
---
 .../google-cloud-nio-examples/README.md       |  3 +-
 .../google-cloud-nio/README.md                |  3 +-
 .../nio/CloudStorageFileSystemProvider.java   |  7 ++-
 .../nio/snippets/UseExplicitCredentials.java  | 47 +++++++++++++++++++
 4 files changed, 57 insertions(+), 3 deletions(-)
 create mode 100644 google-cloud-examples/src/main/java/com/google/cloud/examples/nio/snippets/UseExplicitCredentials.java

diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md
index dacd198d72df..f3c89f0fe389 100644
--- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md
+++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md
@@ -6,7 +6,8 @@ application that uses Java NIO without the need to recompile.
 
 Note that whenever possible, you instead want to recompile the app and use the normal
 dependency mechanism to add a dependency to google-cloud-nio. You can see examples of
-this in the [google-cloud-examples](../../../google-cloud-examples) project.
+this in the [google-cloud-examples](../../../google-cloud-examples) project,
+[under nio](../../../google-cloud-examples/src/main/java/com/google/cloud/examples/nio).
 
 To run this example:
 
diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md
index 2ea49cfc5ab1..ff8d567d1d3c 100644
--- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md
+++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md
@@ -57,7 +57,8 @@ Authentication
 --------------
 
 See the [Authentication](https://github.com/googleapis/google-cloud-java#authentication)
-section in the base directory's README.
+section in the base directory's README. This shows how to construct the `StorageOptions` object,
+which you can then pass to `CloudStorageFileSystem.forBucket`.
 
 About Google Cloud Storage
 --------------------------
diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java
index 4f22c9aeb89e..ba0e854644fe 100644
--- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java
+++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java
@@ -140,7 +140,12 @@ protected Path computeNext() {
     }
   }
 
-  /** Sets options that are only used by the constructor. */
+  /**
+   * Sets options that are only used by the constructor.
+   *
+   * 

Instead of calling this, when possible use CloudStorageFileSystem.forBucket and pass + * StorageOptions as an argument. + */ @VisibleForTesting public static void setStorageOptions(@Nullable StorageOptions newStorageOptions) { futureStorageOptions = newStorageOptions; diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/nio/snippets/UseExplicitCredentials.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/nio/snippets/UseExplicitCredentials.java new file mode 100644 index 000000000000..62d08a5d1a19 --- /dev/null +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/nio/snippets/UseExplicitCredentials.java @@ -0,0 +1,47 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.examples.nio.snippets; + +import com.google.auth.oauth2.ServiceAccountCredentials; +import com.google.cloud.storage.StorageOptions; +import com.google.cloud.storage.contrib.nio.CloudStorageConfiguration; +import com.google.cloud.storage.contrib.nio.CloudStorageFileSystem; +import java.io.FileInputStream; +import java.io.IOException; + +/** + * A snippet for Google Cloud Storage NIO that shows how to create a {@link CloudStorageFileSystem} + * using explicitly-provided credentials instead of the default ones. + */ +public class UseExplicitCredentials { + + public static void main(String... args) throws IOException { + // Create a file system for the bucket using the service account credentials + // saved in the file below. + String myCredentials = "/path/to/my/key.json"; + CloudStorageFileSystem fs = + CloudStorageFileSystem.forBucket( + "mybucket", + CloudStorageConfiguration.DEFAULT, + StorageOptions.newBuilder() + .setCredentials( + ServiceAccountCredentials.fromStream(new FileInputStream(myCredentials))) + .build()); + // Can now read and write to the bucket using fs + // (see e.g. ReadAllLines for an example). + } +} From 6268cd1224257a4b1c9e9113168f1873361e8ac3 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Tue, 19 Mar 2019 13:51:49 -0400 Subject: [PATCH 46/53] Add Cloud Talent Solution API. (#4699) * Add Talent API * Add Talent API * Add Talent API * Add talent API * reformat * Update pom.xml * Update pom.xml --- .../grpc-google-cloud-talent-v4beta1/pom.xml | 31 + .../talent/v4beta1/CompanyServiceGrpc.java | 859 ++ .../cloud/talent/v4beta1/CompletionGrpc.java | 352 + .../talent/v4beta1/EventServiceGrpc.java | 371 + .../cloud/talent/v4beta1/JobServiceGrpc.java | 1287 ++ .../talent/v4beta1/ProfileServiceGrpc.java | 1012 ++ .../talent/v4beta1/ResumeServiceGrpc.java | 441 + .../talent/v4beta1/TenantServiceGrpc.java | 848 ++ google-api-grpc/pom.xml | 12 + .../proto-google-cloud-talent-v4beta1/pom.xml | 36 + .../google/cloud/talent/v4beta1/Activity.java | 2943 ++++ .../talent/v4beta1/ActivityOrBuilder.java | 374 + .../talent/v4beta1/AdditionalContactInfo.java | 940 ++ .../AdditionalContactInfoOrBuilder.java | 85 + .../google/cloud/talent/v4beta1/Address.java | 1441 ++ .../talent/v4beta1/AddressOrBuilder.java | 135 + .../talent/v4beta1/ApplicationDateFilter.java | 1000 ++ .../ApplicationDateFilterOrBuilder.java | 84 + .../talent/v4beta1/ApplicationJobFilter.java | 1099 ++ .../ApplicationJobFilterOrBuilder.java | 111 + .../v4beta1/ApplicationLastStageFilter.java | 722 + .../ApplicationLastStageFilterOrBuilder.java | 53 + .../ApplicationOutcomeReasonFilter.java | 722 + ...plicationOutcomeReasonFilterOrBuilder.java | 51 + .../v4beta1/ApplicationStatusFilter.java | 699 + .../ApplicationStatusFilterOrBuilder.java | 52 + .../v4beta1/BatchDeleteJobsRequest.java | 833 ++ .../BatchDeleteJobsRequestOrBuilder.java | 72 + .../cloud/talent/v4beta1/BatchProto.java | 57 + .../cloud/talent/v4beta1/Certification.java | 1485 ++ .../v4beta1/CertificationOrBuilder.java | 153 + .../cloud/talent/v4beta1/ClientEvent.java | 2110 +++ .../talent/v4beta1/ClientEventOrBuilder.java | 241 + .../cloud/talent/v4beta1/CommonProto.java | 309 + .../cloud/talent/v4beta1/CommuteFilter.java | 1948 +++ .../v4beta1/CommuteFilterOrBuilder.java | 188 + .../cloud/talent/v4beta1/CommuteMethod.java | 219 + .../google/cloud/talent/v4beta1/Company.java | 3579 +++++ .../cloud/talent/v4beta1/CompanyName.java | 180 + .../talent/v4beta1/CompanyOrBuilder.java | 374 + .../talent/v4beta1/CompanyResourceProto.java | 101 + .../talent/v4beta1/CompanyServiceProto.java | 173 + .../cloud/talent/v4beta1/CompanySize.java | 259 + .../talent/v4beta1/CompensationFilter.java | 1603 ++ .../v4beta1/CompensationFilterOrBuilder.java | 140 + .../talent/v4beta1/CompensationInfo.java | 5809 ++++++++ .../v4beta1/CompensationInfoOrBuilder.java | 198 + .../talent/v4beta1/CompleteQueryRequest.java | 2228 +++ .../CompleteQueryRequestOrBuilder.java | 281 + .../talent/v4beta1/CompleteQueryResponse.java | 2284 +++ .../CompleteQueryResponseOrBuilder.java | 110 + .../v4beta1/CompletionServiceProto.java | 120 + .../talent/v4beta1/ContactInfoUsage.java | 171 + .../v4beta1/CreateClientEventRequest.java | 891 ++ .../CreateClientEventRequestOrBuilder.java | 68 + .../talent/v4beta1/CreateCompanyRequest.java | 898 ++ .../CreateCompanyRequestOrBuilder.java | 71 + .../talent/v4beta1/CreateJobRequest.java | 891 ++ .../v4beta1/CreateJobRequestOrBuilder.java | 71 + .../talent/v4beta1/CreateProfileRequest.java | 898 ++ .../CreateProfileRequestOrBuilder.java | 71 + .../talent/v4beta1/CreateTenantRequest.java | 896 ++ .../v4beta1/CreateTenantRequestOrBuilder.java | 71 + .../cloud/talent/v4beta1/CustomAttribute.java | 1202 ++ .../v4beta1/CustomAttributeOrBuilder.java | 160 + .../google/cloud/talent/v4beta1/Degree.java | 1041 ++ .../cloud/talent/v4beta1/DegreeOrBuilder.java | 113 + .../cloud/talent/v4beta1/DegreeType.java | 330 + .../talent/v4beta1/DeleteCompanyRequest.java | 620 + .../DeleteCompanyRequestOrBuilder.java | 37 + .../talent/v4beta1/DeleteJobRequest.java | 621 + .../v4beta1/DeleteJobRequestOrBuilder.java | 37 + .../talent/v4beta1/DeleteProfileRequest.java | 627 + .../DeleteProfileRequestOrBuilder.java | 39 + .../talent/v4beta1/DeleteTenantRequest.java | 620 + .../v4beta1/DeleteTenantRequestOrBuilder.java | 37 + .../cloud/talent/v4beta1/DeviceInfo.java | 998 ++ .../talent/v4beta1/DeviceInfoOrBuilder.java | 58 + .../cloud/talent/v4beta1/EducationFilter.java | 1029 ++ .../v4beta1/EducationFilterOrBuilder.java | 100 + .../cloud/talent/v4beta1/EducationRecord.java | 3095 ++++ .../v4beta1/EducationRecordOrBuilder.java | 353 + .../google/cloud/talent/v4beta1/Email.java | 751 + .../cloud/talent/v4beta1/EmailOrBuilder.java | 58 + .../cloud/talent/v4beta1/EmployerFilter.java | 1047 ++ .../v4beta1/EmployerFilterOrBuilder.java | 77 + .../talent/v4beta1/EmploymentRecord.java | 3481 +++++ .../v4beta1/EmploymentRecordOrBuilder.java | 440 + .../cloud/talent/v4beta1/EmploymentType.java | 353 + .../cloud/talent/v4beta1/EventProto.java | 137 + .../talent/v4beta1/EventServiceProto.java | 77 + .../cloud/talent/v4beta1/FiltersProto.java | 412 + .../talent/v4beta1/GetCompanyRequest.java | 620 + .../v4beta1/GetCompanyRequestOrBuilder.java | 37 + .../cloud/talent/v4beta1/GetJobRequest.java | 620 + .../v4beta1/GetJobRequestOrBuilder.java | 37 + .../talent/v4beta1/GetProfileRequest.java | 627 + .../v4beta1/GetProfileRequestOrBuilder.java | 39 + .../talent/v4beta1/GetTenantRequest.java | 619 + .../v4beta1/GetTenantRequestOrBuilder.java | 37 + .../cloud/talent/v4beta1/HistogramProto.java | 96 + .../cloud/talent/v4beta1/HistogramQuery.java | 641 + .../v4beta1/HistogramQueryOrBuilder.java | 43 + .../talent/v4beta1/HistogramQueryResult.java | 994 ++ .../HistogramQueryResultOrBuilder.java | 120 + .../talent/v4beta1/HtmlSanitization.java | 154 + .../com/google/cloud/talent/v4beta1/Job.java | 12269 ++++++++++++++++ .../cloud/talent/v4beta1/JobApplication.java | 3468 +++++ .../v4beta1/JobApplicationOrBuilder.java | 397 + .../cloud/talent/v4beta1/JobBenefit.java | 359 + .../cloud/talent/v4beta1/JobCategory.java | 769 + .../google/cloud/talent/v4beta1/JobEvent.java | 1478 ++ .../talent/v4beta1/JobEventOrBuilder.java | 104 + .../google/cloud/talent/v4beta1/JobLevel.java | 219 + .../google/cloud/talent/v4beta1/JobName.java | 180 + .../cloud/talent/v4beta1/JobOrBuilder.java | 1291 ++ .../google/cloud/talent/v4beta1/JobQuery.java | 4880 ++++++ .../talent/v4beta1/JobQueryOrBuilder.java | 771 + .../talent/v4beta1/JobResourceProto.java | 190 + .../cloud/talent/v4beta1/JobServiceProto.java | 353 + .../cloud/talent/v4beta1/JobTitleFilter.java | 694 + .../v4beta1/JobTitleFilterOrBuilder.java | 46 + .../google/cloud/talent/v4beta1/JobView.java | 231 + .../talent/v4beta1/ListCompaniesRequest.java | 976 ++ .../ListCompaniesRequestOrBuilder.java | 89 + .../talent/v4beta1/ListCompaniesResponse.java | 1373 ++ .../ListCompaniesResponseOrBuilder.java | 117 + .../cloud/talent/v4beta1/ListJobsRequest.java | 1306 ++ .../v4beta1/ListJobsRequestOrBuilder.java | 154 + .../talent/v4beta1/ListJobsResponse.java | 1414 ++ .../v4beta1/ListJobsResponseOrBuilder.java | 126 + .../talent/v4beta1/ListProfilesRequest.java | 1202 ++ .../v4beta1/ListProfilesRequestOrBuilder.java | 122 + .../talent/v4beta1/ListProfilesResponse.java | 1098 ++ .../ListProfilesResponseOrBuilder.java | 85 + .../talent/v4beta1/ListTenantsRequest.java | 876 ++ .../v4beta1/ListTenantsRequestOrBuilder.java | 73 + .../talent/v4beta1/ListTenantsResponse.java | 1371 ++ .../v4beta1/ListTenantsResponseOrBuilder.java | 117 + .../google/cloud/talent/v4beta1/Location.java | 1577 ++ .../cloud/talent/v4beta1/LocationFilter.java | 1719 +++ .../v4beta1/LocationFilterOrBuilder.java | 196 + .../talent/v4beta1/LocationOrBuilder.java | 123 + .../talent/v4beta1/ParseResumeOptions.java | 638 + .../v4beta1/ParseResumeOptionsOrBuilder.java | 42 + .../talent/v4beta1/ParseResumeRequest.java | 1387 ++ .../v4beta1/ParseResumeRequestOrBuilder.java | 147 + .../talent/v4beta1/ParseResumeResponse.java | 865 ++ .../v4beta1/ParseResumeResponseOrBuilder.java | 62 + .../google/cloud/talent/v4beta1/Patent.java | 2630 ++++ .../cloud/talent/v4beta1/PatentOrBuilder.java | 309 + .../cloud/talent/v4beta1/PersonName.java | 2975 ++++ .../talent/v4beta1/PersonNameOrBuilder.java | 95 + .../cloud/talent/v4beta1/PersonalUri.java | 611 + .../talent/v4beta1/PersonalUriOrBuilder.java | 35 + .../google/cloud/talent/v4beta1/Phone.java | 1403 ++ .../cloud/talent/v4beta1/PhoneOrBuilder.java | 114 + .../cloud/talent/v4beta1/PostingRegion.java | 205 + .../google/cloud/talent/v4beta1/Profile.java | 11834 +++++++++++++++ .../cloud/talent/v4beta1/ProfileEvent.java | 1377 ++ .../talent/v4beta1/ProfileEventOrBuilder.java | 111 + .../cloud/talent/v4beta1/ProfileName.java | 208 + .../talent/v4beta1/ProfileOrBuilder.java | 1528 ++ .../cloud/talent/v4beta1/ProfileQuery.java | 8826 +++++++++++ .../talent/v4beta1/ProfileQueryOrBuilder.java | 1110 ++ .../talent/v4beta1/ProfileResourceProto.java | 528 + .../talent/v4beta1/ProfileServiceProto.java | 256 + .../cloud/talent/v4beta1/ProjectName.java | 160 + .../cloud/talent/v4beta1/Publication.java | 2201 +++ .../talent/v4beta1/PublicationOrBuilder.java | 268 + .../cloud/talent/v4beta1/RecruitingNote.java | 1227 ++ .../v4beta1/RecruitingNoteOrBuilder.java | 119 + .../cloud/talent/v4beta1/RequestMetadata.java | 1561 ++ .../v4beta1/RequestMetadataOrBuilder.java | 195 + .../talent/v4beta1/ResponseMetadata.java | 607 + .../v4beta1/ResponseMetadataOrBuilder.java | 33 + .../talent/v4beta1/ResumeServiceProto.java | 107 + .../talent/v4beta1/SearchJobsRequest.java | 7364 ++++++++++ .../v4beta1/SearchJobsRequestOrBuilder.java | 977 ++ .../talent/v4beta1/SearchJobsResponse.java | 5880 ++++++++ .../v4beta1/SearchJobsResponseOrBuilder.java | 331 + .../talent/v4beta1/SearchProfilesRequest.java | 4437 ++++++ .../SearchProfilesRequestOrBuilder.java | 717 + .../v4beta1/SearchProfilesResponse.java | 2321 +++ .../SearchProfilesResponseOrBuilder.java | 232 + .../google/cloud/talent/v4beta1/Skill.java | 1617 ++ .../cloud/talent/v4beta1/SkillFilter.java | 694 + .../talent/v4beta1/SkillFilterOrBuilder.java | 46 + .../cloud/talent/v4beta1/SkillOrBuilder.java | 150 + .../talent/v4beta1/SpellingCorrection.java | 877 ++ .../v4beta1/SpellingCorrectionOrBuilder.java | 73 + .../talent/v4beta1/SummarizedProfile.java | 1320 ++ .../v4beta1/SummarizedProfileOrBuilder.java | 123 + .../google/cloud/talent/v4beta1/Tenant.java | 1126 ++ .../cloud/talent/v4beta1/TenantName.java | 180 + .../cloud/talent/v4beta1/TenantOrBuilder.java | 95 + .../talent/v4beta1/TenantResourceProto.java | 69 + .../talent/v4beta1/TenantServiceProto.java | 171 + .../cloud/talent/v4beta1/TimeFilter.java | 1327 ++ .../talent/v4beta1/TimeFilterOrBuilder.java | 117 + .../cloud/talent/v4beta1/TimestampRange.java | 949 ++ .../v4beta1/TimestampRangeOrBuilder.java | 72 + .../talent/v4beta1/UpdateCompanyRequest.java | 1084 ++ .../UpdateCompanyRequestOrBuilder.java | 102 + .../talent/v4beta1/UpdateJobRequest.java | 1053 ++ .../v4beta1/UpdateJobRequestOrBuilder.java | 96 + .../talent/v4beta1/UpdateProfileRequest.java | 1288 ++ .../UpdateProfileRequestOrBuilder.java | 153 + .../talent/v4beta1/UpdateTenantRequest.java | 1082 ++ .../v4beta1/UpdateTenantRequestOrBuilder.java | 102 + .../cloud/talent/v4beta1/Visibility.java | 175 + .../talent/v4beta1/WorkExperienceFilter.java | 1003 ++ .../WorkExperienceFilterOrBuilder.java | 78 + .../google/cloud/talent/v4beta1/batch.proto | 29 + .../google/cloud/talent/v4beta1/common.proto | 904 ++ .../google/cloud/talent/v4beta1/company.proto | 130 + .../talent/v4beta1/company_service.proto | 179 + .../talent/v4beta1/completion_service.proto | 169 + .../google/cloud/talent/v4beta1/event.proto | 262 + .../cloud/talent/v4beta1/event_service.proto | 56 + .../google/cloud/talent/v4beta1/filters.proto | 872 ++ .../cloud/talent/v4beta1/histogram.proto | 61 + .../google/cloud/talent/v4beta1/job.proto | 415 + .../cloud/talent/v4beta1/job_service.proto | 836 ++ .../google/cloud/talent/v4beta1/profile.proto | 1149 ++ .../talent/v4beta1/profile_service.proto | 458 + .../cloud/talent/v4beta1/resume_service.proto | 142 + .../google/cloud/talent/v4beta1/tenant.proto | 73 + .../cloud/talent/v4beta1/tenant_service.proto | 167 + google-cloud-bom/pom.xml | 15 + .../google-cloud-talent/README.md | 100 + .../google-cloud-talent/pom.xml | 87 + .../talent/v4beta1/CompanyServiceClient.java | 770 + .../v4beta1/CompanyServiceSettings.java | 221 + .../talent/v4beta1/CompletionClient.java | 236 + .../talent/v4beta1/CompletionSettings.java | 174 + .../talent/v4beta1/EventServiceClient.java | 294 + .../talent/v4beta1/EventServiceSettings.java | 175 + .../talent/v4beta1/JobServiceClient.java | 1307 ++ .../talent/v4beta1/JobServiceSettings.java | 256 + .../talent/v4beta1/ProfileServiceClient.java | 961 ++ .../v4beta1/ProfileServiceSettings.java | 236 + .../talent/v4beta1/ResumeServiceClient.java | 348 + .../talent/v4beta1/ResumeServiceSettings.java | 175 + .../talent/v4beta1/TenantServiceClient.java | 769 + .../talent/v4beta1/TenantServiceSettings.java | 221 + .../cloud/talent/v4beta1/package-info.java | 143 + .../v4beta1/stub/CompanyServiceStub.java | 70 + .../stub/CompanyServiceStubSettings.java | 436 + .../talent/v4beta1/stub/CompletionStub.java | 41 + .../v4beta1/stub/CompletionStubSettings.java | 270 + .../talent/v4beta1/stub/EventServiceStub.java | 41 + .../stub/EventServiceStubSettings.java | 269 + .../GrpcCompanyServiceCallableFactory.java | 115 + .../v4beta1/stub/GrpcCompanyServiceStub.java | 242 + .../stub/GrpcCompletionCallableFactory.java | 115 + .../v4beta1/stub/GrpcCompletionStub.java | 142 + .../stub/GrpcEventServiceCallableFactory.java | 115 + .../v4beta1/stub/GrpcEventServiceStub.java | 143 + .../stub/GrpcJobServiceCallableFactory.java | 115 + .../v4beta1/stub/GrpcJobServiceStub.java | 320 + .../GrpcProfileServiceCallableFactory.java | 115 + .../v4beta1/stub/GrpcProfileServiceStub.java | 276 + .../GrpcResumeServiceCallableFactory.java | 115 + .../v4beta1/stub/GrpcResumeServiceStub.java | 141 + .../GrpcTenantServiceCallableFactory.java | 115 + .../v4beta1/stub/GrpcTenantServiceStub.java | 234 + .../talent/v4beta1/stub/JobServiceStub.java | 95 + .../v4beta1/stub/JobServiceStubSettings.java | 635 + .../v4beta1/stub/ProfileServiceStub.java | 81 + .../stub/ProfileServiceStubSettings.java | 528 + .../v4beta1/stub/ResumeServiceStub.java | 41 + .../stub/ResumeServiceStubSettings.java | 269 + .../v4beta1/stub/TenantServiceStub.java | 69 + .../stub/TenantServiceStubSettings.java | 435 + .../v4beta1/CompanyServiceClientTest.java | 367 + .../talent/v4beta1/CompletionClientTest.java | 86 + .../v4beta1/EventServiceClientTest.java | 139 + .../talent/v4beta1/JobServiceClientTest.java | 419 + .../talent/v4beta1/MockCompanyService.java | 57 + .../v4beta1/MockCompanyServiceImpl.java | 132 + .../cloud/talent/v4beta1/MockCompletion.java | 57 + .../talent/v4beta1/MockCompletionImpl.java | 73 + .../talent/v4beta1/MockEventService.java | 57 + .../talent/v4beta1/MockEventServiceImpl.java | 73 + .../cloud/talent/v4beta1/MockJobService.java | 57 + .../talent/v4beta1/MockJobServiceImpl.java | 174 + .../talent/v4beta1/MockProfileService.java | 57 + .../v4beta1/MockProfileServiceImpl.java | 147 + .../talent/v4beta1/MockResumeService.java | 57 + .../talent/v4beta1/MockResumeServiceImpl.java | 73 + .../talent/v4beta1/MockTenantService.java | 57 + .../talent/v4beta1/MockTenantServiceImpl.java | 130 + .../v4beta1/ProfileServiceClientTest.java | 355 + .../v4beta1/ResumeServiceClientTest.java | 139 + .../v4beta1/TenantServiceClientTest.java | 310 + .../google-cloud-talent/synth.py | 40 + google-cloud-clients/pom.xml | 3 +- versions.txt | 15 +- 299 files changed, 212553 insertions(+), 7 deletions(-) create mode 100644 google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml create mode 100644 google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java create mode 100644 google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java create mode 100644 google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java create mode 100644 google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java create mode 100644 google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java create mode 100644 google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java create mode 100644 google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/resume_service.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto create mode 100644 google-cloud-clients/google-cloud-talent/README.md create mode 100644 google-cloud-clients/google-cloud-talent/pom.xml create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyService.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyServiceImpl.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletion.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletionImpl.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventService.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventServiceImpl.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobService.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobServiceImpl.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantService.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantServiceImpl.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java create mode 100644 google-cloud-clients/google-cloud-talent/synth.py diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml b/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml new file mode 100644 index 000000000000..3f5aa22be136 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + grpc-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + grpc-google-cloud-talent-v4beta1 + GRPC library for grpc-google-cloud-talent-v4beta1 + + com.google.api.grpc + google-api-grpc + 0.48.1-SNAPSHOT + + + + io.grpc + grpc-stub + compile + + + io.grpc + grpc-protobuf + compile + + + com.google.api.grpc + proto-google-cloud-talent-v4beta1 + compile + + + \ No newline at end of file diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java new file mode 100644 index 000000000000..d0a04f2d0e1e --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java @@ -0,0 +1,859 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *

+ * A service that handles company management, including CRUD and enumeration.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/company_service.proto") +public final class CompanyServiceGrpc { + + private CompanyServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.CompanyService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateCompanyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + METHOD_CREATE_COMPANY = getCreateCompanyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getCreateCompanyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getCreateCompanyMethod() { + return getCreateCompanyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getCreateCompanyMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getCreateCompanyMethod; + if ((getCreateCompanyMethod = CompanyServiceGrpc.getCreateCompanyMethod) == null) { + synchronized (CompanyServiceGrpc.class) { + if ((getCreateCompanyMethod = CompanyServiceGrpc.getCreateCompanyMethod) == null) { + CompanyServiceGrpc.getCreateCompanyMethod = + getCreateCompanyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.CompanyService", "CreateCompany")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CreateCompanyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Company.getDefaultInstance())) + .setSchemaDescriptor( + new CompanyServiceMethodDescriptorSupplier("CreateCompany")) + .build(); + } + } + } + return getCreateCompanyMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetCompanyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + METHOD_GET_COMPANY = getGetCompanyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getGetCompanyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getGetCompanyMethod() { + return getGetCompanyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getGetCompanyMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getGetCompanyMethod; + if ((getGetCompanyMethod = CompanyServiceGrpc.getGetCompanyMethod) == null) { + synchronized (CompanyServiceGrpc.class) { + if ((getGetCompanyMethod = CompanyServiceGrpc.getGetCompanyMethod) == null) { + CompanyServiceGrpc.getGetCompanyMethod = + getGetCompanyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.CompanyService", "GetCompany")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.GetCompanyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Company.getDefaultInstance())) + .setSchemaDescriptor(new CompanyServiceMethodDescriptorSupplier("GetCompany")) + .build(); + } + } + } + return getGetCompanyMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateCompanyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + METHOD_UPDATE_COMPANY = getUpdateCompanyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getUpdateCompanyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getUpdateCompanyMethod() { + return getUpdateCompanyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getUpdateCompanyMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getUpdateCompanyMethod; + if ((getUpdateCompanyMethod = CompanyServiceGrpc.getUpdateCompanyMethod) == null) { + synchronized (CompanyServiceGrpc.class) { + if ((getUpdateCompanyMethod = CompanyServiceGrpc.getUpdateCompanyMethod) == null) { + CompanyServiceGrpc.getUpdateCompanyMethod = + getUpdateCompanyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.CompanyService", "UpdateCompany")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Company.getDefaultInstance())) + .setSchemaDescriptor( + new CompanyServiceMethodDescriptorSupplier("UpdateCompany")) + .build(); + } + } + } + return getUpdateCompanyMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteCompanyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, com.google.protobuf.Empty> + METHOD_DELETE_COMPANY = getDeleteCompanyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, com.google.protobuf.Empty> + getDeleteCompanyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, com.google.protobuf.Empty> + getDeleteCompanyMethod() { + return getDeleteCompanyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, com.google.protobuf.Empty> + getDeleteCompanyMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, com.google.protobuf.Empty> + getDeleteCompanyMethod; + if ((getDeleteCompanyMethod = CompanyServiceGrpc.getDeleteCompanyMethod) == null) { + synchronized (CompanyServiceGrpc.class) { + if ((getDeleteCompanyMethod = CompanyServiceGrpc.getDeleteCompanyMethod) == null) { + CompanyServiceGrpc.getDeleteCompanyMethod = + getDeleteCompanyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.CompanyService", "DeleteCompany")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new CompanyServiceMethodDescriptorSupplier("DeleteCompany")) + .build(); + } + } + } + return getDeleteCompanyMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListCompaniesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + METHOD_LIST_COMPANIES = getListCompaniesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + getListCompaniesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + getListCompaniesMethod() { + return getListCompaniesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + getListCompaniesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + getListCompaniesMethod; + if ((getListCompaniesMethod = CompanyServiceGrpc.getListCompaniesMethod) == null) { + synchronized (CompanyServiceGrpc.class) { + if ((getListCompaniesMethod = CompanyServiceGrpc.getListCompaniesMethod) == null) { + CompanyServiceGrpc.getListCompaniesMethod = + getListCompaniesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.CompanyService", "ListCompanies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListCompaniesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListCompaniesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CompanyServiceMethodDescriptorSupplier("ListCompanies")) + .build(); + } + } + } + return getListCompaniesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CompanyServiceStub newStub(io.grpc.Channel channel) { + return new CompanyServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CompanyServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new CompanyServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CompanyServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new CompanyServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service that handles company management, including CRUD and enumeration.
+   * 
+ */ + public abstract static class CompanyServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new company entity.
+     * 
+ */ + public void createCompany( + com.google.cloud.talent.v4beta1.CreateCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateCompanyMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Retrieves specified company.
+     * 
+ */ + public void getCompany( + com.google.cloud.talent.v4beta1.GetCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetCompanyMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates specified company.
+     * 
+ */ + public void updateCompany( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateCompanyMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes specified company.
+     * Prerequisite: The company has no jobs associated with it.
+     * 
+ */ + public void deleteCompany( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteCompanyMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists all companies associated with the project.
+     * 
+ */ + public void listCompanies( + com.google.cloud.talent.v4beta1.ListCompaniesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListCompaniesMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateCompanyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company>(this, METHODID_CREATE_COMPANY))) + .addMethod( + getGetCompanyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company>(this, METHODID_GET_COMPANY))) + .addMethod( + getUpdateCompanyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company>(this, METHODID_UPDATE_COMPANY))) + .addMethod( + getDeleteCompanyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_COMPANY))) + .addMethod( + getListCompaniesMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse>( + this, METHODID_LIST_COMPANIES))) + .build(); + } + } + + /** + * + * + *
+   * A service that handles company management, including CRUD and enumeration.
+   * 
+ */ + public static final class CompanyServiceStub + extends io.grpc.stub.AbstractStub { + private CompanyServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private CompanyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompanyServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompanyServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new company entity.
+     * 
+ */ + public void createCompany( + com.google.cloud.talent.v4beta1.CreateCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateCompanyMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves specified company.
+     * 
+ */ + public void getCompany( + com.google.cloud.talent.v4beta1.GetCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetCompanyMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates specified company.
+     * 
+ */ + public void updateCompany( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateCompanyMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes specified company.
+     * Prerequisite: The company has no jobs associated with it.
+     * 
+ */ + public void deleteCompany( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteCompanyMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all companies associated with the project.
+     * 
+ */ + public void listCompanies( + com.google.cloud.talent.v4beta1.ListCompaniesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListCompaniesMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service that handles company management, including CRUD and enumeration.
+   * 
+ */ + public static final class CompanyServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private CompanyServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private CompanyServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompanyServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompanyServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new company entity.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Company createCompany( + com.google.cloud.talent.v4beta1.CreateCompanyRequest request) { + return blockingUnaryCall( + getChannel(), getCreateCompanyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves specified company.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Company getCompany( + com.google.cloud.talent.v4beta1.GetCompanyRequest request) { + return blockingUnaryCall( + getChannel(), getGetCompanyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates specified company.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Company updateCompany( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateCompanyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes specified company.
+     * Prerequisite: The company has no jobs associated with it.
+     * 
+ */ + public com.google.protobuf.Empty deleteCompany( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteCompanyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all companies associated with the project.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ListCompaniesResponse listCompanies( + com.google.cloud.talent.v4beta1.ListCompaniesRequest request) { + return blockingUnaryCall( + getChannel(), getListCompaniesMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service that handles company management, including CRUD and enumeration.
+   * 
+ */ + public static final class CompanyServiceFutureStub + extends io.grpc.stub.AbstractStub { + private CompanyServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private CompanyServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompanyServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompanyServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new company entity.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Company> + createCompany(com.google.cloud.talent.v4beta1.CreateCompanyRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateCompanyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves specified company.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Company> + getCompany(com.google.cloud.talent.v4beta1.GetCompanyRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetCompanyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates specified company.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Company> + updateCompany(com.google.cloud.talent.v4beta1.UpdateCompanyRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateCompanyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes specified company.
+     * Prerequisite: The company has no jobs associated with it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCompany(com.google.cloud.talent.v4beta1.DeleteCompanyRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteCompanyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all companies associated with the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + listCompanies(com.google.cloud.talent.v4beta1.ListCompaniesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListCompaniesMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_COMPANY = 0; + private static final int METHODID_GET_COMPANY = 1; + private static final int METHODID_UPDATE_COMPANY = 2; + private static final int METHODID_DELETE_COMPANY = 3; + private static final int METHODID_LIST_COMPANIES = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final CompanyServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CompanyServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_COMPANY: + serviceImpl.createCompany( + (com.google.cloud.talent.v4beta1.CreateCompanyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_COMPANY: + serviceImpl.getCompany( + (com.google.cloud.talent.v4beta1.GetCompanyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_COMPANY: + serviceImpl.updateCompany( + (com.google.cloud.talent.v4beta1.UpdateCompanyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_COMPANY: + serviceImpl.deleteCompany( + (com.google.cloud.talent.v4beta1.DeleteCompanyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_COMPANIES: + serviceImpl.listCompanies( + (com.google.cloud.talent.v4beta1.ListCompaniesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class CompanyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CompanyServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CompanyService"); + } + } + + private static final class CompanyServiceFileDescriptorSupplier + extends CompanyServiceBaseDescriptorSupplier { + CompanyServiceFileDescriptorSupplier() {} + } + + private static final class CompanyServiceMethodDescriptorSupplier + extends CompanyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CompanyServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CompanyServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CompanyServiceFileDescriptorSupplier()) + .addMethod(getCreateCompanyMethodHelper()) + .addMethod(getGetCompanyMethodHelper()) + .addMethod(getUpdateCompanyMethodHelper()) + .addMethod(getDeleteCompanyMethodHelper()) + .addMethod(getListCompaniesMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java new file mode 100644 index 000000000000..a0c84bbe8f4c --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java @@ -0,0 +1,352 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service handles auto completion.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/completion_service.proto") +public final class CompletionGrpc { + + private CompletionGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.Completion"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCompleteQueryMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + METHOD_COMPLETE_QUERY = getCompleteQueryMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + getCompleteQueryMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + getCompleteQueryMethod() { + return getCompleteQueryMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + getCompleteQueryMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + getCompleteQueryMethod; + if ((getCompleteQueryMethod = CompletionGrpc.getCompleteQueryMethod) == null) { + synchronized (CompletionGrpc.class) { + if ((getCompleteQueryMethod = CompletionGrpc.getCompleteQueryMethod) == null) { + CompletionGrpc.getCompleteQueryMethod = + getCompleteQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.Completion", "CompleteQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CompleteQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CompleteQueryResponse + .getDefaultInstance())) + .setSchemaDescriptor(new CompletionMethodDescriptorSupplier("CompleteQuery")) + .build(); + } + } + } + return getCompleteQueryMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CompletionStub newStub(io.grpc.Channel channel) { + return new CompletionStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CompletionBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new CompletionBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CompletionFutureStub newFutureStub(io.grpc.Channel channel) { + return new CompletionFutureStub(channel); + } + + /** + * + * + *
+   * A service handles auto completion.
+   * 
+ */ + public abstract static class CompletionImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Completes the specified prefix with keyword suggestions.
+     * Intended for use by a job search auto-complete search box.
+     * 
+ */ + public void completeQuery( + com.google.cloud.talent.v4beta1.CompleteQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getCompleteQueryMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCompleteQueryMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse>( + this, METHODID_COMPLETE_QUERY))) + .build(); + } + } + + /** + * + * + *
+   * A service handles auto completion.
+   * 
+ */ + public static final class CompletionStub extends io.grpc.stub.AbstractStub { + private CompletionStub(io.grpc.Channel channel) { + super(channel); + } + + private CompletionStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompletionStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionStub(channel, callOptions); + } + + /** + * + * + *
+     * Completes the specified prefix with keyword suggestions.
+     * Intended for use by a job search auto-complete search box.
+     * 
+ */ + public void completeQuery( + com.google.cloud.talent.v4beta1.CompleteQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCompleteQueryMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service handles auto completion.
+   * 
+ */ + public static final class CompletionBlockingStub + extends io.grpc.stub.AbstractStub { + private CompletionBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private CompletionBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompletionBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Completes the specified prefix with keyword suggestions.
+     * Intended for use by a job search auto-complete search box.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse completeQuery( + com.google.cloud.talent.v4beta1.CompleteQueryRequest request) { + return blockingUnaryCall( + getChannel(), getCompleteQueryMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service handles auto completion.
+   * 
+ */ + public static final class CompletionFutureStub + extends io.grpc.stub.AbstractStub { + private CompletionFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private CompletionFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompletionFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Completes the specified prefix with keyword suggestions.
+     * Intended for use by a job search auto-complete search box.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + completeQuery(com.google.cloud.talent.v4beta1.CompleteQueryRequest request) { + return futureUnaryCall( + getChannel().newCall(getCompleteQueryMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_COMPLETE_QUERY = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final CompletionImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CompletionImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_COMPLETE_QUERY: + serviceImpl.completeQuery( + (com.google.cloud.talent.v4beta1.CompleteQueryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class CompletionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CompletionBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Completion"); + } + } + + private static final class CompletionFileDescriptorSupplier + extends CompletionBaseDescriptorSupplier { + CompletionFileDescriptorSupplier() {} + } + + private static final class CompletionMethodDescriptorSupplier + extends CompletionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CompletionMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CompletionGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CompletionFileDescriptorSupplier()) + .addMethod(getCompleteQueryMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java new file mode 100644 index 000000000000..fa25e76d5772 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java @@ -0,0 +1,371 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service handles client event report.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/event_service.proto") +public final class EventServiceGrpc { + + private EventServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.EventService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateClientEventMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent> + METHOD_CREATE_CLIENT_EVENT = getCreateClientEventMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent> + getCreateClientEventMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent> + getCreateClientEventMethod() { + return getCreateClientEventMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent> + getCreateClientEventMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent> + getCreateClientEventMethod; + if ((getCreateClientEventMethod = EventServiceGrpc.getCreateClientEventMethod) == null) { + synchronized (EventServiceGrpc.class) { + if ((getCreateClientEventMethod = EventServiceGrpc.getCreateClientEventMethod) == null) { + EventServiceGrpc.getCreateClientEventMethod = + getCreateClientEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.EventService", "CreateClientEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CreateClientEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance())) + .setSchemaDescriptor( + new EventServiceMethodDescriptorSupplier("CreateClientEvent")) + .build(); + } + } + } + return getCreateClientEventMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static EventServiceStub newStub(io.grpc.Channel channel) { + return new EventServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EventServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new EventServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static EventServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new EventServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service handles client event report.
+   * 
+ */ + public abstract static class EventServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Report events issued when end user interacts with customer's application
+     * that uses Cloud Talent Solution. You may inspect the created events in
+     * [self service
+     * tools](https://console.cloud.google.com/talent-solution/overview).
+     * [Learn
+     * more](https://cloud.google.com/talent-solution/docs/management-tools)
+     * about self service tools.
+     * 
+ */ + public void createClientEvent( + com.google.cloud.talent.v4beta1.CreateClientEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateClientEventMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateClientEventMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent>( + this, METHODID_CREATE_CLIENT_EVENT))) + .build(); + } + } + + /** + * + * + *
+   * A service handles client event report.
+   * 
+ */ + public static final class EventServiceStub extends io.grpc.stub.AbstractStub { + private EventServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private EventServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EventServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EventServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Report events issued when end user interacts with customer's application
+     * that uses Cloud Talent Solution. You may inspect the created events in
+     * [self service
+     * tools](https://console.cloud.google.com/talent-solution/overview).
+     * [Learn
+     * more](https://cloud.google.com/talent-solution/docs/management-tools)
+     * about self service tools.
+     * 
+ */ + public void createClientEvent( + com.google.cloud.talent.v4beta1.CreateClientEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateClientEventMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service handles client event report.
+   * 
+ */ + public static final class EventServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private EventServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private EventServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EventServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EventServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Report events issued when end user interacts with customer's application
+     * that uses Cloud Talent Solution. You may inspect the created events in
+     * [self service
+     * tools](https://console.cloud.google.com/talent-solution/overview).
+     * [Learn
+     * more](https://cloud.google.com/talent-solution/docs/management-tools)
+     * about self service tools.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ClientEvent createClientEvent( + com.google.cloud.talent.v4beta1.CreateClientEventRequest request) { + return blockingUnaryCall( + getChannel(), getCreateClientEventMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service handles client event report.
+   * 
+ */ + public static final class EventServiceFutureStub + extends io.grpc.stub.AbstractStub { + private EventServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private EventServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EventServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EventServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Report events issued when end user interacts with customer's application
+     * that uses Cloud Talent Solution. You may inspect the created events in
+     * [self service
+     * tools](https://console.cloud.google.com/talent-solution/overview).
+     * [Learn
+     * more](https://cloud.google.com/talent-solution/docs/management-tools)
+     * about self service tools.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ClientEvent> + createClientEvent(com.google.cloud.talent.v4beta1.CreateClientEventRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateClientEventMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CLIENT_EVENT = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final EventServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(EventServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CLIENT_EVENT: + serviceImpl.createClientEvent( + (com.google.cloud.talent.v4beta1.CreateClientEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class EventServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EventServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.EventServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("EventService"); + } + } + + private static final class EventServiceFileDescriptorSupplier + extends EventServiceBaseDescriptorSupplier { + EventServiceFileDescriptorSupplier() {} + } + + private static final class EventServiceMethodDescriptorSupplier + extends EventServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + EventServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (EventServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EventServiceFileDescriptorSupplier()) + .addMethod(getCreateClientEventMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java new file mode 100644 index 000000000000..02d22f4f18f1 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java @@ -0,0 +1,1287 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service handles job management, including job CRUD, enumeration and search.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/job_service.proto") +public final class JobServiceGrpc { + + private JobServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.JobService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateJobRequest, com.google.cloud.talent.v4beta1.Job> + METHOD_CREATE_JOB = getCreateJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateJobRequest, com.google.cloud.talent.v4beta1.Job> + getCreateJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateJobRequest, com.google.cloud.talent.v4beta1.Job> + getCreateJobMethod() { + return getCreateJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateJobRequest, com.google.cloud.talent.v4beta1.Job> + getCreateJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateJobRequest, com.google.cloud.talent.v4beta1.Job> + getCreateJobMethod; + if ((getCreateJobMethod = JobServiceGrpc.getCreateJobMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getCreateJobMethod = JobServiceGrpc.getCreateJobMethod) == null) { + JobServiceGrpc.getCreateJobMethod = + getCreateJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "CreateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CreateJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("CreateJob")) + .build(); + } + } + } + return getCreateJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetJobRequest, com.google.cloud.talent.v4beta1.Job> + METHOD_GET_JOB = getGetJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetJobRequest, com.google.cloud.talent.v4beta1.Job> + getGetJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetJobRequest, com.google.cloud.talent.v4beta1.Job> + getGetJobMethod() { + return getGetJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetJobRequest, com.google.cloud.talent.v4beta1.Job> + getGetJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetJobRequest, com.google.cloud.talent.v4beta1.Job> + getGetJobMethod; + if ((getGetJobMethod = JobServiceGrpc.getGetJobMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getGetJobMethod = JobServiceGrpc.getGetJobMethod) == null) { + JobServiceGrpc.getGetJobMethod = + getGetJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "GetJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.GetJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("GetJob")) + .build(); + } + } + } + return getGetJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateJobRequest, com.google.cloud.talent.v4beta1.Job> + METHOD_UPDATE_JOB = getUpdateJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateJobRequest, com.google.cloud.talent.v4beta1.Job> + getUpdateJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateJobRequest, com.google.cloud.talent.v4beta1.Job> + getUpdateJobMethod() { + return getUpdateJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateJobRequest, com.google.cloud.talent.v4beta1.Job> + getUpdateJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateJobRequest, com.google.cloud.talent.v4beta1.Job> + getUpdateJobMethod; + if ((getUpdateJobMethod = JobServiceGrpc.getUpdateJobMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getUpdateJobMethod = JobServiceGrpc.getUpdateJobMethod) == null) { + JobServiceGrpc.getUpdateJobMethod = + getUpdateJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "UpdateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.UpdateJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("UpdateJob")) + .build(); + } + } + } + return getUpdateJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty> + METHOD_DELETE_JOB = getDeleteJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod() { + return getDeleteJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod; + if ((getDeleteJobMethod = JobServiceGrpc.getDeleteJobMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getDeleteJobMethod = JobServiceGrpc.getDeleteJobMethod) == null) { + JobServiceGrpc.getDeleteJobMethod = + getDeleteJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "DeleteJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.DeleteJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("DeleteJob")) + .build(); + } + } + } + return getDeleteJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListJobsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse> + METHOD_LIST_JOBS = getListJobsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse> + getListJobsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse> + getListJobsMethod() { + return getListJobsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse> + getListJobsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse> + getListJobsMethod; + if ((getListJobsMethod = JobServiceGrpc.getListJobsMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getListJobsMethod = JobServiceGrpc.getListJobsMethod) == null) { + JobServiceGrpc.getListJobsMethod = + getListJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "ListJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("ListJobs")) + .build(); + } + } + } + return getListJobsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getBatchDeleteJobsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, com.google.protobuf.Empty> + METHOD_BATCH_DELETE_JOBS = getBatchDeleteJobsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, com.google.protobuf.Empty> + getBatchDeleteJobsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, com.google.protobuf.Empty> + getBatchDeleteJobsMethod() { + return getBatchDeleteJobsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, com.google.protobuf.Empty> + getBatchDeleteJobsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, com.google.protobuf.Empty> + getBatchDeleteJobsMethod; + if ((getBatchDeleteJobsMethod = JobServiceGrpc.getBatchDeleteJobsMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getBatchDeleteJobsMethod = JobServiceGrpc.getBatchDeleteJobsMethod) == null) { + JobServiceGrpc.getBatchDeleteJobsMethod = + getBatchDeleteJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "BatchDeleteJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier("BatchDeleteJobs")) + .build(); + } + } + } + return getBatchDeleteJobsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSearchJobsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + METHOD_SEARCH_JOBS = getSearchJobsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsMethod() { + return getSearchJobsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsMethod; + if ((getSearchJobsMethod = JobServiceGrpc.getSearchJobsMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getSearchJobsMethod = JobServiceGrpc.getSearchJobsMethod) == null) { + JobServiceGrpc.getSearchJobsMethod = + getSearchJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "SearchJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("SearchJobs")) + .build(); + } + } + } + return getSearchJobsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSearchJobsForAlertMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + METHOD_SEARCH_JOBS_FOR_ALERT = getSearchJobsForAlertMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsForAlertMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsForAlertMethod() { + return getSearchJobsForAlertMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsForAlertMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsForAlertMethod; + if ((getSearchJobsForAlertMethod = JobServiceGrpc.getSearchJobsForAlertMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getSearchJobsForAlertMethod = JobServiceGrpc.getSearchJobsForAlertMethod) == null) { + JobServiceGrpc.getSearchJobsForAlertMethod = + getSearchJobsForAlertMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "SearchJobsForAlert")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier("SearchJobsForAlert")) + .build(); + } + } + } + return getSearchJobsForAlertMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static JobServiceStub newStub(io.grpc.Channel channel) { + return new JobServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static JobServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new JobServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static JobServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new JobServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service handles job management, including job CRUD, enumeration and search.
+   * 
+ */ + public abstract static class JobServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new job.
+     * Typically, the job becomes searchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public void createJob( + com.google.cloud.talent.v4beta1.CreateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified job, whose status is OPEN or recently EXPIRED
+     * within the last 90 days.
+     * 
+ */ + public void getJob( + com.google.cloud.talent.v4beta1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates specified job.
+     * Typically, updated contents become visible in search results within 10
+     * seconds, but it may take up to 5 minutes.
+     * 
+ */ + public void updateJob( + com.google.cloud.talent.v4beta1.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified job.
+     * Typically, the job becomes unsearchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public void deleteJob( + com.google.cloud.talent.v4beta1.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists jobs by filter.
+     * 
+ */ + public void listJobs( + com.google.cloud.talent.v4beta1.ListJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListJobsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
+     * 
+ */ + public void batchDeleteJobs( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getBatchDeleteJobsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs that the caller has permission to
+     * search against.
+     * 
+ */ + public void searchJobs( + com.google.cloud.talent.v4beta1.SearchJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getSearchJobsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This API call is intended for the use case of targeting passive job
+     * seekers (for example, job seekers who have signed up to receive email
+     * alerts about potential job opportunities), and has different algorithmic
+     * adjustments that are targeted to passive job seekers.
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs the caller has permission to search
+     * against.
+     * 
+ */ + public void searchJobsForAlert( + com.google.cloud.talent.v4beta1.SearchJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getSearchJobsForAlertMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateJobRequest, + com.google.cloud.talent.v4beta1.Job>(this, METHODID_CREATE_JOB))) + .addMethod( + getGetJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.GetJobRequest, + com.google.cloud.talent.v4beta1.Job>(this, METHODID_GET_JOB))) + .addMethod( + getUpdateJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.UpdateJobRequest, + com.google.cloud.talent.v4beta1.Job>(this, METHODID_UPDATE_JOB))) + .addMethod( + getDeleteJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_JOB))) + .addMethod( + getListJobsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse>(this, METHODID_LIST_JOBS))) + .addMethod( + getBatchDeleteJobsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, + com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_JOBS))) + .addMethod( + getSearchJobsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse>( + this, METHODID_SEARCH_JOBS))) + .addMethod( + getSearchJobsForAlertMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse>( + this, METHODID_SEARCH_JOBS_FOR_ALERT))) + .build(); + } + } + + /** + * + * + *
+   * A service handles job management, including job CRUD, enumeration and search.
+   * 
+ */ + public static final class JobServiceStub extends io.grpc.stub.AbstractStub { + private JobServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private JobServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new job.
+     * Typically, the job becomes searchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public void createJob( + com.google.cloud.talent.v4beta1.CreateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified job, whose status is OPEN or recently EXPIRED
+     * within the last 90 days.
+     * 
+ */ + public void getJob( + com.google.cloud.talent.v4beta1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates specified job.
+     * Typically, updated contents become visible in search results within 10
+     * seconds, but it may take up to 5 minutes.
+     * 
+ */ + public void updateJob( + com.google.cloud.talent.v4beta1.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified job.
+     * Typically, the job becomes unsearchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public void deleteJob( + com.google.cloud.talent.v4beta1.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists jobs by filter.
+     * 
+ */ + public void listJobs( + com.google.cloud.talent.v4beta1.ListJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListJobsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
+     * 
+ */ + public void batchDeleteJobs( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getBatchDeleteJobsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs that the caller has permission to
+     * search against.
+     * 
+ */ + public void searchJobs( + com.google.cloud.talent.v4beta1.SearchJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSearchJobsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This API call is intended for the use case of targeting passive job
+     * seekers (for example, job seekers who have signed up to receive email
+     * alerts about potential job opportunities), and has different algorithmic
+     * adjustments that are targeted to passive job seekers.
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs the caller has permission to search
+     * against.
+     * 
+ */ + public void searchJobsForAlert( + com.google.cloud.talent.v4beta1.SearchJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSearchJobsForAlertMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service handles job management, including job CRUD, enumeration and search.
+   * 
+ */ + public static final class JobServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private JobServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private JobServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new job.
+     * Typically, the job becomes searchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Job createJob( + com.google.cloud.talent.v4beta1.CreateJobRequest request) { + return blockingUnaryCall(getChannel(), getCreateJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the specified job, whose status is OPEN or recently EXPIRED
+     * within the last 90 days.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Job getJob( + com.google.cloud.talent.v4beta1.GetJobRequest request) { + return blockingUnaryCall(getChannel(), getGetJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates specified job.
+     * Typically, updated contents become visible in search results within 10
+     * seconds, but it may take up to 5 minutes.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Job updateJob( + com.google.cloud.talent.v4beta1.UpdateJobRequest request) { + return blockingUnaryCall(getChannel(), getUpdateJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified job.
+     * Typically, the job becomes unsearchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public com.google.protobuf.Empty deleteJob( + com.google.cloud.talent.v4beta1.DeleteJobRequest request) { + return blockingUnaryCall(getChannel(), getDeleteJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists jobs by filter.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ListJobsResponse listJobs( + com.google.cloud.talent.v4beta1.ListJobsRequest request) { + return blockingUnaryCall(getChannel(), getListJobsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
+     * 
+ */ + public com.google.protobuf.Empty batchDeleteJobs( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest request) { + return blockingUnaryCall( + getChannel(), getBatchDeleteJobsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs that the caller has permission to
+     * search against.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse searchJobs( + com.google.cloud.talent.v4beta1.SearchJobsRequest request) { + return blockingUnaryCall( + getChannel(), getSearchJobsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This API call is intended for the use case of targeting passive job
+     * seekers (for example, job seekers who have signed up to receive email
+     * alerts about potential job opportunities), and has different algorithmic
+     * adjustments that are targeted to passive job seekers.
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs the caller has permission to search
+     * against.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse searchJobsForAlert( + com.google.cloud.talent.v4beta1.SearchJobsRequest request) { + return blockingUnaryCall( + getChannel(), getSearchJobsForAlertMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service handles job management, including job CRUD, enumeration and search.
+   * 
+ */ + public static final class JobServiceFutureStub + extends io.grpc.stub.AbstractStub { + private JobServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private JobServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new job.
+     * Typically, the job becomes searchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createJob(com.google.cloud.talent.v4beta1.CreateJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the specified job, whose status is OPEN or recently EXPIRED
+     * within the last 90 days.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getJob(com.google.cloud.talent.v4beta1.GetJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates specified job.
+     * Typically, updated contents become visible in search results within 10
+     * seconds, but it may take up to 5 minutes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateJob(com.google.cloud.talent.v4beta1.UpdateJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified job.
+     * Typically, the job becomes unsearchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteJob( + com.google.cloud.talent.v4beta1.DeleteJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists jobs by filter.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ListJobsResponse> + listJobs(com.google.cloud.talent.v4beta1.ListJobsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListJobsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchDeleteJobs(com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest request) { + return futureUnaryCall( + getChannel().newCall(getBatchDeleteJobsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs that the caller has permission to
+     * search against.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.SearchJobsResponse> + searchJobs(com.google.cloud.talent.v4beta1.SearchJobsRequest request) { + return futureUnaryCall( + getChannel().newCall(getSearchJobsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This API call is intended for the use case of targeting passive job
+     * seekers (for example, job seekers who have signed up to receive email
+     * alerts about potential job opportunities), and has different algorithmic
+     * adjustments that are targeted to passive job seekers.
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs the caller has permission to search
+     * against.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.SearchJobsResponse> + searchJobsForAlert(com.google.cloud.talent.v4beta1.SearchJobsRequest request) { + return futureUnaryCall( + getChannel().newCall(getSearchJobsForAlertMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_JOB = 0; + private static final int METHODID_GET_JOB = 1; + private static final int METHODID_UPDATE_JOB = 2; + private static final int METHODID_DELETE_JOB = 3; + private static final int METHODID_LIST_JOBS = 4; + private static final int METHODID_BATCH_DELETE_JOBS = 5; + private static final int METHODID_SEARCH_JOBS = 6; + private static final int METHODID_SEARCH_JOBS_FOR_ALERT = 7; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final JobServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(JobServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_JOB: + serviceImpl.createJob( + (com.google.cloud.talent.v4beta1.CreateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_JOB: + serviceImpl.getJob( + (com.google.cloud.talent.v4beta1.GetJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_JOB: + serviceImpl.updateJob( + (com.google.cloud.talent.v4beta1.UpdateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_JOB: + serviceImpl.deleteJob( + (com.google.cloud.talent.v4beta1.DeleteJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_JOBS: + serviceImpl.listJobs( + (com.google.cloud.talent.v4beta1.ListJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_BATCH_DELETE_JOBS: + serviceImpl.batchDeleteJobs( + (com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_JOBS: + serviceImpl.searchJobs( + (com.google.cloud.talent.v4beta1.SearchJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SEARCH_JOBS_FOR_ALERT: + serviceImpl.searchJobsForAlert( + (com.google.cloud.talent.v4beta1.SearchJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class JobServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + JobServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("JobService"); + } + } + + private static final class JobServiceFileDescriptorSupplier + extends JobServiceBaseDescriptorSupplier { + JobServiceFileDescriptorSupplier() {} + } + + private static final class JobServiceMethodDescriptorSupplier + extends JobServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + JobServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (JobServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new JobServiceFileDescriptorSupplier()) + .addMethod(getCreateJobMethodHelper()) + .addMethod(getGetJobMethodHelper()) + .addMethod(getUpdateJobMethodHelper()) + .addMethod(getDeleteJobMethodHelper()) + .addMethod(getListJobsMethodHelper()) + .addMethod(getBatchDeleteJobsMethodHelper()) + .addMethod(getSearchJobsMethodHelper()) + .addMethod(getSearchJobsForAlertMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java new file mode 100644 index 000000000000..c26c22568a10 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java @@ -0,0 +1,1012 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service that handles profile management, including profile CRUD,
+ * enumeration and search.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/profile_service.proto") +public final class ProfileServiceGrpc { + + private ProfileServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.ProfileService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListProfilesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse> + METHOD_LIST_PROFILES = getListProfilesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse> + getListProfilesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse> + getListProfilesMethod() { + return getListProfilesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse> + getListProfilesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse> + getListProfilesMethod; + if ((getListProfilesMethod = ProfileServiceGrpc.getListProfilesMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getListProfilesMethod = ProfileServiceGrpc.getListProfilesMethod) == null) { + ProfileServiceGrpc.getListProfilesMethod = + getListProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "ListProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ProfileServiceMethodDescriptorSupplier("ListProfiles")) + .build(); + } + } + } + return getListProfilesMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateProfileMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + METHOD_CREATE_PROFILE = getCreateProfileMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getCreateProfileMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getCreateProfileMethod() { + return getCreateProfileMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getCreateProfileMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getCreateProfileMethod; + if ((getCreateProfileMethod = ProfileServiceGrpc.getCreateProfileMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getCreateProfileMethod = ProfileServiceGrpc.getCreateProfileMethod) == null) { + ProfileServiceGrpc.getCreateProfileMethod = + getCreateProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "CreateProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CreateProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Profile.getDefaultInstance())) + .setSchemaDescriptor( + new ProfileServiceMethodDescriptorSupplier("CreateProfile")) + .build(); + } + } + } + return getCreateProfileMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetProfileMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + METHOD_GET_PROFILE = getGetProfileMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getGetProfileMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getGetProfileMethod() { + return getGetProfileMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getGetProfileMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getGetProfileMethod; + if ((getGetProfileMethod = ProfileServiceGrpc.getGetProfileMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getGetProfileMethod = ProfileServiceGrpc.getGetProfileMethod) == null) { + ProfileServiceGrpc.getGetProfileMethod = + getGetProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "GetProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.GetProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Profile.getDefaultInstance())) + .setSchemaDescriptor(new ProfileServiceMethodDescriptorSupplier("GetProfile")) + .build(); + } + } + } + return getGetProfileMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateProfileMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + METHOD_UPDATE_PROFILE = getUpdateProfileMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getUpdateProfileMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getUpdateProfileMethod() { + return getUpdateProfileMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getUpdateProfileMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getUpdateProfileMethod; + if ((getUpdateProfileMethod = ProfileServiceGrpc.getUpdateProfileMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getUpdateProfileMethod = ProfileServiceGrpc.getUpdateProfileMethod) == null) { + ProfileServiceGrpc.getUpdateProfileMethod = + getUpdateProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "UpdateProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.UpdateProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Profile.getDefaultInstance())) + .setSchemaDescriptor( + new ProfileServiceMethodDescriptorSupplier("UpdateProfile")) + .build(); + } + } + } + return getUpdateProfileMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteProfileMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> + METHOD_DELETE_PROFILE = getDeleteProfileMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> + getDeleteProfileMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> + getDeleteProfileMethod() { + return getDeleteProfileMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> + getDeleteProfileMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> + getDeleteProfileMethod; + if ((getDeleteProfileMethod = ProfileServiceGrpc.getDeleteProfileMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getDeleteProfileMethod = ProfileServiceGrpc.getDeleteProfileMethod) == null) { + ProfileServiceGrpc.getDeleteProfileMethod = + getDeleteProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "DeleteProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.DeleteProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ProfileServiceMethodDescriptorSupplier("DeleteProfile")) + .build(); + } + } + } + return getDeleteProfileMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSearchProfilesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + METHOD_SEARCH_PROFILES = getSearchProfilesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + getSearchProfilesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + getSearchProfilesMethod() { + return getSearchProfilesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + getSearchProfilesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + getSearchProfilesMethod; + if ((getSearchProfilesMethod = ProfileServiceGrpc.getSearchProfilesMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getSearchProfilesMethod = ProfileServiceGrpc.getSearchProfilesMethod) == null) { + ProfileServiceGrpc.getSearchProfilesMethod = + getSearchProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "SearchProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ProfileServiceMethodDescriptorSupplier("SearchProfiles")) + .build(); + } + } + } + return getSearchProfilesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ProfileServiceStub newStub(io.grpc.Channel channel) { + return new ProfileServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ProfileServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new ProfileServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ProfileServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new ProfileServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service that handles profile management, including profile CRUD,
+   * enumeration and search.
+   * 
+ */ + public abstract static class ProfileServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists profiles by filter. The order is unspecified.
+     * 
+ */ + public void listProfiles( + com.google.cloud.talent.v4beta1.ListProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListProfilesMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Creates and returns a new profile.
+     * 
+ */ + public void createProfile( + com.google.cloud.talent.v4beta1.CreateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateProfileMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets the specified profile.
+     * 
+ */ + public void getProfile( + com.google.cloud.talent.v4beta1.GetProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetProfileMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified profile and returns the updated result.
+     * 
+ */ + public void updateProfile( + com.google.cloud.talent.v4beta1.UpdateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateProfileMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified profile.
+     * 
+ */ + public void deleteProfile( + com.google.cloud.talent.v4beta1.DeleteProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteProfileMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Searches for profiles within a tenant.
+     * For example, search by raw queries "software engineer in Mountain View" or
+     * search by structured filters (location filter, education filter, etc.).
+     * See
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]
+     * for more information.
+     * 
+ */ + public void searchProfiles( + com.google.cloud.talent.v4beta1.SearchProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getSearchProfilesMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListProfilesMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse>( + this, METHODID_LIST_PROFILES))) + .addMethod( + getCreateProfileMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile>(this, METHODID_CREATE_PROFILE))) + .addMethod( + getGetProfileMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile>(this, METHODID_GET_PROFILE))) + .addMethod( + getUpdateProfileMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile>(this, METHODID_UPDATE_PROFILE))) + .addMethod( + getDeleteProfileMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PROFILE))) + .addMethod( + getSearchProfilesMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse>( + this, METHODID_SEARCH_PROFILES))) + .build(); + } + } + + /** + * + * + *
+   * A service that handles profile management, including profile CRUD,
+   * enumeration and search.
+   * 
+ */ + public static final class ProfileServiceStub + extends io.grpc.stub.AbstractStub { + private ProfileServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private ProfileServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ProfileServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProfileServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists profiles by filter. The order is unspecified.
+     * 
+ */ + public void listProfiles( + com.google.cloud.talent.v4beta1.ListProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListProfilesMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates and returns a new profile.
+     * 
+ */ + public void createProfile( + com.google.cloud.talent.v4beta1.CreateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateProfileMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the specified profile.
+     * 
+ */ + public void getProfile( + com.google.cloud.talent.v4beta1.GetProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetProfileMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the specified profile and returns the updated result.
+     * 
+ */ + public void updateProfile( + com.google.cloud.talent.v4beta1.UpdateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateProfileMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified profile.
+     * 
+ */ + public void deleteProfile( + com.google.cloud.talent.v4beta1.DeleteProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteProfileMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches for profiles within a tenant.
+     * For example, search by raw queries "software engineer in Mountain View" or
+     * search by structured filters (location filter, education filter, etc.).
+     * See
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]
+     * for more information.
+     * 
+ */ + public void searchProfiles( + com.google.cloud.talent.v4beta1.SearchProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSearchProfilesMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service that handles profile management, including profile CRUD,
+   * enumeration and search.
+   * 
+ */ + public static final class ProfileServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private ProfileServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private ProfileServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ProfileServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProfileServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists profiles by filter. The order is unspecified.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ListProfilesResponse listProfiles( + com.google.cloud.talent.v4beta1.ListProfilesRequest request) { + return blockingUnaryCall( + getChannel(), getListProfilesMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates and returns a new profile.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Profile createProfile( + com.google.cloud.talent.v4beta1.CreateProfileRequest request) { + return blockingUnaryCall( + getChannel(), getCreateProfileMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the specified profile.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Profile getProfile( + com.google.cloud.talent.v4beta1.GetProfileRequest request) { + return blockingUnaryCall( + getChannel(), getGetProfileMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the specified profile and returns the updated result.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Profile updateProfile( + com.google.cloud.talent.v4beta1.UpdateProfileRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateProfileMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified profile.
+     * 
+ */ + public com.google.protobuf.Empty deleteProfile( + com.google.cloud.talent.v4beta1.DeleteProfileRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteProfileMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches for profiles within a tenant.
+     * For example, search by raw queries "software engineer in Mountain View" or
+     * search by structured filters (location filter, education filter, etc.).
+     * See
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]
+     * for more information.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.SearchProfilesResponse searchProfiles( + com.google.cloud.talent.v4beta1.SearchProfilesRequest request) { + return blockingUnaryCall( + getChannel(), getSearchProfilesMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service that handles profile management, including profile CRUD,
+   * enumeration and search.
+   * 
+ */ + public static final class ProfileServiceFutureStub + extends io.grpc.stub.AbstractStub { + private ProfileServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private ProfileServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ProfileServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProfileServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists profiles by filter. The order is unspecified.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ListProfilesResponse> + listProfiles(com.google.cloud.talent.v4beta1.ListProfilesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListProfilesMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates and returns a new profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Profile> + createProfile(com.google.cloud.talent.v4beta1.CreateProfileRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateProfileMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the specified profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Profile> + getProfile(com.google.cloud.talent.v4beta1.GetProfileRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetProfileMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the specified profile and returns the updated result.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Profile> + updateProfile(com.google.cloud.talent.v4beta1.UpdateProfileRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateProfileMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteProfile(com.google.cloud.talent.v4beta1.DeleteProfileRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteProfileMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches for profiles within a tenant.
+     * For example, search by raw queries "software engineer in Mountain View" or
+     * search by structured filters (location filter, education filter, etc.).
+     * See
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]
+     * for more information.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + searchProfiles(com.google.cloud.talent.v4beta1.SearchProfilesRequest request) { + return futureUnaryCall( + getChannel().newCall(getSearchProfilesMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_PROFILES = 0; + private static final int METHODID_CREATE_PROFILE = 1; + private static final int METHODID_GET_PROFILE = 2; + private static final int METHODID_UPDATE_PROFILE = 3; + private static final int METHODID_DELETE_PROFILE = 4; + private static final int METHODID_SEARCH_PROFILES = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ProfileServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ProfileServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_PROFILES: + serviceImpl.listProfiles( + (com.google.cloud.talent.v4beta1.ListProfilesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_PROFILE: + serviceImpl.createProfile( + (com.google.cloud.talent.v4beta1.CreateProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PROFILE: + serviceImpl.getProfile( + (com.google.cloud.talent.v4beta1.GetProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_PROFILE: + serviceImpl.updateProfile( + (com.google.cloud.talent.v4beta1.UpdateProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_PROFILE: + serviceImpl.deleteProfile( + (com.google.cloud.talent.v4beta1.DeleteProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_PROFILES: + serviceImpl.searchProfiles( + (com.google.cloud.talent.v4beta1.SearchProfilesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ProfileServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ProfileServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ProfileService"); + } + } + + private static final class ProfileServiceFileDescriptorSupplier + extends ProfileServiceBaseDescriptorSupplier { + ProfileServiceFileDescriptorSupplier() {} + } + + private static final class ProfileServiceMethodDescriptorSupplier + extends ProfileServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ProfileServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ProfileServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ProfileServiceFileDescriptorSupplier()) + .addMethod(getListProfilesMethodHelper()) + .addMethod(getCreateProfileMethodHelper()) + .addMethod(getGetProfileMethodHelper()) + .addMethod(getUpdateProfileMethodHelper()) + .addMethod(getDeleteProfileMethodHelper()) + .addMethod(getSearchProfilesMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java new file mode 100644 index 000000000000..c512ae904c03 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java @@ -0,0 +1,441 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service that handles resume parsing.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/resume_service.proto") +public final class ResumeServiceGrpc { + + private ResumeServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.ResumeService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getParseResumeMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse> + METHOD_PARSE_RESUME = getParseResumeMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse> + getParseResumeMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse> + getParseResumeMethod() { + return getParseResumeMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse> + getParseResumeMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse> + getParseResumeMethod; + if ((getParseResumeMethod = ResumeServiceGrpc.getParseResumeMethod) == null) { + synchronized (ResumeServiceGrpc.class) { + if ((getParseResumeMethod = ResumeServiceGrpc.getParseResumeMethod) == null) { + ResumeServiceGrpc.getParseResumeMethod = + getParseResumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ResumeService", "ParseResume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ParseResumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ParseResumeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ResumeServiceMethodDescriptorSupplier("ParseResume")) + .build(); + } + } + } + return getParseResumeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ResumeServiceStub newStub(io.grpc.Channel channel) { + return new ResumeServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ResumeServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new ResumeServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ResumeServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new ResumeServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service that handles resume parsing.
+   * 
+ */ + public abstract static class ResumeServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
+     * API attempts to fill out the following profile fields if present within the
+     * resume:
+     * * personNames
+     * * addresses
+     * * emailAddress
+     * * phoneNumbers
+     * * personalUris
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * Note that some attributes in these fields may not be populated if they're
+     * not present within the resume or unrecognizable by the resume parser.
+     * This API does not save the resume or profile. To create a profile from this
+     * resume, clients need to call the CreateProfile method again with the
+     * profile returned.
+     * The following list of formats are supported:
+     * * PDF
+     * * TXT
+     * * DOC
+     * * RTF
+     * * DOCX
+     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
+     * otherwise an error is thrown)
+     * 
+ */ + public void parseResume( + com.google.cloud.talent.v4beta1.ParseResumeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getParseResumeMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getParseResumeMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse>( + this, METHODID_PARSE_RESUME))) + .build(); + } + } + + /** + * + * + *
+   * A service that handles resume parsing.
+   * 
+ */ + public static final class ResumeServiceStub extends io.grpc.stub.AbstractStub { + private ResumeServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private ResumeServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ResumeServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ResumeServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
+     * API attempts to fill out the following profile fields if present within the
+     * resume:
+     * * personNames
+     * * addresses
+     * * emailAddress
+     * * phoneNumbers
+     * * personalUris
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * Note that some attributes in these fields may not be populated if they're
+     * not present within the resume or unrecognizable by the resume parser.
+     * This API does not save the resume or profile. To create a profile from this
+     * resume, clients need to call the CreateProfile method again with the
+     * profile returned.
+     * The following list of formats are supported:
+     * * PDF
+     * * TXT
+     * * DOC
+     * * RTF
+     * * DOCX
+     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
+     * otherwise an error is thrown)
+     * 
+ */ + public void parseResume( + com.google.cloud.talent.v4beta1.ParseResumeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getParseResumeMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service that handles resume parsing.
+   * 
+ */ + public static final class ResumeServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private ResumeServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private ResumeServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ResumeServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ResumeServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
+     * API attempts to fill out the following profile fields if present within the
+     * resume:
+     * * personNames
+     * * addresses
+     * * emailAddress
+     * * phoneNumbers
+     * * personalUris
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * Note that some attributes in these fields may not be populated if they're
+     * not present within the resume or unrecognizable by the resume parser.
+     * This API does not save the resume or profile. To create a profile from this
+     * resume, clients need to call the CreateProfile method again with the
+     * profile returned.
+     * The following list of formats are supported:
+     * * PDF
+     * * TXT
+     * * DOC
+     * * RTF
+     * * DOCX
+     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
+     * otherwise an error is thrown)
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ParseResumeResponse parseResume( + com.google.cloud.talent.v4beta1.ParseResumeRequest request) { + return blockingUnaryCall( + getChannel(), getParseResumeMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service that handles resume parsing.
+   * 
+ */ + public static final class ResumeServiceFutureStub + extends io.grpc.stub.AbstractStub { + private ResumeServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private ResumeServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ResumeServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ResumeServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
+     * API attempts to fill out the following profile fields if present within the
+     * resume:
+     * * personNames
+     * * addresses
+     * * emailAddress
+     * * phoneNumbers
+     * * personalUris
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * Note that some attributes in these fields may not be populated if they're
+     * not present within the resume or unrecognizable by the resume parser.
+     * This API does not save the resume or profile. To create a profile from this
+     * resume, clients need to call the CreateProfile method again with the
+     * profile returned.
+     * The following list of formats are supported:
+     * * PDF
+     * * TXT
+     * * DOC
+     * * RTF
+     * * DOCX
+     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
+     * otherwise an error is thrown)
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ParseResumeResponse> + parseResume(com.google.cloud.talent.v4beta1.ParseResumeRequest request) { + return futureUnaryCall( + getChannel().newCall(getParseResumeMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_PARSE_RESUME = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ResumeServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ResumeServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_PARSE_RESUME: + serviceImpl.parseResume( + (com.google.cloud.talent.v4beta1.ParseResumeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ResumeServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ResumeServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ResumeService"); + } + } + + private static final class ResumeServiceFileDescriptorSupplier + extends ResumeServiceBaseDescriptorSupplier { + ResumeServiceFileDescriptorSupplier() {} + } + + private static final class ResumeServiceMethodDescriptorSupplier + extends ResumeServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ResumeServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ResumeServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ResumeServiceFileDescriptorSupplier()) + .addMethod(getParseResumeMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java new file mode 100644 index 000000000000..bdc534067ece --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java @@ -0,0 +1,848 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service that handles tenant management, including CRUD and enumeration.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/tenant_service.proto") +public final class TenantServiceGrpc { + + private TenantServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.TenantService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateTenantMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + METHOD_CREATE_TENANT = getCreateTenantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getCreateTenantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getCreateTenantMethod() { + return getCreateTenantMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getCreateTenantMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getCreateTenantMethod; + if ((getCreateTenantMethod = TenantServiceGrpc.getCreateTenantMethod) == null) { + synchronized (TenantServiceGrpc.class) { + if ((getCreateTenantMethod = TenantServiceGrpc.getCreateTenantMethod) == null) { + TenantServiceGrpc.getCreateTenantMethod = + getCreateTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.TenantService", "CreateTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CreateTenantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance())) + .setSchemaDescriptor( + new TenantServiceMethodDescriptorSupplier("CreateTenant")) + .build(); + } + } + } + return getCreateTenantMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetTenantMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetTenantRequest, com.google.cloud.talent.v4beta1.Tenant> + METHOD_GET_TENANT = getGetTenantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetTenantRequest, com.google.cloud.talent.v4beta1.Tenant> + getGetTenantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetTenantRequest, com.google.cloud.talent.v4beta1.Tenant> + getGetTenantMethod() { + return getGetTenantMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetTenantRequest, com.google.cloud.talent.v4beta1.Tenant> + getGetTenantMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getGetTenantMethod; + if ((getGetTenantMethod = TenantServiceGrpc.getGetTenantMethod) == null) { + synchronized (TenantServiceGrpc.class) { + if ((getGetTenantMethod = TenantServiceGrpc.getGetTenantMethod) == null) { + TenantServiceGrpc.getGetTenantMethod = + getGetTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.TenantService", "GetTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.GetTenantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance())) + .setSchemaDescriptor(new TenantServiceMethodDescriptorSupplier("GetTenant")) + .build(); + } + } + } + return getGetTenantMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateTenantMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + METHOD_UPDATE_TENANT = getUpdateTenantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getUpdateTenantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getUpdateTenantMethod() { + return getUpdateTenantMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getUpdateTenantMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getUpdateTenantMethod; + if ((getUpdateTenantMethod = TenantServiceGrpc.getUpdateTenantMethod) == null) { + synchronized (TenantServiceGrpc.class) { + if ((getUpdateTenantMethod = TenantServiceGrpc.getUpdateTenantMethod) == null) { + TenantServiceGrpc.getUpdateTenantMethod = + getUpdateTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.TenantService", "UpdateTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.UpdateTenantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance())) + .setSchemaDescriptor( + new TenantServiceMethodDescriptorSupplier("UpdateTenant")) + .build(); + } + } + } + return getUpdateTenantMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteTenantMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, com.google.protobuf.Empty> + METHOD_DELETE_TENANT = getDeleteTenantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, com.google.protobuf.Empty> + getDeleteTenantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, com.google.protobuf.Empty> + getDeleteTenantMethod() { + return getDeleteTenantMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, com.google.protobuf.Empty> + getDeleteTenantMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, com.google.protobuf.Empty> + getDeleteTenantMethod; + if ((getDeleteTenantMethod = TenantServiceGrpc.getDeleteTenantMethod) == null) { + synchronized (TenantServiceGrpc.class) { + if ((getDeleteTenantMethod = TenantServiceGrpc.getDeleteTenantMethod) == null) { + TenantServiceGrpc.getDeleteTenantMethod = + getDeleteTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.TenantService", "DeleteTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.DeleteTenantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new TenantServiceMethodDescriptorSupplier("DeleteTenant")) + .build(); + } + } + } + return getDeleteTenantMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListTenantsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse> + METHOD_LIST_TENANTS = getListTenantsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse> + getListTenantsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse> + getListTenantsMethod() { + return getListTenantsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse> + getListTenantsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse> + getListTenantsMethod; + if ((getListTenantsMethod = TenantServiceGrpc.getListTenantsMethod) == null) { + synchronized (TenantServiceGrpc.class) { + if ((getListTenantsMethod = TenantServiceGrpc.getListTenantsMethod) == null) { + TenantServiceGrpc.getListTenantsMethod = + getListTenantsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.TenantService", "ListTenants")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListTenantsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListTenantsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TenantServiceMethodDescriptorSupplier("ListTenants")) + .build(); + } + } + } + return getListTenantsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TenantServiceStub newStub(io.grpc.Channel channel) { + return new TenantServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TenantServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new TenantServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TenantServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new TenantServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service that handles tenant management, including CRUD and enumeration.
+   * 
+ */ + public abstract static class TenantServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new tenant entity.
+     * 
+ */ + public void createTenant( + com.google.cloud.talent.v4beta1.CreateTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateTenantMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Retrieves specified tenant.
+     * 
+ */ + public void getTenant( + com.google.cloud.talent.v4beta1.GetTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTenantMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates specified tenant.
+     * 
+ */ + public void updateTenant( + com.google.cloud.talent.v4beta1.UpdateTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateTenantMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes specified tenant.
+     * 
+ */ + public void deleteTenant( + com.google.cloud.talent.v4beta1.DeleteTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteTenantMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists all tenants associated with the project.
+     * 
+ */ + public void listTenants( + com.google.cloud.talent.v4beta1.ListTenantsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListTenantsMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateTenantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant>(this, METHODID_CREATE_TENANT))) + .addMethod( + getGetTenantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.GetTenantRequest, + com.google.cloud.talent.v4beta1.Tenant>(this, METHODID_GET_TENANT))) + .addMethod( + getUpdateTenantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant>(this, METHODID_UPDATE_TENANT))) + .addMethod( + getDeleteTenantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_TENANT))) + .addMethod( + getListTenantsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse>( + this, METHODID_LIST_TENANTS))) + .build(); + } + } + + /** + * + * + *
+   * A service that handles tenant management, including CRUD and enumeration.
+   * 
+ */ + public static final class TenantServiceStub extends io.grpc.stub.AbstractStub { + private TenantServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private TenantServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TenantServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TenantServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new tenant entity.
+     * 
+ */ + public void createTenant( + com.google.cloud.talent.v4beta1.CreateTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateTenantMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves specified tenant.
+     * 
+ */ + public void getTenant( + com.google.cloud.talent.v4beta1.GetTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTenantMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates specified tenant.
+     * 
+ */ + public void updateTenant( + com.google.cloud.talent.v4beta1.UpdateTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateTenantMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes specified tenant.
+     * 
+ */ + public void deleteTenant( + com.google.cloud.talent.v4beta1.DeleteTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteTenantMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all tenants associated with the project.
+     * 
+ */ + public void listTenants( + com.google.cloud.talent.v4beta1.ListTenantsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListTenantsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service that handles tenant management, including CRUD and enumeration.
+   * 
+ */ + public static final class TenantServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private TenantServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private TenantServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TenantServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TenantServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new tenant entity.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Tenant createTenant( + com.google.cloud.talent.v4beta1.CreateTenantRequest request) { + return blockingUnaryCall( + getChannel(), getCreateTenantMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves specified tenant.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Tenant getTenant( + com.google.cloud.talent.v4beta1.GetTenantRequest request) { + return blockingUnaryCall(getChannel(), getGetTenantMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates specified tenant.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Tenant updateTenant( + com.google.cloud.talent.v4beta1.UpdateTenantRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateTenantMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes specified tenant.
+     * 
+ */ + public com.google.protobuf.Empty deleteTenant( + com.google.cloud.talent.v4beta1.DeleteTenantRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteTenantMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all tenants associated with the project.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ListTenantsResponse listTenants( + com.google.cloud.talent.v4beta1.ListTenantsRequest request) { + return blockingUnaryCall( + getChannel(), getListTenantsMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service that handles tenant management, including CRUD and enumeration.
+   * 
+ */ + public static final class TenantServiceFutureStub + extends io.grpc.stub.AbstractStub { + private TenantServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private TenantServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TenantServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TenantServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new tenant entity.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Tenant> + createTenant(com.google.cloud.talent.v4beta1.CreateTenantRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateTenantMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves specified tenant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Tenant> + getTenant(com.google.cloud.talent.v4beta1.GetTenantRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetTenantMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates specified tenant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Tenant> + updateTenant(com.google.cloud.talent.v4beta1.UpdateTenantRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateTenantMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes specified tenant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTenant(com.google.cloud.talent.v4beta1.DeleteTenantRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteTenantMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all tenants associated with the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ListTenantsResponse> + listTenants(com.google.cloud.talent.v4beta1.ListTenantsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListTenantsMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_TENANT = 0; + private static final int METHODID_GET_TENANT = 1; + private static final int METHODID_UPDATE_TENANT = 2; + private static final int METHODID_DELETE_TENANT = 3; + private static final int METHODID_LIST_TENANTS = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final TenantServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TenantServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_TENANT: + serviceImpl.createTenant( + (com.google.cloud.talent.v4beta1.CreateTenantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TENANT: + serviceImpl.getTenant( + (com.google.cloud.talent.v4beta1.GetTenantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_TENANT: + serviceImpl.updateTenant( + (com.google.cloud.talent.v4beta1.UpdateTenantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_TENANT: + serviceImpl.deleteTenant( + (com.google.cloud.talent.v4beta1.DeleteTenantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TENANTS: + serviceImpl.listTenants( + (com.google.cloud.talent.v4beta1.ListTenantsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class TenantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TenantServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TenantService"); + } + } + + private static final class TenantServiceFileDescriptorSupplier + extends TenantServiceBaseDescriptorSupplier { + TenantServiceFileDescriptorSupplier() {} + } + + private static final class TenantServiceMethodDescriptorSupplier + extends TenantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TenantServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TenantServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TenantServiceFileDescriptorSupplier()) + .addMethod(getCreateTenantMethodHelper()) + .addMethod(getGetTenantMethodHelper()) + .addMethod(getUpdateTenantMethodHelper()) + .addMethod(getDeleteTenantMethodHelper()) + .addMethod(getListTenantsMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index ea4922559385..e30114d2aa84 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -694,6 +694,16 @@ grpc-google-cloud-iamcredentials-v1 0.10.1-alpha-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + @@ -735,6 +745,7 @@ grpc-google-cloud-speech-v1 grpc-google-cloud-speech-v1beta1 grpc-google-cloud-speech-v1p1beta1 + grpc-google-cloud-talent-v4beta1 grpc-google-cloud-tasks-v2beta2 grpc-google-cloud-tasks-v2beta3 grpc-google-cloud-texttospeech-v1 @@ -792,6 +803,7 @@ proto-google-cloud-speech-v1 proto-google-cloud-speech-v1beta1 proto-google-cloud-speech-v1p1beta1 + proto-google-cloud-talent-v4beta1 proto-google-cloud-tasks-v2beta2 proto-google-cloud-tasks-v2beta3 proto-google-cloud-texttospeech-v1 diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml b/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml new file mode 100644 index 000000000000..0063b2d5b067 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml @@ -0,0 +1,36 @@ + + 4.0.0 + proto-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + proto-google-cloud-talent-v4beta1 + PROTO library for proto-google-cloud-talent-v4beta1 + + com.google.api.grpc + google-api-grpc + 0.48.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + compile + + + com.google.api + api-common + compile + + + com.google.api.grpc + proto-google-common-protos + compile + + + com.google.api.grpc + proto-google-iam-v1 + compile + + + \ No newline at end of file diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java new file mode 100644 index 000000000000..2208d5f3e757 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java @@ -0,0 +1,2943 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents an individual or collaborative activity participated
+ * in by a candidate, for example, an open-source project, a class assignment,
+ * etc.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Activity} + */ +public final class Activity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Activity) + ActivityOrBuilder { + private static final long serialVersionUID = 0L; + // Use Activity.newBuilder() to construct. + private Activity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Activity() { + displayName_ = ""; + description_ = ""; + uri_ = ""; + teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + skillsUsed_ = java.util.Collections.emptyList(); + activityNameSnippet_ = ""; + activityDescriptionSnippet_ = ""; + skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Activity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 34: + { + com.google.type.Date.Builder subBuilder = null; + if (createDate_ != null) { + subBuilder = createDate_.toBuilder(); + } + createDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createDate_); + createDate_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.type.Date.Builder subBuilder = null; + if (updateDate_ != null) { + subBuilder = updateDate_.toBuilder(); + } + updateDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateDate_); + updateDate_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + teamMembers_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + teamMembers_.add(s); + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + skillsUsed_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + skillsUsed_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + activityNameSnippet_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + activityDescriptionSnippet_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + skillsUsedSnippet_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000200; + } + skillsUsedSnippet_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + teamMembers_ = teamMembers_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + skillsUsedSnippet_ = skillsUsedSnippet_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Activity.class, + com.google.cloud.talent.v4beta1.Activity.Builder.class); + } + + private int bitField0_; + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Activity display name.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Activity display name.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * Activity description.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Activity description.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 3; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * Optional.
+   * Activity URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Activity URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 3; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_DATE_FIELD_NUMBER = 4; + private com.google.type.Date createDate_; + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + public boolean hasCreateDate() { + return createDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.Date getCreateDate() { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + return getCreateDate(); + } + + public static final int UPDATE_DATE_FIELD_NUMBER = 5; + private com.google.type.Date updateDate_; + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + public boolean hasUpdateDate() { + return updateDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.Date getUpdateDate() { + return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; + } + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.DateOrBuilder getUpdateDateOrBuilder() { + return getUpdateDate(); + } + + public static final int TEAM_MEMBERS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList teamMembers_; + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + public com.google.protobuf.ProtocolStringList getTeamMembersList() { + return teamMembers_; + } + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + public int getTeamMembersCount() { + return teamMembers_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + public java.lang.String getTeamMembers(int index) { + return teamMembers_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + public com.google.protobuf.ByteString getTeamMembersBytes(int index) { + return teamMembers_.getByteString(index); + } + + public static final int SKILLS_USED_FIELD_NUMBER = 7; + private java.util.List skillsUsed_; + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List getSkillsUsedList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public int getSkillsUsedCount() { + return skillsUsed_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + return skillsUsed_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + return skillsUsed_.get(index); + } + + public static final int ACTIVITY_NAME_SNIPPET_FIELD_NUMBER = 8; + private volatile java.lang.Object activityNameSnippet_; + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + public java.lang.String getActivityNameSnippet() { + java.lang.Object ref = activityNameSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + public com.google.protobuf.ByteString getActivityNameSnippetBytes() { + java.lang.Object ref = activityNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIVITY_DESCRIPTION_SNIPPET_FIELD_NUMBER = 9; + private volatile java.lang.Object activityDescriptionSnippet_; + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + public java.lang.String getActivityDescriptionSnippet() { + java.lang.Object ref = activityDescriptionSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityDescriptionSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + public com.google.protobuf.ByteString getActivityDescriptionSnippetBytes() { + java.lang.Object ref = activityDescriptionSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILLS_USED_SNIPPET_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList skillsUsedSnippet_; + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ProtocolStringList getSkillsUsedSnippetList() { + return skillsUsedSnippet_; + } + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public int getSkillsUsedSnippetCount() { + return skillsUsedSnippet_.size(); + } + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public java.lang.String getSkillsUsedSnippet(int index) { + return skillsUsedSnippet_.get(index); + } + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index) { + return skillsUsedSnippet_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + if (createDate_ != null) { + output.writeMessage(4, getCreateDate()); + } + if (updateDate_ != null) { + output.writeMessage(5, getUpdateDate()); + } + for (int i = 0; i < teamMembers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, teamMembers_.getRaw(i)); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + output.writeMessage(7, skillsUsed_.get(i)); + } + if (!getActivityNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, activityNameSnippet_); + } + if (!getActivityDescriptionSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, activityDescriptionSnippet_); + } + for (int i = 0; i < skillsUsedSnippet_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, skillsUsedSnippet_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + if (createDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateDate()); + } + if (updateDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateDate()); + } + { + int dataSize = 0; + for (int i = 0; i < teamMembers_.size(); i++) { + dataSize += computeStringSizeNoTag(teamMembers_.getRaw(i)); + } + size += dataSize; + size += 1 * getTeamMembersList().size(); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, skillsUsed_.get(i)); + } + if (!getActivityNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, activityNameSnippet_); + } + if (!getActivityDescriptionSnippetBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(9, activityDescriptionSnippet_); + } + { + int dataSize = 0; + for (int i = 0; i < skillsUsedSnippet_.size(); i++) { + dataSize += computeStringSizeNoTag(skillsUsedSnippet_.getRaw(i)); + } + size += dataSize; + size += 1 * getSkillsUsedSnippetList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Activity)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Activity other = (com.google.cloud.talent.v4beta1.Activity) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && getDescription().equals(other.getDescription()); + result = result && getUri().equals(other.getUri()); + result = result && (hasCreateDate() == other.hasCreateDate()); + if (hasCreateDate()) { + result = result && getCreateDate().equals(other.getCreateDate()); + } + result = result && (hasUpdateDate() == other.hasUpdateDate()); + if (hasUpdateDate()) { + result = result && getUpdateDate().equals(other.getUpdateDate()); + } + result = result && getTeamMembersList().equals(other.getTeamMembersList()); + result = result && getSkillsUsedList().equals(other.getSkillsUsedList()); + result = result && getActivityNameSnippet().equals(other.getActivityNameSnippet()); + result = + result && getActivityDescriptionSnippet().equals(other.getActivityDescriptionSnippet()); + result = result && getSkillsUsedSnippetList().equals(other.getSkillsUsedSnippetList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasCreateDate()) { + hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getCreateDate().hashCode(); + } + if (hasUpdateDate()) { + hash = (37 * hash) + UPDATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdateDate().hashCode(); + } + if (getTeamMembersCount() > 0) { + hash = (37 * hash) + TEAM_MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getTeamMembersList().hashCode(); + } + if (getSkillsUsedCount() > 0) { + hash = (37 * hash) + SKILLS_USED_FIELD_NUMBER; + hash = (53 * hash) + getSkillsUsedList().hashCode(); + } + hash = (37 * hash) + ACTIVITY_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getActivityNameSnippet().hashCode(); + hash = (37 * hash) + ACTIVITY_DESCRIPTION_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getActivityDescriptionSnippet().hashCode(); + if (getSkillsUsedSnippetCount() > 0) { + hash = (37 * hash) + SKILLS_USED_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSkillsUsedSnippetList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Activity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Activity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents an individual or collaborative activity participated
+   * in by a candidate, for example, an open-source project, a class assignment,
+   * etc.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Activity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Activity) + com.google.cloud.talent.v4beta1.ActivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Activity.class, + com.google.cloud.talent.v4beta1.Activity.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Activity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSkillsUsedFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + description_ = ""; + + uri_ = ""; + + if (createDateBuilder_ == null) { + createDate_ = null; + } else { + createDate_ = null; + createDateBuilder_ = null; + } + if (updateDateBuilder_ == null) { + updateDate_ = null; + } else { + updateDate_ = null; + updateDateBuilder_ = null; + } + teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + skillsUsedBuilder_.clear(); + } + activityNameSnippet_ = ""; + + activityDescriptionSnippet_ = ""; + + skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Activity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity build() { + com.google.cloud.talent.v4beta1.Activity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity buildPartial() { + com.google.cloud.talent.v4beta1.Activity result = + new com.google.cloud.talent.v4beta1.Activity(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.displayName_ = displayName_; + result.description_ = description_; + result.uri_ = uri_; + if (createDateBuilder_ == null) { + result.createDate_ = createDate_; + } else { + result.createDate_ = createDateBuilder_.build(); + } + if (updateDateBuilder_ == null) { + result.updateDate_ = updateDate_; + } else { + result.updateDate_ = updateDateBuilder_.build(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + teamMembers_ = teamMembers_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.teamMembers_ = teamMembers_; + if (skillsUsedBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.skillsUsed_ = skillsUsed_; + } else { + result.skillsUsed_ = skillsUsedBuilder_.build(); + } + result.activityNameSnippet_ = activityNameSnippet_; + result.activityDescriptionSnippet_ = activityDescriptionSnippet_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + skillsUsedSnippet_ = skillsUsedSnippet_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.skillsUsedSnippet_ = skillsUsedSnippet_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Activity) { + return mergeFrom((com.google.cloud.talent.v4beta1.Activity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Activity other) { + if (other == com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.hasCreateDate()) { + mergeCreateDate(other.getCreateDate()); + } + if (other.hasUpdateDate()) { + mergeUpdateDate(other.getUpdateDate()); + } + if (!other.teamMembers_.isEmpty()) { + if (teamMembers_.isEmpty()) { + teamMembers_ = other.teamMembers_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTeamMembersIsMutable(); + teamMembers_.addAll(other.teamMembers_); + } + onChanged(); + } + if (skillsUsedBuilder_ == null) { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsed_.isEmpty()) { + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSkillsUsedIsMutable(); + skillsUsed_.addAll(other.skillsUsed_); + } + onChanged(); + } + } else { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsedBuilder_.isEmpty()) { + skillsUsedBuilder_.dispose(); + skillsUsedBuilder_ = null; + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000040); + skillsUsedBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillsUsedFieldBuilder() + : null; + } else { + skillsUsedBuilder_.addAllMessages(other.skillsUsed_); + } + } + } + if (!other.getActivityNameSnippet().isEmpty()) { + activityNameSnippet_ = other.activityNameSnippet_; + onChanged(); + } + if (!other.getActivityDescriptionSnippet().isEmpty()) { + activityDescriptionSnippet_ = other.activityDescriptionSnippet_; + onChanged(); + } + if (!other.skillsUsedSnippet_.isEmpty()) { + if (skillsUsedSnippet_.isEmpty()) { + skillsUsedSnippet_ = other.skillsUsedSnippet_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.addAll(other.skillsUsedSnippet_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Activity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Activity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private com.google.type.Date createDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + createDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public boolean hasCreateDate() { + return createDateBuilder_ != null || createDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.Date getCreateDate() { + if (createDateBuilder_ == null) { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } else { + return createDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder setCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createDate_ = value; + onChanged(); + } else { + createDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder setCreateDate(com.google.type.Date.Builder builderForValue) { + if (createDateBuilder_ == null) { + createDate_ = builderForValue.build(); + onChanged(); + } else { + createDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder mergeCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (createDate_ != null) { + createDate_ = + com.google.type.Date.newBuilder(createDate_).mergeFrom(value).buildPartial(); + } else { + createDate_ = value; + } + onChanged(); + } else { + createDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder clearCreateDate() { + if (createDateBuilder_ == null) { + createDate_ = null; + onChanged(); + } else { + createDate_ = null; + createDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.Date.Builder getCreateDateBuilder() { + + onChanged(); + return getCreateDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + if (createDateBuilder_ != null) { + return createDateBuilder_.getMessageOrBuilder(); + } else { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getCreateDateFieldBuilder() { + if (createDateBuilder_ == null) { + createDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getCreateDate(), getParentForChildren(), isClean()); + createDate_ = null; + } + return createDateBuilder_; + } + + private com.google.type.Date updateDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + updateDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public boolean hasUpdateDate() { + return updateDateBuilder_ != null || updateDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.Date getUpdateDate() { + if (updateDateBuilder_ == null) { + return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; + } else { + return updateDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder setUpdateDate(com.google.type.Date value) { + if (updateDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateDate_ = value; + onChanged(); + } else { + updateDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder setUpdateDate(com.google.type.Date.Builder builderForValue) { + if (updateDateBuilder_ == null) { + updateDate_ = builderForValue.build(); + onChanged(); + } else { + updateDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder mergeUpdateDate(com.google.type.Date value) { + if (updateDateBuilder_ == null) { + if (updateDate_ != null) { + updateDate_ = + com.google.type.Date.newBuilder(updateDate_).mergeFrom(value).buildPartial(); + } else { + updateDate_ = value; + } + onChanged(); + } else { + updateDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder clearUpdateDate() { + if (updateDateBuilder_ == null) { + updateDate_ = null; + onChanged(); + } else { + updateDate_ = null; + updateDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.Date.Builder getUpdateDateBuilder() { + + onChanged(); + return getUpdateDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.DateOrBuilder getUpdateDateOrBuilder() { + if (updateDateBuilder_ != null) { + return updateDateBuilder_.getMessageOrBuilder(); + } else { + return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getUpdateDateFieldBuilder() { + if (updateDateBuilder_ == null) { + updateDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getUpdateDate(), getParentForChildren(), isClean()); + updateDate_ = null; + } + return updateDateBuilder_; + } + + private com.google.protobuf.LazyStringList teamMembers_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTeamMembersIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + teamMembers_ = new com.google.protobuf.LazyStringArrayList(teamMembers_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public com.google.protobuf.ProtocolStringList getTeamMembersList() { + return teamMembers_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public int getTeamMembersCount() { + return teamMembers_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public java.lang.String getTeamMembers(int index) { + return teamMembers_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public com.google.protobuf.ByteString getTeamMembersBytes(int index) { + return teamMembers_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder setTeamMembers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamMembersIsMutable(); + teamMembers_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder addTeamMembers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamMembersIsMutable(); + teamMembers_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder addAllTeamMembers(java.lang.Iterable values) { + ensureTeamMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, teamMembers_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder clearTeamMembers() { + teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder addTeamMembersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTeamMembersIsMutable(); + teamMembers_.add(value); + onChanged(); + return this; + } + + private java.util.List skillsUsed_ = + java.util.Collections.emptyList(); + + private void ensureSkillsUsedIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + skillsUsed_ = new java.util.ArrayList(skillsUsed_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + skillsUsedBuilder_; + + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List getSkillsUsedList() { + if (skillsUsedBuilder_ == null) { + return java.util.Collections.unmodifiableList(skillsUsed_); + } else { + return skillsUsedBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public int getSkillsUsedCount() { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.size(); + } else { + return skillsUsedBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder setSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, value); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder setSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addAllSkillsUsed( + java.lang.Iterable values) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsed_); + onChanged(); + } else { + skillsUsedBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder clearSkillsUsed() { + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + skillsUsedBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder removeSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.remove(index); + onChanged(); + } else { + skillsUsedBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + if (skillsUsedBuilder_ != null) { + return skillsUsedBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skillsUsed_); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder() { + return getSkillsUsedFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List + getSkillsUsedBuilderList() { + return getSkillsUsedFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + getSkillsUsedFieldBuilder() { + if (skillsUsedBuilder_ == null) { + skillsUsedBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder>( + skillsUsed_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + skillsUsed_ = null; + } + return skillsUsedBuilder_; + } + + private java.lang.Object activityNameSnippet_ = ""; + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public java.lang.String getActivityNameSnippet() { + java.lang.Object ref = activityNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public com.google.protobuf.ByteString getActivityNameSnippetBytes() { + java.lang.Object ref = activityNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public Builder setActivityNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + activityNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public Builder clearActivityNameSnippet() { + + activityNameSnippet_ = getDefaultInstance().getActivityNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public Builder setActivityNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + activityNameSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object activityDescriptionSnippet_ = ""; + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public java.lang.String getActivityDescriptionSnippet() { + java.lang.Object ref = activityDescriptionSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityDescriptionSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public com.google.protobuf.ByteString getActivityDescriptionSnippetBytes() { + java.lang.Object ref = activityDescriptionSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public Builder setActivityDescriptionSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + activityDescriptionSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public Builder clearActivityDescriptionSnippet() { + + activityDescriptionSnippet_ = getDefaultInstance().getActivityDescriptionSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public Builder setActivityDescriptionSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + activityDescriptionSnippet_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList skillsUsedSnippet_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSkillsUsedSnippetIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + skillsUsedSnippet_ = new com.google.protobuf.LazyStringArrayList(skillsUsedSnippet_); + bitField0_ |= 0x00000200; + } + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ProtocolStringList getSkillsUsedSnippetList() { + return skillsUsedSnippet_.getUnmodifiableView(); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public int getSkillsUsedSnippetCount() { + return skillsUsedSnippet_.size(); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public java.lang.String getSkillsUsedSnippet(int index) { + return skillsUsedSnippet_.get(index); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index) { + return skillsUsedSnippet_.getByteString(index); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder setSkillsUsedSnippet(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder addSkillsUsedSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder addAllSkillsUsedSnippet(java.lang.Iterable values) { + ensureSkillsUsedSnippetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsedSnippet_); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder clearSkillsUsedSnippet() { + skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder addSkillsUsedSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Activity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Activity) + private static final com.google.cloud.talent.v4beta1.Activity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Activity(); + } + + public static com.google.cloud.talent.v4beta1.Activity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Activity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Activity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java new file mode 100644 index 000000000000..107b5d3896e2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java @@ -0,0 +1,374 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface ActivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Activity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Activity display name.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Activity display name.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Activity description.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * Activity description.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * Activity URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 3; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Optional.
+   * Activity URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 3; + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + boolean hasCreateDate(); + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + com.google.type.Date getCreateDate(); + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + com.google.type.DateOrBuilder getCreateDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + boolean hasUpdateDate(); + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + com.google.type.Date getUpdateDate(); + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + com.google.type.DateOrBuilder getUpdateDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + java.util.List getTeamMembersList(); + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + int getTeamMembersCount(); + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + java.lang.String getTeamMembers(int index); + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + com.google.protobuf.ByteString getTeamMembersBytes(int index); + + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + java.util.List getSkillsUsedList(); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + int getSkillsUsedCount(); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + java.util.List + getSkillsUsedOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index); + + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + java.lang.String getActivityNameSnippet(); + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + com.google.protobuf.ByteString getActivityNameSnippetBytes(); + + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + java.lang.String getActivityDescriptionSnippet(); + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + com.google.protobuf.ByteString getActivityDescriptionSnippetBytes(); + + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + java.util.List getSkillsUsedSnippetList(); + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + int getSkillsUsedSnippetCount(); + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + java.lang.String getSkillsUsedSnippet(int index); + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java new file mode 100644 index 000000000000..548ff5329f07 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java @@ -0,0 +1,940 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents contact information other than phone, email,
+ * URI and addresses.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.AdditionalContactInfo} + */ +public final class AdditionalContactInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.AdditionalContactInfo) + AdditionalContactInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdditionalContactInfo.newBuilder() to construct. + private AdditionalContactInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdditionalContactInfo() { + usage_ = 0; + name_ = ""; + contactId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AdditionalContactInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + contactId_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.class, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder.class); + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTACT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object contactId_; + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + public java.lang.String getContactId() { + java.lang.Object ref = contactId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contactId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + public com.google.protobuf.ByteString getContactIdBytes() { + java.lang.Object ref = contactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getContactIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contactId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getContactIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contactId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.AdditionalContactInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.AdditionalContactInfo other = + (com.google.cloud.talent.v4beta1.AdditionalContactInfo) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && getName().equals(other.getName()); + result = result && getContactId().equals(other.getContactId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CONTACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getContactId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.AdditionalContactInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents contact information other than phone, email,
+   * URI and addresses.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.AdditionalContactInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.AdditionalContactInfo) + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.class, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.AdditionalContactInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + name_ = ""; + + contactId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo build() { + com.google.cloud.talent.v4beta1.AdditionalContactInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo buildPartial() { + com.google.cloud.talent.v4beta1.AdditionalContactInfo result = + new com.google.cloud.talent.v4beta1.AdditionalContactInfo(this); + result.usage_ = usage_; + result.name_ = name_; + result.contactId_ = contactId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.AdditionalContactInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.AdditionalContactInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.AdditionalContactInfo other) { + if (other == com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()) + return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getContactId().isEmpty()) { + contactId_ = other.contactId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.AdditionalContactInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.AdditionalContactInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object contactId_ = ""; + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public java.lang.String getContactId() { + java.lang.Object ref = contactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public com.google.protobuf.ByteString getContactIdBytes() { + java.lang.Object ref = contactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public Builder setContactId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contactId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public Builder clearContactId() { + + contactId_ = getDefaultInstance().getContactId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public Builder setContactIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contactId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.AdditionalContactInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.AdditionalContactInfo) + private static final com.google.cloud.talent.v4beta1.AdditionalContactInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.AdditionalContactInfo(); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalContactInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdditionalContactInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java new file mode 100644 index 000000000000..748996afaf36 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface AdditionalContactInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.AdditionalContactInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + java.lang.String getContactId(); + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + com.google.protobuf.ByteString getContactIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java new file mode 100644 index 000000000000..c2e59e26a78d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java @@ -0,0 +1,1441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a address.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Address} + */ +public final class Address extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Address) + AddressOrBuilder { + private static final long serialVersionUID = 0L; + // Use Address.newBuilder() to construct. + private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Address() { + usage_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Address( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + addressCase_ = 2; + address_ = s; + break; + } + case 26: + { + com.google.type.PostalAddress.Builder subBuilder = null; + if (addressCase_ == 3) { + subBuilder = ((com.google.type.PostalAddress) address_).toBuilder(); + } + address_ = + input.readMessage(com.google.type.PostalAddress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.PostalAddress) address_); + address_ = subBuilder.buildPartial(); + } + addressCase_ = 3; + break; + } + case 34: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCurrent_ != null) { + subBuilder = isCurrent_.toBuilder(); + } + isCurrent_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCurrent_); + isCurrent_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Address.class, + com.google.cloud.talent.v4beta1.Address.Builder.class); + } + + private int addressCase_ = 0; + private java.lang.Object address_; + + public enum AddressCase implements com.google.protobuf.Internal.EnumLite { + UNSTRUCTURED_ADDRESS(2), + STRUCTURED_ADDRESS(3), + ADDRESS_NOT_SET(0); + private final int value; + + private AddressCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static AddressCase valueOf(int value) { + return forNumber(value); + } + + public static AddressCase forNumber(int value) { + switch (value) { + case 2: + return UNSTRUCTURED_ADDRESS; + case 3: + return STRUCTURED_ADDRESS; + case 0: + return ADDRESS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AddressCase getAddressCase() { + return AddressCase.forNumber(addressCase_); + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int UNSTRUCTURED_ADDRESS_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + public java.lang.String getUnstructuredAddress() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (addressCase_ == 2) { + address_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + public com.google.protobuf.ByteString getUnstructuredAddressBytes() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (addressCase_ == 2) { + address_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCTURED_ADDRESS_FIELD_NUMBER = 3; + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public boolean hasStructuredAddress() { + return addressCase_ == 3; + } + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddress getStructuredAddress() { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + + public static final int IS_CURRENT_FIELD_NUMBER = 4; + private com.google.protobuf.BoolValue isCurrent_; + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public boolean hasIsCurrent() { + return isCurrent_ != null; + } + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + return getIsCurrent(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (addressCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); + } + if (addressCase_ == 3) { + output.writeMessage(3, (com.google.type.PostalAddress) address_); + } + if (isCurrent_ != null) { + output.writeMessage(4, getIsCurrent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (addressCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); + } + if (addressCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.type.PostalAddress) address_); + } + if (isCurrent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIsCurrent()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Address)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Address other = (com.google.cloud.talent.v4beta1.Address) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && (hasIsCurrent() == other.hasIsCurrent()); + if (hasIsCurrent()) { + result = result && getIsCurrent().equals(other.getIsCurrent()); + } + result = result && getAddressCase().equals(other.getAddressCase()); + if (!result) return false; + switch (addressCase_) { + case 2: + result = result && getUnstructuredAddress().equals(other.getUnstructuredAddress()); + break; + case 3: + result = result && getStructuredAddress().equals(other.getStructuredAddress()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + if (hasIsCurrent()) { + hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getIsCurrent().hashCode(); + } + switch (addressCase_) { + case 2: + hash = (37 * hash) + UNSTRUCTURED_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getUnstructuredAddress().hashCode(); + break; + case 3: + hash = (37 * hash) + STRUCTURED_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getStructuredAddress().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Address parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Address prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a address.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Address} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Address) + com.google.cloud.talent.v4beta1.AddressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Address.class, + com.google.cloud.talent.v4beta1.Address.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Address.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + addressCase_ = 0; + address_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Address.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address build() { + com.google.cloud.talent.v4beta1.Address result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address buildPartial() { + com.google.cloud.talent.v4beta1.Address result = + new com.google.cloud.talent.v4beta1.Address(this); + result.usage_ = usage_; + if (addressCase_ == 2) { + result.address_ = address_; + } + if (addressCase_ == 3) { + if (structuredAddressBuilder_ == null) { + result.address_ = address_; + } else { + result.address_ = structuredAddressBuilder_.build(); + } + } + if (isCurrentBuilder_ == null) { + result.isCurrent_ = isCurrent_; + } else { + result.isCurrent_ = isCurrentBuilder_.build(); + } + result.addressCase_ = addressCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Address) { + return mergeFrom((com.google.cloud.talent.v4beta1.Address) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Address other) { + if (other == com.google.cloud.talent.v4beta1.Address.getDefaultInstance()) return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (other.hasIsCurrent()) { + mergeIsCurrent(other.getIsCurrent()); + } + switch (other.getAddressCase()) { + case UNSTRUCTURED_ADDRESS: + { + addressCase_ = 2; + address_ = other.address_; + onChanged(); + break; + } + case STRUCTURED_ADDRESS: + { + mergeStructuredAddress(other.getStructuredAddress()); + break; + } + case ADDRESS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Address parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Address) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int addressCase_ = 0; + private java.lang.Object address_; + + public AddressCase getAddressCase() { + return AddressCase.forNumber(addressCase_); + } + + public Builder clearAddress() { + addressCase_ = 0; + address_ = null; + onChanged(); + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public java.lang.String getUnstructuredAddress() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (addressCase_ == 2) { + address_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public com.google.protobuf.ByteString getUnstructuredAddressBytes() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (addressCase_ == 2) { + address_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public Builder setUnstructuredAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addressCase_ = 2; + address_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public Builder clearUnstructuredAddress() { + if (addressCase_ == 2) { + addressCase_ = 0; + address_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public Builder setUnstructuredAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addressCase_ = 2; + address_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + structuredAddressBuilder_; + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public boolean hasStructuredAddress() { + return addressCase_ == 3; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddress getStructuredAddress() { + if (structuredAddressBuilder_ == null) { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } else { + if (addressCase_ == 3) { + return structuredAddressBuilder_.getMessage(); + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder setStructuredAddress(com.google.type.PostalAddress value) { + if (structuredAddressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + onChanged(); + } else { + structuredAddressBuilder_.setMessage(value); + } + addressCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder setStructuredAddress(com.google.type.PostalAddress.Builder builderForValue) { + if (structuredAddressBuilder_ == null) { + address_ = builderForValue.build(); + onChanged(); + } else { + structuredAddressBuilder_.setMessage(builderForValue.build()); + } + addressCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder mergeStructuredAddress(com.google.type.PostalAddress value) { + if (structuredAddressBuilder_ == null) { + if (addressCase_ == 3 && address_ != com.google.type.PostalAddress.getDefaultInstance()) { + address_ = + com.google.type.PostalAddress.newBuilder((com.google.type.PostalAddress) address_) + .mergeFrom(value) + .buildPartial(); + } else { + address_ = value; + } + onChanged(); + } else { + if (addressCase_ == 3) { + structuredAddressBuilder_.mergeFrom(value); + } + structuredAddressBuilder_.setMessage(value); + } + addressCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder clearStructuredAddress() { + if (structuredAddressBuilder_ == null) { + if (addressCase_ == 3) { + addressCase_ = 0; + address_ = null; + onChanged(); + } + } else { + if (addressCase_ == 3) { + addressCase_ = 0; + address_ = null; + } + structuredAddressBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddress.Builder getStructuredAddressBuilder() { + return getStructuredAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { + if ((addressCase_ == 3) && (structuredAddressBuilder_ != null)) { + return structuredAddressBuilder_.getMessageOrBuilder(); + } else { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + getStructuredAddressFieldBuilder() { + if (structuredAddressBuilder_ == null) { + if (!(addressCase_ == 3)) { + address_ = com.google.type.PostalAddress.getDefaultInstance(); + } + structuredAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder>( + (com.google.type.PostalAddress) address_, getParentForChildren(), isClean()); + address_ = null; + } + addressCase_ = 3; + onChanged(); + ; + return structuredAddressBuilder_; + } + + private com.google.protobuf.BoolValue isCurrent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isCurrentBuilder_; + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public boolean hasIsCurrent() { + return isCurrentBuilder_ != null || isCurrent_ != null; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + if (isCurrentBuilder_ == null) { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } else { + return isCurrentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isCurrent_ = value; + onChanged(); + } else { + isCurrentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isCurrentBuilder_ == null) { + isCurrent_ = builderForValue.build(); + onChanged(); + } else { + isCurrentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (isCurrent_ != null) { + isCurrent_ = + com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); + } else { + isCurrent_ = value; + } + onChanged(); + } else { + isCurrentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder clearIsCurrent() { + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + onChanged(); + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { + + onChanged(); + return getIsCurrentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + if (isCurrentBuilder_ != null) { + return isCurrentBuilder_.getMessageOrBuilder(); + } else { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsCurrentFieldBuilder() { + if (isCurrentBuilder_ == null) { + isCurrentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsCurrent(), getParentForChildren(), isClean()); + isCurrent_ = null; + } + return isCurrentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Address) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Address) + private static final com.google.cloud.talent.v4beta1.Address DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Address(); + } + + public static com.google.cloud.talent.v4beta1.Address getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Address parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Address(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser
parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser
getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java new file mode 100644 index 000000000000..b802c5c1fdfa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java @@ -0,0 +1,135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface AddressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Address) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + java.lang.String getUnstructuredAddress(); + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + com.google.protobuf.ByteString getUnstructuredAddressBytes(); + + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + boolean hasStructuredAddress(); + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + com.google.type.PostalAddress getStructuredAddress(); + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + boolean hasIsCurrent(); + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + com.google.protobuf.BoolValue getIsCurrent(); + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); + + public com.google.cloud.talent.v4beta1.Address.AddressCase getAddressCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java new file mode 100644 index 000000000000..f3ca6aafe601 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java @@ -0,0 +1,1000 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Application Date Range Filter.
+ * The API matches profiles with
+ * [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date]
+ * between start date and end date (both boundaries are inclusive). The filter
+ * is ignored if both
+ * [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date]
+ * and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date]
+ * are missing.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationDateFilter} + */ +public final class ApplicationDateFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationDateFilter) + ApplicationDateFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationDateFilter.newBuilder() to construct. + private ApplicationDateFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationDateFilter() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationDateFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.class, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder.class); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return getStartDate(); + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return getEndDate(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startDate_ != null) { + output.writeMessage(1, getStartDate()); + } + if (endDate_ != null) { + output.writeMessage(2, getEndDate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); + } + if (endDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationDateFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationDateFilter other = + (com.google.cloud.talent.v4beta1.ApplicationDateFilter) obj; + + boolean result = true; + result = result && (hasStartDate() == other.hasStartDate()); + if (hasStartDate()) { + result = result && getStartDate().equals(other.getStartDate()); + } + result = result && (hasEndDate() == other.hasEndDate()); + if (hasEndDate()) { + result = result && getEndDate().equals(other.getEndDate()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.ApplicationDateFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Application Date Range Filter.
+   * The API matches profiles with
+   * [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date]
+   * between start date and end date (both boundaries are inclusive). The filter
+   * is ignored if both
+   * [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date]
+   * and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date]
+   * are missing.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationDateFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationDateFilter) + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.class, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationDateFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startDateBuilder_ == null) { + startDate_ = null; + } else { + startDate_ = null; + startDateBuilder_ = null; + } + if (endDateBuilder_ == null) { + endDate_ = null; + } else { + endDate_ = null; + endDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter build() { + com.google.cloud.talent.v4beta1.ApplicationDateFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationDateFilter result = + new com.google.cloud.talent.v4beta1.ApplicationDateFilter(this); + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationDateFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationDateFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationDateFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()) + return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ApplicationDateFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationDateFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.type.Date startDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + onChanged(); + } else { + startDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + onChanged(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + } else { + startDate_ = value; + } + onChanged(); + } else { + startDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; + onChanged(); + } else { + startDate_ = null; + startDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + onChanged(); + } else { + endDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + onChanged(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); + } else { + endDate_ = value; + } + onChanged(); + } else { + endDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; + onChanged(); + } else { + endDate_ = null; + endDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationDateFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationDateFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationDateFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationDateFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationDateFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationDateFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java new file mode 100644 index 000000000000..9729fd3f8ca9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationDateFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationDateFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + boolean hasStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.Date getStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + boolean hasEndDate(); + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.Date getEndDate(); + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java new file mode 100644 index 000000000000..c5b2ed70d139 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java @@ -0,0 +1,1099 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on the job information of Application.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationJobFilter} + */ +public final class ApplicationJobFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationJobFilter) + ApplicationJobFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationJobFilter.newBuilder() to construct. + private ApplicationJobFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationJobFilter() { + jobName_ = ""; + jobRequisitionId_ = ""; + jobTitle_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationJobFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobRequisitionId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitle_ = s; + break; + } + case 32: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.class, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder.class); + } + + public static final int JOB_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object jobName_; + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + public java.lang.String getJobName() { + java.lang.Object ref = jobName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + public com.google.protobuf.ByteString getJobNameBytes() { + java.lang.Object ref = jobName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_REQUISITION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object jobRequisitionId_; + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + public java.lang.String getJobRequisitionId() { + java.lang.Object ref = jobRequisitionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRequisitionId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + public com.google.protobuf.ByteString getJobRequisitionIdBytes() { + java.lang.Object ref = jobRequisitionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobRequisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_TITLE_FIELD_NUMBER = 3; + private volatile java.lang.Object jobTitle_; + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 4; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, the API excludes all profiles with any
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+   * matching the filters.
+   * 
+ * + * bool negated = 4; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getJobNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobName_); + } + if (!getJobRequisitionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobRequisitionId_); + } + if (!getJobTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobTitle_); + } + if (negated_ != false) { + output.writeBool(4, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getJobNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobName_); + } + if (!getJobRequisitionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobRequisitionId_); + } + if (!getJobTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobTitle_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationJobFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationJobFilter other = + (com.google.cloud.talent.v4beta1.ApplicationJobFilter) obj; + + boolean result = true; + result = result && getJobName().equals(other.getJobName()); + result = result && getJobRequisitionId().equals(other.getJobRequisitionId()); + result = result && getJobTitle().equals(other.getJobTitle()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + JOB_NAME_FIELD_NUMBER; + hash = (53 * hash) + getJobName().hashCode(); + hash = (37 * hash) + JOB_REQUISITION_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobRequisitionId().hashCode(); + hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getJobTitle().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ApplicationJobFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Filter on the job information of Application.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationJobFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationJobFilter) + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.class, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationJobFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + jobName_ = ""; + + jobRequisitionId_ = ""; + + jobTitle_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter build() { + com.google.cloud.talent.v4beta1.ApplicationJobFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationJobFilter result = + new com.google.cloud.talent.v4beta1.ApplicationJobFilter(this); + result.jobName_ = jobName_; + result.jobRequisitionId_ = jobRequisitionId_; + result.jobTitle_ = jobTitle_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationJobFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationJobFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationJobFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()) + return this; + if (!other.getJobName().isEmpty()) { + jobName_ = other.jobName_; + onChanged(); + } + if (!other.getJobRequisitionId().isEmpty()) { + jobRequisitionId_ = other.jobRequisitionId_; + onChanged(); + } + if (!other.getJobTitle().isEmpty()) { + jobTitle_ = other.jobTitle_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ApplicationJobFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationJobFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object jobName_ = ""; + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public java.lang.String getJobName() { + java.lang.Object ref = jobName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public com.google.protobuf.ByteString getJobNameBytes() { + java.lang.Object ref = jobName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public Builder setJobName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public Builder clearJobName() { + + jobName_ = getDefaultInstance().getJobName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public Builder setJobNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobName_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobRequisitionId_ = ""; + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public java.lang.String getJobRequisitionId() { + java.lang.Object ref = jobRequisitionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRequisitionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public com.google.protobuf.ByteString getJobRequisitionIdBytes() { + java.lang.Object ref = jobRequisitionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobRequisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public Builder setJobRequisitionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobRequisitionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public Builder clearJobRequisitionId() { + + jobRequisitionId_ = getDefaultInstance().getJobRequisitionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public Builder setJobRequisitionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobRequisitionId_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobTitle_ = ""; + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public Builder setJobTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public Builder clearJobTitle() { + + jobTitle_ = getDefaultInstance().getJobTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitle_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, the API excludes all profiles with any
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+     * matching the filters.
+     * 
+ * + * bool negated = 4; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, the API excludes all profiles with any
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+     * matching the filters.
+     * 
+ * + * bool negated = 4; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, the API excludes all profiles with any
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+     * matching the filters.
+     * 
+ * + * bool negated = 4; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationJobFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationJobFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationJobFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationJobFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationJobFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationJobFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java new file mode 100644 index 000000000000..c923b7e12bc8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationJobFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationJobFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + java.lang.String getJobName(); + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + com.google.protobuf.ByteString getJobNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + java.lang.String getJobRequisitionId(); + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + com.google.protobuf.ByteString getJobRequisitionIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + java.lang.String getJobTitle(); + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + com.google.protobuf.ByteString getJobTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * If true, the API excludes all profiles with any
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+   * matching the filters.
+   * 
+ * + * bool negated = 4; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java new file mode 100644 index 000000000000..9bdf0518b7aa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java @@ -0,0 +1,722 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on Last Stage of Application.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationLastStageFilter} + */ +public final class ApplicationLastStageFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + ApplicationLastStageFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationLastStageFilter.newBuilder() to construct. + private ApplicationLastStageFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationLastStageFilter() { + lastStage_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationLastStageFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + lastStage_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.class, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder.class); + } + + public static final int LAST_STAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object lastStage_; + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastStage_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * matching the last stage specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getLastStageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lastStage_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getLastStageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lastStage_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationLastStageFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter other = + (com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) obj; + + boolean result = true; + result = result && getLastStage().equals(other.getLastStage()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LAST_STAGE_FIELD_NUMBER; + hash = (53 * hash) + getLastStage().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Filter on Last Stage of Application.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationLastStageFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.class, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + lastStage_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter build() { + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter result = + new com.google.cloud.talent.v4beta1.ApplicationLastStageFilter(this); + result.lastStage_ = lastStage_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationLastStageFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance()) + return this; + if (!other.getLastStage().isEmpty()) { + lastStage_ = other.lastStage_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object lastStage_ = ""; + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastStage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public Builder setLastStage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lastStage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public Builder clearLastStage() { + + lastStage_ = getDefaultInstance().getLastStage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public Builder setLastStageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastStage_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * matching the last stage specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * matching the last stage specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * matching the last stage specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationLastStageFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationLastStageFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationLastStageFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationLastStageFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java new file mode 100644 index 000000000000..5c20e2464c28 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationLastStageFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + java.lang.String getLastStage(); + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + com.google.protobuf.ByteString getLastStageBytes(); + + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * matching the last stage specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java new file mode 100644 index 000000000000..a8cd281335c5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java @@ -0,0 +1,722 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Outcome Reason Filter.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter} + */ +public final class ApplicationOutcomeReasonFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + ApplicationOutcomeReasonFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationOutcomeReasonFilter.newBuilder() to construct. + private ApplicationOutcomeReasonFilter( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationOutcomeReasonFilter() { + outcomeReason_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationOutcomeReasonFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + outcomeReason_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.class, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder.class); + } + + public static final int OUTCOME_REASON_FIELD_NUMBER = 1; + private volatile java.lang.Object outcomeReason_; + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeReason_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * matching the outcome reason specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getOutcomeReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outcomeReason_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getOutcomeReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outcomeReason_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter other = + (com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) obj; + + boolean result = true; + result = result && getOutcomeReason().equals(other.getOutcomeReason()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OUTCOME_REASON_FIELD_NUMBER; + hash = (53 * hash) + getOutcomeReason().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Outcome Reason Filter.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.class, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + outcomeReason_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter build() { + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter result = + new com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter(this); + result.outcomeReason_ = outcomeReason_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter other) { + if (other + == com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()) + return this; + if (!other.getOutcomeReason().isEmpty()) { + outcomeReason_ = other.outcomeReason_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object outcomeReason_ = ""; + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public Builder setOutcomeReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outcomeReason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public Builder clearOutcomeReason() { + + outcomeReason_ = getDefaultInstance().getOutcomeReason(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public Builder setOutcomeReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outcomeReason_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * matching the outcome reason specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * matching the outcome reason specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * matching the outcome reason specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationOutcomeReasonFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationOutcomeReasonFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java new file mode 100644 index 000000000000..8bed994d6efd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationOutcomeReasonFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + java.lang.String getOutcomeReason(); + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + com.google.protobuf.ByteString getOutcomeReasonBytes(); + + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * matching the outcome reason specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java new file mode 100644 index 000000000000..5ba18abb1567 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java @@ -0,0 +1,699 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on status of Application.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationStatusFilter} + */ +public final class ApplicationStatusFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationStatusFilter) + ApplicationStatusFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationStatusFilter.newBuilder() to construct. + private ApplicationStatusFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationStatusFilter() { + applicationStatus_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationStatusFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + applicationStatus_ = rawValue; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.class, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder.class); + } + + public static final int APPLICATION_STATUS_FIELD_NUMBER = 1; + private int applicationStatus_; + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public int getApplicationStatusValue() { + return applicationStatus_; + } + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf( + applicationStatus_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any [JobApplication.status][]
+   * matching the status specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (applicationStatus_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, applicationStatus_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (applicationStatus_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, applicationStatus_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationStatusFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationStatusFilter other = + (com.google.cloud.talent.v4beta1.ApplicationStatusFilter) obj; + + boolean result = true; + result = result && applicationStatus_ == other.applicationStatus_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APPLICATION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + applicationStatus_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Filter on status of Application.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationStatusFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationStatusFilter) + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.class, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationStatusFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + applicationStatus_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter build() { + com.google.cloud.talent.v4beta1.ApplicationStatusFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationStatusFilter result = + new com.google.cloud.talent.v4beta1.ApplicationStatusFilter(this); + result.applicationStatus_ = applicationStatus_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationStatusFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationStatusFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationStatusFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance()) + return this; + if (other.applicationStatus_ != 0) { + setApplicationStatusValue(other.getApplicationStatusValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ApplicationStatusFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationStatusFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int applicationStatus_ = 0; + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public int getApplicationStatusValue() { + return applicationStatus_; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public Builder setApplicationStatusValue(int value) { + applicationStatus_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf( + applicationStatus_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public Builder setApplicationStatus( + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + applicationStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public Builder clearApplicationStatus() { + + applicationStatus_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any [JobApplication.status][]
+     * matching the status specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any [JobApplication.status][]
+     * matching the status specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any [JobApplication.status][]
+     * matching the status specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationStatusFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationStatusFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationStatusFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationStatusFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationStatusFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationStatusFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java new file mode 100644 index 000000000000..4ba49edc271a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationStatusFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationStatusFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + int getApplicationStatusValue(); + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus(); + + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any [JobApplication.status][]
+   * matching the status specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java new file mode 100644 index 000000000000..92cd60c74796 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java @@ -0,0 +1,833 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Batch delete jobs request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.BatchDeleteJobsRequest} + */ +public final class BatchDeleteJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + BatchDeleteJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchDeleteJobsRequest.newBuilder() to construct. + private BatchDeleteJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeleteJobsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchDeleteJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.class, + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest other = + (com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Batch delete jobs request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.BatchDeleteJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.class, + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest build() { + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest buildPartial() { + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest result = + new com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest other) { + if (other == com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + private static final com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest(); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchDeleteJobsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java new file mode 100644 index 000000000000..6a473063f72d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface BatchDeleteJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java new file mode 100644 index 000000000000..cce9e88a2920 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/batch.proto + +package com.google.cloud.talent.v4beta1; + +public final class BatchProto { + private BatchProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/talent/v4beta1/batch.prot" + + "o\022\033google.cloud.talent.v4beta1\032\034google/a" + + "pi/annotations.proto\032%google/cloud/talen" + + "t/v4beta1/job.proto\032\037google/protobuf/tim" + + "estamp.proto\032\027google/rpc/status.protoBx\n" + + "\037com.google.cloud.talent.v4beta1B\nBatchP" + + "rotoP\001ZAgoogle.golang.org/genproto/googl" + + "eapis/cloud/talent/v4beta1;talent\242\002\003CTSb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }, + assigner); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java new file mode 100644 index 000000000000..cc70411de259 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java @@ -0,0 +1,1485 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a license or certification.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Certification} + */ +public final class Certification extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Certification) + CertificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Certification.newBuilder() to construct. + private Certification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Certification() { + displayName_ = ""; + authority_ = ""; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Certification( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (acquireDate_ != null) { + subBuilder = acquireDate_.toBuilder(); + } + acquireDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(acquireDate_); + acquireDate_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (expireDate_ != null) { + subBuilder = expireDate_.toBuilder(); + } + expireDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireDate_); + expireDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + authority_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Certification.class, + com.google.cloud.talent.v4beta1.Certification.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACQUIRE_DATE_FIELD_NUMBER = 2; + private com.google.type.Date acquireDate_; + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + public boolean hasAcquireDate() { + return acquireDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.Date getAcquireDate() { + return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; + } + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.DateOrBuilder getAcquireDateOrBuilder() { + return getAcquireDate(); + } + + public static final int EXPIRE_DATE_FIELD_NUMBER = 3; + private com.google.type.Date expireDate_; + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + public boolean hasExpireDate() { + return expireDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.Date getExpireDate() { + return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; + } + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.DateOrBuilder getExpireDateOrBuilder() { + return getExpireDate(); + } + + public static final int AUTHORITY_FIELD_NUMBER = 4; + private volatile java.lang.Object authority_; + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + public java.lang.String getAuthority() { + java.lang.Object ref = authority_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authority_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + public com.google.protobuf.ByteString getAuthorityBytes() { + java.lang.Object ref = authority_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authority_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (acquireDate_ != null) { + output.writeMessage(2, getAcquireDate()); + } + if (expireDate_ != null) { + output.writeMessage(3, getExpireDate()); + } + if (!getAuthorityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authority_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (acquireDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAcquireDate()); + } + if (expireDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireDate()); + } + if (!getAuthorityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authority_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Certification)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Certification other = + (com.google.cloud.talent.v4beta1.Certification) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && (hasAcquireDate() == other.hasAcquireDate()); + if (hasAcquireDate()) { + result = result && getAcquireDate().equals(other.getAcquireDate()); + } + result = result && (hasExpireDate() == other.hasExpireDate()); + if (hasExpireDate()) { + result = result && getExpireDate().equals(other.getExpireDate()); + } + result = result && getAuthority().equals(other.getAuthority()); + result = result && getDescription().equals(other.getDescription()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasAcquireDate()) { + hash = (37 * hash) + ACQUIRE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getAcquireDate().hashCode(); + } + if (hasExpireDate()) { + hash = (37 * hash) + EXPIRE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getExpireDate().hashCode(); + } + hash = (37 * hash) + AUTHORITY_FIELD_NUMBER; + hash = (53 * hash) + getAuthority().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Certification parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Certification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a license or certification.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Certification} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Certification) + com.google.cloud.talent.v4beta1.CertificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Certification.class, + com.google.cloud.talent.v4beta1.Certification.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Certification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + if (acquireDateBuilder_ == null) { + acquireDate_ = null; + } else { + acquireDate_ = null; + acquireDateBuilder_ = null; + } + if (expireDateBuilder_ == null) { + expireDate_ = null; + } else { + expireDate_ = null; + expireDateBuilder_ = null; + } + authority_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Certification.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification build() { + com.google.cloud.talent.v4beta1.Certification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification buildPartial() { + com.google.cloud.talent.v4beta1.Certification result = + new com.google.cloud.talent.v4beta1.Certification(this); + result.displayName_ = displayName_; + if (acquireDateBuilder_ == null) { + result.acquireDate_ = acquireDate_; + } else { + result.acquireDate_ = acquireDateBuilder_.build(); + } + if (expireDateBuilder_ == null) { + result.expireDate_ = expireDate_; + } else { + result.expireDate_ = expireDateBuilder_.build(); + } + result.authority_ = authority_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Certification) { + return mergeFrom((com.google.cloud.talent.v4beta1.Certification) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Certification other) { + if (other == com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasAcquireDate()) { + mergeAcquireDate(other.getAcquireDate()); + } + if (other.hasExpireDate()) { + mergeExpireDate(other.getExpireDate()); + } + if (!other.getAuthority().isEmpty()) { + authority_ = other.authority_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Certification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Certification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.type.Date acquireDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + acquireDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public boolean hasAcquireDate() { + return acquireDateBuilder_ != null || acquireDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.Date getAcquireDate() { + if (acquireDateBuilder_ == null) { + return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; + } else { + return acquireDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder setAcquireDate(com.google.type.Date value) { + if (acquireDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + acquireDate_ = value; + onChanged(); + } else { + acquireDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder setAcquireDate(com.google.type.Date.Builder builderForValue) { + if (acquireDateBuilder_ == null) { + acquireDate_ = builderForValue.build(); + onChanged(); + } else { + acquireDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder mergeAcquireDate(com.google.type.Date value) { + if (acquireDateBuilder_ == null) { + if (acquireDate_ != null) { + acquireDate_ = + com.google.type.Date.newBuilder(acquireDate_).mergeFrom(value).buildPartial(); + } else { + acquireDate_ = value; + } + onChanged(); + } else { + acquireDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder clearAcquireDate() { + if (acquireDateBuilder_ == null) { + acquireDate_ = null; + onChanged(); + } else { + acquireDate_ = null; + acquireDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.Date.Builder getAcquireDateBuilder() { + + onChanged(); + return getAcquireDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.DateOrBuilder getAcquireDateOrBuilder() { + if (acquireDateBuilder_ != null) { + return acquireDateBuilder_.getMessageOrBuilder(); + } else { + return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getAcquireDateFieldBuilder() { + if (acquireDateBuilder_ == null) { + acquireDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getAcquireDate(), getParentForChildren(), isClean()); + acquireDate_ = null; + } + return acquireDateBuilder_; + } + + private com.google.type.Date expireDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + expireDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public boolean hasExpireDate() { + return expireDateBuilder_ != null || expireDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.Date getExpireDate() { + if (expireDateBuilder_ == null) { + return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; + } else { + return expireDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder setExpireDate(com.google.type.Date value) { + if (expireDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireDate_ = value; + onChanged(); + } else { + expireDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder setExpireDate(com.google.type.Date.Builder builderForValue) { + if (expireDateBuilder_ == null) { + expireDate_ = builderForValue.build(); + onChanged(); + } else { + expireDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder mergeExpireDate(com.google.type.Date value) { + if (expireDateBuilder_ == null) { + if (expireDate_ != null) { + expireDate_ = + com.google.type.Date.newBuilder(expireDate_).mergeFrom(value).buildPartial(); + } else { + expireDate_ = value; + } + onChanged(); + } else { + expireDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder clearExpireDate() { + if (expireDateBuilder_ == null) { + expireDate_ = null; + onChanged(); + } else { + expireDate_ = null; + expireDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.Date.Builder getExpireDateBuilder() { + + onChanged(); + return getExpireDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.DateOrBuilder getExpireDateOrBuilder() { + if (expireDateBuilder_ != null) { + return expireDateBuilder_.getMessageOrBuilder(); + } else { + return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getExpireDateFieldBuilder() { + if (expireDateBuilder_ == null) { + expireDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getExpireDate(), getParentForChildren(), isClean()); + expireDate_ = null; + } + return expireDateBuilder_; + } + + private java.lang.Object authority_ = ""; + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public java.lang.String getAuthority() { + java.lang.Object ref = authority_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authority_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public com.google.protobuf.ByteString getAuthorityBytes() { + java.lang.Object ref = authority_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authority_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public Builder setAuthority(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + authority_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public Builder clearAuthority() { + + authority_ = getDefaultInstance().getAuthority(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public Builder setAuthorityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authority_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Certification) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Certification) + private static final com.google.cloud.talent.v4beta1.Certification DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Certification(); + } + + public static com.google.cloud.talent.v4beta1.Certification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Certification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Certification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java new file mode 100644 index 000000000000..fedbadb23e35 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface CertificationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Certification) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + boolean hasAcquireDate(); + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + com.google.type.Date getAcquireDate(); + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + com.google.type.DateOrBuilder getAcquireDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + boolean hasExpireDate(); + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + com.google.type.Date getExpireDate(); + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + com.google.type.DateOrBuilder getExpireDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + java.lang.String getAuthority(); + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + com.google.protobuf.ByteString getAuthorityBytes(); + + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java new file mode 100644 index 000000000000..a24c6d2e2d73 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java @@ -0,0 +1,2110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An event issued when an end user interacts with the application that
+ * implements Cloud Talent Solution. Providing this information improves the
+ * quality of search and recommendation for the API clients, enabling the
+ * service to perform optimally. The number of events sent must be consistent
+ * with other calls, such as job searches, issued to the service by the client.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ClientEvent} + */ +public final class ClientEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ClientEvent) + ClientEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientEvent.newBuilder() to construct. + private ClientEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientEvent() { + requestId_ = ""; + eventId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ClientEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + eventId_ = s; + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.JobEvent.Builder subBuilder = null; + if (eventCase_ == 5) { + subBuilder = ((com.google.cloud.talent.v4beta1.JobEvent) event_).toBuilder(); + } + event_ = + input.readMessage( + com.google.cloud.talent.v4beta1.JobEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.JobEvent) event_); + event_ = subBuilder.buildPartial(); + } + eventCase_ = 5; + break; + } + case 50: + { + com.google.cloud.talent.v4beta1.ProfileEvent.Builder subBuilder = null; + if (eventCase_ == 6) { + subBuilder = ((com.google.cloud.talent.v4beta1.ProfileEvent) event_).toBuilder(); + } + event_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ProfileEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.ProfileEvent) event_); + event_ = subBuilder.buildPartial(); + } + eventCase_ = 6; + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + extraInfo_ = + com.google.protobuf.MapField.newMapField( + ExtraInfoDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000020; + } + com.google.protobuf.MapEntry extraInfo__ = + input.readMessage( + ExtraInfoDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + extraInfo_.getMutableMap().put(extraInfo__.getKey(), extraInfo__.getValue()); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetExtraInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ClientEvent.class, + com.google.cloud.talent.v4beta1.ClientEvent.Builder.class); + } + + private int bitField0_; + private int eventCase_ = 0; + private java.lang.Object event_; + + public enum EventCase implements com.google.protobuf.Internal.EnumLite { + JOB_EVENT(5), + PROFILE_EVENT(6), + EVENT_NOT_SET(0); + private final int value; + + private EventCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static EventCase valueOf(int value) { + return forNumber(value); + } + + public static EventCase forNumber(int value) { + switch (value) { + case 5: + return JOB_EVENT; + case 6: + return PROFILE_EVENT; + case 0: + return EVENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object eventId_; + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int JOB_EVENT_FIELD_NUMBER = 5; + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public boolean hasJobEvent() { + return eventCase_ == 5; + } + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEvent getJobEvent() { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder() { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + + public static final int PROFILE_EVENT_FIELD_NUMBER = 6; + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public boolean hasProfileEvent() { + return eventCase_ == 6; + } + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent() { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder() { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + + public static final int EXTRA_INFO_FIELD_NUMBER = 7; + + private static final class ExtraInfoDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField extraInfo_; + + private com.google.protobuf.MapField internalGetExtraInfo() { + if (extraInfo_ == null) { + return com.google.protobuf.MapField.emptyMapField(ExtraInfoDefaultEntryHolder.defaultEntry); + } + return extraInfo_; + } + + public int getExtraInfoCount() { + return internalGetExtraInfo().getMap().size(); + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public boolean containsExtraInfo(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetExtraInfo().getMap().containsKey(key); + } + /** Use {@link #getExtraInfoMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getExtraInfo() { + return getExtraInfoMap(); + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public java.util.Map getExtraInfoMap() { + return internalGetExtraInfo().getMap(); + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (!getEventIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventId_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (eventCase_ == 5) { + output.writeMessage(5, (com.google.cloud.talent.v4beta1.JobEvent) event_); + } + if (eventCase_ == 6) { + output.writeMessage(6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetExtraInfo(), ExtraInfoDefaultEntryHolder.defaultEntry, 7); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (!getEventIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventId_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (eventCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.talent.v4beta1.JobEvent) event_); + } + if (eventCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_); + } + for (java.util.Map.Entry entry : + internalGetExtraInfo().getMap().entrySet()) { + com.google.protobuf.MapEntry extraInfo__ = + ExtraInfoDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, extraInfo__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ClientEvent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ClientEvent other = + (com.google.cloud.talent.v4beta1.ClientEvent) obj; + + boolean result = true; + result = result && getRequestId().equals(other.getRequestId()); + result = result && getEventId().equals(other.getEventId()); + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime().equals(other.getCreateTime()); + } + result = result && internalGetExtraInfo().equals(other.internalGetExtraInfo()); + result = result && getEventCase().equals(other.getEventCase()); + if (!result) return false; + switch (eventCase_) { + case 5: + result = result && getJobEvent().equals(other.getJobEvent()); + break; + case 6: + result = result && getProfileEvent().equals(other.getProfileEvent()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + EVENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (!internalGetExtraInfo().getMap().isEmpty()) { + hash = (37 * hash) + EXTRA_INFO_FIELD_NUMBER; + hash = (53 * hash) + internalGetExtraInfo().hashCode(); + } + switch (eventCase_) { + case 5: + hash = (37 * hash) + JOB_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getJobEvent().hashCode(); + break; + case 6: + hash = (37 * hash) + PROFILE_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getProfileEvent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ClientEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An event issued when an end user interacts with the application that
+   * implements Cloud Talent Solution. Providing this information improves the
+   * quality of search and recommendation for the API clients, enabling the
+   * service to perform optimally. The number of events sent must be consistent
+   * with other calls, such as job searches, issued to the service by the client.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ClientEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ClientEvent) + com.google.cloud.talent.v4beta1.ClientEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetExtraInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 7: + return internalGetMutableExtraInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ClientEvent.class, + com.google.cloud.talent.v4beta1.ClientEvent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ClientEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + requestId_ = ""; + + eventId_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + internalGetMutableExtraInfo().clear(); + eventCase_ = 0; + event_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent build() { + com.google.cloud.talent.v4beta1.ClientEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent buildPartial() { + com.google.cloud.talent.v4beta1.ClientEvent result = + new com.google.cloud.talent.v4beta1.ClientEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.requestId_ = requestId_; + result.eventId_ = eventId_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (eventCase_ == 5) { + if (jobEventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = jobEventBuilder_.build(); + } + } + if (eventCase_ == 6) { + if (profileEventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = profileEventBuilder_.build(); + } + } + result.extraInfo_ = internalGetExtraInfo(); + result.extraInfo_.makeImmutable(); + result.bitField0_ = to_bitField0_; + result.eventCase_ = eventCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ClientEvent) { + return mergeFrom((com.google.cloud.talent.v4beta1.ClientEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ClientEvent other) { + if (other == com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (!other.getEventId().isEmpty()) { + eventId_ = other.eventId_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + internalGetMutableExtraInfo().mergeFrom(other.internalGetExtraInfo()); + switch (other.getEventCase()) { + case JOB_EVENT: + { + mergeJobEvent(other.getJobEvent()); + break; + } + case PROFILE_EVENT: + { + mergeProfileEvent(other.getProfileEvent()); + break; + } + case EVENT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ClientEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ClientEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int eventCase_ = 0; + private java.lang.Object event_; + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); + } + + public Builder clearEvent() { + eventCase_ = 0; + event_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private java.lang.Object eventId_ = ""; + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public Builder setEventId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eventId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public Builder clearEventId() { + + eventId_ = getDefaultInstance().getEventId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public Builder setEventIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eventId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobEvent, + com.google.cloud.talent.v4beta1.JobEvent.Builder, + com.google.cloud.talent.v4beta1.JobEventOrBuilder> + jobEventBuilder_; + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public boolean hasJobEvent() { + return eventCase_ == 5; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEvent getJobEvent() { + if (jobEventBuilder_ == null) { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } else { + if (eventCase_ == 5) { + return jobEventBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder setJobEvent(com.google.cloud.talent.v4beta1.JobEvent value) { + if (jobEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + jobEventBuilder_.setMessage(value); + } + eventCase_ = 5; + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder setJobEvent(com.google.cloud.talent.v4beta1.JobEvent.Builder builderForValue) { + if (jobEventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + jobEventBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 5; + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder mergeJobEvent(com.google.cloud.talent.v4beta1.JobEvent value) { + if (jobEventBuilder_ == null) { + if (eventCase_ == 5 + && event_ != com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance()) { + event_ = + com.google.cloud.talent.v4beta1.JobEvent.newBuilder( + (com.google.cloud.talent.v4beta1.JobEvent) event_) + .mergeFrom(value) + .buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 5) { + jobEventBuilder_.mergeFrom(value); + } + jobEventBuilder_.setMessage(value); + } + eventCase_ = 5; + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder clearJobEvent() { + if (jobEventBuilder_ == null) { + if (eventCase_ == 5) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 5) { + eventCase_ = 0; + event_ = null; + } + jobEventBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEvent.Builder getJobEventBuilder() { + return getJobEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder() { + if ((eventCase_ == 5) && (jobEventBuilder_ != null)) { + return jobEventBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobEvent, + com.google.cloud.talent.v4beta1.JobEvent.Builder, + com.google.cloud.talent.v4beta1.JobEventOrBuilder> + getJobEventFieldBuilder() { + if (jobEventBuilder_ == null) { + if (!(eventCase_ == 5)) { + event_ = com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + jobEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobEvent, + com.google.cloud.talent.v4beta1.JobEvent.Builder, + com.google.cloud.talent.v4beta1.JobEventOrBuilder>( + (com.google.cloud.talent.v4beta1.JobEvent) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 5; + onChanged(); + ; + return jobEventBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileEvent, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder, + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder> + profileEventBuilder_; + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public boolean hasProfileEvent() { + return eventCase_ == 6; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent() { + if (profileEventBuilder_ == null) { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } else { + if (eventCase_ == 6) { + return profileEventBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder setProfileEvent(com.google.cloud.talent.v4beta1.ProfileEvent value) { + if (profileEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + profileEventBuilder_.setMessage(value); + } + eventCase_ = 6; + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder setProfileEvent( + com.google.cloud.talent.v4beta1.ProfileEvent.Builder builderForValue) { + if (profileEventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + profileEventBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 6; + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder mergeProfileEvent(com.google.cloud.talent.v4beta1.ProfileEvent value) { + if (profileEventBuilder_ == null) { + if (eventCase_ == 6 + && event_ != com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance()) { + event_ = + com.google.cloud.talent.v4beta1.ProfileEvent.newBuilder( + (com.google.cloud.talent.v4beta1.ProfileEvent) event_) + .mergeFrom(value) + .buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 6) { + profileEventBuilder_.mergeFrom(value); + } + profileEventBuilder_.setMessage(value); + } + eventCase_ = 6; + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder clearProfileEvent() { + if (profileEventBuilder_ == null) { + if (eventCase_ == 6) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 6) { + eventCase_ = 0; + event_ = null; + } + profileEventBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent.Builder getProfileEventBuilder() { + return getProfileEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder() { + if ((eventCase_ == 6) && (profileEventBuilder_ != null)) { + return profileEventBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileEvent, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder, + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder> + getProfileEventFieldBuilder() { + if (profileEventBuilder_ == null) { + if (!(eventCase_ == 6)) { + event_ = com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + profileEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileEvent, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder, + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder>( + (com.google.cloud.talent.v4beta1.ProfileEvent) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 6; + onChanged(); + ; + return profileEventBuilder_; + } + + private com.google.protobuf.MapField extraInfo_; + + private com.google.protobuf.MapField + internalGetExtraInfo() { + if (extraInfo_ == null) { + return com.google.protobuf.MapField.emptyMapField(ExtraInfoDefaultEntryHolder.defaultEntry); + } + return extraInfo_; + } + + private com.google.protobuf.MapField + internalGetMutableExtraInfo() { + onChanged(); + ; + if (extraInfo_ == null) { + extraInfo_ = + com.google.protobuf.MapField.newMapField(ExtraInfoDefaultEntryHolder.defaultEntry); + } + if (!extraInfo_.isMutable()) { + extraInfo_ = extraInfo_.copy(); + } + return extraInfo_; + } + + public int getExtraInfoCount() { + return internalGetExtraInfo().getMap().size(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public boolean containsExtraInfo(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetExtraInfo().getMap().containsKey(key); + } + /** Use {@link #getExtraInfoMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getExtraInfo() { + return getExtraInfoMap(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public java.util.Map getExtraInfoMap() { + return internalGetExtraInfo().getMap(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearExtraInfo() { + internalGetMutableExtraInfo().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public Builder removeExtraInfo(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableExtraInfo().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableExtraInfo() { + return internalGetMutableExtraInfo().getMutableMap(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public Builder putExtraInfo(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableExtraInfo().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public Builder putAllExtraInfo(java.util.Map values) { + internalGetMutableExtraInfo().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ClientEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ClientEvent) + private static final com.google.cloud.talent.v4beta1.ClientEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ClientEvent(); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java new file mode 100644 index 000000000000..281e3bd905e1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java @@ -0,0 +1,241 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public interface ClientEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ClientEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + java.lang.String getEventId(); + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + com.google.protobuf.ByteString getEventIdBytes(); + + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + boolean hasJobEvent(); + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + com.google.cloud.talent.v4beta1.JobEvent getJobEvent(); + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder(); + + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + boolean hasProfileEvent(); + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent(); + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + int getExtraInfoCount(); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + boolean containsExtraInfo(java.lang.String key); + /** Use {@link #getExtraInfoMap()} instead. */ + @java.lang.Deprecated + java.util.Map getExtraInfo(); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + java.util.Map getExtraInfoMap(); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + java.lang.String getExtraInfoOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + java.lang.String getExtraInfoOrThrow(java.lang.String key); + + public com.google.cloud.talent.v4beta1.ClientEvent.EventCase getEventCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java new file mode 100644 index 000000000000..f97ab435d1be --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java @@ -0,0 +1,309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public final class CommonProto { + private CommonProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Location_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/talent/v4beta1/common.pro" + + "to\022\033google.cloud.talent.v4beta1\032\034google/" + + "api/annotations.proto\032\037google/protobuf/t" + + "imestamp.proto\032\036google/protobuf/wrappers" + + ".proto\032\030google/type/latlng.proto\032\027google" + + "/type/money.proto\032 google/type/postal_ad" + + "dress.proto\"n\n\016TimestampRange\022.\n\nstart_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\"\267\003\n\010Location\022I\n\rlocation_type\030\001 \001(\0162" + + "2.google.cloud.talent.v4beta1.Location.L" + + "ocationType\0222\n\016postal_address\030\002 \001(\0132\032.go" + + "ogle.type.PostalAddress\022$\n\007lat_lng\030\003 \001(\013" + + "2\023.google.type.LatLng\022\024\n\014radius_miles\030\004 " + + "\001(\001\"\357\001\n\014LocationType\022\035\n\031LOCATION_TYPE_UN" + + "SPECIFIED\020\000\022\013\n\007COUNTRY\020\001\022\027\n\023ADMINISTRATI" + + "VE_AREA\020\002\022\033\n\027SUB_ADMINISTRATIVE_AREA\020\003\022\014" + + "\n\010LOCALITY\020\004\022\017\n\013POSTAL_CODE\020\005\022\020\n\014SUB_LOC" + + "ALITY\020\006\022\022\n\016SUB_LOCALITY_1\020\007\022\022\n\016SUB_LOCAL" + + "ITY_2\020\010\022\020\n\014NEIGHBORHOOD\020\t\022\022\n\016STREET_ADDR" + + "ESS\020\n\"\237\001\n\017RequestMetadata\022\016\n\006domain\030\001 \001(" + + "\t\022\022\n\nsession_id\030\002 \001(\t\022\017\n\007user_id\030\003 \001(\t\022\031" + + "\n\021allow_missing_ids\030\004 \001(\010\022<\n\013device_info" + + "\030\005 \001(\0132\'.google.cloud.talent.v4beta1.Dev" + + "iceInfo\"&\n\020ResponseMetadata\022\022\n\nrequest_i" + + "d\030\001 \001(\t\"\317\001\n\nDeviceInfo\022G\n\013device_type\030\001 " + + "\001(\01622.google.cloud.talent.v4beta1.Device" + + "Info.DeviceType\022\n\n\002id\030\002 \001(\t\"l\n\nDeviceTyp" + + "e\022\033\n\027DEVICE_TYPE_UNSPECIFIED\020\000\022\007\n\003WEB\020\001\022" + + "\016\n\nMOBILE_WEB\020\002\022\013\n\007ANDROID\020\003\022\007\n\003IOS\020\004\022\007\n" + + "\003BOT\020\005\022\t\n\005OTHER\020\006\"Q\n\017CustomAttribute\022\025\n\r" + + "string_values\030\001 \003(\t\022\023\n\013long_values\030\002 \003(\003" + + "\022\022\n\nfilterable\030\003 \001(\010\"W\n\022SpellingCorrecti" + + "on\022\021\n\tcorrected\030\001 \001(\010\022\026\n\016corrected_text\030" + + "\002 \001(\t\022\026\n\016corrected_html\030\003 \001(\t\"\234\t\n\020Compen" + + "sationInfo\022P\n\007entries\030\001 \003(\0132?.google.clo" + + "ud.talent.v4beta1.CompensationInfo.Compe" + + "nsationEntry\022k\n\"annualized_base_compensa" + + "tion_range\030\002 \001(\0132?.google.cloud.talent.v" + + "4beta1.CompensationInfo.CompensationRang" + + "e\022l\n#annualized_total_compensation_range" + + "\030\003 \001(\0132?.google.cloud.talent.v4beta1.Com" + + "pensationInfo.CompensationRange\032\222\003\n\021Comp" + + "ensationEntry\022L\n\004type\030\001 \001(\0162>.google.clo" + + "ud.talent.v4beta1.CompensationInfo.Compe" + + "nsationType\022L\n\004unit\030\002 \001(\0162>.google.cloud" + + ".talent.v4beta1.CompensationInfo.Compens" + + "ationUnit\022$\n\006amount\030\003 \001(\0132\022.google.type." + + "MoneyH\000\022P\n\005range\030\004 \001(\0132?.google.cloud.ta" + + "lent.v4beta1.CompensationInfo.Compensati" + + "onRangeH\000\022\023\n\013description\030\005 \001(\t\022=\n\027expect" + + "ed_units_per_year\030\006 \001(\0132\034.google.protobu" + + "f.DoubleValueB\025\n\023compensation_amount\032o\n\021" + + "CompensationRange\022,\n\020max_compensation\030\002 " + + "\001(\0132\022.google.type.Money\022,\n\020min_compensat" + + "ion\030\001 \001(\0132\022.google.type.Money\"\265\001\n\020Compen" + + "sationType\022!\n\035COMPENSATION_TYPE_UNSPECIF" + + "IED\020\000\022\010\n\004BASE\020\001\022\t\n\005BONUS\020\002\022\021\n\rSIGNING_BO" + + "NUS\020\003\022\n\n\006EQUITY\020\004\022\022\n\016PROFIT_SHARING\020\005\022\017\n" + + "\013COMMISSIONS\020\006\022\010\n\004TIPS\020\007\022\033\n\027OTHER_COMPEN" + + "SATION_TYPE\020\010\"\234\001\n\020CompensationUnit\022!\n\035CO" + + "MPENSATION_UNIT_UNSPECIFIED\020\000\022\n\n\006HOURLY\020" + + "\001\022\t\n\005DAILY\020\002\022\n\n\006WEEKLY\020\003\022\013\n\007MONTHLY\020\004\022\n\n" + + "\006YEARLY\020\005\022\014\n\010ONE_TIME\020\006\022\033\n\027OTHER_COMPENS" + + "ATION_UNIT\020\007*y\n\013CompanySize\022\034\n\030COMPANY_S" + + "IZE_UNSPECIFIED\020\000\022\010\n\004MINI\020\001\022\t\n\005SMALL\020\002\022\013" + + "\n\007SMEDIUM\020\003\022\n\n\006MEDIUM\020\004\022\007\n\003BIG\020\005\022\n\n\006BIGG" + + "ER\020\006\022\t\n\005GIANT\020\007*\342\001\n\nJobBenefit\022\033\n\027JOB_BE" + + "NEFIT_UNSPECIFIED\020\000\022\016\n\nCHILD_CARE\020\001\022\n\n\006D" + + "ENTAL\020\002\022\024\n\020DOMESTIC_PARTNER\020\003\022\022\n\016FLEXIBL" + + "E_HOURS\020\004\022\013\n\007MEDICAL\020\005\022\022\n\016LIFE_INSURANCE" + + "\020\006\022\022\n\016PARENTAL_LEAVE\020\007\022\023\n\017RETIREMENT_PLA" + + "N\020\010\022\r\n\tSICK_DAYS\020\t\022\014\n\010VACATION\020\n\022\n\n\006VISI" + + "ON\020\013*\216\002\n\nDegreeType\022\033\n\027DEGREE_TYPE_UNSPE" + + "CIFIED\020\000\022\025\n\021PRIMARY_EDUCATION\020\001\022\035\n\031LOWER" + + "_SECONDARY_EDUCATION\020\002\022\035\n\031UPPER_SECONDAR" + + "Y_EDUCATION\020\003\022\034\n\030ADULT_REMEDIAL_EDUCATIO" + + "N\020\004\022\034\n\030ASSOCIATES_OR_EQUIVALENT\020\005\022\033\n\027BAC" + + "HELORS_OR_EQUIVALENT\020\006\022\031\n\025MASTERS_OR_EQU" + + "IVALENT\020\007\022\032\n\026DOCTORAL_OR_EQUIVALENT\020\010*\334\001" + + "\n\016EmploymentType\022\037\n\033EMPLOYMENT_TYPE_UNSP" + + "ECIFIED\020\000\022\r\n\tFULL_TIME\020\001\022\r\n\tPART_TIME\020\002\022" + + "\016\n\nCONTRACTOR\020\003\022\024\n\020CONTRACT_TO_HIRE\020\004\022\r\n" + + "\tTEMPORARY\020\005\022\n\n\006INTERN\020\006\022\r\n\tVOLUNTEER\020\007\022" + + "\014\n\010PER_DIEM\020\010\022\022\n\016FLY_IN_FLY_OUT\020\t\022\031\n\025OTH" + + "ER_EMPLOYMENT_TYPE\020\n*q\n\010JobLevel\022\031\n\025JOB_" + + "LEVEL_UNSPECIFIED\020\000\022\017\n\013ENTRY_LEVEL\020\001\022\017\n\013" + + "EXPERIENCED\020\002\022\013\n\007MANAGER\020\003\022\014\n\010DIRECTOR\020\004" + + "\022\r\n\tEXECUTIVE\020\005*\272\006\n\013JobCategory\022\034\n\030JOB_C" + + "ATEGORY_UNSPECIFIED\020\000\022\032\n\026ACCOUNTING_AND_" + + "FINANCE\020\001\022\035\n\031ADMINISTRATIVE_AND_OFFICE\020\002" + + "\022\035\n\031ADVERTISING_AND_MARKETING\020\003\022\017\n\013ANIMA" + + "L_CARE\020\004\022\032\n\026ART_FASHION_AND_DESIGN\020\005\022\027\n\023" + + "BUSINESS_OPERATIONS\020\006\022\033\n\027CLEANING_AND_FA" + + "CILITIES\020\007\022\023\n\017COMPUTER_AND_IT\020\010\022\020\n\014CONST" + + "RUCTION\020\t\022\024\n\020CUSTOMER_SERVICE\020\n\022\r\n\tEDUCA" + + "TION\020\013\022\034\n\030ENTERTAINMENT_AND_TRAVEL\020\014\022\030\n\024" + + "FARMING_AND_OUTDOORS\020\r\022\016\n\nHEALTHCARE\020\016\022\023" + + "\n\017HUMAN_RESOURCES\020\017\022\'\n#INSTALLATION_MAIN" + + "TENANCE_AND_REPAIR\020\020\022\t\n\005LEGAL\020\021\022\016\n\nMANAG" + + "EMENT\020\022\022\037\n\033MANUFACTURING_AND_WAREHOUSE\020\023" + + "\022$\n MEDIA_COMMUNICATIONS_AND_WRITING\020\024\022\026" + + "\n\022OIL_GAS_AND_MINING\020\025\022\036\n\032PERSONAL_CARE_" + + "AND_SERVICES\020\026\022\027\n\023PROTECTIVE_SERVICES\020\027\022" + + "\017\n\013REAL_ESTATE\020\030\022\036\n\032RESTAURANT_AND_HOSPI" + + "TALITY\020\031\022\024\n\020SALES_AND_RETAIL\020\032\022\033\n\027SCIENC" + + "E_AND_ENGINEERING\020\033\022\"\n\036SOCIAL_SERVICES_A" + + "ND_NON_PROFIT\020\034\022!\n\035SPORTS_FITNESS_AND_RE" + + "CREATION\020\035\022 \n\034TRANSPORTATION_AND_LOGISTI" + + "CS\020\036*e\n\rPostingRegion\022\036\n\032POSTING_REGION_" + + "UNSPECIFIED\020\000\022\027\n\023ADMINISTRATIVE_AREA\020\001\022\n" + + "\n\006NATION\020\002\022\017\n\013TELECOMMUTE\020\003*j\n\nVisibilit" + + "y\022\032\n\026VISIBILITY_UNSPECIFIED\020\000\022\020\n\014ACCOUNT" + + "_ONLY\020\001\022\026\n\022SHARED_WITH_GOOGLE\020\002\022\026\n\022SHARE" + + "D_WITH_PUBLIC\020\003*Z\n\020ContactInfoUsage\022\"\n\036C" + + "ONTACT_INFO_USAGE_UNSPECIFIED\020\000\022\014\n\010PERSO" + + "NAL\020\001\022\010\n\004WORK\020\002\022\n\n\006SCHOOL\020\003*q\n\020HtmlSanit" + + "ization\022!\n\035HTML_SANITIZATION_UNSPECIFIED" + + "\020\000\022\036\n\032HTML_SANITIZATION_DISABLED\020\001\022\032\n\026SI" + + "MPLE_FORMATTING_ONLY\020\002*{\n\rCommuteMethod\022" + + "\036\n\032COMMUTE_METHOD_UNSPECIFIED\020\000\022\013\n\007DRIVI" + + "NG\020\001\022\013\n\007TRANSIT\020\002\022\013\n\007WALKING\020\003\022\013\n\007CYCLIN" + + "G\020\004\022\026\n\022TRANSIT_ACCESSIBLE\020\005By\n\037com.googl" + + "e.cloud.talent.v4beta1B\013CommonProtoP\001ZAg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/talent/v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + com.google.type.MoneyProto.getDescriptor(), + com.google.type.PostalAddressProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); + internal_static_google_cloud_talent_v4beta1_Location_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Location_descriptor, + new java.lang.String[] { + "LocationType", "PostalAddress", "LatLng", "RadiusMiles", + }); + internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor, + new java.lang.String[] { + "Domain", "SessionId", "UserId", "AllowMissingIds", "DeviceInfo", + }); + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor, + new java.lang.String[] { + "RequestId", + }); + internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor, + new java.lang.String[] { + "DeviceType", "Id", + }); + internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor, + new java.lang.String[] { + "StringValues", "LongValues", "Filterable", + }); + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor, + new java.lang.String[] { + "Corrected", "CorrectedText", "CorrectedHtml", + }); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor, + new java.lang.String[] { + "Entries", "AnnualizedBaseCompensationRange", "AnnualizedTotalCompensationRange", + }); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor, + new java.lang.String[] { + "Type", + "Unit", + "Amount", + "Range", + "Description", + "ExpectedUnitsPerYear", + "CompensationAmount", + }); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor = + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor, + new java.lang.String[] { + "MaxCompensation", "MinCompensation", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + com.google.type.MoneyProto.getDescriptor(); + com.google.type.PostalAddressProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java new file mode 100644 index 000000000000..56e6e37655e2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java @@ -0,0 +1,1948 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Parameters needed for commute search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CommuteFilter} + */ +public final class CommuteFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CommuteFilter) + CommuteFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommuteFilter.newBuilder() to construct. + private CommuteFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommuteFilter() { + commuteMethod_ = 0; + allowImpreciseAddresses_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CommuteFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + commuteMethod_ = rawValue; + break; + } + case 18: + { + com.google.type.LatLng.Builder subBuilder = null; + if (startCoordinates_ != null) { + subBuilder = startCoordinates_.toBuilder(); + } + startCoordinates_ = + input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startCoordinates_); + startCoordinates_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (travelDuration_ != null) { + subBuilder = travelDuration_.toBuilder(); + } + travelDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(travelDuration_); + travelDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + allowImpreciseAddresses_ = input.readBool(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + trafficOptionCase_ = 5; + trafficOption_ = rawValue; + break; + } + case 50: + { + com.google.type.TimeOfDay.Builder subBuilder = null; + if (trafficOptionCase_ == 6) { + subBuilder = ((com.google.type.TimeOfDay) trafficOption_).toBuilder(); + } + trafficOption_ = + input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.TimeOfDay) trafficOption_); + trafficOption_ = subBuilder.buildPartial(); + } + trafficOptionCase_ = 6; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CommuteFilter.class, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder.class); + } + + /** + * + * + *
+   * The traffic density to use when calculating commute time.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic} + */ + public enum RoadTraffic implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Road traffic situation isn't specified.
+     * 
+ * + * ROAD_TRAFFIC_UNSPECIFIED = 0; + */ + ROAD_TRAFFIC_UNSPECIFIED(0), + /** + * + * + *
+     * Optimal commute time without considering any traffic impact.
+     * 
+ * + * TRAFFIC_FREE = 1; + */ + TRAFFIC_FREE(1), + /** + * + * + *
+     * Commute time calculation takes in account the peak traffic impact.
+     * 
+ * + * BUSY_HOUR = 2; + */ + BUSY_HOUR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Road traffic situation isn't specified.
+     * 
+ * + * ROAD_TRAFFIC_UNSPECIFIED = 0; + */ + public static final int ROAD_TRAFFIC_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Optimal commute time without considering any traffic impact.
+     * 
+ * + * TRAFFIC_FREE = 1; + */ + public static final int TRAFFIC_FREE_VALUE = 1; + /** + * + * + *
+     * Commute time calculation takes in account the peak traffic impact.
+     * 
+ * + * BUSY_HOUR = 2; + */ + public static final int BUSY_HOUR_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static RoadTraffic valueOf(int value) { + return forNumber(value); + } + + public static RoadTraffic forNumber(int value) { + switch (value) { + case 0: + return ROAD_TRAFFIC_UNSPECIFIED; + case 1: + return TRAFFIC_FREE; + case 2: + return BUSY_HOUR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RoadTraffic findValueByNumber(int number) { + return RoadTraffic.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommuteFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final RoadTraffic[] VALUES = values(); + + public static RoadTraffic valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RoadTraffic(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic) + } + + private int trafficOptionCase_ = 0; + private java.lang.Object trafficOption_; + + public enum TrafficOptionCase implements com.google.protobuf.Internal.EnumLite { + ROAD_TRAFFIC(5), + DEPARTURE_TIME(6), + TRAFFICOPTION_NOT_SET(0); + private final int value; + + private TrafficOptionCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TrafficOptionCase valueOf(int value) { + return forNumber(value); + } + + public static TrafficOptionCase forNumber(int value) { + switch (value) { + case 5: + return ROAD_TRAFFIC; + case 6: + return DEPARTURE_TIME; + case 0: + return TRAFFICOPTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TrafficOptionCase getTrafficOptionCase() { + return TrafficOptionCase.forNumber(trafficOptionCase_); + } + + public static final int COMMUTE_METHOD_FIELD_NUMBER = 1; + private int commuteMethod_; + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public int getCommuteMethodValue() { + return commuteMethod_; + } + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public com.google.cloud.talent.v4beta1.CommuteMethod getCommuteMethod() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteMethod result = + com.google.cloud.talent.v4beta1.CommuteMethod.valueOf(commuteMethod_); + return result == null ? com.google.cloud.talent.v4beta1.CommuteMethod.UNRECOGNIZED : result; + } + + public static final int START_COORDINATES_FIELD_NUMBER = 2; + private com.google.type.LatLng startCoordinates_; + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public boolean hasStartCoordinates() { + return startCoordinates_ != null; + } + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLng getStartCoordinates() { + return startCoordinates_ == null + ? com.google.type.LatLng.getDefaultInstance() + : startCoordinates_; + } + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLngOrBuilder getStartCoordinatesOrBuilder() { + return getStartCoordinates(); + } + + public static final int TRAVEL_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration travelDuration_; + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public boolean hasTravelDuration() { + return travelDuration_ != null; + } + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.Duration getTravelDuration() { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + return getTravelDuration(); + } + + public static final int ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER = 4; + private boolean allowImpreciseAddresses_; + /** + * + * + *
+   * Optional.
+   * If `true`, jobs without street level addresses may also be returned.
+   * For city level addresses, the city center is used. For state and coarser
+   * level addresses, text matching is used.
+   * If this field is set to `false` or isn't specified, only jobs that include
+   * street level addresses will be returned by commute search.
+   * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public boolean getAllowImpreciseAddresses() { + return allowImpreciseAddresses_; + } + + public static final int ROAD_TRAFFIC_FIELD_NUMBER = 5; + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public int getRoadTrafficValue() { + if (trafficOptionCase_ == 5) { + return (java.lang.Integer) trafficOption_; + } + return 0; + } + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic getRoadTraffic() { + if (trafficOptionCase_ == 5) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic result = + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.valueOf( + (java.lang.Integer) trafficOption_); + return result == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.UNRECOGNIZED + : result; + } + return com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.ROAD_TRAFFIC_UNSPECIFIED; + } + + public static final int DEPARTURE_TIME_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public boolean hasDepartureTime() { + return trafficOptionCase_ == 6; + } + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDay getDepartureTime() { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDayOrBuilder getDepartureTimeOrBuilder() { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (commuteMethod_ + != com.google.cloud.talent.v4beta1.CommuteMethod.COMMUTE_METHOD_UNSPECIFIED.getNumber()) { + output.writeEnum(1, commuteMethod_); + } + if (startCoordinates_ != null) { + output.writeMessage(2, getStartCoordinates()); + } + if (travelDuration_ != null) { + output.writeMessage(3, getTravelDuration()); + } + if (allowImpreciseAddresses_ != false) { + output.writeBool(4, allowImpreciseAddresses_); + } + if (trafficOptionCase_ == 5) { + output.writeEnum(5, ((java.lang.Integer) trafficOption_)); + } + if (trafficOptionCase_ == 6) { + output.writeMessage(6, (com.google.type.TimeOfDay) trafficOption_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (commuteMethod_ + != com.google.cloud.talent.v4beta1.CommuteMethod.COMMUTE_METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, commuteMethod_); + } + if (startCoordinates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartCoordinates()); + } + if (travelDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTravelDuration()); + } + if (allowImpreciseAddresses_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowImpreciseAddresses_); + } + if (trafficOptionCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 5, ((java.lang.Integer) trafficOption_)); + } + if (trafficOptionCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.type.TimeOfDay) trafficOption_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CommuteFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CommuteFilter other = + (com.google.cloud.talent.v4beta1.CommuteFilter) obj; + + boolean result = true; + result = result && commuteMethod_ == other.commuteMethod_; + result = result && (hasStartCoordinates() == other.hasStartCoordinates()); + if (hasStartCoordinates()) { + result = result && getStartCoordinates().equals(other.getStartCoordinates()); + } + result = result && (hasTravelDuration() == other.hasTravelDuration()); + if (hasTravelDuration()) { + result = result && getTravelDuration().equals(other.getTravelDuration()); + } + result = result && (getAllowImpreciseAddresses() == other.getAllowImpreciseAddresses()); + result = result && getTrafficOptionCase().equals(other.getTrafficOptionCase()); + if (!result) return false; + switch (trafficOptionCase_) { + case 5: + result = result && getRoadTrafficValue() == other.getRoadTrafficValue(); + break; + case 6: + result = result && getDepartureTime().equals(other.getDepartureTime()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COMMUTE_METHOD_FIELD_NUMBER; + hash = (53 * hash) + commuteMethod_; + if (hasStartCoordinates()) { + hash = (37 * hash) + START_COORDINATES_FIELD_NUMBER; + hash = (53 * hash) + getStartCoordinates().hashCode(); + } + if (hasTravelDuration()) { + hash = (37 * hash) + TRAVEL_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getTravelDuration().hashCode(); + } + hash = (37 * hash) + ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowImpreciseAddresses()); + switch (trafficOptionCase_) { + case 5: + hash = (37 * hash) + ROAD_TRAFFIC_FIELD_NUMBER; + hash = (53 * hash) + getRoadTrafficValue(); + break; + case 6: + hash = (37 * hash) + DEPARTURE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDepartureTime().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CommuteFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Parameters needed for commute search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CommuteFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CommuteFilter) + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CommuteFilter.class, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CommuteFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + commuteMethod_ = 0; + + if (startCoordinatesBuilder_ == null) { + startCoordinates_ = null; + } else { + startCoordinates_ = null; + startCoordinatesBuilder_ = null; + } + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + allowImpreciseAddresses_ = false; + + trafficOptionCase_ = 0; + trafficOption_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter build() { + com.google.cloud.talent.v4beta1.CommuteFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter buildPartial() { + com.google.cloud.talent.v4beta1.CommuteFilter result = + new com.google.cloud.talent.v4beta1.CommuteFilter(this); + result.commuteMethod_ = commuteMethod_; + if (startCoordinatesBuilder_ == null) { + result.startCoordinates_ = startCoordinates_; + } else { + result.startCoordinates_ = startCoordinatesBuilder_.build(); + } + if (travelDurationBuilder_ == null) { + result.travelDuration_ = travelDuration_; + } else { + result.travelDuration_ = travelDurationBuilder_.build(); + } + result.allowImpreciseAddresses_ = allowImpreciseAddresses_; + if (trafficOptionCase_ == 5) { + result.trafficOption_ = trafficOption_; + } + if (trafficOptionCase_ == 6) { + if (departureTimeBuilder_ == null) { + result.trafficOption_ = trafficOption_; + } else { + result.trafficOption_ = departureTimeBuilder_.build(); + } + } + result.trafficOptionCase_ = trafficOptionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CommuteFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.CommuteFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CommuteFilter other) { + if (other == com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance()) return this; + if (other.commuteMethod_ != 0) { + setCommuteMethodValue(other.getCommuteMethodValue()); + } + if (other.hasStartCoordinates()) { + mergeStartCoordinates(other.getStartCoordinates()); + } + if (other.hasTravelDuration()) { + mergeTravelDuration(other.getTravelDuration()); + } + if (other.getAllowImpreciseAddresses() != false) { + setAllowImpreciseAddresses(other.getAllowImpreciseAddresses()); + } + switch (other.getTrafficOptionCase()) { + case ROAD_TRAFFIC: + { + setRoadTrafficValue(other.getRoadTrafficValue()); + break; + } + case DEPARTURE_TIME: + { + mergeDepartureTime(other.getDepartureTime()); + break; + } + case TRAFFICOPTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CommuteFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CommuteFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int trafficOptionCase_ = 0; + private java.lang.Object trafficOption_; + + public TrafficOptionCase getTrafficOptionCase() { + return TrafficOptionCase.forNumber(trafficOptionCase_); + } + + public Builder clearTrafficOption() { + trafficOptionCase_ = 0; + trafficOption_ = null; + onChanged(); + return this; + } + + private int commuteMethod_ = 0; + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public int getCommuteMethodValue() { + return commuteMethod_; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public Builder setCommuteMethodValue(int value) { + commuteMethod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public com.google.cloud.talent.v4beta1.CommuteMethod getCommuteMethod() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteMethod result = + com.google.cloud.talent.v4beta1.CommuteMethod.valueOf(commuteMethod_); + return result == null ? com.google.cloud.talent.v4beta1.CommuteMethod.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public Builder setCommuteMethod(com.google.cloud.talent.v4beta1.CommuteMethod value) { + if (value == null) { + throw new NullPointerException(); + } + + commuteMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public Builder clearCommuteMethod() { + + commuteMethod_ = 0; + onChanged(); + return this; + } + + private com.google.type.LatLng startCoordinates_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + startCoordinatesBuilder_; + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public boolean hasStartCoordinates() { + return startCoordinatesBuilder_ != null || startCoordinates_ != null; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLng getStartCoordinates() { + if (startCoordinatesBuilder_ == null) { + return startCoordinates_ == null + ? com.google.type.LatLng.getDefaultInstance() + : startCoordinates_; + } else { + return startCoordinatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder setStartCoordinates(com.google.type.LatLng value) { + if (startCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startCoordinates_ = value; + onChanged(); + } else { + startCoordinatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder setStartCoordinates(com.google.type.LatLng.Builder builderForValue) { + if (startCoordinatesBuilder_ == null) { + startCoordinates_ = builderForValue.build(); + onChanged(); + } else { + startCoordinatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder mergeStartCoordinates(com.google.type.LatLng value) { + if (startCoordinatesBuilder_ == null) { + if (startCoordinates_ != null) { + startCoordinates_ = + com.google.type.LatLng.newBuilder(startCoordinates_).mergeFrom(value).buildPartial(); + } else { + startCoordinates_ = value; + } + onChanged(); + } else { + startCoordinatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder clearStartCoordinates() { + if (startCoordinatesBuilder_ == null) { + startCoordinates_ = null; + onChanged(); + } else { + startCoordinates_ = null; + startCoordinatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLng.Builder getStartCoordinatesBuilder() { + + onChanged(); + return getStartCoordinatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLngOrBuilder getStartCoordinatesOrBuilder() { + if (startCoordinatesBuilder_ != null) { + return startCoordinatesBuilder_.getMessageOrBuilder(); + } else { + return startCoordinates_ == null + ? com.google.type.LatLng.getDefaultInstance() + : startCoordinates_; + } + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getStartCoordinatesFieldBuilder() { + if (startCoordinatesBuilder_ == null) { + startCoordinatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>( + getStartCoordinates(), getParentForChildren(), isClean()); + startCoordinates_ = null; + } + return startCoordinatesBuilder_; + } + + private com.google.protobuf.Duration travelDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + travelDurationBuilder_; + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public boolean hasTravelDuration() { + return travelDurationBuilder_ != null || travelDuration_ != null; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.Duration getTravelDuration() { + if (travelDurationBuilder_ == null) { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } else { + return travelDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder setTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + travelDuration_ = value; + onChanged(); + } else { + travelDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (travelDurationBuilder_ == null) { + travelDuration_ = builderForValue.build(); + onChanged(); + } else { + travelDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder mergeTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (travelDuration_ != null) { + travelDuration_ = + com.google.protobuf.Duration.newBuilder(travelDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + travelDuration_ = value; + } + onChanged(); + } else { + travelDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder clearTravelDuration() { + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + onChanged(); + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.Duration.Builder getTravelDurationBuilder() { + + onChanged(); + return getTravelDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + if (travelDurationBuilder_ != null) { + return travelDurationBuilder_.getMessageOrBuilder(); + } else { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTravelDurationFieldBuilder() { + if (travelDurationBuilder_ == null) { + travelDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTravelDuration(), getParentForChildren(), isClean()); + travelDuration_ = null; + } + return travelDurationBuilder_; + } + + private boolean allowImpreciseAddresses_; + /** + * + * + *
+     * Optional.
+     * If `true`, jobs without street level addresses may also be returned.
+     * For city level addresses, the city center is used. For state and coarser
+     * level addresses, text matching is used.
+     * If this field is set to `false` or isn't specified, only jobs that include
+     * street level addresses will be returned by commute search.
+     * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public boolean getAllowImpreciseAddresses() { + return allowImpreciseAddresses_; + } + /** + * + * + *
+     * Optional.
+     * If `true`, jobs without street level addresses may also be returned.
+     * For city level addresses, the city center is used. For state and coarser
+     * level addresses, text matching is used.
+     * If this field is set to `false` or isn't specified, only jobs that include
+     * street level addresses will be returned by commute search.
+     * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public Builder setAllowImpreciseAddresses(boolean value) { + + allowImpreciseAddresses_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If `true`, jobs without street level addresses may also be returned.
+     * For city level addresses, the city center is used. For state and coarser
+     * level addresses, text matching is used.
+     * If this field is set to `false` or isn't specified, only jobs that include
+     * street level addresses will be returned by commute search.
+     * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public Builder clearAllowImpreciseAddresses() { + + allowImpreciseAddresses_ = false; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public int getRoadTrafficValue() { + if (trafficOptionCase_ == 5) { + return ((java.lang.Integer) trafficOption_).intValue(); + } + return 0; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public Builder setRoadTrafficValue(int value) { + trafficOptionCase_ = 5; + trafficOption_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic getRoadTraffic() { + if (trafficOptionCase_ == 5) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic result = + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.valueOf( + (java.lang.Integer) trafficOption_); + return result == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.UNRECOGNIZED + : result; + } + return com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.ROAD_TRAFFIC_UNSPECIFIED; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public Builder setRoadTraffic(com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic value) { + if (value == null) { + throw new NullPointerException(); + } + trafficOptionCase_ = 5; + trafficOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public Builder clearRoadTraffic() { + if (trafficOptionCase_ == 5) { + trafficOptionCase_ = 0; + trafficOption_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + departureTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public boolean hasDepartureTime() { + return trafficOptionCase_ == 6; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDay getDepartureTime() { + if (departureTimeBuilder_ == null) { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } else { + if (trafficOptionCase_ == 6) { + return departureTimeBuilder_.getMessage(); + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder setDepartureTime(com.google.type.TimeOfDay value) { + if (departureTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trafficOption_ = value; + onChanged(); + } else { + departureTimeBuilder_.setMessage(value); + } + trafficOptionCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder setDepartureTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (departureTimeBuilder_ == null) { + trafficOption_ = builderForValue.build(); + onChanged(); + } else { + departureTimeBuilder_.setMessage(builderForValue.build()); + } + trafficOptionCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder mergeDepartureTime(com.google.type.TimeOfDay value) { + if (departureTimeBuilder_ == null) { + if (trafficOptionCase_ == 6 + && trafficOption_ != com.google.type.TimeOfDay.getDefaultInstance()) { + trafficOption_ = + com.google.type.TimeOfDay.newBuilder((com.google.type.TimeOfDay) trafficOption_) + .mergeFrom(value) + .buildPartial(); + } else { + trafficOption_ = value; + } + onChanged(); + } else { + if (trafficOptionCase_ == 6) { + departureTimeBuilder_.mergeFrom(value); + } + departureTimeBuilder_.setMessage(value); + } + trafficOptionCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder clearDepartureTime() { + if (departureTimeBuilder_ == null) { + if (trafficOptionCase_ == 6) { + trafficOptionCase_ = 0; + trafficOption_ = null; + onChanged(); + } + } else { + if (trafficOptionCase_ == 6) { + trafficOptionCase_ = 0; + trafficOption_ = null; + } + departureTimeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDay.Builder getDepartureTimeBuilder() { + return getDepartureTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDayOrBuilder getDepartureTimeOrBuilder() { + if ((trafficOptionCase_ == 6) && (departureTimeBuilder_ != null)) { + return departureTimeBuilder_.getMessageOrBuilder(); + } else { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getDepartureTimeFieldBuilder() { + if (departureTimeBuilder_ == null) { + if (!(trafficOptionCase_ == 6)) { + trafficOption_ = com.google.type.TimeOfDay.getDefaultInstance(); + } + departureTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + (com.google.type.TimeOfDay) trafficOption_, getParentForChildren(), isClean()); + trafficOption_ = null; + } + trafficOptionCase_ = 6; + onChanged(); + ; + return departureTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CommuteFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CommuteFilter) + private static final com.google.cloud.talent.v4beta1.CommuteFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CommuteFilter(); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommuteFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommuteFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java new file mode 100644 index 000000000000..bb7b708b2b3a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java @@ -0,0 +1,188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface CommuteFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CommuteFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + int getCommuteMethodValue(); + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + com.google.cloud.talent.v4beta1.CommuteMethod getCommuteMethod(); + + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + boolean hasStartCoordinates(); + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + com.google.type.LatLng getStartCoordinates(); + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + com.google.type.LatLngOrBuilder getStartCoordinatesOrBuilder(); + + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + boolean hasTravelDuration(); + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + com.google.protobuf.Duration getTravelDuration(); + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * If `true`, jobs without street level addresses may also be returned.
+   * For city level addresses, the city center is used. For state and coarser
+   * level addresses, text matching is used.
+   * If this field is set to `false` or isn't specified, only jobs that include
+   * street level addresses will be returned by commute search.
+   * 
+ * + * bool allow_imprecise_addresses = 4; + */ + boolean getAllowImpreciseAddresses(); + + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + int getRoadTrafficValue(); + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic getRoadTraffic(); + + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + boolean hasDepartureTime(); + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + com.google.type.TimeOfDay getDepartureTime(); + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + com.google.type.TimeOfDayOrBuilder getDepartureTimeOrBuilder(); + + public com.google.cloud.talent.v4beta1.CommuteFilter.TrafficOptionCase getTrafficOptionCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java new file mode 100644 index 000000000000..aab05ed814a5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java @@ -0,0 +1,219 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Method for commute.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CommuteMethod} + */ +public enum CommuteMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Commute method isn't specified.
+   * 
+ * + * COMMUTE_METHOD_UNSPECIFIED = 0; + */ + COMMUTE_METHOD_UNSPECIFIED(0), + /** + * + * + *
+   * Commute time is calculated based on driving time.
+   * 
+ * + * DRIVING = 1; + */ + DRIVING(1), + /** + * + * + *
+   * Commute time is calculated based on public transit including bus, metro,
+   * subway, etc.
+   * 
+ * + * TRANSIT = 2; + */ + TRANSIT(2), + /** + * + * + *
+   * Commute time is calculated based on walking time.
+   * 
+ * + * WALKING = 3; + */ + WALKING(3), + /** + * + * + *
+   * Commute time is calculated based on biking time.
+   * 
+ * + * CYCLING = 4; + */ + CYCLING(4), + /** + * + * + *
+   * Commute time is calculated based on public transit that is wheelchair
+   * accessible.
+   * 
+ * + * TRANSIT_ACCESSIBLE = 5; + */ + TRANSIT_ACCESSIBLE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Commute method isn't specified.
+   * 
+ * + * COMMUTE_METHOD_UNSPECIFIED = 0; + */ + public static final int COMMUTE_METHOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Commute time is calculated based on driving time.
+   * 
+ * + * DRIVING = 1; + */ + public static final int DRIVING_VALUE = 1; + /** + * + * + *
+   * Commute time is calculated based on public transit including bus, metro,
+   * subway, etc.
+   * 
+ * + * TRANSIT = 2; + */ + public static final int TRANSIT_VALUE = 2; + /** + * + * + *
+   * Commute time is calculated based on walking time.
+   * 
+ * + * WALKING = 3; + */ + public static final int WALKING_VALUE = 3; + /** + * + * + *
+   * Commute time is calculated based on biking time.
+   * 
+ * + * CYCLING = 4; + */ + public static final int CYCLING_VALUE = 4; + /** + * + * + *
+   * Commute time is calculated based on public transit that is wheelchair
+   * accessible.
+   * 
+ * + * TRANSIT_ACCESSIBLE = 5; + */ + public static final int TRANSIT_ACCESSIBLE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CommuteMethod valueOf(int value) { + return forNumber(value); + } + + public static CommuteMethod forNumber(int value) { + switch (value) { + case 0: + return COMMUTE_METHOD_UNSPECIFIED; + case 1: + return DRIVING; + case 2: + return TRANSIT; + case 3: + return WALKING; + case 4: + return CYCLING; + case 5: + return TRANSIT_ACCESSIBLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CommuteMethod findValueByNumber(int number) { + return CommuteMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(10); + } + + private static final CommuteMethod[] VALUES = values(); + + public static CommuteMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CommuteMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CommuteMethod) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java new file mode 100644 index 000000000000..c9bf56fcb850 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java @@ -0,0 +1,3579 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A Company resource represents a company in the service. A company is the
+ * entity that owns job postings, that is, the hiring entity responsible for
+ * employing applicants for the job position.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company} + */ +public final class Company extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Company) + CompanyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Company.newBuilder() to construct. + private Company(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Company() { + name_ = ""; + displayName_ = ""; + externalId_ = ""; + size_ = 0; + headquartersAddress_ = ""; + hiringAgency_ = false; + eeoText_ = ""; + websiteUri_ = ""; + careerSiteUri_ = ""; + imageUri_ = ""; + keywordSearchableJobCustomAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + suspended_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Company( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + size_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + headquartersAddress_ = s; + break; + } + case 48: + { + hiringAgency_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + eeoText_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + websiteUri_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + careerSiteUri_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + imageUri_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000400; + } + keywordSearchableJobCustomAttributes_.add(s); + break; + } + case 98: + { + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder subBuilder = null; + if (derivedInfo_ != null) { + subBuilder = derivedInfo_.toBuilder(); + } + derivedInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(derivedInfo_); + derivedInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 104: + { + suspended_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + keywordSearchableJobCustomAttributes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.class, + com.google.cloud.talent.v4beta1.Company.Builder.class); + } + + public interface DerivedInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Company.DerivedInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + boolean hasHeadquartersLocation(); + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + com.google.cloud.talent.v4beta1.Location getHeadquartersLocation(); + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getHeadquartersLocationOrBuilder(); + } + /** + * + * + *
+   * Derived details about the company.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company.DerivedInfo} + */ + public static final class DerivedInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Company.DerivedInfo) + DerivedInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DerivedInfo.newBuilder() to construct. + private DerivedInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DerivedInfo() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DerivedInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Location.Builder subBuilder = null; + if (headquartersLocation_ != null) { + subBuilder = headquartersLocation_.toBuilder(); + } + headquartersLocation_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(headquartersLocation_); + headquartersLocation_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder.class); + } + + public static final int HEADQUARTERS_LOCATION_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Location headquartersLocation_; + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public boolean hasHeadquartersLocation() { + return headquartersLocation_ != null; + } + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getHeadquartersLocation() { + return headquartersLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : headquartersLocation_; + } + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getHeadquartersLocationOrBuilder() { + return getHeadquartersLocation(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (headquartersLocation_ != null) { + output.writeMessage(1, getHeadquartersLocation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (headquartersLocation_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeadquartersLocation()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Company.DerivedInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Company.DerivedInfo other = + (com.google.cloud.talent.v4beta1.Company.DerivedInfo) obj; + + boolean result = true; + result = result && (hasHeadquartersLocation() == other.hasHeadquartersLocation()); + if (hasHeadquartersLocation()) { + result = result && getHeadquartersLocation().equals(other.getHeadquartersLocation()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeadquartersLocation()) { + hash = (37 * hash) + HEADQUARTERS_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getHeadquartersLocation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.Company.DerivedInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Derived details about the company.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company.DerivedInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Company.DerivedInfo) + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Company.DerivedInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (headquartersLocationBuilder_ == null) { + headquartersLocation_ = null; + } else { + headquartersLocation_ = null; + headquartersLocationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo build() { + com.google.cloud.talent.v4beta1.Company.DerivedInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo buildPartial() { + com.google.cloud.talent.v4beta1.Company.DerivedInfo result = + new com.google.cloud.talent.v4beta1.Company.DerivedInfo(this); + if (headquartersLocationBuilder_ == null) { + result.headquartersLocation_ = headquartersLocation_; + } else { + result.headquartersLocation_ = headquartersLocationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Company.DerivedInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.Company.DerivedInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Company.DerivedInfo other) { + if (other == com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance()) + return this; + if (other.hasHeadquartersLocation()) { + mergeHeadquartersLocation(other.getHeadquartersLocation()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Company.DerivedInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Company.DerivedInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Location headquartersLocation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + headquartersLocationBuilder_; + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public boolean hasHeadquartersLocation() { + return headquartersLocationBuilder_ != null || headquartersLocation_ != null; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getHeadquartersLocation() { + if (headquartersLocationBuilder_ == null) { + return headquartersLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : headquartersLocation_; + } else { + return headquartersLocationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder setHeadquartersLocation(com.google.cloud.talent.v4beta1.Location value) { + if (headquartersLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + headquartersLocation_ = value; + onChanged(); + } else { + headquartersLocationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder setHeadquartersLocation( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (headquartersLocationBuilder_ == null) { + headquartersLocation_ = builderForValue.build(); + onChanged(); + } else { + headquartersLocationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder mergeHeadquartersLocation(com.google.cloud.talent.v4beta1.Location value) { + if (headquartersLocationBuilder_ == null) { + if (headquartersLocation_ != null) { + headquartersLocation_ = + com.google.cloud.talent.v4beta1.Location.newBuilder(headquartersLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + headquartersLocation_ = value; + } + onChanged(); + } else { + headquartersLocationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder clearHeadquartersLocation() { + if (headquartersLocationBuilder_ == null) { + headquartersLocation_ = null; + onChanged(); + } else { + headquartersLocation_ = null; + headquartersLocationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getHeadquartersLocationBuilder() { + + onChanged(); + return getHeadquartersLocationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getHeadquartersLocationOrBuilder() { + if (headquartersLocationBuilder_ != null) { + return headquartersLocationBuilder_.getMessageOrBuilder(); + } else { + return headquartersLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : headquartersLocation_; + } + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getHeadquartersLocationFieldBuilder() { + if (headquartersLocationBuilder_ == null) { + headquartersLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + getHeadquartersLocation(), getParentForChildren(), isClean()); + headquartersLocation_ = null; + } + return headquartersLocationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Company.DerivedInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Company.DerivedInfo) + private static final com.google.cloud.talent.v4beta1.Company.DerivedInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Company.DerivedInfo(); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DerivedInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DerivedInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object externalId_; + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIZE_FIELD_NUMBER = 4; + private int size_; + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public int getSizeValue() { + return size_; + } + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public com.google.cloud.talent.v4beta1.CompanySize getSize() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompanySize result = + com.google.cloud.talent.v4beta1.CompanySize.valueOf(size_); + return result == null ? com.google.cloud.talent.v4beta1.CompanySize.UNRECOGNIZED : result; + } + + public static final int HEADQUARTERS_ADDRESS_FIELD_NUMBER = 5; + private volatile java.lang.Object headquartersAddress_; + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + public java.lang.String getHeadquartersAddress() { + java.lang.Object ref = headquartersAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headquartersAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + public com.google.protobuf.ByteString getHeadquartersAddressBytes() { + java.lang.Object ref = headquartersAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headquartersAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HIRING_AGENCY_FIELD_NUMBER = 6; + private boolean hiringAgency_; + /** + * + * + *
+   * Optional.
+   * Set to true if it is the hiring agency that post jobs for other
+   * employers.
+   * Defaults to false if not provided.
+   * 
+ * + * bool hiring_agency = 6; + */ + public boolean getHiringAgency() { + return hiringAgency_; + } + + public static final int EEO_TEXT_FIELD_NUMBER = 7; + private volatile java.lang.Object eeoText_; + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + public java.lang.String getEeoText() { + java.lang.Object ref = eeoText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eeoText_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + public com.google.protobuf.ByteString getEeoTextBytes() { + java.lang.Object ref = eeoText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eeoText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WEBSITE_URI_FIELD_NUMBER = 8; + private volatile java.lang.Object websiteUri_; + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + public java.lang.String getWebsiteUri() { + java.lang.Object ref = websiteUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + websiteUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + public com.google.protobuf.ByteString getWebsiteUriBytes() { + java.lang.Object ref = websiteUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + websiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAREER_SITE_URI_FIELD_NUMBER = 9; + private volatile java.lang.Object careerSiteUri_; + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + public java.lang.String getCareerSiteUri() { + java.lang.Object ref = careerSiteUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + careerSiteUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + public com.google.protobuf.ByteString getCareerSiteUriBytes() { + java.lang.Object ref = careerSiteUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + careerSiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_URI_FIELD_NUMBER = 10; + private volatile java.lang.Object imageUri_; + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEYWORD_SEARCHABLE_JOB_CUSTOM_ATTRIBUTES_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList keywordSearchableJobCustomAttributes_; + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ProtocolStringList getKeywordSearchableJobCustomAttributesList() { + return keywordSearchableJobCustomAttributes_; + } + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public int getKeywordSearchableJobCustomAttributesCount() { + return keywordSearchableJobCustomAttributes_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public java.lang.String getKeywordSearchableJobCustomAttributes(int index) { + return keywordSearchableJobCustomAttributes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ByteString getKeywordSearchableJobCustomAttributesBytes(int index) { + return keywordSearchableJobCustomAttributes_.getByteString(index); + } + + public static final int DERIVED_INFO_FIELD_NUMBER = 12; + private com.google.cloud.talent.v4beta1.Company.DerivedInfo derivedInfo_; + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public boolean hasDerivedInfo() { + return derivedInfo_ != null; + } + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDerivedInfo() { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + return getDerivedInfo(); + } + + public static final int SUSPENDED_FIELD_NUMBER = 13; + private boolean suspended_; + /** + * + * + *
+   * Output only. Indicates whether a company is flagged to be suspended from
+   * public availability by the service when job content appears suspicious,
+   * abusive, or spammy.
+   * 
+ * + * bool suspended = 13; + */ + public boolean getSuspended() { + return suspended_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!getExternalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalId_); + } + if (size_ != com.google.cloud.talent.v4beta1.CompanySize.COMPANY_SIZE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, size_); + } + if (!getHeadquartersAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, headquartersAddress_); + } + if (hiringAgency_ != false) { + output.writeBool(6, hiringAgency_); + } + if (!getEeoTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, eeoText_); + } + if (!getWebsiteUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, websiteUri_); + } + if (!getCareerSiteUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, careerSiteUri_); + } + if (!getImageUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageUri_); + } + for (int i = 0; i < keywordSearchableJobCustomAttributes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 11, keywordSearchableJobCustomAttributes_.getRaw(i)); + } + if (derivedInfo_ != null) { + output.writeMessage(12, getDerivedInfo()); + } + if (suspended_ != false) { + output.writeBool(13, suspended_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getExternalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalId_); + } + if (size_ != com.google.cloud.talent.v4beta1.CompanySize.COMPANY_SIZE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, size_); + } + if (!getHeadquartersAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, headquartersAddress_); + } + if (hiringAgency_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, hiringAgency_); + } + if (!getEeoTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, eeoText_); + } + if (!getWebsiteUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, websiteUri_); + } + if (!getCareerSiteUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, careerSiteUri_); + } + if (!getImageUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, imageUri_); + } + { + int dataSize = 0; + for (int i = 0; i < keywordSearchableJobCustomAttributes_.size(); i++) { + dataSize += computeStringSizeNoTag(keywordSearchableJobCustomAttributes_.getRaw(i)); + } + size += dataSize; + size += 1 * getKeywordSearchableJobCustomAttributesList().size(); + } + if (derivedInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDerivedInfo()); + } + if (suspended_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, suspended_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Company)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Company other = (com.google.cloud.talent.v4beta1.Company) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && getExternalId().equals(other.getExternalId()); + result = result && size_ == other.size_; + result = result && getHeadquartersAddress().equals(other.getHeadquartersAddress()); + result = result && (getHiringAgency() == other.getHiringAgency()); + result = result && getEeoText().equals(other.getEeoText()); + result = result && getWebsiteUri().equals(other.getWebsiteUri()); + result = result && getCareerSiteUri().equals(other.getCareerSiteUri()); + result = result && getImageUri().equals(other.getImageUri()); + result = + result + && getKeywordSearchableJobCustomAttributesList() + .equals(other.getKeywordSearchableJobCustomAttributesList()); + result = result && (hasDerivedInfo() == other.hasDerivedInfo()); + if (hasDerivedInfo()) { + result = result && getDerivedInfo().equals(other.getDerivedInfo()); + } + result = result && (getSuspended() == other.getSuspended()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + size_; + hash = (37 * hash) + HEADQUARTERS_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getHeadquartersAddress().hashCode(); + hash = (37 * hash) + HIRING_AGENCY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHiringAgency()); + hash = (37 * hash) + EEO_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getEeoText().hashCode(); + hash = (37 * hash) + WEBSITE_URI_FIELD_NUMBER; + hash = (53 * hash) + getWebsiteUri().hashCode(); + hash = (37 * hash) + CAREER_SITE_URI_FIELD_NUMBER; + hash = (53 * hash) + getCareerSiteUri().hashCode(); + hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getImageUri().hashCode(); + if (getKeywordSearchableJobCustomAttributesCount() > 0) { + hash = (37 * hash) + KEYWORD_SEARCHABLE_JOB_CUSTOM_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getKeywordSearchableJobCustomAttributesList().hashCode(); + } + if (hasDerivedInfo()) { + hash = (37 * hash) + DERIVED_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDerivedInfo().hashCode(); + } + hash = (37 * hash) + SUSPENDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuspended()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Company prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Company resource represents a company in the service. A company is the
+   * entity that owns job postings, that is, the hiring entity responsible for
+   * employing applicants for the job position.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Company) + com.google.cloud.talent.v4beta1.CompanyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.class, + com.google.cloud.talent.v4beta1.Company.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Company.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + externalId_ = ""; + + size_ = 0; + + headquartersAddress_ = ""; + + hiringAgency_ = false; + + eeoText_ = ""; + + websiteUri_ = ""; + + careerSiteUri_ = ""; + + imageUri_ = ""; + + keywordSearchableJobCustomAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + suspended_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Company.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company build() { + com.google.cloud.talent.v4beta1.Company result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company buildPartial() { + com.google.cloud.talent.v4beta1.Company result = + new com.google.cloud.talent.v4beta1.Company(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.displayName_ = displayName_; + result.externalId_ = externalId_; + result.size_ = size_; + result.headquartersAddress_ = headquartersAddress_; + result.hiringAgency_ = hiringAgency_; + result.eeoText_ = eeoText_; + result.websiteUri_ = websiteUri_; + result.careerSiteUri_ = careerSiteUri_; + result.imageUri_ = imageUri_; + if (((bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + keywordSearchableJobCustomAttributes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.keywordSearchableJobCustomAttributes_ = keywordSearchableJobCustomAttributes_; + if (derivedInfoBuilder_ == null) { + result.derivedInfo_ = derivedInfo_; + } else { + result.derivedInfo_ = derivedInfoBuilder_.build(); + } + result.suspended_ = suspended_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Company) { + return mergeFrom((com.google.cloud.talent.v4beta1.Company) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Company other) { + if (other == com.google.cloud.talent.v4beta1.Company.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getExternalId().isEmpty()) { + externalId_ = other.externalId_; + onChanged(); + } + if (other.size_ != 0) { + setSizeValue(other.getSizeValue()); + } + if (!other.getHeadquartersAddress().isEmpty()) { + headquartersAddress_ = other.headquartersAddress_; + onChanged(); + } + if (other.getHiringAgency() != false) { + setHiringAgency(other.getHiringAgency()); + } + if (!other.getEeoText().isEmpty()) { + eeoText_ = other.eeoText_; + onChanged(); + } + if (!other.getWebsiteUri().isEmpty()) { + websiteUri_ = other.websiteUri_; + onChanged(); + } + if (!other.getCareerSiteUri().isEmpty()) { + careerSiteUri_ = other.careerSiteUri_; + onChanged(); + } + if (!other.getImageUri().isEmpty()) { + imageUri_ = other.imageUri_; + onChanged(); + } + if (!other.keywordSearchableJobCustomAttributes_.isEmpty()) { + if (keywordSearchableJobCustomAttributes_.isEmpty()) { + keywordSearchableJobCustomAttributes_ = other.keywordSearchableJobCustomAttributes_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.addAll(other.keywordSearchableJobCustomAttributes_); + } + onChanged(); + } + if (other.hasDerivedInfo()) { + mergeDerivedInfo(other.getDerivedInfo()); + } + if (other.getSuspended() != false) { + setSuspended(other.getSuspended()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Company parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Company) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalId_ = ""; + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public Builder setExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalId_ = value; + onChanged(); + return this; + } + + private int size_ = 0; + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public int getSizeValue() { + return size_; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public Builder setSizeValue(int value) { + size_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public com.google.cloud.talent.v4beta1.CompanySize getSize() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompanySize result = + com.google.cloud.talent.v4beta1.CompanySize.valueOf(size_); + return result == null ? com.google.cloud.talent.v4beta1.CompanySize.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public Builder setSize(com.google.cloud.talent.v4beta1.CompanySize value) { + if (value == null) { + throw new NullPointerException(); + } + + size_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private java.lang.Object headquartersAddress_ = ""; + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public java.lang.String getHeadquartersAddress() { + java.lang.Object ref = headquartersAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headquartersAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public com.google.protobuf.ByteString getHeadquartersAddressBytes() { + java.lang.Object ref = headquartersAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headquartersAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public Builder setHeadquartersAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + headquartersAddress_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public Builder clearHeadquartersAddress() { + + headquartersAddress_ = getDefaultInstance().getHeadquartersAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public Builder setHeadquartersAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + headquartersAddress_ = value; + onChanged(); + return this; + } + + private boolean hiringAgency_; + /** + * + * + *
+     * Optional.
+     * Set to true if it is the hiring agency that post jobs for other
+     * employers.
+     * Defaults to false if not provided.
+     * 
+ * + * bool hiring_agency = 6; + */ + public boolean getHiringAgency() { + return hiringAgency_; + } + /** + * + * + *
+     * Optional.
+     * Set to true if it is the hiring agency that post jobs for other
+     * employers.
+     * Defaults to false if not provided.
+     * 
+ * + * bool hiring_agency = 6; + */ + public Builder setHiringAgency(boolean value) { + + hiringAgency_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Set to true if it is the hiring agency that post jobs for other
+     * employers.
+     * Defaults to false if not provided.
+     * 
+ * + * bool hiring_agency = 6; + */ + public Builder clearHiringAgency() { + + hiringAgency_ = false; + onChanged(); + return this; + } + + private java.lang.Object eeoText_ = ""; + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public java.lang.String getEeoText() { + java.lang.Object ref = eeoText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eeoText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public com.google.protobuf.ByteString getEeoTextBytes() { + java.lang.Object ref = eeoText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eeoText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public Builder setEeoText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eeoText_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public Builder clearEeoText() { + + eeoText_ = getDefaultInstance().getEeoText(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public Builder setEeoTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eeoText_ = value; + onChanged(); + return this; + } + + private java.lang.Object websiteUri_ = ""; + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public java.lang.String getWebsiteUri() { + java.lang.Object ref = websiteUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + websiteUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public com.google.protobuf.ByteString getWebsiteUriBytes() { + java.lang.Object ref = websiteUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + websiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public Builder setWebsiteUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + websiteUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public Builder clearWebsiteUri() { + + websiteUri_ = getDefaultInstance().getWebsiteUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public Builder setWebsiteUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + websiteUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object careerSiteUri_ = ""; + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public java.lang.String getCareerSiteUri() { + java.lang.Object ref = careerSiteUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + careerSiteUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public com.google.protobuf.ByteString getCareerSiteUriBytes() { + java.lang.Object ref = careerSiteUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + careerSiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public Builder setCareerSiteUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + careerSiteUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public Builder clearCareerSiteUri() { + + careerSiteUri_ = getDefaultInstance().getCareerSiteUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public Builder setCareerSiteUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + careerSiteUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageUri_ = ""; + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public Builder setImageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public Builder clearImageUri() { + + imageUri_ = getDefaultInstance().getImageUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList keywordSearchableJobCustomAttributes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureKeywordSearchableJobCustomAttributesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + new com.google.protobuf.LazyStringArrayList(keywordSearchableJobCustomAttributes_); + bitField0_ |= 0x00000400; + } + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ProtocolStringList getKeywordSearchableJobCustomAttributesList() { + return keywordSearchableJobCustomAttributes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public int getKeywordSearchableJobCustomAttributesCount() { + return keywordSearchableJobCustomAttributes_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public java.lang.String getKeywordSearchableJobCustomAttributes(int index) { + return keywordSearchableJobCustomAttributes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ByteString getKeywordSearchableJobCustomAttributesBytes(int index) { + return keywordSearchableJobCustomAttributes_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder setKeywordSearchableJobCustomAttributes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder addKeywordSearchableJobCustomAttributes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder addAllKeywordSearchableJobCustomAttributes( + java.lang.Iterable values) { + ensureKeywordSearchableJobCustomAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keywordSearchableJobCustomAttributes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder clearKeywordSearchableJobCustomAttributes() { + keywordSearchableJobCustomAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder addKeywordSearchableJobCustomAttributesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Company.DerivedInfo derivedInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company.DerivedInfo, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder> + derivedInfoBuilder_; + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public boolean hasDerivedInfo() { + return derivedInfoBuilder_ != null || derivedInfo_ != null; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDerivedInfo() { + if (derivedInfoBuilder_ == null) { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } else { + return derivedInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder setDerivedInfo(com.google.cloud.talent.v4beta1.Company.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + derivedInfo_ = value; + onChanged(); + } else { + derivedInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder setDerivedInfo( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder builderForValue) { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = builderForValue.build(); + onChanged(); + } else { + derivedInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder mergeDerivedInfo(com.google.cloud.talent.v4beta1.Company.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (derivedInfo_ != null) { + derivedInfo_ = + com.google.cloud.talent.v4beta1.Company.DerivedInfo.newBuilder(derivedInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + derivedInfo_ = value; + } + onChanged(); + } else { + derivedInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder clearDerivedInfo() { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + onChanged(); + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder getDerivedInfoBuilder() { + + onChanged(); + return getDerivedInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + if (derivedInfoBuilder_ != null) { + return derivedInfoBuilder_.getMessageOrBuilder(); + } else { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company.DerivedInfo, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder> + getDerivedInfoFieldBuilder() { + if (derivedInfoBuilder_ == null) { + derivedInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company.DerivedInfo, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder>( + getDerivedInfo(), getParentForChildren(), isClean()); + derivedInfo_ = null; + } + return derivedInfoBuilder_; + } + + private boolean suspended_; + /** + * + * + *
+     * Output only. Indicates whether a company is flagged to be suspended from
+     * public availability by the service when job content appears suspicious,
+     * abusive, or spammy.
+     * 
+ * + * bool suspended = 13; + */ + public boolean getSuspended() { + return suspended_; + } + /** + * + * + *
+     * Output only. Indicates whether a company is flagged to be suspended from
+     * public availability by the service when job content appears suspicious,
+     * abusive, or spammy.
+     * 
+ * + * bool suspended = 13; + */ + public Builder setSuspended(boolean value) { + + suspended_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates whether a company is flagged to be suspended from
+     * public availability by the service when job content appears suspicious,
+     * abusive, or spammy.
+     * 
+ * + * bool suspended = 13; + */ + public Builder clearSuspended() { + + suspended_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Company) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Company) + private static final com.google.cloud.talent.v4beta1.Company DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Company(); + } + + public static com.google.cloud.talent.v4beta1.Company getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Company parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Company(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java new file mode 100644 index 000000000000..68ca5feb6ef0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class CompanyName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/companies/{company}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String company; + + public String getProject() { + return project; + } + + public String getCompany() { + return company; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private CompanyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + company = Preconditions.checkNotNull(builder.getCompany()); + } + + public static CompanyName of(String project, String company) { + return newBuilder().setProject(project).setCompany(company).build(); + } + + public static String format(String project, String company) { + return newBuilder().setProject(project).setCompany(company).build().toString(); + } + + public static CompanyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "CompanyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("company")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (CompanyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("company", company); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "company", company); + } + + /** Builder for CompanyName. */ + public static class Builder { + + private String project; + private String company; + + public String getProject() { + return project; + } + + public String getCompany() { + return company; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setCompany(String company) { + this.company = company; + return this; + } + + private Builder() {} + + private Builder(CompanyName companyName) { + project = companyName.project; + company = companyName.company; + } + + public CompanyName build() { + return new CompanyName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof CompanyName) { + CompanyName that = (CompanyName) o; + return (this.project.equals(that.project)) && (this.company.equals(that.company)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= company.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java new file mode 100644 index 000000000000..575187124d9f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java @@ -0,0 +1,374 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompanyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Company) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + java.lang.String getExternalId(); + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + int getSizeValue(); + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + com.google.cloud.talent.v4beta1.CompanySize getSize(); + + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + java.lang.String getHeadquartersAddress(); + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + com.google.protobuf.ByteString getHeadquartersAddressBytes(); + + /** + * + * + *
+   * Optional.
+   * Set to true if it is the hiring agency that post jobs for other
+   * employers.
+   * Defaults to false if not provided.
+   * 
+ * + * bool hiring_agency = 6; + */ + boolean getHiringAgency(); + + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + java.lang.String getEeoText(); + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + com.google.protobuf.ByteString getEeoTextBytes(); + + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + java.lang.String getWebsiteUri(); + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + com.google.protobuf.ByteString getWebsiteUriBytes(); + + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + java.lang.String getCareerSiteUri(); + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + com.google.protobuf.ByteString getCareerSiteUriBytes(); + + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + java.lang.String getImageUri(); + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + com.google.protobuf.ByteString getImageUriBytes(); + + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + java.util.List getKeywordSearchableJobCustomAttributesList(); + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + int getKeywordSearchableJobCustomAttributesCount(); + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + java.lang.String getKeywordSearchableJobCustomAttributes(int index); + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + com.google.protobuf.ByteString getKeywordSearchableJobCustomAttributesBytes(int index); + + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + boolean hasDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + com.google.cloud.talent.v4beta1.Company.DerivedInfo getDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder getDerivedInfoOrBuilder(); + + /** + * + * + *
+   * Output only. Indicates whether a company is flagged to be suspended from
+   * public availability by the service when job content appears suspicious,
+   * abusive, or spammy.
+   * 
+ * + * bool suspended = 13; + */ + boolean getSuspended(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java new file mode 100644 index 000000000000..c5c25a655b90 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company.proto + +package com.google.cloud.talent.v4beta1; + +public final class CompanyResourceProto { + private CompanyResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Company_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/talent/v4beta1/company.pr" + + "oto\022\033google.cloud.talent.v4beta1\032\034google" + + "/api/annotations.proto\032(google/cloud/tal" + + "ent/v4beta1/common.proto\"\344\003\n\007Company\022\014\n\004" + + "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013exte" + + "rnal_id\030\003 \001(\t\0226\n\004size\030\004 \001(\0162(.google.clo" + + "ud.talent.v4beta1.CompanySize\022\034\n\024headqua" + + "rters_address\030\005 \001(\t\022\025\n\rhiring_agency\030\006 \001" + + "(\010\022\020\n\010eeo_text\030\007 \001(\t\022\023\n\013website_uri\030\010 \001(" + + "\t\022\027\n\017career_site_uri\030\t \001(\t\022\021\n\timage_uri\030" + + "\n \001(\t\0220\n(keyword_searchable_job_custom_a" + + "ttributes\030\013 \003(\t\022F\n\014derived_info\030\014 \001(\01320." + + "google.cloud.talent.v4beta1.Company.Deri" + + "vedInfo\022\021\n\tsuspended\030\r \001(\010\032S\n\013DerivedInf" + + "o\022D\n\025headquarters_location\030\001 \001(\0132%.googl" + + "e.cloud.talent.v4beta1.LocationB\202\001\n\037com." + + "google.cloud.talent.v4beta1B\024CompanyReso" + + "urceProtoP\001ZAgoogle.golang.org/genproto/" + + "googleapis/cloud/talent/v4beta1;talent\242\002" + + "\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Company_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Company_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "ExternalId", + "Size", + "HeadquartersAddress", + "HiringAgency", + "EeoText", + "WebsiteUri", + "CareerSiteUri", + "ImageUri", + "KeywordSearchableJobCustomAttributes", + "DerivedInfo", + "Suspended", + }); + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_Company_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor, + new java.lang.String[] { + "HeadquartersLocation", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java new file mode 100644 index 000000000000..4b042810a7d3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java @@ -0,0 +1,173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class CompanyServiceProto { + private CompanyServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/talent/v4beta1/company_se" + + "rvice.proto\022\033google.cloud.talent.v4beta1" + + "\032\034google/api/annotations.proto\032(google/c" + + "loud/talent/v4beta1/common.proto\032)google" + + "/cloud/talent/v4beta1/company.proto\032\033goo" + + "gle/protobuf/empty.proto\032 google/protobu" + + "f/field_mask.proto\"]\n\024CreateCompanyReque" + + "st\022\016\n\006parent\030\001 \001(\t\0225\n\007company\030\002 \001(\0132$.go" + + "ogle.cloud.talent.v4beta1.Company\"!\n\021Get" + + "CompanyRequest\022\014\n\004name\030\001 \001(\t\"~\n\024UpdateCo" + + "mpanyRequest\0225\n\007company\030\001 \001(\0132$.google.c" + + "loud.talent.v4beta1.Company\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"$\n\024" + + "DeleteCompanyRequest\022\014\n\004name\030\001 \001(\t\"h\n\024Li" + + "stCompaniesRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npa" + + "ge_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\031\n\021req" + + "uire_open_jobs\030\004 \001(\010\"\252\001\n\025ListCompaniesRe" + + "sponse\0227\n\tcompanies\030\001 \003(\0132$.google.cloud" + + ".talent.v4beta1.Company\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.clou" + + "d.talent.v4beta1.ResponseMetadata2\237\006\n\016Co" + + "mpanyService\022\233\001\n\rCreateCompany\0221.google." + + "cloud.talent.v4beta1.CreateCompanyReques" + + "t\032$.google.cloud.talent.v4beta1.Company\"" + + "1\202\323\344\223\002+\"&/v4beta1/{parent=projects/*}/co" + + "mpanies:\001*\022\222\001\n\nGetCompany\022..google.cloud" + + ".talent.v4beta1.GetCompanyRequest\032$.goog" + + "le.cloud.talent.v4beta1.Company\".\202\323\344\223\002(\022" + + "&/v4beta1/{name=projects/*/companies/*}\022" + + "\243\001\n\rUpdateCompany\0221.google.cloud.talent." + + "v4beta1.UpdateCompanyRequest\032$.google.cl" + + "oud.talent.v4beta1.Company\"9\202\323\344\223\00232./v4b" + + "eta1/{company.name=projects/*/companies/" + + "*}:\001*\022\212\001\n\rDeleteCompany\0221.google.cloud.t" + + "alent.v4beta1.DeleteCompanyRequest\032\026.goo" + + "gle.protobuf.Empty\".\202\323\344\223\002(*&/v4beta1/{na" + + "me=projects/*/companies/*}\022\246\001\n\rListCompa" + + "nies\0221.google.cloud.talent.v4beta1.ListC" + + "ompaniesRequest\0322.google.cloud.talent.v4" + + "beta1.ListCompaniesResponse\".\202\323\344\223\002(\022&/v4" + + "beta1/{parent=projects/*}/companiesB\201\001\n\037" + + "com.google.cloud.talent.v4beta1B\023Company" + + "ServiceProtoP\001ZAgoogle.golang.org/genpro" + + "to/googleapis/cloud/talent/v4beta1;talen" + + "t\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CompanyResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor, + new java.lang.String[] { + "Parent", "Company", + }); + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor, + new java.lang.String[] { + "Company", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "RequireOpenJobs", + }); + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor, + new java.lang.String[] { + "Companies", "NextPageToken", "Metadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CompanyResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java new file mode 100644 index 000000000000..1205523e13dd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java @@ -0,0 +1,259 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the size of the company.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompanySize} + */ +public enum CompanySize implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value if the size isn't specified.
+   * 
+ * + * COMPANY_SIZE_UNSPECIFIED = 0; + */ + COMPANY_SIZE_UNSPECIFIED(0), + /** + * + * + *
+   * The company has less than 50 employees.
+   * 
+ * + * MINI = 1; + */ + MINI(1), + /** + * + * + *
+   * The company has between 50 and 99 employees.
+   * 
+ * + * SMALL = 2; + */ + SMALL(2), + /** + * + * + *
+   * The company has between 100 and 499 employees.
+   * 
+ * + * SMEDIUM = 3; + */ + SMEDIUM(3), + /** + * + * + *
+   * The company has between 500 and 999 employees.
+   * 
+ * + * MEDIUM = 4; + */ + MEDIUM(4), + /** + * + * + *
+   * The company has between 1,000 and 4,999 employees.
+   * 
+ * + * BIG = 5; + */ + BIG(5), + /** + * + * + *
+   * The company has between 5,000 and 9,999 employees.
+   * 
+ * + * BIGGER = 6; + */ + BIGGER(6), + /** + * + * + *
+   * The company has 10,000 or more employees.
+   * 
+ * + * GIANT = 7; + */ + GIANT(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value if the size isn't specified.
+   * 
+ * + * COMPANY_SIZE_UNSPECIFIED = 0; + */ + public static final int COMPANY_SIZE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The company has less than 50 employees.
+   * 
+ * + * MINI = 1; + */ + public static final int MINI_VALUE = 1; + /** + * + * + *
+   * The company has between 50 and 99 employees.
+   * 
+ * + * SMALL = 2; + */ + public static final int SMALL_VALUE = 2; + /** + * + * + *
+   * The company has between 100 and 499 employees.
+   * 
+ * + * SMEDIUM = 3; + */ + public static final int SMEDIUM_VALUE = 3; + /** + * + * + *
+   * The company has between 500 and 999 employees.
+   * 
+ * + * MEDIUM = 4; + */ + public static final int MEDIUM_VALUE = 4; + /** + * + * + *
+   * The company has between 1,000 and 4,999 employees.
+   * 
+ * + * BIG = 5; + */ + public static final int BIG_VALUE = 5; + /** + * + * + *
+   * The company has between 5,000 and 9,999 employees.
+   * 
+ * + * BIGGER = 6; + */ + public static final int BIGGER_VALUE = 6; + /** + * + * + *
+   * The company has 10,000 or more employees.
+   * 
+ * + * GIANT = 7; + */ + public static final int GIANT_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompanySize valueOf(int value) { + return forNumber(value); + } + + public static CompanySize forNumber(int value) { + switch (value) { + case 0: + return COMPANY_SIZE_UNSPECIFIED; + case 1: + return MINI; + case 2: + return SMALL; + case 3: + return SMEDIUM; + case 4: + return MEDIUM; + case 5: + return BIG; + case 6: + return BIGGER; + case 7: + return GIANT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompanySize findValueByNumber(int number) { + return CompanySize.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(0); + } + + private static final CompanySize[] VALUES = values(); + + public static CompanySize valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompanySize(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompanySize) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java new file mode 100644 index 000000000000..a4f53092842f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java @@ -0,0 +1,1603 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on job compensation type and amount.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationFilter} + */ +public final class CompensationFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationFilter) + CompensationFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationFilter.newBuilder() to construct. + private CompensationFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationFilter() { + type_ = 0; + units_ = java.util.Collections.emptyList(); + includeJobsWithUnspecifiedCompensationRange_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + units_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + units_.add(rawValue); + break; + } + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + units_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + units_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (range_ != null) { + subBuilder = range_.toBuilder(); + } + range_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(range_); + range_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + includeJobsWithUnspecifiedCompensationRange_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + units_ = java.util.Collections.unmodifiableList(units_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationFilter.class, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder.class); + } + + /** + * + * + *
+   * Specify the type of filtering.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationFilter.FilterType} + */ + public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Filter type unspecified. Position holder, INVALID, should never be used.
+     * 
+ * + * FILTER_TYPE_UNSPECIFIED = 0; + */ + FILTER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Filter by `base compensation entry's` unit. A job is a match if and
+     * only if the job contains a base CompensationEntry and the base
+     * CompensationEntry's unit matches provided
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units]. Populate
+     * one or more
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * 
+ * + * UNIT_ONLY = 1; + */ + UNIT_ONLY(1), + /** + * + * + *
+     * Filter by `base compensation entry's` unit and amount / range. A job
+     * is a match if and only if the job contains a base CompensationEntry, and
+     * the base entry's unit matches provided [compensation_units][] and amount
+     * or range overlaps with provided [compensation_range][].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * Set exactly one
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units] and
+     * populate [range][google.cloud.talent.v4beta1.CompensationFilter.range].
+     * 
+ * + * UNIT_AND_AMOUNT = 2; + */ + UNIT_AND_AMOUNT(2), + /** + * + * + *
+     * Filter by annualized base compensation amount and `base compensation
+     * entry's` unit. Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_BASE_AMOUNT = 3; + */ + ANNUALIZED_BASE_AMOUNT(3), + /** + * + * + *
+     * Filter by annualized total compensation amount and `base compensation
+     * entry's` unit . Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_TOTAL_AMOUNT = 4; + */ + ANNUALIZED_TOTAL_AMOUNT(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Filter type unspecified. Position holder, INVALID, should never be used.
+     * 
+ * + * FILTER_TYPE_UNSPECIFIED = 0; + */ + public static final int FILTER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Filter by `base compensation entry's` unit. A job is a match if and
+     * only if the job contains a base CompensationEntry and the base
+     * CompensationEntry's unit matches provided
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units]. Populate
+     * one or more
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * 
+ * + * UNIT_ONLY = 1; + */ + public static final int UNIT_ONLY_VALUE = 1; + /** + * + * + *
+     * Filter by `base compensation entry's` unit and amount / range. A job
+     * is a match if and only if the job contains a base CompensationEntry, and
+     * the base entry's unit matches provided [compensation_units][] and amount
+     * or range overlaps with provided [compensation_range][].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * Set exactly one
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units] and
+     * populate [range][google.cloud.talent.v4beta1.CompensationFilter.range].
+     * 
+ * + * UNIT_AND_AMOUNT = 2; + */ + public static final int UNIT_AND_AMOUNT_VALUE = 2; + /** + * + * + *
+     * Filter by annualized base compensation amount and `base compensation
+     * entry's` unit. Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_BASE_AMOUNT = 3; + */ + public static final int ANNUALIZED_BASE_AMOUNT_VALUE = 3; + /** + * + * + *
+     * Filter by annualized total compensation amount and `base compensation
+     * entry's` unit . Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_TOTAL_AMOUNT = 4; + */ + public static final int ANNUALIZED_TOTAL_AMOUNT_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static FilterType valueOf(int value) { + return forNumber(value); + } + + public static FilterType forNumber(int value) { + switch (value) { + case 0: + return FILTER_TYPE_UNSPECIFIED; + case 1: + return UNIT_ONLY; + case 2: + return UNIT_AND_AMOUNT; + case 3: + return ANNUALIZED_BASE_AMOUNT; + case 4: + return ANNUALIZED_TOTAL_AMOUNT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterType findValueByNumber(int number) { + return FilterType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompensationFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FilterType[] VALUES = values(); + + public static FilterType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FilterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationFilter.FilterType) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType result = + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.UNRECOGNIZED + : result; + } + + public static final int UNITS_FIELD_NUMBER = 2; + private java.util.List units_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit> + units_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit>() { + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public java.util.List + getUnitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit>( + units_, units_converter_); + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public int getUnitsCount() { + return units_.size(); + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnits(int index) { + return units_converter_.convert(units_.get(index)); + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public java.util.List getUnitsValueList() { + return units_; + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public int getUnitsValue(int index) { + return units_.get(index); + } + + private int unitsMemoizedSerializedSize; + + public static final int RANGE_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range_; + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public boolean hasRange() { + return range_ != null; + } + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + return range_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance() + : range_; + } + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + return getRange(); + } + + public static final int INCLUDE_JOBS_WITH_UNSPECIFIED_COMPENSATION_RANGE_FIELD_NUMBER = 4; + private boolean includeJobsWithUnspecifiedCompensationRange_; + /** + * + * + *
+   * Optional.
+   * Whether to include jobs whose compensation range is unspecified.
+   * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public boolean getIncludeJobsWithUnspecifiedCompensationRange() { + return includeJobsWithUnspecifiedCompensationRange_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (type_ + != com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.FILTER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (getUnitsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(unitsMemoizedSerializedSize); + } + for (int i = 0; i < units_.size(); i++) { + output.writeEnumNoTag(units_.get(i)); + } + if (range_ != null) { + output.writeMessage(3, getRange()); + } + if (includeJobsWithUnspecifiedCompensationRange_ != false) { + output.writeBool(4, includeJobsWithUnspecifiedCompensationRange_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.FILTER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + { + int dataSize = 0; + for (int i = 0; i < units_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(units_.get(i)); + } + size += dataSize; + if (!getUnitsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + unitsMemoizedSerializedSize = dataSize; + } + if (range_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRange()); + } + if (includeJobsWithUnspecifiedCompensationRange_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, includeJobsWithUnspecifiedCompensationRange_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationFilter other = + (com.google.cloud.talent.v4beta1.CompensationFilter) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && units_.equals(other.units_); + result = result && (hasRange() == other.hasRange()); + if (hasRange()) { + result = result && getRange().equals(other.getRange()); + } + result = + result + && (getIncludeJobsWithUnspecifiedCompensationRange() + == other.getIncludeJobsWithUnspecifiedCompensationRange()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getUnitsCount() > 0) { + hash = (37 * hash) + UNITS_FIELD_NUMBER; + hash = (53 * hash) + units_.hashCode(); + } + if (hasRange()) { + hash = (37 * hash) + RANGE_FIELD_NUMBER; + hash = (53 * hash) + getRange().hashCode(); + } + hash = (37 * hash) + INCLUDE_JOBS_WITH_UNSPECIFIED_COMPENSATION_RANGE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getIncludeJobsWithUnspecifiedCompensationRange()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CompensationFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Filter on job compensation type and amount.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationFilter) + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationFilter.class, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompensationFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + units_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + if (rangeBuilder_ == null) { + range_ = null; + } else { + range_ = null; + rangeBuilder_ = null; + } + includeJobsWithUnspecifiedCompensationRange_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter build() { + com.google.cloud.talent.v4beta1.CompensationFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter buildPartial() { + com.google.cloud.talent.v4beta1.CompensationFilter result = + new com.google.cloud.talent.v4beta1.CompensationFilter(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.type_ = type_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + units_ = java.util.Collections.unmodifiableList(units_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.units_ = units_; + if (rangeBuilder_ == null) { + result.range_ = range_; + } else { + result.range_ = rangeBuilder_.build(); + } + result.includeJobsWithUnspecifiedCompensationRange_ = + includeJobsWithUnspecifiedCompensationRange_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompensationFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompensationFilter other) { + if (other == com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.units_.isEmpty()) { + if (units_.isEmpty()) { + units_ = other.units_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnitsIsMutable(); + units_.addAll(other.units_); + } + onChanged(); + } + if (other.hasRange()) { + mergeRange(other.getRange()); + } + if (other.getIncludeJobsWithUnspecifiedCompensationRange() != false) { + setIncludeJobsWithUnspecifiedCompensationRange( + other.getIncludeJobsWithUnspecifiedCompensationRange()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompensationFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompensationFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType result = + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public Builder setType(com.google.cloud.talent.v4beta1.CompensationFilter.FilterType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.util.List units_ = java.util.Collections.emptyList(); + + private void ensureUnitsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + units_ = new java.util.ArrayList(units_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public java.util.List + getUnitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit>( + units_, units_converter_); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public int getUnitsCount() { + return units_.size(); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnits(int index) { + return units_converter_.convert(units_.get(index)); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder setUnits( + int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitsIsMutable(); + units_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addUnits( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitsIsMutable(); + units_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addAllUnits( + java.lang.Iterable< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit> + values) { + ensureUnitsIsMutable(); + for (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value : values) { + units_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder clearUnits() { + units_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public java.util.List getUnitsValueList() { + return java.util.Collections.unmodifiableList(units_); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public int getUnitsValue(int index) { + return units_.get(index); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder setUnitsValue(int index, int value) { + ensureUnitsIsMutable(); + units_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addUnitsValue(int value) { + ensureUnitsIsMutable(); + units_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addAllUnitsValue(java.lang.Iterable values) { + ensureUnitsIsMutable(); + for (int value : values) { + units_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + rangeBuilder_; + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public boolean hasRange() { + return rangeBuilder_ != null || range_ != null; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + if (rangeBuilder_ == null) { + return range_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : range_; + } else { + return rangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + range_ = value; + onChanged(); + } else { + rangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (rangeBuilder_ == null) { + range_ = builderForValue.build(); + onChanged(); + } else { + rangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder mergeRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (range_ != null) { + range_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder(range_) + .mergeFrom(value) + .buildPartial(); + } else { + range_ = value; + } + onChanged(); + } else { + rangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder clearRange() { + if (rangeBuilder_ == null) { + range_ = null; + onChanged(); + } else { + range_ = null; + rangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getRangeBuilder() { + + onChanged(); + return getRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + if (rangeBuilder_ != null) { + return rangeBuilder_.getMessageOrBuilder(); + } else { + return range_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : range_; + } + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getRangeFieldBuilder() { + if (rangeBuilder_ == null) { + rangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + getRange(), getParentForChildren(), isClean()); + range_ = null; + } + return rangeBuilder_; + } + + private boolean includeJobsWithUnspecifiedCompensationRange_; + /** + * + * + *
+     * Optional.
+     * Whether to include jobs whose compensation range is unspecified.
+     * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public boolean getIncludeJobsWithUnspecifiedCompensationRange() { + return includeJobsWithUnspecifiedCompensationRange_; + } + /** + * + * + *
+     * Optional.
+     * Whether to include jobs whose compensation range is unspecified.
+     * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public Builder setIncludeJobsWithUnspecifiedCompensationRange(boolean value) { + + includeJobsWithUnspecifiedCompensationRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to include jobs whose compensation range is unspecified.
+     * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public Builder clearIncludeJobsWithUnspecifiedCompensationRange() { + + includeJobsWithUnspecifiedCompensationRange_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationFilter) + private static final com.google.cloud.talent.v4beta1.CompensationFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationFilter(); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java new file mode 100644 index 000000000000..1671e6012df1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java @@ -0,0 +1,140 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompensationFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType(); + + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + java.util.List getUnitsList(); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + int getUnitsCount(); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnits(int index); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + java.util.List getUnitsValueList(); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + int getUnitsValue(int index); + + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + boolean hasRange(); + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange(); + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Whether to include jobs whose compensation range is unspecified.
+   * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + boolean getIncludeJobsWithUnspecifiedCompensationRange(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java new file mode 100644 index 000000000000..2882f322f519 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java @@ -0,0 +1,5809 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Job compensation details.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo} + */ +public final class CompensationInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo) + CompensationInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationInfo.newBuilder() to construct. + private CompensationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationInfo() { + entries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>(); + mutable_bitField0_ |= 0x00000001; + } + entries_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.parser(), + extensionRegistry)); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (annualizedBaseCompensationRange_ != null) { + subBuilder = annualizedBaseCompensationRange_.toBuilder(); + } + annualizedBaseCompensationRange_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annualizedBaseCompensationRange_); + annualizedBaseCompensationRange_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (annualizedTotalCompensationRange_ != null) { + subBuilder = annualizedTotalCompensationRange_.toBuilder(); + } + annualizedTotalCompensationRange_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annualizedTotalCompensationRange_); + annualizedTotalCompensationRange_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.class, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder.class); + } + + /** + * + * + *
+   * The type of compensation.
+   * For compensation amounts specified in non-monetary amounts,
+   * describe the compensation scheme in the
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description].
+   * For example, tipping format is described in
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]
+   * (for example, "expect 15-20% tips based on customer bill.") and an estimate
+   * of the tips provided in
+   * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]
+   * ($10 per hour).
+   * For example, equity is described in
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]
+   * (for example, "1% - 2% equity vesting over 4 years, 1 year cliff") and
+   * value estimated in
+   * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
+   * If no value estimate is possible, units are
+   * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED]
+   * and then further clarified in
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]
+   * field.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationType} + */ + public enum CompensationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_TYPE_UNSPECIFIED = 0; + */ + COMPENSATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Base compensation: Refers to the fixed amount of money paid to an
+     * employee by an employer in return for work performed. Base compensation
+     * does not include benefits, bonuses or any other potential compensation
+     * from an employer.
+     * 
+ * + * BASE = 1; + */ + BASE(1), + /** + * + * + *
+     * Bonus.
+     * 
+ * + * BONUS = 2; + */ + BONUS(2), + /** + * + * + *
+     * Signing bonus.
+     * 
+ * + * SIGNING_BONUS = 3; + */ + SIGNING_BONUS(3), + /** + * + * + *
+     * Equity.
+     * 
+ * + * EQUITY = 4; + */ + EQUITY(4), + /** + * + * + *
+     * Profit sharing.
+     * 
+ * + * PROFIT_SHARING = 5; + */ + PROFIT_SHARING(5), + /** + * + * + *
+     * Commission.
+     * 
+ * + * COMMISSIONS = 6; + */ + COMMISSIONS(6), + /** + * + * + *
+     * Tips.
+     * 
+ * + * TIPS = 7; + */ + TIPS(7), + /** + * + * + *
+     * Other compensation type.
+     * 
+ * + * OTHER_COMPENSATION_TYPE = 8; + */ + OTHER_COMPENSATION_TYPE(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_TYPE_UNSPECIFIED = 0; + */ + public static final int COMPENSATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Base compensation: Refers to the fixed amount of money paid to an
+     * employee by an employer in return for work performed. Base compensation
+     * does not include benefits, bonuses or any other potential compensation
+     * from an employer.
+     * 
+ * + * BASE = 1; + */ + public static final int BASE_VALUE = 1; + /** + * + * + *
+     * Bonus.
+     * 
+ * + * BONUS = 2; + */ + public static final int BONUS_VALUE = 2; + /** + * + * + *
+     * Signing bonus.
+     * 
+ * + * SIGNING_BONUS = 3; + */ + public static final int SIGNING_BONUS_VALUE = 3; + /** + * + * + *
+     * Equity.
+     * 
+ * + * EQUITY = 4; + */ + public static final int EQUITY_VALUE = 4; + /** + * + * + *
+     * Profit sharing.
+     * 
+ * + * PROFIT_SHARING = 5; + */ + public static final int PROFIT_SHARING_VALUE = 5; + /** + * + * + *
+     * Commission.
+     * 
+ * + * COMMISSIONS = 6; + */ + public static final int COMMISSIONS_VALUE = 6; + /** + * + * + *
+     * Tips.
+     * 
+ * + * TIPS = 7; + */ + public static final int TIPS_VALUE = 7; + /** + * + * + *
+     * Other compensation type.
+     * 
+ * + * OTHER_COMPENSATION_TYPE = 8; + */ + public static final int OTHER_COMPENSATION_TYPE_VALUE = 8; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompensationType valueOf(int value) { + return forNumber(value); + } + + public static CompensationType forNumber(int value) { + switch (value) { + case 0: + return COMPENSATION_TYPE_UNSPECIFIED; + case 1: + return BASE; + case 2: + return BONUS; + case 3: + return SIGNING_BONUS; + case 4: + return EQUITY; + case 5: + return PROFIT_SHARING; + case 6: + return COMMISSIONS; + case 7: + return TIPS; + case 8: + return OTHER_COMPENSATION_TYPE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompensationType findValueByNumber(int number) { + return CompensationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompensationInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final CompensationType[] VALUES = values(); + + public static CompensationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompensationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationType) + } + + /** + * + * + *
+   * Pay frequency.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit} + */ + public enum CompensationUnit implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_UNIT_UNSPECIFIED = 0; + */ + COMPENSATION_UNIT_UNSPECIFIED(0), + /** + * + * + *
+     * Hourly.
+     * 
+ * + * HOURLY = 1; + */ + HOURLY(1), + /** + * + * + *
+     * Daily.
+     * 
+ * + * DAILY = 2; + */ + DAILY(2), + /** + * + * + *
+     * Weekly
+     * 
+ * + * WEEKLY = 3; + */ + WEEKLY(3), + /** + * + * + *
+     * Monthly.
+     * 
+ * + * MONTHLY = 4; + */ + MONTHLY(4), + /** + * + * + *
+     * Yearly.
+     * 
+ * + * YEARLY = 5; + */ + YEARLY(5), + /** + * + * + *
+     * One time.
+     * 
+ * + * ONE_TIME = 6; + */ + ONE_TIME(6), + /** + * + * + *
+     * Other compensation units.
+     * 
+ * + * OTHER_COMPENSATION_UNIT = 7; + */ + OTHER_COMPENSATION_UNIT(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_UNIT_UNSPECIFIED = 0; + */ + public static final int COMPENSATION_UNIT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Hourly.
+     * 
+ * + * HOURLY = 1; + */ + public static final int HOURLY_VALUE = 1; + /** + * + * + *
+     * Daily.
+     * 
+ * + * DAILY = 2; + */ + public static final int DAILY_VALUE = 2; + /** + * + * + *
+     * Weekly
+     * 
+ * + * WEEKLY = 3; + */ + public static final int WEEKLY_VALUE = 3; + /** + * + * + *
+     * Monthly.
+     * 
+ * + * MONTHLY = 4; + */ + public static final int MONTHLY_VALUE = 4; + /** + * + * + *
+     * Yearly.
+     * 
+ * + * YEARLY = 5; + */ + public static final int YEARLY_VALUE = 5; + /** + * + * + *
+     * One time.
+     * 
+ * + * ONE_TIME = 6; + */ + public static final int ONE_TIME_VALUE = 6; + /** + * + * + *
+     * Other compensation units.
+     * 
+ * + * OTHER_COMPENSATION_UNIT = 7; + */ + public static final int OTHER_COMPENSATION_UNIT_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompensationUnit valueOf(int value) { + return forNumber(value); + } + + public static CompensationUnit forNumber(int value) { + switch (value) { + case 0: + return COMPENSATION_UNIT_UNSPECIFIED; + case 1: + return HOURLY; + case 2: + return DAILY; + case 3: + return WEEKLY; + case 4: + return MONTHLY; + case 5: + return YEARLY; + case 6: + return ONE_TIME; + case 7: + return OTHER_COMPENSATION_UNIT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompensationUnit findValueByNumber(int number) { + return CompensationUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompensationInfo.getDescriptor().getEnumTypes().get(1); + } + + private static final CompensationUnit[] VALUES = values(); + + public static CompensationUnit valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompensationUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit) + } + + public interface CompensationEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType(); + + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + int getUnitValue(); + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit(); + + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + boolean hasAmount(); + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + com.google.type.Money getAmount(); + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + com.google.type.MoneyOrBuilder getAmountOrBuilder(); + + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + boolean hasRange(); + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange(); + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder(); + + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + java.lang.String getDescription(); + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + boolean hasExpectedUnitsPerYear(); + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + com.google.protobuf.DoubleValue getExpectedUnitsPerYear(); + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder(); + + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.CompensationAmountCase + getCompensationAmountCase(); + } + /** + * + * + *
+   * A compensation entry that represents one component of compensation, such
+   * as base pay, bonus, or other compensation type.
+   * Annualization: One compensation entry can be annualized if
+   * - it contains valid
+   * [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
+   * - and its
+   * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]
+   * is set or can be derived. Its annualized range is determined as
+   * ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range])
+   * times
+   * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry} + */ + public static final class CompensationEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + CompensationEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationEntry.newBuilder() to construct. + private CompensationEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationEntry() { + type_ = 0; + unit_ = 0; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + unit_ = rawValue; + break; + } + case 26: + { + com.google.type.Money.Builder subBuilder = null; + if (compensationAmountCase_ == 3) { + subBuilder = ((com.google.type.Money) compensationAmount_).toBuilder(); + } + compensationAmount_ = + input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.Money) compensationAmount_); + compensationAmount_ = subBuilder.buildPartial(); + } + compensationAmountCase_ = 3; + break; + } + case 34: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (compensationAmountCase_ == 4) { + subBuilder = + ((com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_) + .toBuilder(); + } + compensationAmount_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_); + compensationAmount_ = subBuilder.buildPartial(); + } + compensationAmountCase_ = 4; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 50: + { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (expectedUnitsPerYear_ != null) { + subBuilder = expectedUnitsPerYear_.toBuilder(); + } + expectedUnitsPerYear_ = + input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedUnitsPerYear_); + expectedUnitsPerYear_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder.class); + } + + private int compensationAmountCase_ = 0; + private java.lang.Object compensationAmount_; + + public enum CompensationAmountCase implements com.google.protobuf.Internal.EnumLite { + AMOUNT(3), + RANGE(4), + COMPENSATIONAMOUNT_NOT_SET(0); + private final int value; + + private CompensationAmountCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompensationAmountCase valueOf(int value) { + return forNumber(value); + } + + public static CompensationAmountCase forNumber(int value) { + switch (value) { + case 3: + return AMOUNT; + case 4: + return RANGE; + case 0: + return COMPENSATIONAMOUNT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CompensationAmountCase getCompensationAmountCase() { + return CompensationAmountCase.forNumber(compensationAmountCase_); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.UNRECOGNIZED + : result; + } + + public static final int UNIT_FIELD_NUMBER = 2; + private int unit_; + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(unit_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED + : result; + } + + public static final int AMOUNT_FIELD_NUMBER = 3; + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + public boolean hasAmount() { + return compensationAmountCase_ == 3; + } + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.Money getAmount() { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.MoneyOrBuilder getAmountOrBuilder() { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } + + public static final int RANGE_FIELD_NUMBER = 4; + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public boolean hasRange() { + return compensationAmountCase_ == 4; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_UNITS_PER_YEAR_FIELD_NUMBER = 6; + private com.google.protobuf.DoubleValue expectedUnitsPerYear_; + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public boolean hasExpectedUnitsPerYear() { + return expectedUnitsPerYear_ != null; + } + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() { + return expectedUnitsPerYear_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : expectedUnitsPerYear_; + } + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() { + return getExpectedUnitsPerYear(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType + .COMPENSATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (unit_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit + .COMPENSATION_UNIT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, unit_); + } + if (compensationAmountCase_ == 3) { + output.writeMessage(3, (com.google.type.Money) compensationAmount_); + } + if (compensationAmountCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + if (expectedUnitsPerYear_ != null) { + output.writeMessage(6, getExpectedUnitsPerYear()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType + .COMPENSATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (unit_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit + .COMPENSATION_UNIT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unit_); + } + if (compensationAmountCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.type.Money) compensationAmount_); + } + if (compensationAmountCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + if (expectedUnitsPerYear_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpectedUnitsPerYear()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry other = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && unit_ == other.unit_; + result = result && getDescription().equals(other.getDescription()); + result = result && (hasExpectedUnitsPerYear() == other.hasExpectedUnitsPerYear()); + if (hasExpectedUnitsPerYear()) { + result = result && getExpectedUnitsPerYear().equals(other.getExpectedUnitsPerYear()); + } + result = result && getCompensationAmountCase().equals(other.getCompensationAmountCase()); + if (!result) return false; + switch (compensationAmountCase_) { + case 3: + result = result && getAmount().equals(other.getAmount()); + break; + case 4: + result = result && getRange().equals(other.getRange()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + unit_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasExpectedUnitsPerYear()) { + hash = (37 * hash) + EXPECTED_UNITS_PER_YEAR_FIELD_NUMBER; + hash = (53 * hash) + getExpectedUnitsPerYear().hashCode(); + } + switch (compensationAmountCase_) { + case 3: + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + break; + case 4: + hash = (37 * hash) + RANGE_FIELD_NUMBER; + hash = (53 * hash) + getRange().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A compensation entry that represents one component of compensation, such
+     * as base pay, bonus, or other compensation type.
+     * Annualization: One compensation entry can be annualized if
+     * - it contains valid
+     * [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+     * or
+     * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
+     * - and its
+     * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]
+     * is set or can be derived. Its annualized range is determined as
+     * ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+     * or
+     * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range])
+     * times
+     * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + unit_ = 0; + + description_ = ""; + + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYear_ = null; + } else { + expectedUnitsPerYear_ = null; + expectedUnitsPerYearBuilder_ = null; + } + compensationAmountCase_ = 0; + compensationAmount_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry build() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry buildPartial() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry result = + new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry(this); + result.type_ = type_; + result.unit_ = unit_; + if (compensationAmountCase_ == 3) { + if (amountBuilder_ == null) { + result.compensationAmount_ = compensationAmount_; + } else { + result.compensationAmount_ = amountBuilder_.build(); + } + } + if (compensationAmountCase_ == 4) { + if (rangeBuilder_ == null) { + result.compensationAmount_ = compensationAmount_; + } else { + result.compensationAmount_ = rangeBuilder_.build(); + } + } + result.description_ = description_; + if (expectedUnitsPerYearBuilder_ == null) { + result.expectedUnitsPerYear_ = expectedUnitsPerYear_; + } else { + result.expectedUnitsPerYear_ = expectedUnitsPerYearBuilder_.build(); + } + result.compensationAmountCase_ = compensationAmountCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry other) { + if (other + == com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.unit_ != 0) { + setUnitValue(other.getUnitValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasExpectedUnitsPerYear()) { + mergeExpectedUnitsPerYear(other.getExpectedUnitsPerYear()); + } + switch (other.getCompensationAmountCase()) { + case AMOUNT: + { + mergeAmount(other.getAmount()); + break; + } + case RANGE: + { + mergeRange(other.getRange()); + break; + } + case COMPENSATIONAMOUNT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int compensationAmountCase_ = 0; + private java.lang.Object compensationAmount_; + + public CompensationAmountCase getCompensationAmountCase() { + return CompensationAmountCase.forNumber(compensationAmountCase_); + } + + public Builder clearCompensationAmount() { + compensationAmountCase_ = 0; + compensationAmount_ = null; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public Builder setType( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private int unit_ = 0; + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public Builder setUnitValue(int value) { + unit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(unit_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public Builder setUnit( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) { + if (value == null) { + throw new NullPointerException(); + } + + unit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public Builder clearUnit() { + + unit_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + amountBuilder_; + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public boolean hasAmount() { + return compensationAmountCase_ == 3; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.Money getAmount() { + if (amountBuilder_ == null) { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } else { + if (compensationAmountCase_ == 3) { + return amountBuilder_.getMessage(); + } + return com.google.type.Money.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder setAmount(com.google.type.Money value) { + if (amountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationAmount_ = value; + onChanged(); + } else { + amountBuilder_.setMessage(value); + } + compensationAmountCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder setAmount(com.google.type.Money.Builder builderForValue) { + if (amountBuilder_ == null) { + compensationAmount_ = builderForValue.build(); + onChanged(); + } else { + amountBuilder_.setMessage(builderForValue.build()); + } + compensationAmountCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder mergeAmount(com.google.type.Money value) { + if (amountBuilder_ == null) { + if (compensationAmountCase_ == 3 + && compensationAmount_ != com.google.type.Money.getDefaultInstance()) { + compensationAmount_ = + com.google.type.Money.newBuilder((com.google.type.Money) compensationAmount_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationAmount_ = value; + } + onChanged(); + } else { + if (compensationAmountCase_ == 3) { + amountBuilder_.mergeFrom(value); + } + amountBuilder_.setMessage(value); + } + compensationAmountCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder clearAmount() { + if (amountBuilder_ == null) { + if (compensationAmountCase_ == 3) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + onChanged(); + } + } else { + if (compensationAmountCase_ == 3) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + } + amountBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.Money.Builder getAmountBuilder() { + return getAmountFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.MoneyOrBuilder getAmountOrBuilder() { + if ((compensationAmountCase_ == 3) && (amountBuilder_ != null)) { + return amountBuilder_.getMessageOrBuilder(); + } else { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getAmountFieldBuilder() { + if (amountBuilder_ == null) { + if (!(compensationAmountCase_ == 3)) { + compensationAmount_ = com.google.type.Money.getDefaultInstance(); + } + amountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + (com.google.type.Money) compensationAmount_, getParentForChildren(), isClean()); + compensationAmount_ = null; + } + compensationAmountCase_ = 3; + onChanged(); + ; + return amountBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + rangeBuilder_; + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public boolean hasRange() { + return compensationAmountCase_ == 4; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + if (rangeBuilder_ == null) { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } else { + if (compensationAmountCase_ == 4) { + return rangeBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationAmount_ = value; + onChanged(); + } else { + rangeBuilder_.setMessage(value); + } + compensationAmountCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (rangeBuilder_ == null) { + compensationAmount_ = builderForValue.build(); + onChanged(); + } else { + rangeBuilder_.setMessage(builderForValue.build()); + } + compensationAmountCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder mergeRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (compensationAmountCase_ == 4 + && compensationAmount_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance()) { + compensationAmount_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationAmount_ = value; + } + onChanged(); + } else { + if (compensationAmountCase_ == 4) { + rangeBuilder_.mergeFrom(value); + } + rangeBuilder_.setMessage(value); + } + compensationAmountCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder clearRange() { + if (rangeBuilder_ == null) { + if (compensationAmountCase_ == 4) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + onChanged(); + } + } else { + if (compensationAmountCase_ == 4) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + } + rangeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getRangeBuilder() { + return getRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + if ((compensationAmountCase_ == 4) && (rangeBuilder_ != null)) { + return rangeBuilder_.getMessageOrBuilder(); + } else { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getRangeFieldBuilder() { + if (rangeBuilder_ == null) { + if (!(compensationAmountCase_ == 4)) { + compensationAmount_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + rangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_, + getParentForChildren(), + isClean()); + compensationAmount_ = null; + } + compensationAmountCase_ = 4; + onChanged(); + ; + return rangeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.DoubleValue expectedUnitsPerYear_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + expectedUnitsPerYearBuilder_; + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public boolean hasExpectedUnitsPerYear() { + return expectedUnitsPerYearBuilder_ != null || expectedUnitsPerYear_ != null; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() { + if (expectedUnitsPerYearBuilder_ == null) { + return expectedUnitsPerYear_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : expectedUnitsPerYear_; + } else { + return expectedUnitsPerYearBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder setExpectedUnitsPerYear(com.google.protobuf.DoubleValue value) { + if (expectedUnitsPerYearBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedUnitsPerYear_ = value; + onChanged(); + } else { + expectedUnitsPerYearBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder setExpectedUnitsPerYear( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYear_ = builderForValue.build(); + onChanged(); + } else { + expectedUnitsPerYearBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder mergeExpectedUnitsPerYear(com.google.protobuf.DoubleValue value) { + if (expectedUnitsPerYearBuilder_ == null) { + if (expectedUnitsPerYear_ != null) { + expectedUnitsPerYear_ = + com.google.protobuf.DoubleValue.newBuilder(expectedUnitsPerYear_) + .mergeFrom(value) + .buildPartial(); + } else { + expectedUnitsPerYear_ = value; + } + onChanged(); + } else { + expectedUnitsPerYearBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder clearExpectedUnitsPerYear() { + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYear_ = null; + onChanged(); + } else { + expectedUnitsPerYear_ = null; + expectedUnitsPerYearBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValue.Builder getExpectedUnitsPerYearBuilder() { + + onChanged(); + return getExpectedUnitsPerYearFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() { + if (expectedUnitsPerYearBuilder_ != null) { + return expectedUnitsPerYearBuilder_.getMessageOrBuilder(); + } else { + return expectedUnitsPerYear_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : expectedUnitsPerYear_; + } + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + getExpectedUnitsPerYearFieldBuilder() { + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYearBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder>( + getExpectedUnitsPerYear(), getParentForChildren(), isClean()); + expectedUnitsPerYear_ = null; + } + return expectedUnitsPerYearBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + private static final com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry(); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CompensationRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + boolean hasMaxCompensation(); + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + com.google.type.Money getMaxCompensation(); + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder(); + + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + boolean hasMinCompensation(); + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + com.google.type.Money getMinCompensation(); + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + com.google.type.MoneyOrBuilder getMinCompensationOrBuilder(); + } + /** + * + * + *
+   * Compensation range.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationRange} + */ + public static final class CompensationRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + CompensationRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationRange.newBuilder() to construct. + private CompensationRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationRange() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Money.Builder subBuilder = null; + if (minCompensation_ != null) { + subBuilder = minCompensation_.toBuilder(); + } + minCompensation_ = + input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minCompensation_); + minCompensation_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Money.Builder subBuilder = null; + if (maxCompensation_ != null) { + subBuilder = maxCompensation_.toBuilder(); + } + maxCompensation_ = + input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxCompensation_); + maxCompensation_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder.class); + } + + public static final int MAX_COMPENSATION_FIELD_NUMBER = 2; + private com.google.type.Money maxCompensation_; + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + public boolean hasMaxCompensation() { + return maxCompensation_ != null; + } + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.Money getMaxCompensation() { + return maxCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : maxCompensation_; + } + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() { + return getMaxCompensation(); + } + + public static final int MIN_COMPENSATION_FIELD_NUMBER = 1; + private com.google.type.Money minCompensation_; + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + public boolean hasMinCompensation() { + return minCompensation_ != null; + } + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.Money getMinCompensation() { + return minCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : minCompensation_; + } + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() { + return getMinCompensation(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (minCompensation_ != null) { + output.writeMessage(1, getMinCompensation()); + } + if (maxCompensation_ != null) { + output.writeMessage(2, getMaxCompensation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minCompensation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinCompensation()); + } + if (maxCompensation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxCompensation()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange other = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) obj; + + boolean result = true; + result = result && (hasMaxCompensation() == other.hasMaxCompensation()); + if (hasMaxCompensation()) { + result = result && getMaxCompensation().equals(other.getMaxCompensation()); + } + result = result && (hasMinCompensation() == other.hasMinCompensation()); + if (hasMinCompensation()) { + result = result && getMinCompensation().equals(other.getMinCompensation()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMaxCompensation()) { + hash = (37 * hash) + MAX_COMPENSATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxCompensation().hashCode(); + } + if (hasMinCompensation()) { + hash = (37 * hash) + MIN_COMPENSATION_FIELD_NUMBER; + hash = (53 * hash) + getMinCompensation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Compensation range.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationRange} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (maxCompensationBuilder_ == null) { + maxCompensation_ = null; + } else { + maxCompensation_ = null; + maxCompensationBuilder_ = null; + } + if (minCompensationBuilder_ == null) { + minCompensation_ = null; + } else { + minCompensation_ = null; + minCompensationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange build() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange buildPartial() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange result = + new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange(this); + if (maxCompensationBuilder_ == null) { + result.maxCompensation_ = maxCompensation_; + } else { + result.maxCompensation_ = maxCompensationBuilder_.build(); + } + if (minCompensationBuilder_ == null) { + result.minCompensation_ = minCompensation_; + } else { + result.minCompensation_ = minCompensationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange other) { + if (other + == com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance()) return this; + if (other.hasMaxCompensation()) { + mergeMaxCompensation(other.getMaxCompensation()); + } + if (other.hasMinCompensation()) { + mergeMinCompensation(other.getMinCompensation()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.type.Money maxCompensation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + maxCompensationBuilder_; + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public boolean hasMaxCompensation() { + return maxCompensationBuilder_ != null || maxCompensation_ != null; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.Money getMaxCompensation() { + if (maxCompensationBuilder_ == null) { + return maxCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : maxCompensation_; + } else { + return maxCompensationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder setMaxCompensation(com.google.type.Money value) { + if (maxCompensationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxCompensation_ = value; + onChanged(); + } else { + maxCompensationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder setMaxCompensation(com.google.type.Money.Builder builderForValue) { + if (maxCompensationBuilder_ == null) { + maxCompensation_ = builderForValue.build(); + onChanged(); + } else { + maxCompensationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder mergeMaxCompensation(com.google.type.Money value) { + if (maxCompensationBuilder_ == null) { + if (maxCompensation_ != null) { + maxCompensation_ = + com.google.type.Money.newBuilder(maxCompensation_).mergeFrom(value).buildPartial(); + } else { + maxCompensation_ = value; + } + onChanged(); + } else { + maxCompensationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder clearMaxCompensation() { + if (maxCompensationBuilder_ == null) { + maxCompensation_ = null; + onChanged(); + } else { + maxCompensation_ = null; + maxCompensationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.Money.Builder getMaxCompensationBuilder() { + + onChanged(); + return getMaxCompensationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() { + if (maxCompensationBuilder_ != null) { + return maxCompensationBuilder_.getMessageOrBuilder(); + } else { + return maxCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : maxCompensation_; + } + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getMaxCompensationFieldBuilder() { + if (maxCompensationBuilder_ == null) { + maxCompensationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + getMaxCompensation(), getParentForChildren(), isClean()); + maxCompensation_ = null; + } + return maxCompensationBuilder_; + } + + private com.google.type.Money minCompensation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + minCompensationBuilder_; + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public boolean hasMinCompensation() { + return minCompensationBuilder_ != null || minCompensation_ != null; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.Money getMinCompensation() { + if (minCompensationBuilder_ == null) { + return minCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : minCompensation_; + } else { + return minCompensationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder setMinCompensation(com.google.type.Money value) { + if (minCompensationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minCompensation_ = value; + onChanged(); + } else { + minCompensationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder setMinCompensation(com.google.type.Money.Builder builderForValue) { + if (minCompensationBuilder_ == null) { + minCompensation_ = builderForValue.build(); + onChanged(); + } else { + minCompensationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder mergeMinCompensation(com.google.type.Money value) { + if (minCompensationBuilder_ == null) { + if (minCompensation_ != null) { + minCompensation_ = + com.google.type.Money.newBuilder(minCompensation_).mergeFrom(value).buildPartial(); + } else { + minCompensation_ = value; + } + onChanged(); + } else { + minCompensationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder clearMinCompensation() { + if (minCompensationBuilder_ == null) { + minCompensation_ = null; + onChanged(); + } else { + minCompensation_ = null; + minCompensationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.Money.Builder getMinCompensationBuilder() { + + onChanged(); + return getMinCompensationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() { + if (minCompensationBuilder_ != null) { + return minCompensationBuilder_.getMessageOrBuilder(); + } else { + return minCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : minCompensation_; + } + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getMinCompensationFieldBuilder() { + if (minCompensationBuilder_ == null) { + minCompensationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + getMinCompensation(), getParentForChildren(), isClean()); + minCompensation_ = null; + } + return minCompensationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + private static final com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange(); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ENTRIES_FIELD_NUMBER = 1; + private java.util.List + entries_; + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List + getEntriesList() { + return entries_; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public int getEntriesCount() { + return entries_.size(); + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries(int index) { + return entries_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int ANNUALIZED_BASE_COMPENSATION_RANGE_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedBaseCompensationRange_; + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public boolean hasAnnualizedBaseCompensationRange() { + return annualizedBaseCompensationRange_ != null; + } + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedBaseCompensationRange() { + return annualizedBaseCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance() + : annualizedBaseCompensationRange_; + } + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedBaseCompensationRangeOrBuilder() { + return getAnnualizedBaseCompensationRange(); + } + + public static final int ANNUALIZED_TOTAL_COMPENSATION_RANGE_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedTotalCompensationRange_; + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public boolean hasAnnualizedTotalCompensationRange() { + return annualizedTotalCompensationRange_ != null; + } + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedTotalCompensationRange() { + return annualizedTotalCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance() + : annualizedTotalCompensationRange_; + } + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedTotalCompensationRangeOrBuilder() { + return getAnnualizedTotalCompensationRange(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (annualizedBaseCompensationRange_ != null) { + output.writeMessage(2, getAnnualizedBaseCompensationRange()); + } + if (annualizedTotalCompensationRange_ != null) { + output.writeMessage(3, getAnnualizedTotalCompensationRange()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (annualizedBaseCompensationRange_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getAnnualizedBaseCompensationRange()); + } + if (annualizedTotalCompensationRange_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getAnnualizedTotalCompensationRange()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationInfo other = + (com.google.cloud.talent.v4beta1.CompensationInfo) obj; + + boolean result = true; + result = result && getEntriesList().equals(other.getEntriesList()); + result = + result + && (hasAnnualizedBaseCompensationRange() == other.hasAnnualizedBaseCompensationRange()); + if (hasAnnualizedBaseCompensationRange()) { + result = + result + && getAnnualizedBaseCompensationRange() + .equals(other.getAnnualizedBaseCompensationRange()); + } + result = + result + && (hasAnnualizedTotalCompensationRange() + == other.hasAnnualizedTotalCompensationRange()); + if (hasAnnualizedTotalCompensationRange()) { + result = + result + && getAnnualizedTotalCompensationRange() + .equals(other.getAnnualizedTotalCompensationRange()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + if (hasAnnualizedBaseCompensationRange()) { + hash = (37 * hash) + ANNUALIZED_BASE_COMPENSATION_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getAnnualizedBaseCompensationRange().hashCode(); + } + if (hasAnnualizedTotalCompensationRange()) { + hash = (37 * hash) + ANNUALIZED_TOTAL_COMPENSATION_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getAnnualizedTotalCompensationRange().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CompensationInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Job compensation details.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo) + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.class, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompensationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEntriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entriesBuilder_.clear(); + } + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRange_ = null; + } else { + annualizedBaseCompensationRange_ = null; + annualizedBaseCompensationRangeBuilder_ = null; + } + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRange_ = null; + } else { + annualizedTotalCompensationRange_ = null; + annualizedTotalCompensationRangeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo build() { + com.google.cloud.talent.v4beta1.CompensationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo buildPartial() { + com.google.cloud.talent.v4beta1.CompensationInfo result = + new com.google.cloud.talent.v4beta1.CompensationInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + if (annualizedBaseCompensationRangeBuilder_ == null) { + result.annualizedBaseCompensationRange_ = annualizedBaseCompensationRange_; + } else { + result.annualizedBaseCompensationRange_ = annualizedBaseCompensationRangeBuilder_.build(); + } + if (annualizedTotalCompensationRangeBuilder_ == null) { + result.annualizedTotalCompensationRange_ = annualizedTotalCompensationRange_; + } else { + result.annualizedTotalCompensationRange_ = annualizedTotalCompensationRangeBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompensationInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompensationInfo other) { + if (other == com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (other.hasAnnualizedBaseCompensationRange()) { + mergeAnnualizedBaseCompensationRange(other.getAnnualizedBaseCompensationRange()); + } + if (other.hasAnnualizedTotalCompensationRange()) { + mergeAnnualizedTotalCompensationRange(other.getAnnualizedTotalCompensationRange()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompensationInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CompensationInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>(entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries( + int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder setEntries( + int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + getEntriesBuilder(int index) { + return getEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + addEntriesBuilder() { + return getEntriesFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + addEntriesBuilder(int index) { + return getEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder> + getEntriesBuilderList() { + return getEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder>( + entries_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedBaseCompensationRange_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + annualizedBaseCompensationRangeBuilder_; + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public boolean hasAnnualizedBaseCompensationRange() { + return annualizedBaseCompensationRangeBuilder_ != null + || annualizedBaseCompensationRange_ != null; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedBaseCompensationRange() { + if (annualizedBaseCompensationRangeBuilder_ == null) { + return annualizedBaseCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedBaseCompensationRange_; + } else { + return annualizedBaseCompensationRangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder setAnnualizedBaseCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedBaseCompensationRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annualizedBaseCompensationRange_ = value; + onChanged(); + } else { + annualizedBaseCompensationRangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder setAnnualizedBaseCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRange_ = builderForValue.build(); + onChanged(); + } else { + annualizedBaseCompensationRangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder mergeAnnualizedBaseCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedBaseCompensationRangeBuilder_ == null) { + if (annualizedBaseCompensationRange_ != null) { + annualizedBaseCompensationRange_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder( + annualizedBaseCompensationRange_) + .mergeFrom(value) + .buildPartial(); + } else { + annualizedBaseCompensationRange_ = value; + } + onChanged(); + } else { + annualizedBaseCompensationRangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder clearAnnualizedBaseCompensationRange() { + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRange_ = null; + onChanged(); + } else { + annualizedBaseCompensationRange_ = null; + annualizedBaseCompensationRangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getAnnualizedBaseCompensationRangeBuilder() { + + onChanged(); + return getAnnualizedBaseCompensationRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedBaseCompensationRangeOrBuilder() { + if (annualizedBaseCompensationRangeBuilder_ != null) { + return annualizedBaseCompensationRangeBuilder_.getMessageOrBuilder(); + } else { + return annualizedBaseCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedBaseCompensationRange_; + } + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getAnnualizedBaseCompensationRangeFieldBuilder() { + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + getAnnualizedBaseCompensationRange(), getParentForChildren(), isClean()); + annualizedBaseCompensationRange_ = null; + } + return annualizedBaseCompensationRangeBuilder_; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedTotalCompensationRange_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + annualizedTotalCompensationRangeBuilder_; + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public boolean hasAnnualizedTotalCompensationRange() { + return annualizedTotalCompensationRangeBuilder_ != null + || annualizedTotalCompensationRange_ != null; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedTotalCompensationRange() { + if (annualizedTotalCompensationRangeBuilder_ == null) { + return annualizedTotalCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedTotalCompensationRange_; + } else { + return annualizedTotalCompensationRangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder setAnnualizedTotalCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedTotalCompensationRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annualizedTotalCompensationRange_ = value; + onChanged(); + } else { + annualizedTotalCompensationRangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder setAnnualizedTotalCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRange_ = builderForValue.build(); + onChanged(); + } else { + annualizedTotalCompensationRangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder mergeAnnualizedTotalCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedTotalCompensationRangeBuilder_ == null) { + if (annualizedTotalCompensationRange_ != null) { + annualizedTotalCompensationRange_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder( + annualizedTotalCompensationRange_) + .mergeFrom(value) + .buildPartial(); + } else { + annualizedTotalCompensationRange_ = value; + } + onChanged(); + } else { + annualizedTotalCompensationRangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder clearAnnualizedTotalCompensationRange() { + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRange_ = null; + onChanged(); + } else { + annualizedTotalCompensationRange_ = null; + annualizedTotalCompensationRangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getAnnualizedTotalCompensationRangeBuilder() { + + onChanged(); + return getAnnualizedTotalCompensationRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedTotalCompensationRangeOrBuilder() { + if (annualizedTotalCompensationRangeBuilder_ != null) { + return annualizedTotalCompensationRangeBuilder_.getMessageOrBuilder(); + } else { + return annualizedTotalCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedTotalCompensationRange_; + } + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getAnnualizedTotalCompensationRangeFieldBuilder() { + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + getAnnualizedTotalCompensationRange(), getParentForChildren(), isClean()); + annualizedTotalCompensationRange_ = null; + } + return annualizedTotalCompensationRangeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo) + private static final com.google.cloud.talent.v4beta1.CompensationInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo(); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java new file mode 100644 index 000000000000..899c5cc7fca6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java @@ -0,0 +1,198 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompensationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + java.util.List + getEntriesList(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries(int index); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + int getEntriesCount(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder getEntriesOrBuilder( + int index); + + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + boolean hasAnnualizedBaseCompensationRange(); + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedBaseCompensationRange(); + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedBaseCompensationRangeOrBuilder(); + + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + boolean hasAnnualizedTotalCompensationRange(); + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedTotalCompensationRange(); + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedTotalCompensationRangeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java new file mode 100644 index 000000000000..f363034e4261 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java @@ -0,0 +1,2228 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Auto-complete parameters.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryRequest} + */ +public final class CompleteQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompleteQueryRequest) + CompleteQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompleteQueryRequest.newBuilder() to construct. + private CompleteQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompleteQueryRequest() { + name_ = ""; + query_ = ""; + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + pageSize_ = 0; + companyName_ = ""; + scope_ = 0; + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompleteQueryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + languageCodes_.add(s); + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + companyName_ = s; + break; + } + case 48: + { + int rawValue = input.readEnum(); + + scope_ = rawValue; + break; + } + case 56: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.class, + com.google.cloud.talent.v4beta1.CompleteQueryRequest.Builder.class); + } + + /** + * + * + *
+   * Enum to specify the scope of completion.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope} + */ + public enum CompletionScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_SCOPE_UNSPECIFIED = 0; + */ + COMPLETION_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Suggestions are based only on the data provided by the client.
+     * 
+ * + * TENANT = 1; + */ + TENANT(1), + /** + * + * + *
+     * Suggestions are based on all jobs data in the system that's visible to
+     * the client
+     * 
+ * + * PUBLIC = 2; + */ + PUBLIC(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_SCOPE_UNSPECIFIED = 0; + */ + public static final int COMPLETION_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Suggestions are based only on the data provided by the client.
+     * 
+ * + * TENANT = 1; + */ + public static final int TENANT_VALUE = 1; + /** + * + * + *
+     * Suggestions are based on all jobs data in the system that's visible to
+     * the client
+     * 
+ * + * PUBLIC = 2; + */ + public static final int PUBLIC_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompletionScope valueOf(int value) { + return forNumber(value); + } + + public static CompletionScope forNumber(int value) { + switch (value) { + case 0: + return COMPLETION_SCOPE_UNSPECIFIED; + case 1: + return TENANT; + case 2: + return PUBLIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompletionScope findValueByNumber(int number) { + return CompletionScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CompletionScope[] VALUES = values(); + + public static CompletionScope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompletionScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope) + } + + /** + * + * + *
+   * Enum to specify auto-completion topics.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType} + */ + public enum CompletionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_TYPE_UNSPECIFIED = 0; + */ + COMPLETION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Only suggest job titles.
+     * 
+ * + * JOB_TITLE = 1; + */ + JOB_TITLE(1), + /** + * + * + *
+     * Only suggest company names.
+     * 
+ * + * COMPANY_NAME = 2; + */ + COMPANY_NAME(2), + /** + * + * + *
+     * Suggest both job titles and company names.
+     * 
+ * + * COMBINED = 3; + */ + COMBINED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_TYPE_UNSPECIFIED = 0; + */ + public static final int COMPLETION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Only suggest job titles.
+     * 
+ * + * JOB_TITLE = 1; + */ + public static final int JOB_TITLE_VALUE = 1; + /** + * + * + *
+     * Only suggest company names.
+     * 
+ * + * COMPANY_NAME = 2; + */ + public static final int COMPANY_NAME_VALUE = 2; + /** + * + * + *
+     * Suggest both job titles and company names.
+     * 
+ * + * COMBINED = 3; + */ + public static final int COMBINED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompletionType valueOf(int value) { + return forNumber(value); + } + + public static CompletionType forNumber(int value) { + switch (value) { + case 0: + return COMPLETION_TYPE_UNSPECIFIED; + case 1: + return JOB_TITLE; + case 2: + return COMPANY_NAME; + case 3: + return COMBINED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompletionType findValueByNumber(int number) { + return CompletionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final CompletionType[] VALUES = values(); + + public static CompletionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CompletionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + private volatile java.lang.Object query_; + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList languageCodes_; + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_; + } + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Required.
+   * Completion result count.
+   * The maximum allowed page size is 10.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int COMPANY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object companyName_; + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 6; + private int scope_; + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope getScope() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.valueOf(scope_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.UNRECOGNIZED + : result; + } + + public static final int TYPE_FIELD_NUMBER = 7; + private int type_; + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + for (int i = 0; i < languageCodes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCodes_.getRaw(i)); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!getCompanyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, companyName_); + } + if (scope_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope + .COMPLETION_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, scope_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + { + int dataSize = 0; + for (int i = 0; i < languageCodes_.size(); i++) { + dataSize += computeStringSizeNoTag(languageCodes_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguageCodesList().size(); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!getCompanyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, companyName_); + } + if (scope_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope + .COMPLETION_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompleteQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompleteQueryRequest other = + (com.google.cloud.talent.v4beta1.CompleteQueryRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getQuery().equals(other.getQuery()); + result = result && getLanguageCodesList().equals(other.getLanguageCodesList()); + result = result && (getPageSize() == other.getPageSize()); + result = result && getCompanyName().equals(other.getCompanyName()); + result = result && scope_ == other.scope_; + result = result && type_ == other.type_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getLanguageCodesCount() > 0) { + hash = (37 * hash) + LANGUAGE_CODES_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCodesList().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyName().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CompleteQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Auto-complete parameters.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompleteQueryRequest) + com.google.cloud.talent.v4beta1.CompleteQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.class, + com.google.cloud.talent.v4beta1.CompleteQueryRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompleteQueryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + query_ = ""; + + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + + companyName_ = ""; + + scope_ = 0; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest build() { + com.google.cloud.talent.v4beta1.CompleteQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest buildPartial() { + com.google.cloud.talent.v4beta1.CompleteQueryRequest result = + new com.google.cloud.talent.v4beta1.CompleteQueryRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.query_ = query_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.languageCodes_ = languageCodes_; + result.pageSize_ = pageSize_; + result.companyName_ = companyName_; + result.scope_ = scope_; + result.type_ = type_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompleteQueryRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompleteQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompleteQueryRequest other) { + if (other == com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (!other.languageCodes_.isEmpty()) { + if (languageCodes_.isEmpty()) { + languageCodes_ = other.languageCodes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLanguageCodesIsMutable(); + languageCodes_.addAll(other.languageCodes_); + } + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getCompanyName().isEmpty()) { + companyName_ = other.companyName_; + onChanged(); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompleteQueryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompleteQueryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList languageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLanguageCodesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder addAllLanguageCodes(java.lang.Iterable values) { + ensureLanguageCodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder clearLanguageCodes() { + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Required.
+     * Completion result count.
+     * The maximum allowed page size is 10.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Required.
+     * Completion result count.
+     * The maximum allowed page size is 10.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Completion result count.
+     * The maximum allowed page size is 10.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object companyName_ = ""; + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public Builder setCompanyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + companyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public Builder clearCompanyName() { + + companyName_ = getDefaultInstance().getCompanyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + companyName_ = value; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public Builder setScopeValue(int value) { + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope getScope() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.valueOf(scope_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public Builder setScope( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public Builder setType( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompleteQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryRequest) + private static final com.google.cloud.talent.v4beta1.CompleteQueryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompleteQueryRequest(); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteQueryRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java new file mode 100644 index 000000000000..982aa5ea5358 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java @@ -0,0 +1,281 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompleteQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompleteQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + java.util.List getLanguageCodesList(); + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + int getLanguageCodesCount(); + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + java.lang.String getLanguageCodes(int index); + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + com.google.protobuf.ByteString getLanguageCodesBytes(int index); + + /** + * + * + *
+   * Required.
+   * Completion result count.
+   * The maximum allowed page size is 10.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + java.lang.String getCompanyName(); + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + com.google.protobuf.ByteString getCompanyNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + int getScopeValue(); + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope getScope(); + + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + int getTypeValue(); + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java new file mode 100644 index 000000000000..10807621f658 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java @@ -0,0 +1,2284 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Response of auto-complete query.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse} + */ +public final class CompleteQueryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompleteQueryResponse) + CompleteQueryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompleteQueryResponse.newBuilder() to construct. + private CompleteQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompleteQueryResponse() { + completionResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompleteQueryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult>(); + mutable_bitField0_ |= 0x00000001; + } + completionResults_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .parser(), + extensionRegistry)); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = java.util.Collections.unmodifiableList(completionResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.Builder.class); + } + + public interface CompletionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + java.lang.String getSuggestion(); + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + com.google.protobuf.ByteString getSuggestionBytes(); + + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + int getTypeValue(); + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType(); + + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + java.lang.String getImageUri(); + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + com.google.protobuf.ByteString getImageUriBytes(); + } + /** + * + * + *
+   * Output only.
+   * Resource that represents completion results.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult} + */ + public static final class CompletionResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + CompletionResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompletionResult.newBuilder() to construct. + private CompletionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompletionResult() { + suggestion_ = ""; + type_ = 0; + imageUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompletionResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + suggestion_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + imageUri_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder.class); + } + + public static final int SUGGESTION_FIELD_NUMBER = 1; + private volatile java.lang.Object suggestion_; + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } + } + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + + public static final int IMAGE_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object imageUri_; + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } + } + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSuggestionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, suggestion_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (!getImageUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSuggestionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, suggestion_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!getImageUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult other = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) obj; + + boolean result = true; + result = result && getSuggestion().equals(other.getSuggestion()); + result = result && type_ == other.type_; + result = result && getImageUri().equals(other.getImageUri()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSuggestion().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getImageUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Output only.
+     * Resource that represents completion results.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + .class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + suggestion_ = ""; + + type_ = 0; + + imageUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult build() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult buildPartial() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult result = + new com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult(this); + result.suggestion_ = suggestion_; + result.type_ = type_; + result.imageUri_ = imageUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult other) { + if (other + == com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance()) return this; + if (!other.getSuggestion().isEmpty()) { + suggestion_ = other.suggestion_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getImageUri().isEmpty()) { + imageUri_ = other.imageUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object suggestion_ = ""; + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public Builder setSuggestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + suggestion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public Builder clearSuggestion() { + + suggestion_ = getDefaultInstance().getSuggestion(); + onChanged(); + return this; + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public Builder setSuggestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + suggestion_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public Builder setType( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object imageUri_ = ""; + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public Builder setImageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public Builder clearImageUri() { + + imageUri_ = getDefaultInstance().getImageUri(); + onChanged(); + return this; + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageUri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + private static final com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult(); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompletionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompletionResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int COMPLETION_RESULTS_FIELD_NUMBER = 1; + private java.util.List + completionResults_; + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List + getCompletionResultsList() { + return completionResults_; + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsOrBuilderList() { + return completionResults_; + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public int getCompletionResultsCount() { + return completionResults_.size(); + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getCompletionResults(int index) { + return completionResults_.get(index); + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder + getCompletionResultsOrBuilder(int index) { + return completionResults_.get(index); + } + + public static final int METADATA_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < completionResults_.size(); i++) { + output.writeMessage(1, completionResults_.get(i)); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < completionResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, completionResults_.get(i)); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CompleteQueryResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompleteQueryResponse other = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse) obj; + + boolean result = true; + result = result && getCompletionResultsList().equals(other.getCompletionResultsList()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCompletionResultsCount() > 0) { + hash = (37 * hash) + COMPLETION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getCompletionResultsList().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.CompleteQueryResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Response of auto-complete query.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompleteQueryResponse) + com.google.cloud.talent.v4beta1.CompleteQueryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompleteQueryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCompletionResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (completionResultsBuilder_ == null) { + completionResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + completionResultsBuilder_.clear(); + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompleteQueryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse build() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse buildPartial() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse result = + new com.google.cloud.talent.v4beta1.CompleteQueryResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (completionResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = java.util.Collections.unmodifiableList(completionResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.completionResults_ = completionResults_; + } else { + result.completionResults_ = completionResultsBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompleteQueryResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompleteQueryResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompleteQueryResponse other) { + if (other == com.google.cloud.talent.v4beta1.CompleteQueryResponse.getDefaultInstance()) + return this; + if (completionResultsBuilder_ == null) { + if (!other.completionResults_.isEmpty()) { + if (completionResults_.isEmpty()) { + completionResults_ = other.completionResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCompletionResultsIsMutable(); + completionResults_.addAll(other.completionResults_); + } + onChanged(); + } + } else { + if (!other.completionResults_.isEmpty()) { + if (completionResultsBuilder_.isEmpty()) { + completionResultsBuilder_.dispose(); + completionResultsBuilder_ = null; + completionResults_ = other.completionResults_; + bitField0_ = (bitField0_ & ~0x00000001); + completionResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCompletionResultsFieldBuilder() + : null; + } else { + completionResultsBuilder_.addAllMessages(other.completionResults_); + } + } + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CompleteQueryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + completionResults_ = java.util.Collections.emptyList(); + + private void ensureCompletionResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult>( + completionResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + completionResultsBuilder_; + + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List + getCompletionResultsList() { + if (completionResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(completionResults_); + } else { + return completionResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public int getCompletionResultsCount() { + if (completionResultsBuilder_ == null) { + return completionResults_.size(); + } else { + return completionResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getCompletionResults(int index) { + if (completionResultsBuilder_ == null) { + return completionResults_.get(index); + } else { + return completionResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder setCompletionResults( + int index, com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult value) { + if (completionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletionResultsIsMutable(); + completionResults_.set(index, value); + onChanged(); + } else { + completionResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder setCompletionResults( + int index, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + builderForValue) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.set(index, builderForValue.build()); + onChanged(); + } else { + completionResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult value) { + if (completionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletionResultsIsMutable(); + completionResults_.add(value); + onChanged(); + } else { + completionResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + int index, com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult value) { + if (completionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletionResultsIsMutable(); + completionResults_.add(index, value); + onChanged(); + } else { + completionResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + builderForValue) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.add(builderForValue.build()); + onChanged(); + } else { + completionResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + int index, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + builderForValue) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.add(index, builderForValue.build()); + onChanged(); + } else { + completionResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addAllCompletionResults( + java.lang.Iterable< + ? extends com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult> + values) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, completionResults_); + onChanged(); + } else { + completionResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder clearCompletionResults() { + if (completionResultsBuilder_ == null) { + completionResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + completionResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder removeCompletionResults(int index) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.remove(index); + onChanged(); + } else { + completionResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + getCompletionResultsBuilder(int index) { + return getCompletionResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder + getCompletionResultsOrBuilder(int index) { + if (completionResultsBuilder_ == null) { + return completionResults_.get(index); + } else { + return completionResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsOrBuilderList() { + if (completionResultsBuilder_ != null) { + return completionResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(completionResults_); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + addCompletionResultsBuilder() { + return getCompletionResultsFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance()); + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + addCompletionResultsBuilder(int index) { + return getCompletionResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance()); + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder> + getCompletionResultsBuilderList() { + return getCompletionResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsFieldBuilder() { + if (completionResultsBuilder_ == null) { + completionResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder>( + completionResults_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + completionResults_ = null; + } + return completionResultsBuilder_; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompleteQueryResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryResponse) + private static final com.google.cloud.talent.v4beta1.CompleteQueryResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompleteQueryResponse(); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteQueryResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java new file mode 100644 index 000000000000..11a04a8fe6c9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java @@ -0,0 +1,110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompleteQueryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompleteQueryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + java.util.List + getCompletionResultsList(); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult getCompletionResults( + int index); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + int getCompletionResultsCount(); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsOrBuilderList(); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder + getCompletionResultsOrBuilder(int index); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java new file mode 100644 index 000000000000..71b87989a667 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class CompletionServiceProto { + private CompletionServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/talent/v4beta1/completion" + + "_service.proto\022\033google.cloud.talent.v4be" + + "ta1\032\034google/api/annotations.proto\032(googl" + + "e/cloud/talent/v4beta1/common.proto\"\305\003\n\024" + + "CompleteQueryRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005qu" + + "ery\030\002 \001(\t\022\026\n\016language_codes\030\003 \003(\t\022\021\n\tpag" + + "e_size\030\004 \001(\005\022\024\n\014company_name\030\005 \001(\t\022P\n\005sc" + + "ope\030\006 \001(\0162A.google.cloud.talent.v4beta1." + + "CompleteQueryRequest.CompletionScope\022N\n\004" + + "type\030\007 \001(\0162@.google.cloud.talent.v4beta1" + + ".CompleteQueryRequest.CompletionType\"K\n\017" + + "CompletionScope\022 \n\034COMPLETION_SCOPE_UNSP" + + "ECIFIED\020\000\022\n\n\006TENANT\020\001\022\n\n\006PUBLIC\020\002\"`\n\016Com" + + "pletionType\022\037\n\033COMPLETION_TYPE_UNSPECIFI" + + "ED\020\000\022\r\n\tJOB_TITLE\020\001\022\020\n\014COMPANY_NAME\020\002\022\014\n" + + "\010COMBINED\020\003\"\305\002\n\025CompleteQueryResponse\022_\n" + + "\022completion_results\030\001 \003(\0132C.google.cloud" + + ".talent.v4beta1.CompleteQueryResponse.Co" + + "mpletionResult\022?\n\010metadata\030\002 \001(\0132-.googl" + + "e.cloud.talent.v4beta1.ResponseMetadata\032" + + "\211\001\n\020CompletionResult\022\022\n\nsuggestion\030\001 \001(\t" + + "\022N\n\004type\030\002 \001(\0162@.google.cloud.talent.v4b" + + "eta1.CompleteQueryRequest.CompletionType" + + "\022\021\n\timage_uri\030\003 \001(\t2\262\001\n\nCompletion\022\243\001\n\rC" + + "ompleteQuery\0221.google.cloud.talent.v4bet" + + "a1.CompleteQueryRequest\0322.google.cloud.t" + + "alent.v4beta1.CompleteQueryResponse\"+\202\323\344" + + "\223\002%\022#/v4beta1/{name=projects/*}:complete" + + "B\204\001\n\037com.google.cloud.talent.v4beta1B\026Co" + + "mpletionServiceProtoP\001ZAgoogle.golang.or" + + "g/genproto/googleapis/cloud/talent/v4bet" + + "a1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor, + new java.lang.String[] { + "Name", "Query", "LanguageCodes", "PageSize", "CompanyName", "Scope", "Type", + }); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor, + new java.lang.String[] { + "CompletionResults", "Metadata", + }); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor = + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor, + new java.lang.String[] { + "Suggestion", "Type", "ImageUri", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java new file mode 100644 index 000000000000..49c59a2d0bd5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Enum that represents the usage of the contact information.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.ContactInfoUsage} + */ +public enum ContactInfoUsage implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * CONTACT_INFO_USAGE_UNSPECIFIED = 0; + */ + CONTACT_INFO_USAGE_UNSPECIFIED(0), + /** + * + * + *
+   * Personal use.
+   * 
+ * + * PERSONAL = 1; + */ + PERSONAL(1), + /** + * + * + *
+   * Work use.
+   * 
+ * + * WORK = 2; + */ + WORK(2), + /** + * + * + *
+   * School use.
+   * 
+ * + * SCHOOL = 3; + */ + SCHOOL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * CONTACT_INFO_USAGE_UNSPECIFIED = 0; + */ + public static final int CONTACT_INFO_USAGE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Personal use.
+   * 
+ * + * PERSONAL = 1; + */ + public static final int PERSONAL_VALUE = 1; + /** + * + * + *
+   * Work use.
+   * 
+ * + * WORK = 2; + */ + public static final int WORK_VALUE = 2; + /** + * + * + *
+   * School use.
+   * 
+ * + * SCHOOL = 3; + */ + public static final int SCHOOL_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ContactInfoUsage valueOf(int value) { + return forNumber(value); + } + + public static ContactInfoUsage forNumber(int value) { + switch (value) { + case 0: + return CONTACT_INFO_USAGE_UNSPECIFIED; + case 1: + return PERSONAL; + case 2: + return WORK; + case 3: + return SCHOOL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContactInfoUsage findValueByNumber(int number) { + return ContactInfoUsage.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(8); + } + + private static final ContactInfoUsage[] VALUES = values(); + + public static ContactInfoUsage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ContactInfoUsage(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.ContactInfoUsage) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java new file mode 100644 index 000000000000..fc01eee2b685 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java @@ -0,0 +1,891 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The report event request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateClientEventRequest} + */ +public final class CreateClientEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateClientEventRequest) + CreateClientEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateClientEventRequest.newBuilder() to construct. + private CreateClientEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateClientEventRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateClientEventRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.ClientEvent.Builder subBuilder = null; + if (clientEvent_ != null) { + subBuilder = clientEvent_.toBuilder(); + } + clientEvent_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ClientEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientEvent_); + clientEvent_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateClientEventRequest.class, + com.google.cloud.talent.v4beta1.CreateClientEventRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_EVENT_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.ClientEvent clientEvent_; + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public boolean hasClientEvent() { + return clientEvent_ != null; + } + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEvent getClientEvent() { + return clientEvent_ == null + ? com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance() + : clientEvent_; + } + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEventOrBuilder getClientEventOrBuilder() { + return getClientEvent(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (clientEvent_ != null) { + output.writeMessage(2, getClientEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (clientEvent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClientEvent()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateClientEventRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateClientEventRequest other = + (com.google.cloud.talent.v4beta1.CreateClientEventRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasClientEvent() == other.hasClientEvent()); + if (hasClientEvent()) { + result = result && getClientEvent().equals(other.getClientEvent()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasClientEvent()) { + hash = (37 * hash) + CLIENT_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getClientEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.CreateClientEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The report event request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateClientEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateClientEventRequest) + com.google.cloud.talent.v4beta1.CreateClientEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateClientEventRequest.class, + com.google.cloud.talent.v4beta1.CreateClientEventRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateClientEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (clientEventBuilder_ == null) { + clientEvent_ = null; + } else { + clientEvent_ = null; + clientEventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateClientEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest build() { + com.google.cloud.talent.v4beta1.CreateClientEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateClientEventRequest result = + new com.google.cloud.talent.v4beta1.CreateClientEventRequest(this); + result.parent_ = parent_; + if (clientEventBuilder_ == null) { + result.clientEvent_ = clientEvent_; + } else { + result.clientEvent_ = clientEventBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateClientEventRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateClientEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateClientEventRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateClientEventRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasClientEvent()) { + mergeClientEvent(other.getClientEvent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CreateClientEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateClientEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ClientEvent clientEvent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ClientEvent, + com.google.cloud.talent.v4beta1.ClientEvent.Builder, + com.google.cloud.talent.v4beta1.ClientEventOrBuilder> + clientEventBuilder_; + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public boolean hasClientEvent() { + return clientEventBuilder_ != null || clientEvent_ != null; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEvent getClientEvent() { + if (clientEventBuilder_ == null) { + return clientEvent_ == null + ? com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance() + : clientEvent_; + } else { + return clientEventBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder setClientEvent(com.google.cloud.talent.v4beta1.ClientEvent value) { + if (clientEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientEvent_ = value; + onChanged(); + } else { + clientEventBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder setClientEvent( + com.google.cloud.talent.v4beta1.ClientEvent.Builder builderForValue) { + if (clientEventBuilder_ == null) { + clientEvent_ = builderForValue.build(); + onChanged(); + } else { + clientEventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder mergeClientEvent(com.google.cloud.talent.v4beta1.ClientEvent value) { + if (clientEventBuilder_ == null) { + if (clientEvent_ != null) { + clientEvent_ = + com.google.cloud.talent.v4beta1.ClientEvent.newBuilder(clientEvent_) + .mergeFrom(value) + .buildPartial(); + } else { + clientEvent_ = value; + } + onChanged(); + } else { + clientEventBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder clearClientEvent() { + if (clientEventBuilder_ == null) { + clientEvent_ = null; + onChanged(); + } else { + clientEvent_ = null; + clientEventBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEvent.Builder getClientEventBuilder() { + + onChanged(); + return getClientEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEventOrBuilder getClientEventOrBuilder() { + if (clientEventBuilder_ != null) { + return clientEventBuilder_.getMessageOrBuilder(); + } else { + return clientEvent_ == null + ? com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance() + : clientEvent_; + } + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ClientEvent, + com.google.cloud.talent.v4beta1.ClientEvent.Builder, + com.google.cloud.talent.v4beta1.ClientEventOrBuilder> + getClientEventFieldBuilder() { + if (clientEventBuilder_ == null) { + clientEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ClientEvent, + com.google.cloud.talent.v4beta1.ClientEvent.Builder, + com.google.cloud.talent.v4beta1.ClientEventOrBuilder>( + getClientEvent(), getParentForChildren(), isClean()); + clientEvent_ = null; + } + return clientEventBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateClientEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateClientEventRequest) + private static final com.google.cloud.talent.v4beta1.CreateClientEventRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateClientEventRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClientEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateClientEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java new file mode 100644 index 000000000000..fc28ad9c1563 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateClientEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateClientEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + boolean hasClientEvent(); + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + com.google.cloud.talent.v4beta1.ClientEvent getClientEvent(); + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + com.google.cloud.talent.v4beta1.ClientEventOrBuilder getClientEventOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java new file mode 100644 index 000000000000..3d96e5681665 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java @@ -0,0 +1,898 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The Request of the CreateCompany method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateCompanyRequest} + */ +public final class CreateCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateCompanyRequest) + CreateCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCompanyRequest.newBuilder() to construct. + private CreateCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCompanyRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Company.Builder subBuilder = null; + if (company_ != null) { + subBuilder = company_.toBuilder(); + } + company_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Company.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(company_); + company_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateCompanyRequest.class, + com.google.cloud.talent.v4beta1.CreateCompanyRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Company company_; + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public boolean hasCompany() { + return company_ != null; + } + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + return getCompany(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (company_ != null) { + output.writeMessage(2, getCompany()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (company_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCompany()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateCompanyRequest other = + (com.google.cloud.talent.v4beta1.CreateCompanyRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasCompany() == other.hasCompany()); + if (hasCompany()) { + result = result && getCompany().equals(other.getCompany()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCompany()) { + hash = (37 * hash) + COMPANY_FIELD_NUMBER; + hash = (53 * hash) + getCompany().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CreateCompanyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The Request of the CreateCompany method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateCompanyRequest) + com.google.cloud.talent.v4beta1.CreateCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateCompanyRequest.class, + com.google.cloud.talent.v4beta1.CreateCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (companyBuilder_ == null) { + company_ = null; + } else { + company_ = null; + companyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest build() { + com.google.cloud.talent.v4beta1.CreateCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateCompanyRequest result = + new com.google.cloud.talent.v4beta1.CreateCompanyRequest(this); + result.parent_ = parent_; + if (companyBuilder_ == null) { + result.company_ = company_; + } else { + result.company_ = companyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateCompanyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasCompany()) { + mergeCompany(other.getCompany()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CreateCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Company company_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + companyBuilder_; + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public boolean hasCompany() { + return companyBuilder_ != null || company_ != null; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + if (companyBuilder_ == null) { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } else { + return companyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + company_ = value; + onChanged(); + } else { + companyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companyBuilder_ == null) { + company_ = builderForValue.build(); + onChanged(); + } else { + companyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder mergeCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (company_ != null) { + company_ = + com.google.cloud.talent.v4beta1.Company.newBuilder(company_) + .mergeFrom(value) + .buildPartial(); + } else { + company_ = value; + } + onChanged(); + } else { + companyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder clearCompany() { + if (companyBuilder_ == null) { + company_ = null; + onChanged(); + } else { + company_ = null; + companyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.Company.Builder getCompanyBuilder() { + + onChanged(); + return getCompanyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + if (companyBuilder_ != null) { + return companyBuilder_.getMessageOrBuilder(); + } else { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + getCompanyFieldBuilder() { + if (companyBuilder_ == null) { + companyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder>( + getCompany(), getParentForChildren(), isClean()); + company_ = null; + } + return companyBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateCompanyRequest) + private static final com.google.cloud.talent.v4beta1.CreateCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCompanyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..66c77cc47271 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + boolean hasCompany(); + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + com.google.cloud.talent.v4beta1.Company getCompany(); + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java new file mode 100644 index 000000000000..ef27d7e96821 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java @@ -0,0 +1,891 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Create job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateJobRequest} + */ +public final class CreateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateJobRequest) + CreateJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateJobRequest.newBuilder() to construct. + private CreateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateJobRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateJobRequest.class, + com.google.cloud.talent.v4beta1.CreateJobRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (job_ != null) { + output.writeMessage(2, getJob()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateJobRequest other = + (com.google.cloud.talent.v4beta1.CreateJobRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CreateJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Create job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateJobRequest) + com.google.cloud.talent.v4beta1.CreateJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateJobRequest.class, + com.google.cloud.talent.v4beta1.CreateJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest build() { + com.google.cloud.talent.v4beta1.CreateJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateJobRequest result = + new com.google.cloud.talent.v4beta1.CreateJobRequest(this); + result.parent_ = parent_; + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateJobRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasJob()) { + mergeJob(other.getJob()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CreateJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CreateJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateJobRequest) + private static final com.google.cloud.talent.v4beta1.CreateJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java new file mode 100644 index 000000000000..d26387c15ca5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + boolean hasJob(); + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java new file mode 100644 index 000000000000..4bc6ce2c11d5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java @@ -0,0 +1,898 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Create profile request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateProfileRequest} + */ +public final class CreateProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateProfileRequest) + CreateProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateProfileRequest.newBuilder() to construct. + private CreateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateProfileRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateProfileRequest.class, + com.google.cloud.talent.v4beta1.CreateProfileRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROFILE_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Profile profile_; + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + return getProfile(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (profile_ != null) { + output.writeMessage(2, getProfile()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProfile()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateProfileRequest other = + (com.google.cloud.talent.v4beta1.CreateProfileRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasProfile() == other.hasProfile()); + if (hasProfile()) { + result = result && getProfile().equals(other.getProfile()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CreateProfileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Create profile request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateProfileRequest) + com.google.cloud.talent.v4beta1.CreateProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateProfileRequest.class, + com.google.cloud.talent.v4beta1.CreateProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest build() { + com.google.cloud.talent.v4beta1.CreateProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateProfileRequest result = + new com.google.cloud.talent.v4beta1.CreateProfileRequest(this); + result.parent_ = parent_; + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateProfileRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CreateProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Profile profile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profileBuilder_; + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateProfileRequest) + private static final com.google.cloud.talent.v4beta1.CreateProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProfileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java new file mode 100644 index 000000000000..99906e3c1cbb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + boolean hasProfile(); + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + com.google.cloud.talent.v4beta1.Profile getProfile(); + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java new file mode 100644 index 000000000000..2c99d90fa316 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java @@ -0,0 +1,896 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The Request of the CreateTenant method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateTenantRequest} + */ +public final class CreateTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateTenantRequest) + CreateTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTenantRequest.newBuilder() to construct. + private CreateTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTenantRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Tenant.Builder subBuilder = null; + if (tenant_ != null) { + subBuilder = tenant_.toBuilder(); + } + tenant_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Tenant.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tenant_); + tenant_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateTenantRequest.class, + com.google.cloud.talent.v4beta1.CreateTenantRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Tenant tenant_; + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public boolean hasTenant() { + return tenant_ != null; + } + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + return tenant_ == null ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() : tenant_; + } + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + return getTenant(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (tenant_ != null) { + output.writeMessage(2, getTenant()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (tenant_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTenant()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateTenantRequest other = + (com.google.cloud.talent.v4beta1.CreateTenantRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasTenant() == other.hasTenant()); + if (hasTenant()) { + result = result && getTenant().equals(other.getTenant()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasTenant()) { + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CreateTenantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The Request of the CreateTenant method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateTenantRequest) + com.google.cloud.talent.v4beta1.CreateTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateTenantRequest.class, + com.google.cloud.talent.v4beta1.CreateTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (tenantBuilder_ == null) { + tenant_ = null; + } else { + tenant_ = null; + tenantBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest build() { + com.google.cloud.talent.v4beta1.CreateTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateTenantRequest result = + new com.google.cloud.talent.v4beta1.CreateTenantRequest(this); + result.parent_ = parent_; + if (tenantBuilder_ == null) { + result.tenant_ = tenant_; + } else { + result.tenant_ = tenantBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateTenantRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasTenant()) { + mergeTenant(other.getTenant()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CreateTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Tenant tenant_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + tenantBuilder_; + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public boolean hasTenant() { + return tenantBuilder_ != null || tenant_ != null; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + if (tenantBuilder_ == null) { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } else { + return tenantBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + onChanged(); + } else { + tenantBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantBuilder_ == null) { + tenant_ = builderForValue.build(); + onChanged(); + } else { + tenantBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder mergeTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (tenant_ != null) { + tenant_ = + com.google.cloud.talent.v4beta1.Tenant.newBuilder(tenant_) + .mergeFrom(value) + .buildPartial(); + } else { + tenant_ = value; + } + onChanged(); + } else { + tenantBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder clearTenant() { + if (tenantBuilder_ == null) { + tenant_ = null; + onChanged(); + } else { + tenant_ = null; + tenantBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder getTenantBuilder() { + + onChanged(); + return getTenantFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + if (tenantBuilder_ != null) { + return tenantBuilder_.getMessageOrBuilder(); + } else { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + getTenantFieldBuilder() { + if (tenantBuilder_ == null) { + tenantBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder>( + getTenant(), getParentForChildren(), isClean()); + tenant_ = null; + } + return tenantBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateTenantRequest) + private static final com.google.cloud.talent.v4beta1.CreateTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTenantRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java new file mode 100644 index 000000000000..418f88b7ef4b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + boolean hasTenant(); + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + com.google.cloud.talent.v4beta1.Tenant getTenant(); + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java new file mode 100644 index 000000000000..dfa5c3b82e5e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java @@ -0,0 +1,1202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Custom attribute values that are either filterable or non-filterable.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CustomAttribute} + */ +public final class CustomAttribute extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CustomAttribute) + CustomAttributeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomAttribute.newBuilder() to construct. + private CustomAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomAttribute() { + stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + longValues_ = java.util.Collections.emptyList(); + filterable_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomAttribute( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stringValues_.add(s); + break; + } + case 16: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + longValues_.add(input.readInt64()); + break; + } + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) + && input.getBytesUntilLimit() > 0) { + longValues_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + longValues_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 24: + { + filterable_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = stringValues_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = java.util.Collections.unmodifiableList(longValues_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CustomAttribute.class, + com.google.cloud.talent.v4beta1.CustomAttribute.Builder.class); + } + + private int bitField0_; + public static final int STRING_VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList stringValues_; + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ProtocolStringList getStringValuesList() { + return stringValues_; + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public int getStringValuesCount() { + return stringValues_.size(); + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public java.lang.String getStringValues(int index) { + return stringValues_.get(index); + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ByteString getStringValuesBytes(int index) { + return stringValues_.getByteString(index); + } + + public static final int LONG_VALUES_FIELD_NUMBER = 2; + private java.util.List longValues_; + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + public java.util.List getLongValuesList() { + return longValues_; + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + public int getLongValuesCount() { + return longValues_.size(); + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + public long getLongValues(int index) { + return longValues_.get(index); + } + + private int longValuesMemoizedSerializedSize = -1; + + public static final int FILTERABLE_FIELD_NUMBER = 3; + private boolean filterable_; + /** + * + * + *
+   * Optional.
+   * If the `filterable` flag is true, custom field values are searchable.
+   * If false, values are not searchable.
+   * Default is false.
+   * 
+ * + * bool filterable = 3; + */ + public boolean getFilterable() { + return filterable_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < stringValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stringValues_.getRaw(i)); + } + if (getLongValuesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(longValuesMemoizedSerializedSize); + } + for (int i = 0; i < longValues_.size(); i++) { + output.writeInt64NoTag(longValues_.get(i)); + } + if (filterable_ != false) { + output.writeBool(3, filterable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < stringValues_.size(); i++) { + dataSize += computeStringSizeNoTag(stringValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getStringValuesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < longValues_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(longValues_.get(i)); + } + size += dataSize; + if (!getLongValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + longValuesMemoizedSerializedSize = dataSize; + } + if (filterable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, filterable_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.CustomAttribute)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CustomAttribute other = + (com.google.cloud.talent.v4beta1.CustomAttribute) obj; + + boolean result = true; + result = result && getStringValuesList().equals(other.getStringValuesList()); + result = result && getLongValuesList().equals(other.getLongValuesList()); + result = result && (getFilterable() == other.getFilterable()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStringValuesCount() > 0) { + hash = (37 * hash) + STRING_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getStringValuesList().hashCode(); + } + if (getLongValuesCount() > 0) { + hash = (37 * hash) + LONG_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getLongValuesList().hashCode(); + } + hash = (37 * hash) + FILTERABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFilterable()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.CustomAttribute prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Custom attribute values that are either filterable or non-filterable.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CustomAttribute} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CustomAttribute) + com.google.cloud.talent.v4beta1.CustomAttributeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CustomAttribute.class, + com.google.cloud.talent.v4beta1.CustomAttribute.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CustomAttribute.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + longValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + filterable_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute build() { + com.google.cloud.talent.v4beta1.CustomAttribute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute buildPartial() { + com.google.cloud.talent.v4beta1.CustomAttribute result = + new com.google.cloud.talent.v4beta1.CustomAttribute(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = stringValues_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stringValues_ = stringValues_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = java.util.Collections.unmodifiableList(longValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.longValues_ = longValues_; + result.filterable_ = filterable_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CustomAttribute) { + return mergeFrom((com.google.cloud.talent.v4beta1.CustomAttribute) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CustomAttribute other) { + if (other == com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance()) + return this; + if (!other.stringValues_.isEmpty()) { + if (stringValues_.isEmpty()) { + stringValues_ = other.stringValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStringValuesIsMutable(); + stringValues_.addAll(other.stringValues_); + } + onChanged(); + } + if (!other.longValues_.isEmpty()) { + if (longValues_.isEmpty()) { + longValues_ = other.longValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLongValuesIsMutable(); + longValues_.addAll(other.longValues_); + } + onChanged(); + } + if (other.getFilterable() != false) { + setFilterable(other.getFilterable()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.CustomAttribute parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CustomAttribute) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList stringValues_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureStringValuesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = new com.google.protobuf.LazyStringArrayList(stringValues_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ProtocolStringList getStringValuesList() { + return stringValues_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public int getStringValuesCount() { + return stringValues_.size(); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public java.lang.String getStringValues(int index) { + return stringValues_.get(index); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ByteString getStringValuesBytes(int index) { + return stringValues_.getByteString(index); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder setStringValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringValuesIsMutable(); + stringValues_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder addStringValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringValuesIsMutable(); + stringValues_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder addAllStringValues(java.lang.Iterable values) { + ensureStringValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stringValues_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder clearStringValues() { + stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder addStringValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStringValuesIsMutable(); + stringValues_.add(value); + onChanged(); + return this; + } + + private java.util.List longValues_ = java.util.Collections.emptyList(); + + private void ensureLongValuesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = new java.util.ArrayList(longValues_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public java.util.List getLongValuesList() { + return java.util.Collections.unmodifiableList(longValues_); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public int getLongValuesCount() { + return longValues_.size(); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public long getLongValues(int index) { + return longValues_.get(index); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder setLongValues(int index, long value) { + ensureLongValuesIsMutable(); + longValues_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder addLongValues(long value) { + ensureLongValuesIsMutable(); + longValues_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder addAllLongValues(java.lang.Iterable values) { + ensureLongValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, longValues_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder clearLongValues() { + longValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private boolean filterable_; + /** + * + * + *
+     * Optional.
+     * If the `filterable` flag is true, custom field values are searchable.
+     * If false, values are not searchable.
+     * Default is false.
+     * 
+ * + * bool filterable = 3; + */ + public boolean getFilterable() { + return filterable_; + } + /** + * + * + *
+     * Optional.
+     * If the `filterable` flag is true, custom field values are searchable.
+     * If false, values are not searchable.
+     * Default is false.
+     * 
+ * + * bool filterable = 3; + */ + public Builder setFilterable(boolean value) { + + filterable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If the `filterable` flag is true, custom field values are searchable.
+     * If false, values are not searchable.
+     * Default is false.
+     * 
+ * + * bool filterable = 3; + */ + public Builder clearFilterable() { + + filterable_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CustomAttribute) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CustomAttribute) + private static final com.google.cloud.talent.v4beta1.CustomAttribute DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CustomAttribute(); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAttribute(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java new file mode 100644 index 000000000000..6df759d1bea8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface CustomAttributeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CustomAttribute) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + java.util.List getStringValuesList(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + int getStringValuesCount(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + java.lang.String getStringValues(int index); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + com.google.protobuf.ByteString getStringValuesBytes(int index); + + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + java.util.List getLongValuesList(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + int getLongValuesCount(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + long getLongValues(int index); + + /** + * + * + *
+   * Optional.
+   * If the `filterable` flag is true, custom field values are searchable.
+   * If false, values are not searchable.
+   * Default is false.
+   * 
+ * + * bool filterable = 3; + */ + boolean getFilterable(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java new file mode 100644 index 000000000000..68640edd5605 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java @@ -0,0 +1,1041 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a degree pursuing or acquired by a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Degree} + */ +public final class Degree extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Degree) + DegreeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Degree.newBuilder() to construct. + private Degree(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Degree() { + degreeType_ = 0; + degreeName_ = ""; + fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Degree( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + degreeType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + degreeName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + fieldsOfStudy_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = fieldsOfStudy_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Degree.class, + com.google.cloud.talent.v4beta1.Degree.Builder.class); + } + + private int bitField0_; + public static final int DEGREE_TYPE_FIELD_NUMBER = 1; + private int degreeType_; + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + + public static final int DEGREE_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object degreeName_; + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + public java.lang.String getDegreeName() { + java.lang.Object ref = degreeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + degreeName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + public com.google.protobuf.ByteString getDegreeNameBytes() { + java.lang.Object ref = degreeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELDS_OF_STUDY_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList fieldsOfStudy_; + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ProtocolStringList getFieldsOfStudyList() { + return fieldsOfStudy_; + } + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public int getFieldsOfStudyCount() { + return fieldsOfStudy_.size(); + } + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public java.lang.String getFieldsOfStudy(int index) { + return fieldsOfStudy_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ByteString getFieldsOfStudyBytes(int index) { + return fieldsOfStudy_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, degreeType_); + } + if (!getDegreeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, degreeName_); + } + for (int i = 0; i < fieldsOfStudy_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fieldsOfStudy_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, degreeType_); + } + if (!getDegreeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, degreeName_); + } + { + int dataSize = 0; + for (int i = 0; i < fieldsOfStudy_.size(); i++) { + dataSize += computeStringSizeNoTag(fieldsOfStudy_.getRaw(i)); + } + size += dataSize; + size += 1 * getFieldsOfStudyList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Degree)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Degree other = (com.google.cloud.talent.v4beta1.Degree) obj; + + boolean result = true; + result = result && degreeType_ == other.degreeType_; + result = result && getDegreeName().equals(other.getDegreeName()); + result = result && getFieldsOfStudyList().equals(other.getFieldsOfStudyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEGREE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + degreeType_; + hash = (37 * hash) + DEGREE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDegreeName().hashCode(); + if (getFieldsOfStudyCount() > 0) { + hash = (37 * hash) + FIELDS_OF_STUDY_FIELD_NUMBER; + hash = (53 * hash) + getFieldsOfStudyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Degree parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Degree prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a degree pursuing or acquired by a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Degree} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Degree) + com.google.cloud.talent.v4beta1.DegreeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Degree.class, + com.google.cloud.talent.v4beta1.Degree.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Degree.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + degreeType_ = 0; + + degreeName_ = ""; + + fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree build() { + com.google.cloud.talent.v4beta1.Degree result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree buildPartial() { + com.google.cloud.talent.v4beta1.Degree result = + new com.google.cloud.talent.v4beta1.Degree(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.degreeType_ = degreeType_; + result.degreeName_ = degreeName_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = fieldsOfStudy_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.fieldsOfStudy_ = fieldsOfStudy_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Degree) { + return mergeFrom((com.google.cloud.talent.v4beta1.Degree) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Degree other) { + if (other == com.google.cloud.talent.v4beta1.Degree.getDefaultInstance()) return this; + if (other.degreeType_ != 0) { + setDegreeTypeValue(other.getDegreeTypeValue()); + } + if (!other.getDegreeName().isEmpty()) { + degreeName_ = other.degreeName_; + onChanged(); + } + if (!other.fieldsOfStudy_.isEmpty()) { + if (fieldsOfStudy_.isEmpty()) { + fieldsOfStudy_ = other.fieldsOfStudy_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.addAll(other.fieldsOfStudy_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Degree parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Degree) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int degreeType_ = 0; + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public Builder setDegreeTypeValue(int value) { + degreeType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public Builder setDegreeType(com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public Builder clearDegreeType() { + + degreeType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object degreeName_ = ""; + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public java.lang.String getDegreeName() { + java.lang.Object ref = degreeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + degreeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public com.google.protobuf.ByteString getDegreeNameBytes() { + java.lang.Object ref = degreeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public Builder setDegreeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public Builder clearDegreeName() { + + degreeName_ = getDefaultInstance().getDegreeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public Builder setDegreeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + degreeName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList fieldsOfStudy_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureFieldsOfStudyIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = new com.google.protobuf.LazyStringArrayList(fieldsOfStudy_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ProtocolStringList getFieldsOfStudyList() { + return fieldsOfStudy_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public int getFieldsOfStudyCount() { + return fieldsOfStudy_.size(); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public java.lang.String getFieldsOfStudy(int index) { + return fieldsOfStudy_.get(index); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ByteString getFieldsOfStudyBytes(int index) { + return fieldsOfStudy_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder setFieldsOfStudy(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder addFieldsOfStudy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder addAllFieldsOfStudy(java.lang.Iterable values) { + ensureFieldsOfStudyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldsOfStudy_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder clearFieldsOfStudy() { + fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder addFieldsOfStudyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Degree) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Degree) + private static final com.google.cloud.talent.v4beta1.Degree DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Degree(); + } + + public static com.google.cloud.talent.v4beta1.Degree getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Degree parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Degree(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java new file mode 100644 index 000000000000..26e9210bef3a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface DegreeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Degree) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + int getDegreeTypeValue(); + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + com.google.cloud.talent.v4beta1.DegreeType getDegreeType(); + + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + java.lang.String getDegreeName(); + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + com.google.protobuf.ByteString getDegreeNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + java.util.List getFieldsOfStudyList(); + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + int getFieldsOfStudyCount(); + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + java.lang.String getFieldsOfStudy(int index); + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + com.google.protobuf.ByteString getFieldsOfStudyBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java new file mode 100644 index 000000000000..7e7be0b66092 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java @@ -0,0 +1,330 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Educational degree level defined in International Standard Classification
+ * of Education (ISCED).
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.DegreeType} + */ +public enum DegreeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. Represents no degree, or early childhood education.
+   * Maps to ISCED code 0.
+   * Ex) Kindergarten
+   * 
+ * + * DEGREE_TYPE_UNSPECIFIED = 0; + */ + DEGREE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Primary education which is typically the first stage of compulsory
+   * education. ISCED code 1.
+   * Ex) Elementary school
+   * 
+ * + * PRIMARY_EDUCATION = 1; + */ + PRIMARY_EDUCATION(1), + /** + * + * + *
+   * Lower secondary education; First stage of secondary education building on
+   * primary education, typically with a more subject-oriented curriculum.
+   * ISCED code 2.
+   * Ex) Middle school
+   * 
+ * + * LOWER_SECONDARY_EDUCATION = 2; + */ + LOWER_SECONDARY_EDUCATION(2), + /** + * + * + *
+   * Middle education; Second/final stage of secondary education preparing for
+   * tertiary education and/or providing skills relevant to employment.
+   * Usually with an increased range of subject options and streams. ISCED
+   * code 3.
+   * Ex) High school
+   * 
+ * + * UPPER_SECONDARY_EDUCATION = 3; + */ + UPPER_SECONDARY_EDUCATION(3), + /** + * + * + *
+   * Adult Remedial Education; Programmes providing learning experiences that
+   * build on secondary education and prepare for labour market entry and/or
+   * tertiary education. The content is broader than secondary but not as
+   * complex as tertiary education. ISCED code 4.
+   * 
+ * + * ADULT_REMEDIAL_EDUCATION = 4; + */ + ADULT_REMEDIAL_EDUCATION(4), + /** + * + * + *
+   * Associate's or equivalent; Short first tertiary programmes that are
+   * typically practically-based, occupationally-specific and prepare for
+   * labour market entry. These programmes may also provide a pathway to other
+   * tertiary programmes. ISCED code 5.
+   * 
+ * + * ASSOCIATES_OR_EQUIVALENT = 5; + */ + ASSOCIATES_OR_EQUIVALENT(5), + /** + * + * + *
+   * Bachelor's or equivalent; Programmes designed to provide intermediate
+   * academic and/or professional knowledge, skills and competencies leading
+   * to a first tertiary degree or equivalent qualification. ISCED code 6.
+   * 
+ * + * BACHELORS_OR_EQUIVALENT = 6; + */ + BACHELORS_OR_EQUIVALENT(6), + /** + * + * + *
+   * Master's or equivalent; Programmes designed to provide advanced academic
+   * and/or professional knowledge, skills and competencies leading to a
+   * second tertiary degree or equivalent qualification. ISCED code 7.
+   * 
+ * + * MASTERS_OR_EQUIVALENT = 7; + */ + MASTERS_OR_EQUIVALENT(7), + /** + * + * + *
+   * Doctoral or equivalent; Programmes designed primarily to lead to an
+   * advanced research qualification, usually concluding with the submission
+   * and defense of a substantive dissertation of publishable quality based on
+   * original research. ISCED code 8.
+   * 
+ * + * DOCTORAL_OR_EQUIVALENT = 8; + */ + DOCTORAL_OR_EQUIVALENT(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. Represents no degree, or early childhood education.
+   * Maps to ISCED code 0.
+   * Ex) Kindergarten
+   * 
+ * + * DEGREE_TYPE_UNSPECIFIED = 0; + */ + public static final int DEGREE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Primary education which is typically the first stage of compulsory
+   * education. ISCED code 1.
+   * Ex) Elementary school
+   * 
+ * + * PRIMARY_EDUCATION = 1; + */ + public static final int PRIMARY_EDUCATION_VALUE = 1; + /** + * + * + *
+   * Lower secondary education; First stage of secondary education building on
+   * primary education, typically with a more subject-oriented curriculum.
+   * ISCED code 2.
+   * Ex) Middle school
+   * 
+ * + * LOWER_SECONDARY_EDUCATION = 2; + */ + public static final int LOWER_SECONDARY_EDUCATION_VALUE = 2; + /** + * + * + *
+   * Middle education; Second/final stage of secondary education preparing for
+   * tertiary education and/or providing skills relevant to employment.
+   * Usually with an increased range of subject options and streams. ISCED
+   * code 3.
+   * Ex) High school
+   * 
+ * + * UPPER_SECONDARY_EDUCATION = 3; + */ + public static final int UPPER_SECONDARY_EDUCATION_VALUE = 3; + /** + * + * + *
+   * Adult Remedial Education; Programmes providing learning experiences that
+   * build on secondary education and prepare for labour market entry and/or
+   * tertiary education. The content is broader than secondary but not as
+   * complex as tertiary education. ISCED code 4.
+   * 
+ * + * ADULT_REMEDIAL_EDUCATION = 4; + */ + public static final int ADULT_REMEDIAL_EDUCATION_VALUE = 4; + /** + * + * + *
+   * Associate's or equivalent; Short first tertiary programmes that are
+   * typically practically-based, occupationally-specific and prepare for
+   * labour market entry. These programmes may also provide a pathway to other
+   * tertiary programmes. ISCED code 5.
+   * 
+ * + * ASSOCIATES_OR_EQUIVALENT = 5; + */ + public static final int ASSOCIATES_OR_EQUIVALENT_VALUE = 5; + /** + * + * + *
+   * Bachelor's or equivalent; Programmes designed to provide intermediate
+   * academic and/or professional knowledge, skills and competencies leading
+   * to a first tertiary degree or equivalent qualification. ISCED code 6.
+   * 
+ * + * BACHELORS_OR_EQUIVALENT = 6; + */ + public static final int BACHELORS_OR_EQUIVALENT_VALUE = 6; + /** + * + * + *
+   * Master's or equivalent; Programmes designed to provide advanced academic
+   * and/or professional knowledge, skills and competencies leading to a
+   * second tertiary degree or equivalent qualification. ISCED code 7.
+   * 
+ * + * MASTERS_OR_EQUIVALENT = 7; + */ + public static final int MASTERS_OR_EQUIVALENT_VALUE = 7; + /** + * + * + *
+   * Doctoral or equivalent; Programmes designed primarily to lead to an
+   * advanced research qualification, usually concluding with the submission
+   * and defense of a substantive dissertation of publishable quality based on
+   * original research. ISCED code 8.
+   * 
+ * + * DOCTORAL_OR_EQUIVALENT = 8; + */ + public static final int DOCTORAL_OR_EQUIVALENT_VALUE = 8; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DegreeType valueOf(int value) { + return forNumber(value); + } + + public static DegreeType forNumber(int value) { + switch (value) { + case 0: + return DEGREE_TYPE_UNSPECIFIED; + case 1: + return PRIMARY_EDUCATION; + case 2: + return LOWER_SECONDARY_EDUCATION; + case 3: + return UPPER_SECONDARY_EDUCATION; + case 4: + return ADULT_REMEDIAL_EDUCATION; + case 5: + return ASSOCIATES_OR_EQUIVALENT; + case 6: + return BACHELORS_OR_EQUIVALENT; + case 7: + return MASTERS_OR_EQUIVALENT; + case 8: + return DOCTORAL_OR_EQUIVALENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DegreeType findValueByNumber(int number) { + return DegreeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(2); + } + + private static final DegreeType[] VALUES = values(); + + public static DegreeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DegreeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.DegreeType) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java new file mode 100644 index 000000000000..7833f2f99391 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request to delete a company.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteCompanyRequest} + */ +public final class DeleteCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteCompanyRequest) + DeleteCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCompanyRequest.newBuilder() to construct. + private DeleteCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCompanyRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.class, + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.DeleteCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteCompanyRequest other = + (com.google.cloud.talent.v4beta1.DeleteCompanyRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeleteCompanyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to delete a company.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteCompanyRequest) + com.google.cloud.talent.v4beta1.DeleteCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.class, + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest build() { + com.google.cloud.talent.v4beta1.DeleteCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteCompanyRequest result = + new com.google.cloud.talent.v4beta1.DeleteCompanyRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteCompanyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.DeleteCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.DeleteCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteCompanyRequest) + private static final com.google.cloud.talent.v4beta1.DeleteCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCompanyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..c58559744c28 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java new file mode 100644 index 000000000000..686a3020320c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java @@ -0,0 +1,621 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Delete job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteJobRequest} + */ +public final class DeleteJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteJobRequest) + DeleteJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteJobRequest.newBuilder() to construct. + private DeleteJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteJobRequest.class, + com.google.cloud.talent.v4beta1.DeleteJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.DeleteJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteJobRequest other = + (com.google.cloud.talent.v4beta1.DeleteJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeleteJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Delete job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteJobRequest) + com.google.cloud.talent.v4beta1.DeleteJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteJobRequest.class, + com.google.cloud.talent.v4beta1.DeleteJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest build() { + com.google.cloud.talent.v4beta1.DeleteJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteJobRequest result = + new com.google.cloud.talent.v4beta1.DeleteJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.DeleteJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.DeleteJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteJobRequest) + private static final com.google.cloud.talent.v4beta1.DeleteJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java new file mode 100644 index 000000000000..5d5d2736def3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java new file mode 100644 index 000000000000..382bffe0e76c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java @@ -0,0 +1,627 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Delete profile request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteProfileRequest} + */ +public final class DeleteProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteProfileRequest) + DeleteProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteProfileRequest.newBuilder() to construct. + private DeleteProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteProfileRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteProfileRequest.class, + com.google.cloud.talent.v4beta1.DeleteProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.DeleteProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteProfileRequest other = + (com.google.cloud.talent.v4beta1.DeleteProfileRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeleteProfileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Delete profile request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteProfileRequest) + com.google.cloud.talent.v4beta1.DeleteProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteProfileRequest.class, + com.google.cloud.talent.v4beta1.DeleteProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest build() { + com.google.cloud.talent.v4beta1.DeleteProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteProfileRequest result = + new com.google.cloud.talent.v4beta1.DeleteProfileRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.DeleteProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.DeleteProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteProfileRequest) + private static final com.google.cloud.talent.v4beta1.DeleteProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProfileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java new file mode 100644 index 000000000000..98e1a1f74cb9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java new file mode 100644 index 000000000000..4739050142e8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request to delete a tenant.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteTenantRequest} + */ +public final class DeleteTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteTenantRequest) + DeleteTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTenantRequest.newBuilder() to construct. + private DeleteTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTenantRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteTenantRequest.class, + com.google.cloud.talent.v4beta1.DeleteTenantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.DeleteTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteTenantRequest other = + (com.google.cloud.talent.v4beta1.DeleteTenantRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeleteTenantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to delete a tenant.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteTenantRequest) + com.google.cloud.talent.v4beta1.DeleteTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteTenantRequest.class, + com.google.cloud.talent.v4beta1.DeleteTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest build() { + com.google.cloud.talent.v4beta1.DeleteTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteTenantRequest result = + new com.google.cloud.talent.v4beta1.DeleteTenantRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteTenantRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.DeleteTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.DeleteTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteTenantRequest) + private static final com.google.cloud.talent.v4beta1.DeleteTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTenantRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java new file mode 100644 index 000000000000..eb671bb335c3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java new file mode 100644 index 000000000000..98de700c318a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java @@ -0,0 +1,998 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Device information collected from the job seeker, candidate, or
+ * other entity conducting the job search. Providing this information improves
+ * the quality of the search results across devices.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeviceInfo} + */ +public final class DeviceInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeviceInfo) + DeviceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceInfo.newBuilder() to construct. + private DeviceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeviceInfo() { + deviceType_ = 0; + id_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeviceInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + deviceType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeviceInfo.class, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder.class); + } + + /** + * + * + *
+   * An enumeration describing an API access portal and exposure mechanism.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.DeviceInfo.DeviceType} + */ + public enum DeviceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The device type isn't specified.
+     * 
+ * + * DEVICE_TYPE_UNSPECIFIED = 0; + */ + DEVICE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A desktop web browser, such as, Chrome, Firefox, Safari, or Internet
+     * Explorer)
+     * 
+ * + * WEB = 1; + */ + WEB(1), + /** + * + * + *
+     * A mobile device web browser, such as a phone or tablet with a Chrome
+     * browser.
+     * 
+ * + * MOBILE_WEB = 2; + */ + MOBILE_WEB(2), + /** + * + * + *
+     * An Android device native application.
+     * 
+ * + * ANDROID = 3; + */ + ANDROID(3), + /** + * + * + *
+     * An iOS device native application.
+     * 
+ * + * IOS = 4; + */ + IOS(4), + /** + * + * + *
+     * A bot, as opposed to a device operated by human beings, such as a web
+     * crawler.
+     * 
+ * + * BOT = 5; + */ + BOT(5), + /** + * + * + *
+     * Other devices types.
+     * 
+ * + * OTHER = 6; + */ + OTHER(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The device type isn't specified.
+     * 
+ * + * DEVICE_TYPE_UNSPECIFIED = 0; + */ + public static final int DEVICE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A desktop web browser, such as, Chrome, Firefox, Safari, or Internet
+     * Explorer)
+     * 
+ * + * WEB = 1; + */ + public static final int WEB_VALUE = 1; + /** + * + * + *
+     * A mobile device web browser, such as a phone or tablet with a Chrome
+     * browser.
+     * 
+ * + * MOBILE_WEB = 2; + */ + public static final int MOBILE_WEB_VALUE = 2; + /** + * + * + *
+     * An Android device native application.
+     * 
+ * + * ANDROID = 3; + */ + public static final int ANDROID_VALUE = 3; + /** + * + * + *
+     * An iOS device native application.
+     * 
+ * + * IOS = 4; + */ + public static final int IOS_VALUE = 4; + /** + * + * + *
+     * A bot, as opposed to a device operated by human beings, such as a web
+     * crawler.
+     * 
+ * + * BOT = 5; + */ + public static final int BOT_VALUE = 5; + /** + * + * + *
+     * Other devices types.
+     * 
+ * + * OTHER = 6; + */ + public static final int OTHER_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DeviceType valueOf(int value) { + return forNumber(value); + } + + public static DeviceType forNumber(int value) { + switch (value) { + case 0: + return DEVICE_TYPE_UNSPECIFIED; + case 1: + return WEB; + case 2: + return MOBILE_WEB; + case 3: + return ANDROID; + case 4: + return IOS; + case 5: + return BOT; + case 6: + return OTHER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeviceType findValueByNumber(int number) { + return DeviceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.DeviceInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final DeviceType[] VALUES = values(); + + public static DeviceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DeviceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.DeviceInfo.DeviceType) + } + + public static final int DEVICE_TYPE_FIELD_NUMBER = 1; + private int deviceType_; + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public int getDeviceTypeValue() { + return deviceType_; + } + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType getDeviceType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType result = + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.valueOf(deviceType_); + return result == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.UNRECOGNIZED + : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private volatile java.lang.Object id_; + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (deviceType_ + != com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.DEVICE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, deviceType_); + } + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deviceType_ + != com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.DEVICE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, deviceType_); + } + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.DeviceInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeviceInfo other = + (com.google.cloud.talent.v4beta1.DeviceInfo) obj; + + boolean result = true; + result = result && deviceType_ == other.deviceType_; + result = result && getId().equals(other.getId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEVICE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + deviceType_; + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeviceInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Device information collected from the job seeker, candidate, or
+   * other entity conducting the job search. Providing this information improves
+   * the quality of the search results across devices.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeviceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeviceInfo) + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeviceInfo.class, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeviceInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + deviceType_ = 0; + + id_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo build() { + com.google.cloud.talent.v4beta1.DeviceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo buildPartial() { + com.google.cloud.talent.v4beta1.DeviceInfo result = + new com.google.cloud.talent.v4beta1.DeviceInfo(this); + result.deviceType_ = deviceType_; + result.id_ = id_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeviceInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeviceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeviceInfo other) { + if (other == com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance()) return this; + if (other.deviceType_ != 0) { + setDeviceTypeValue(other.getDeviceTypeValue()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.DeviceInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.DeviceInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int deviceType_ = 0; + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public int getDeviceTypeValue() { + return deviceType_; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public Builder setDeviceTypeValue(int value) { + deviceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType getDeviceType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType result = + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.valueOf(deviceType_); + return result == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public Builder setDeviceType(com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public Builder clearDeviceType() { + + deviceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeviceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeviceInfo) + private static final com.google.cloud.talent.v4beta1.DeviceInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeviceInfo(); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java new file mode 100644 index 000000000000..7596f3c6061d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeviceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeviceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + int getDeviceTypeValue(); + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType getDeviceType(); + + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + java.lang.String getId(); + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + com.google.protobuf.ByteString getIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java new file mode 100644 index 000000000000..63a5deb31220 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java @@ -0,0 +1,1029 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Education filter of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationFilter} + */ +public final class EducationFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EducationFilter) + EducationFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use EducationFilter.newBuilder() to construct. + private EducationFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EducationFilter() { + school_ = ""; + fieldOfStudy_ = ""; + degreeType_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EducationFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + school_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + fieldOfStudy_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + degreeType_ = rawValue; + break; + } + case 48: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationFilter.class, + com.google.cloud.talent.v4beta1.EducationFilter.Builder.class); + } + + public static final int SCHOOL_FIELD_NUMBER = 1; + private volatile java.lang.Object school_; + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + public java.lang.String getSchool() { + java.lang.Object ref = school_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + school_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + public com.google.protobuf.ByteString getSchoolBytes() { + java.lang.Object ref = school_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + school_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_OF_STUDY_FIELD_NUMBER = 2; + private volatile java.lang.Object fieldOfStudy_; + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + public java.lang.String getFieldOfStudy() { + java.lang.Object ref = fieldOfStudy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldOfStudy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + public com.google.protobuf.ByteString getFieldOfStudyBytes() { + java.lang.Object ref = fieldOfStudy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldOfStudy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEGREE_TYPE_FIELD_NUMBER = 3; + private int degreeType_; + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + + public static final int NEGATED_FIELD_NUMBER = 6; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSchoolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, school_); + } + if (!getFieldOfStudyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldOfStudy_); + } + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, degreeType_); + } + if (negated_ != false) { + output.writeBool(6, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSchoolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, school_); + } + if (!getFieldOfStudyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldOfStudy_); + } + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, degreeType_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.EducationFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EducationFilter other = + (com.google.cloud.talent.v4beta1.EducationFilter) obj; + + boolean result = true; + result = result && getSchool().equals(other.getSchool()); + result = result && getFieldOfStudy().equals(other.getFieldOfStudy()); + result = result && degreeType_ == other.degreeType_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHOOL_FIELD_NUMBER; + hash = (53 * hash) + getSchool().hashCode(); + hash = (37 * hash) + FIELD_OF_STUDY_FIELD_NUMBER; + hash = (53 * hash) + getFieldOfStudy().hashCode(); + hash = (37 * hash) + DEGREE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + degreeType_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.EducationFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Education filter of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EducationFilter) + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationFilter.class, + com.google.cloud.talent.v4beta1.EducationFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EducationFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + school_ = ""; + + fieldOfStudy_ = ""; + + degreeType_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter build() { + com.google.cloud.talent.v4beta1.EducationFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter buildPartial() { + com.google.cloud.talent.v4beta1.EducationFilter result = + new com.google.cloud.talent.v4beta1.EducationFilter(this); + result.school_ = school_; + result.fieldOfStudy_ = fieldOfStudy_; + result.degreeType_ = degreeType_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EducationFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.EducationFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EducationFilter other) { + if (other == com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()) + return this; + if (!other.getSchool().isEmpty()) { + school_ = other.school_; + onChanged(); + } + if (!other.getFieldOfStudy().isEmpty()) { + fieldOfStudy_ = other.fieldOfStudy_; + onChanged(); + } + if (other.degreeType_ != 0) { + setDegreeTypeValue(other.getDegreeTypeValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.EducationFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EducationFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object school_ = ""; + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public java.lang.String getSchool() { + java.lang.Object ref = school_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + school_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public com.google.protobuf.ByteString getSchoolBytes() { + java.lang.Object ref = school_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + school_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public Builder setSchool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + school_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public Builder clearSchool() { + + school_ = getDefaultInstance().getSchool(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public Builder setSchoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + school_ = value; + onChanged(); + return this; + } + + private java.lang.Object fieldOfStudy_ = ""; + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public java.lang.String getFieldOfStudy() { + java.lang.Object ref = fieldOfStudy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldOfStudy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public com.google.protobuf.ByteString getFieldOfStudyBytes() { + java.lang.Object ref = fieldOfStudy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldOfStudy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public Builder setFieldOfStudy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fieldOfStudy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public Builder clearFieldOfStudy() { + + fieldOfStudy_ = getDefaultInstance().getFieldOfStudy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public Builder setFieldOfStudyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fieldOfStudy_ = value; + onChanged(); + return this; + } + + private int degreeType_ = 0; + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public Builder setDegreeTypeValue(int value) { + degreeType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public Builder setDegreeType(com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public Builder clearDegreeType() { + + degreeType_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 6; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 6; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EducationFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EducationFilter) + private static final com.google.cloud.talent.v4beta1.EducationFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EducationFilter(); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EducationFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EducationFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java new file mode 100644 index 000000000000..74bc7f5aa97b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java @@ -0,0 +1,100 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface EducationFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EducationFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + java.lang.String getSchool(); + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + com.google.protobuf.ByteString getSchoolBytes(); + + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + java.lang.String getFieldOfStudy(); + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + com.google.protobuf.ByteString getFieldOfStudyBytes(); + + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + int getDegreeTypeValue(); + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + com.google.cloud.talent.v4beta1.DegreeType getDegreeType(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 6; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java new file mode 100644 index 000000000000..a839d523931a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java @@ -0,0 +1,3095 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents an education record of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationRecord} + */ +public final class EducationRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EducationRecord) + EducationRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use EducationRecord.newBuilder() to construct. + private EducationRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EducationRecord() { + schoolName_ = ""; + description_ = ""; + schoolNameSnippet_ = ""; + degreeSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EducationRecord( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (expectedGraduationDate_ != null) { + subBuilder = expectedGraduationDate_.toBuilder(); + } + expectedGraduationDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedGraduationDate_); + expectedGraduationDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + schoolName_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.Address.Builder subBuilder = null; + if (address_ != null) { + subBuilder = address_.toBuilder(); + } + address_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(address_); + address_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + degreeCase_ = 6; + degree_ = s; + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.Degree.Builder subBuilder = null; + if (degreeCase_ == 7) { + subBuilder = ((com.google.cloud.talent.v4beta1.Degree) degree_).toBuilder(); + } + degree_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Degree.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.Degree) degree_); + degree_ = subBuilder.buildPartial(); + } + degreeCase_ = 7; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCurrent_ != null) { + subBuilder = isCurrent_.toBuilder(); + } + isCurrent_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCurrent_); + isCurrent_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + schoolNameSnippet_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + degreeSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationRecord.class, + com.google.cloud.talent.v4beta1.EducationRecord.Builder.class); + } + + private int degreeCase_ = 0; + private java.lang.Object degree_; + + public enum DegreeCase implements com.google.protobuf.Internal.EnumLite { + DEGREE_DESCRIPTION(6), + STRUCTURED_DEGREE(7), + DEGREE_NOT_SET(0); + private final int value; + + private DegreeCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DegreeCase valueOf(int value) { + return forNumber(value); + } + + public static DegreeCase forNumber(int value) { + switch (value) { + case 6: + return DEGREE_DESCRIPTION; + case 7: + return STRUCTURED_DEGREE; + case 0: + return DEGREE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DegreeCase getDegreeCase() { + return DegreeCase.forNumber(degreeCase_); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return getStartDate(); + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return getEndDate(); + } + + public static final int EXPECTED_GRADUATION_DATE_FIELD_NUMBER = 3; + private com.google.type.Date expectedGraduationDate_; + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public boolean hasExpectedGraduationDate() { + return expectedGraduationDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.Date getExpectedGraduationDate() { + return expectedGraduationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expectedGraduationDate_; + } + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder() { + return getExpectedGraduationDate(); + } + + public static final int SCHOOL_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object schoolName_; + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + public java.lang.String getSchoolName() { + java.lang.Object ref = schoolName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schoolName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + public com.google.protobuf.ByteString getSchoolNameBytes() { + java.lang.Object ref = schoolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.Address address_; + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return address_ != null; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + return getAddress(); + } + + public static final int DEGREE_DESCRIPTION_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + public java.lang.String getDegreeDescription() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (degreeCase_ == 6) { + degree_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + public com.google.protobuf.ByteString getDegreeDescriptionBytes() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (degreeCase_ == 6) { + degree_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCTURED_DEGREE_FIELD_NUMBER = 7; + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public boolean hasStructuredDegree() { + return degreeCase_ == 7; + } + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.Degree getStructuredDegree() { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder() { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 8; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_CURRENT_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue isCurrent_; + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public boolean hasIsCurrent() { + return isCurrent_ != null; + } + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + return getIsCurrent(); + } + + public static final int SCHOOL_NAME_SNIPPET_FIELD_NUMBER = 10; + private volatile java.lang.Object schoolNameSnippet_; + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + public java.lang.String getSchoolNameSnippet() { + java.lang.Object ref = schoolNameSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schoolNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + public com.google.protobuf.ByteString getSchoolNameSnippetBytes() { + java.lang.Object ref = schoolNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEGREE_SNIPPET_FIELD_NUMBER = 11; + private volatile java.lang.Object degreeSnippet_; + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + public java.lang.String getDegreeSnippet() { + java.lang.Object ref = degreeSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + degreeSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + public com.google.protobuf.ByteString getDegreeSnippetBytes() { + java.lang.Object ref = degreeSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startDate_ != null) { + output.writeMessage(1, getStartDate()); + } + if (endDate_ != null) { + output.writeMessage(2, getEndDate()); + } + if (expectedGraduationDate_ != null) { + output.writeMessage(3, getExpectedGraduationDate()); + } + if (!getSchoolNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, schoolName_); + } + if (address_ != null) { + output.writeMessage(5, getAddress()); + } + if (degreeCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, degree_); + } + if (degreeCase_ == 7) { + output.writeMessage(7, (com.google.cloud.talent.v4beta1.Degree) degree_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); + } + if (isCurrent_ != null) { + output.writeMessage(9, getIsCurrent()); + } + if (!getSchoolNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, schoolNameSnippet_); + } + if (!getDegreeSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, degreeSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); + } + if (endDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + if (expectedGraduationDate_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpectedGraduationDate()); + } + if (!getSchoolNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, schoolName_); + } + if (address_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAddress()); + } + if (degreeCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, degree_); + } + if (degreeCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.talent.v4beta1.Degree) degree_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); + } + if (isCurrent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsCurrent()); + } + if (!getSchoolNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, schoolNameSnippet_); + } + if (!getDegreeSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, degreeSnippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.EducationRecord)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EducationRecord other = + (com.google.cloud.talent.v4beta1.EducationRecord) obj; + + boolean result = true; + result = result && (hasStartDate() == other.hasStartDate()); + if (hasStartDate()) { + result = result && getStartDate().equals(other.getStartDate()); + } + result = result && (hasEndDate() == other.hasEndDate()); + if (hasEndDate()) { + result = result && getEndDate().equals(other.getEndDate()); + } + result = result && (hasExpectedGraduationDate() == other.hasExpectedGraduationDate()); + if (hasExpectedGraduationDate()) { + result = result && getExpectedGraduationDate().equals(other.getExpectedGraduationDate()); + } + result = result && getSchoolName().equals(other.getSchoolName()); + result = result && (hasAddress() == other.hasAddress()); + if (hasAddress()) { + result = result && getAddress().equals(other.getAddress()); + } + result = result && getDescription().equals(other.getDescription()); + result = result && (hasIsCurrent() == other.hasIsCurrent()); + if (hasIsCurrent()) { + result = result && getIsCurrent().equals(other.getIsCurrent()); + } + result = result && getSchoolNameSnippet().equals(other.getSchoolNameSnippet()); + result = result && getDegreeSnippet().equals(other.getDegreeSnippet()); + result = result && getDegreeCase().equals(other.getDegreeCase()); + if (!result) return false; + switch (degreeCase_) { + case 6: + result = result && getDegreeDescription().equals(other.getDegreeDescription()); + break; + case 7: + result = result && getStructuredDegree().equals(other.getStructuredDegree()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + if (hasExpectedGraduationDate()) { + hash = (37 * hash) + EXPECTED_GRADUATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getExpectedGraduationDate().hashCode(); + } + hash = (37 * hash) + SCHOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchoolName().hashCode(); + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasIsCurrent()) { + hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getIsCurrent().hashCode(); + } + hash = (37 * hash) + SCHOOL_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSchoolNameSnippet().hashCode(); + hash = (37 * hash) + DEGREE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getDegreeSnippet().hashCode(); + switch (degreeCase_) { + case 6: + hash = (37 * hash) + DEGREE_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDegreeDescription().hashCode(); + break; + case 7: + hash = (37 * hash) + STRUCTURED_DEGREE_FIELD_NUMBER; + hash = (53 * hash) + getStructuredDegree().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.EducationRecord prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents an education record of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EducationRecord) + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationRecord.class, + com.google.cloud.talent.v4beta1.EducationRecord.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EducationRecord.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startDateBuilder_ == null) { + startDate_ = null; + } else { + startDate_ = null; + startDateBuilder_ = null; + } + if (endDateBuilder_ == null) { + endDate_ = null; + } else { + endDate_ = null; + endDateBuilder_ = null; + } + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDate_ = null; + } else { + expectedGraduationDate_ = null; + expectedGraduationDateBuilder_ = null; + } + schoolName_ = ""; + + if (addressBuilder_ == null) { + address_ = null; + } else { + address_ = null; + addressBuilder_ = null; + } + description_ = ""; + + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + schoolNameSnippet_ = ""; + + degreeSnippet_ = ""; + + degreeCase_ = 0; + degree_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord build() { + com.google.cloud.talent.v4beta1.EducationRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord buildPartial() { + com.google.cloud.talent.v4beta1.EducationRecord result = + new com.google.cloud.talent.v4beta1.EducationRecord(this); + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + if (expectedGraduationDateBuilder_ == null) { + result.expectedGraduationDate_ = expectedGraduationDate_; + } else { + result.expectedGraduationDate_ = expectedGraduationDateBuilder_.build(); + } + result.schoolName_ = schoolName_; + if (addressBuilder_ == null) { + result.address_ = address_; + } else { + result.address_ = addressBuilder_.build(); + } + if (degreeCase_ == 6) { + result.degree_ = degree_; + } + if (degreeCase_ == 7) { + if (structuredDegreeBuilder_ == null) { + result.degree_ = degree_; + } else { + result.degree_ = structuredDegreeBuilder_.build(); + } + } + result.description_ = description_; + if (isCurrentBuilder_ == null) { + result.isCurrent_ = isCurrent_; + } else { + result.isCurrent_ = isCurrentBuilder_.build(); + } + result.schoolNameSnippet_ = schoolNameSnippet_; + result.degreeSnippet_ = degreeSnippet_; + result.degreeCase_ = degreeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EducationRecord) { + return mergeFrom((com.google.cloud.talent.v4beta1.EducationRecord) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EducationRecord other) { + if (other == com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()) + return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + if (other.hasExpectedGraduationDate()) { + mergeExpectedGraduationDate(other.getExpectedGraduationDate()); + } + if (!other.getSchoolName().isEmpty()) { + schoolName_ = other.schoolName_; + onChanged(); + } + if (other.hasAddress()) { + mergeAddress(other.getAddress()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasIsCurrent()) { + mergeIsCurrent(other.getIsCurrent()); + } + if (!other.getSchoolNameSnippet().isEmpty()) { + schoolNameSnippet_ = other.schoolNameSnippet_; + onChanged(); + } + if (!other.getDegreeSnippet().isEmpty()) { + degreeSnippet_ = other.degreeSnippet_; + onChanged(); + } + switch (other.getDegreeCase()) { + case DEGREE_DESCRIPTION: + { + degreeCase_ = 6; + degree_ = other.degree_; + onChanged(); + break; + } + case STRUCTURED_DEGREE: + { + mergeStructuredDegree(other.getStructuredDegree()); + break; + } + case DEGREE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.EducationRecord parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EducationRecord) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int degreeCase_ = 0; + private java.lang.Object degree_; + + public DegreeCase getDegreeCase() { + return DegreeCase.forNumber(degreeCase_); + } + + public Builder clearDegree() { + degreeCase_ = 0; + degree_ = null; + onChanged(); + return this; + } + + private com.google.type.Date startDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + onChanged(); + } else { + startDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + onChanged(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + } else { + startDate_ = value; + } + onChanged(); + } else { + startDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; + onChanged(); + } else { + startDate_ = null; + startDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + onChanged(); + } else { + endDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + onChanged(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); + } else { + endDate_ = value; + } + onChanged(); + } else { + endDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; + onChanged(); + } else { + endDate_ = null; + endDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + private com.google.type.Date expectedGraduationDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + expectedGraduationDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public boolean hasExpectedGraduationDate() { + return expectedGraduationDateBuilder_ != null || expectedGraduationDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.Date getExpectedGraduationDate() { + if (expectedGraduationDateBuilder_ == null) { + return expectedGraduationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expectedGraduationDate_; + } else { + return expectedGraduationDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder setExpectedGraduationDate(com.google.type.Date value) { + if (expectedGraduationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedGraduationDate_ = value; + onChanged(); + } else { + expectedGraduationDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder setExpectedGraduationDate(com.google.type.Date.Builder builderForValue) { + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDate_ = builderForValue.build(); + onChanged(); + } else { + expectedGraduationDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder mergeExpectedGraduationDate(com.google.type.Date value) { + if (expectedGraduationDateBuilder_ == null) { + if (expectedGraduationDate_ != null) { + expectedGraduationDate_ = + com.google.type.Date.newBuilder(expectedGraduationDate_) + .mergeFrom(value) + .buildPartial(); + } else { + expectedGraduationDate_ = value; + } + onChanged(); + } else { + expectedGraduationDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder clearExpectedGraduationDate() { + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDate_ = null; + onChanged(); + } else { + expectedGraduationDate_ = null; + expectedGraduationDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.Date.Builder getExpectedGraduationDateBuilder() { + + onChanged(); + return getExpectedGraduationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder() { + if (expectedGraduationDateBuilder_ != null) { + return expectedGraduationDateBuilder_.getMessageOrBuilder(); + } else { + return expectedGraduationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expectedGraduationDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getExpectedGraduationDateFieldBuilder() { + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getExpectedGraduationDate(), getParentForChildren(), isClean()); + expectedGraduationDate_ = null; + } + return expectedGraduationDateBuilder_; + } + + private java.lang.Object schoolName_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public java.lang.String getSchoolName() { + java.lang.Object ref = schoolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schoolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public com.google.protobuf.ByteString getSchoolNameBytes() { + java.lang.Object ref = schoolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public Builder setSchoolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schoolName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public Builder clearSchoolName() { + + schoolName_ = getDefaultInstance().getSchoolName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public Builder setSchoolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schoolName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Address address_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + addressBuilder_; + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return addressBuilder_ != null || address_ != null; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + if (addressBuilder_ == null) { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } else { + return addressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + onChanged(); + } else { + addressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressBuilder_ == null) { + address_ = builderForValue.build(); + onChanged(); + } else { + addressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder mergeAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (address_ != null) { + address_ = + com.google.cloud.talent.v4beta1.Address.newBuilder(address_) + .mergeFrom(value) + .buildPartial(); + } else { + address_ = value; + } + onChanged(); + } else { + addressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder clearAddress() { + if (addressBuilder_ == null) { + address_ = null; + onChanged(); + } else { + address_ = null; + addressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address.Builder getAddressBuilder() { + + onChanged(); + return getAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + if (addressBuilder_ != null) { + return addressBuilder_.getMessageOrBuilder(); + } else { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + getAddressFieldBuilder() { + if (addressBuilder_ == null) { + addressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder>( + getAddress(), getParentForChildren(), isClean()); + address_ = null; + } + return addressBuilder_; + } + + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public java.lang.String getDegreeDescription() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (degreeCase_ == 6) { + degree_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public com.google.protobuf.ByteString getDegreeDescriptionBytes() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (degreeCase_ == 6) { + degree_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public Builder setDegreeDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + degreeCase_ = 6; + degree_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public Builder clearDegreeDescription() { + if (degreeCase_ == 6) { + degreeCase_ = 0; + degree_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public Builder setDegreeDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + degreeCase_ = 6; + degree_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Degree, + com.google.cloud.talent.v4beta1.Degree.Builder, + com.google.cloud.talent.v4beta1.DegreeOrBuilder> + structuredDegreeBuilder_; + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public boolean hasStructuredDegree() { + return degreeCase_ == 7; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.Degree getStructuredDegree() { + if (structuredDegreeBuilder_ == null) { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } else { + if (degreeCase_ == 7) { + return structuredDegreeBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder setStructuredDegree(com.google.cloud.talent.v4beta1.Degree value) { + if (structuredDegreeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + degree_ = value; + onChanged(); + } else { + structuredDegreeBuilder_.setMessage(value); + } + degreeCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder setStructuredDegree( + com.google.cloud.talent.v4beta1.Degree.Builder builderForValue) { + if (structuredDegreeBuilder_ == null) { + degree_ = builderForValue.build(); + onChanged(); + } else { + structuredDegreeBuilder_.setMessage(builderForValue.build()); + } + degreeCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder mergeStructuredDegree(com.google.cloud.talent.v4beta1.Degree value) { + if (structuredDegreeBuilder_ == null) { + if (degreeCase_ == 7 + && degree_ != com.google.cloud.talent.v4beta1.Degree.getDefaultInstance()) { + degree_ = + com.google.cloud.talent.v4beta1.Degree.newBuilder( + (com.google.cloud.talent.v4beta1.Degree) degree_) + .mergeFrom(value) + .buildPartial(); + } else { + degree_ = value; + } + onChanged(); + } else { + if (degreeCase_ == 7) { + structuredDegreeBuilder_.mergeFrom(value); + } + structuredDegreeBuilder_.setMessage(value); + } + degreeCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder clearStructuredDegree() { + if (structuredDegreeBuilder_ == null) { + if (degreeCase_ == 7) { + degreeCase_ = 0; + degree_ = null; + onChanged(); + } + } else { + if (degreeCase_ == 7) { + degreeCase_ = 0; + degree_ = null; + } + structuredDegreeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.Degree.Builder getStructuredDegreeBuilder() { + return getStructuredDegreeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder() { + if ((degreeCase_ == 7) && (structuredDegreeBuilder_ != null)) { + return structuredDegreeBuilder_.getMessageOrBuilder(); + } else { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Degree, + com.google.cloud.talent.v4beta1.Degree.Builder, + com.google.cloud.talent.v4beta1.DegreeOrBuilder> + getStructuredDegreeFieldBuilder() { + if (structuredDegreeBuilder_ == null) { + if (!(degreeCase_ == 7)) { + degree_ = com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + structuredDegreeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Degree, + com.google.cloud.talent.v4beta1.Degree.Builder, + com.google.cloud.talent.v4beta1.DegreeOrBuilder>( + (com.google.cloud.talent.v4beta1.Degree) degree_, + getParentForChildren(), + isClean()); + degree_ = null; + } + degreeCase_ = 7; + onChanged(); + ; + return structuredDegreeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isCurrent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isCurrentBuilder_; + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public boolean hasIsCurrent() { + return isCurrentBuilder_ != null || isCurrent_ != null; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + if (isCurrentBuilder_ == null) { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } else { + return isCurrentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isCurrent_ = value; + onChanged(); + } else { + isCurrentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isCurrentBuilder_ == null) { + isCurrent_ = builderForValue.build(); + onChanged(); + } else { + isCurrentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (isCurrent_ != null) { + isCurrent_ = + com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); + } else { + isCurrent_ = value; + } + onChanged(); + } else { + isCurrentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder clearIsCurrent() { + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + onChanged(); + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { + + onChanged(); + return getIsCurrentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + if (isCurrentBuilder_ != null) { + return isCurrentBuilder_.getMessageOrBuilder(); + } else { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsCurrentFieldBuilder() { + if (isCurrentBuilder_ == null) { + isCurrentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsCurrent(), getParentForChildren(), isClean()); + isCurrent_ = null; + } + return isCurrentBuilder_; + } + + private java.lang.Object schoolNameSnippet_ = ""; + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public java.lang.String getSchoolNameSnippet() { + java.lang.Object ref = schoolNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schoolNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public com.google.protobuf.ByteString getSchoolNameSnippetBytes() { + java.lang.Object ref = schoolNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public Builder setSchoolNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schoolNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public Builder clearSchoolNameSnippet() { + + schoolNameSnippet_ = getDefaultInstance().getSchoolNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public Builder setSchoolNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schoolNameSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object degreeSnippet_ = ""; + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public java.lang.String getDegreeSnippet() { + java.lang.Object ref = degreeSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + degreeSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public com.google.protobuf.ByteString getDegreeSnippetBytes() { + java.lang.Object ref = degreeSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public Builder setDegreeSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public Builder clearDegreeSnippet() { + + degreeSnippet_ = getDefaultInstance().getDegreeSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public Builder setDegreeSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + degreeSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EducationRecord) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EducationRecord) + private static final com.google.cloud.talent.v4beta1.EducationRecord DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EducationRecord(); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EducationRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EducationRecord(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java new file mode 100644 index 000000000000..b3f7734d507e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java @@ -0,0 +1,353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface EducationRecordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EducationRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + boolean hasStartDate(); + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.Date getStartDate(); + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + boolean hasEndDate(); + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.Date getEndDate(); + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + boolean hasExpectedGraduationDate(); + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + com.google.type.Date getExpectedGraduationDate(); + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + java.lang.String getSchoolName(); + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + com.google.protobuf.ByteString getSchoolNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + boolean hasAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.Address getAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + java.lang.String getDegreeDescription(); + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + com.google.protobuf.ByteString getDegreeDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + boolean hasStructuredDegree(); + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + com.google.cloud.talent.v4beta1.Degree getStructuredDegree(); + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + boolean hasIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + com.google.protobuf.BoolValue getIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); + + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + java.lang.String getSchoolNameSnippet(); + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + com.google.protobuf.ByteString getSchoolNameSnippetBytes(); + + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + java.lang.String getDegreeSnippet(); + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + com.google.protobuf.ByteString getDegreeSnippetBytes(); + + public com.google.cloud.talent.v4beta1.EducationRecord.DegreeCase getDegreeCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java new file mode 100644 index 000000000000..8d5623f7194d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java @@ -0,0 +1,751 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a person's email address.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Email} + */ +public final class Email extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Email) + EmailOrBuilder { + private static final long serialVersionUID = 0L; + // Use Email.newBuilder() to construct. + private Email(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Email() { + usage_ = 0; + emailAddress_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Email( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + emailAddress_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Email.class, + com.google.cloud.talent.v4beta1.Email.Builder.class); + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int EMAIL_ADDRESS_FIELD_NUMBER = 2; + private volatile java.lang.Object emailAddress_; + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + public com.google.protobuf.ByteString getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (!getEmailAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (!getEmailAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Email)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Email other = (com.google.cloud.talent.v4beta1.Email) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && getEmailAddress().equals(other.getEmailAddress()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Email parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Email prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a person's email address.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Email} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Email) + com.google.cloud.talent.v4beta1.EmailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Email.class, + com.google.cloud.talent.v4beta1.Email.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Email.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + emailAddress_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Email.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email build() { + com.google.cloud.talent.v4beta1.Email result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email buildPartial() { + com.google.cloud.talent.v4beta1.Email result = + new com.google.cloud.talent.v4beta1.Email(this); + result.usage_ = usage_; + result.emailAddress_ = emailAddress_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Email) { + return mergeFrom((com.google.cloud.talent.v4beta1.Email) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Email other) { + if (other == com.google.cloud.talent.v4beta1.Email.getDefaultInstance()) return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (!other.getEmailAddress().isEmpty()) { + emailAddress_ = other.emailAddress_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Email parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Email) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + private java.lang.Object emailAddress_ = ""; + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public com.google.protobuf.ByteString getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public Builder setEmailAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + emailAddress_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public Builder clearEmailAddress() { + + emailAddress_ = getDefaultInstance().getEmailAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + emailAddress_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Email) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Email) + private static final com.google.cloud.talent.v4beta1.Email DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Email(); + } + + public static com.google.cloud.talent.v4beta1.Email getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Email parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Email(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java new file mode 100644 index 000000000000..0a978ab2843e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface EmailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Email) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + java.lang.String getEmailAddress(); + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + com.google.protobuf.ByteString getEmailAddressBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java new file mode 100644 index 000000000000..1bcb27c02484 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java @@ -0,0 +1,1047 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Employer filter of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmployerFilter} + */ +public final class EmployerFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EmployerFilter) + EmployerFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmployerFilter.newBuilder() to construct. + private EmployerFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmployerFilter() { + employer_ = ""; + mode_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EmployerFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + employer_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + mode_ = rawValue; + break; + } + case 24: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmployerFilter.class, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder.class); + } + + /** + * + * + *
+   * Enum indicating which set of
+   * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]
+   * to search against.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode} + */ + public enum EmployerFilterMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; + */ + EMPLOYER_FILTER_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Apply to all employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * ALL_EMPLOYMENT_RECORDS = 1; + */ + ALL_EMPLOYMENT_RECORDS(1), + /** + * + * + *
+     * Apply only to current employer in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; + */ + CURRENT_EMPLOYMENT_RECORDS_ONLY(2), + /** + * + * + *
+     * Apply only to past (not current) employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * PAST_EMPLOYMENT_RECORDS_ONLY = 3; + */ + PAST_EMPLOYMENT_RECORDS_ONLY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; + */ + public static final int EMPLOYER_FILTER_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Apply to all employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * ALL_EMPLOYMENT_RECORDS = 1; + */ + public static final int ALL_EMPLOYMENT_RECORDS_VALUE = 1; + /** + * + * + *
+     * Apply only to current employer in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; + */ + public static final int CURRENT_EMPLOYMENT_RECORDS_ONLY_VALUE = 2; + /** + * + * + *
+     * Apply only to past (not current) employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * PAST_EMPLOYMENT_RECORDS_ONLY = 3; + */ + public static final int PAST_EMPLOYMENT_RECORDS_ONLY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static EmployerFilterMode valueOf(int value) { + return forNumber(value); + } + + public static EmployerFilterMode forNumber(int value) { + switch (value) { + case 0: + return EMPLOYER_FILTER_MODE_UNSPECIFIED; + case 1: + return ALL_EMPLOYMENT_RECORDS; + case 2: + return CURRENT_EMPLOYMENT_RECORDS_ONLY; + case 3: + return PAST_EMPLOYMENT_RECORDS_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EmployerFilterMode findValueByNumber(int number) { + return EmployerFilterMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EmployerFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final EmployerFilterMode[] VALUES = values(); + + public static EmployerFilterMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EmployerFilterMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode) + } + + public static final int EMPLOYER_FIELD_NUMBER = 1; + private volatile java.lang.Object employer_; + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + public java.lang.String getEmployer() { + java.lang.Object ref = employer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employer_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + public com.google.protobuf.ByteString getEmployerBytes() { + java.lang.Object ref = employer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODE_FIELD_NUMBER = 2; + private int mode_; + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode result = + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.valueOf(mode_); + return result == null + ? com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.UNRECOGNIZED + : result; + } + + public static final int NEGATED_FIELD_NUMBER = 3; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 3; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getEmployerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, employer_); + } + if (mode_ + != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode + .EMPLOYER_FILTER_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, mode_); + } + if (negated_ != false) { + output.writeBool(3, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEmployerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, employer_); + } + if (mode_ + != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode + .EMPLOYER_FILTER_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.EmployerFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EmployerFilter other = + (com.google.cloud.talent.v4beta1.EmployerFilter) obj; + + boolean result = true; + result = result && getEmployer().equals(other.getEmployer()); + result = result && mode_ == other.mode_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EMPLOYER_FIELD_NUMBER; + hash = (53 * hash) + getEmployer().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.EmployerFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Employer filter of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmployerFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EmployerFilter) + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmployerFilter.class, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EmployerFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + employer_ = ""; + + mode_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter build() { + com.google.cloud.talent.v4beta1.EmployerFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter buildPartial() { + com.google.cloud.talent.v4beta1.EmployerFilter result = + new com.google.cloud.talent.v4beta1.EmployerFilter(this); + result.employer_ = employer_; + result.mode_ = mode_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EmployerFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.EmployerFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EmployerFilter other) { + if (other == com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()) return this; + if (!other.getEmployer().isEmpty()) { + employer_ = other.employer_; + onChanged(); + } + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.EmployerFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EmployerFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object employer_ = ""; + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public java.lang.String getEmployer() { + java.lang.Object ref = employer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public com.google.protobuf.ByteString getEmployerBytes() { + java.lang.Object ref = employer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public Builder setEmployer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + employer_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public Builder clearEmployer() { + + employer_ = getDefaultInstance().getEmployer(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public Builder setEmployerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + employer_ = value; + onChanged(); + return this; + } + + private int mode_ = 0; + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public Builder setModeValue(int value) { + mode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode result = + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.valueOf(mode_); + return result == null + ? com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public Builder setMode( + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 3; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 3; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 3; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EmployerFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EmployerFilter) + private static final com.google.cloud.talent.v4beta1.EmployerFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EmployerFilter(); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployerFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmployerFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java new file mode 100644 index 000000000000..4401704a75af --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface EmployerFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EmployerFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + java.lang.String getEmployer(); + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + com.google.protobuf.ByteString getEmployerBytes(); + + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + int getModeValue(); + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 3; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java new file mode 100644 index 000000000000..5455e7e9e686 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java @@ -0,0 +1,3481 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents an employment record of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmploymentRecord} + */ +public final class EmploymentRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EmploymentRecord) + EmploymentRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmploymentRecord.newBuilder() to construct. + private EmploymentRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmploymentRecord() { + employerName_ = ""; + divisionName_ = ""; + jobTitle_ = ""; + jobDescription_ = ""; + jobTitleSnippet_ = ""; + jobDescriptionSnippet_ = ""; + employerNameSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EmploymentRecord( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + employerName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + divisionName_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.Address.Builder subBuilder = null; + if (address_ != null) { + subBuilder = address_.toBuilder(); + } + address_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(address_); + address_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitle_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobDescription_ = s; + break; + } + case 66: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isSupervisedPosition_ != null) { + subBuilder = isSupervisedPosition_.toBuilder(); + } + isSupervisedPosition_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isSupervisedPosition_); + isSupervisedPosition_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isSelfEmployed_ != null) { + subBuilder = isSelfEmployed_.toBuilder(); + } + isSelfEmployed_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isSelfEmployed_); + isSelfEmployed_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCurrent_ != null) { + subBuilder = isCurrent_.toBuilder(); + } + isCurrent_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCurrent_); + isCurrent_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitleSnippet_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobDescriptionSnippet_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + employerNameSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmploymentRecord.class, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder.class); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return getStartDate(); + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return getEndDate(); + } + + public static final int EMPLOYER_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object employerName_; + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + public java.lang.String getEmployerName() { + java.lang.Object ref = employerName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employerName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + public com.google.protobuf.ByteString getEmployerNameBytes() { + java.lang.Object ref = employerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIVISION_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object divisionName_; + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + public java.lang.String getDivisionName() { + java.lang.Object ref = divisionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + divisionName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + public com.google.protobuf.ByteString getDivisionNameBytes() { + java.lang.Object ref = divisionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + divisionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.Address address_; + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return address_ != null; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + return getAddress(); + } + + public static final int JOB_TITLE_FIELD_NUMBER = 6; + private volatile java.lang.Object jobTitle_; + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_DESCRIPTION_FIELD_NUMBER = 7; + private volatile java.lang.Object jobDescription_; + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + public java.lang.String getJobDescription() { + java.lang.Object ref = jobDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobDescription_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + public com.google.protobuf.ByteString getJobDescriptionBytes() { + java.lang.Object ref = jobDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_SUPERVISED_POSITION_FIELD_NUMBER = 8; + private com.google.protobuf.BoolValue isSupervisedPosition_; + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public boolean hasIsSupervisedPosition() { + return isSupervisedPosition_ != null; + } + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValue getIsSupervisedPosition() { + return isSupervisedPosition_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSupervisedPosition_; + } + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder() { + return getIsSupervisedPosition(); + } + + public static final int IS_SELF_EMPLOYED_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue isSelfEmployed_; + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public boolean hasIsSelfEmployed() { + return isSelfEmployed_ != null; + } + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValue getIsSelfEmployed() { + return isSelfEmployed_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSelfEmployed_; + } + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder() { + return getIsSelfEmployed(); + } + + public static final int IS_CURRENT_FIELD_NUMBER = 10; + private com.google.protobuf.BoolValue isCurrent_; + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public boolean hasIsCurrent() { + return isCurrent_ != null; + } + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + return getIsCurrent(); + } + + public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 11; + private volatile java.lang.Object jobTitleSnippet_; + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_DESCRIPTION_SNIPPET_FIELD_NUMBER = 12; + private volatile java.lang.Object jobDescriptionSnippet_; + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + public java.lang.String getJobDescriptionSnippet() { + java.lang.Object ref = jobDescriptionSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobDescriptionSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + public com.google.protobuf.ByteString getJobDescriptionSnippetBytes() { + java.lang.Object ref = jobDescriptionSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMPLOYER_NAME_SNIPPET_FIELD_NUMBER = 13; + private volatile java.lang.Object employerNameSnippet_; + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + public java.lang.String getEmployerNameSnippet() { + java.lang.Object ref = employerNameSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employerNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + public com.google.protobuf.ByteString getEmployerNameSnippetBytes() { + java.lang.Object ref = employerNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startDate_ != null) { + output.writeMessage(1, getStartDate()); + } + if (endDate_ != null) { + output.writeMessage(2, getEndDate()); + } + if (!getEmployerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, employerName_); + } + if (!getDivisionNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, divisionName_); + } + if (address_ != null) { + output.writeMessage(5, getAddress()); + } + if (!getJobTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jobTitle_); + } + if (!getJobDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, jobDescription_); + } + if (isSupervisedPosition_ != null) { + output.writeMessage(8, getIsSupervisedPosition()); + } + if (isSelfEmployed_ != null) { + output.writeMessage(9, getIsSelfEmployed()); + } + if (isCurrent_ != null) { + output.writeMessage(10, getIsCurrent()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, jobTitleSnippet_); + } + if (!getJobDescriptionSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, jobDescriptionSnippet_); + } + if (!getEmployerNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, employerNameSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); + } + if (endDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + if (!getEmployerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, employerName_); + } + if (!getDivisionNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, divisionName_); + } + if (address_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAddress()); + } + if (!getJobTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, jobTitle_); + } + if (!getJobDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, jobDescription_); + } + if (isSupervisedPosition_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getIsSupervisedPosition()); + } + if (isSelfEmployed_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsSelfEmployed()); + } + if (isCurrent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIsCurrent()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, jobTitleSnippet_); + } + if (!getJobDescriptionSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, jobDescriptionSnippet_); + } + if (!getEmployerNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, employerNameSnippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.EmploymentRecord)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EmploymentRecord other = + (com.google.cloud.talent.v4beta1.EmploymentRecord) obj; + + boolean result = true; + result = result && (hasStartDate() == other.hasStartDate()); + if (hasStartDate()) { + result = result && getStartDate().equals(other.getStartDate()); + } + result = result && (hasEndDate() == other.hasEndDate()); + if (hasEndDate()) { + result = result && getEndDate().equals(other.getEndDate()); + } + result = result && getEmployerName().equals(other.getEmployerName()); + result = result && getDivisionName().equals(other.getDivisionName()); + result = result && (hasAddress() == other.hasAddress()); + if (hasAddress()) { + result = result && getAddress().equals(other.getAddress()); + } + result = result && getJobTitle().equals(other.getJobTitle()); + result = result && getJobDescription().equals(other.getJobDescription()); + result = result && (hasIsSupervisedPosition() == other.hasIsSupervisedPosition()); + if (hasIsSupervisedPosition()) { + result = result && getIsSupervisedPosition().equals(other.getIsSupervisedPosition()); + } + result = result && (hasIsSelfEmployed() == other.hasIsSelfEmployed()); + if (hasIsSelfEmployed()) { + result = result && getIsSelfEmployed().equals(other.getIsSelfEmployed()); + } + result = result && (hasIsCurrent() == other.hasIsCurrent()); + if (hasIsCurrent()) { + result = result && getIsCurrent().equals(other.getIsCurrent()); + } + result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); + result = result && getJobDescriptionSnippet().equals(other.getJobDescriptionSnippet()); + result = result && getEmployerNameSnippet().equals(other.getEmployerNameSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (37 * hash) + EMPLOYER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEmployerName().hashCode(); + hash = (37 * hash) + DIVISION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDivisionName().hashCode(); + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getJobTitle().hashCode(); + hash = (37 * hash) + JOB_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getJobDescription().hashCode(); + if (hasIsSupervisedPosition()) { + hash = (37 * hash) + IS_SUPERVISED_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getIsSupervisedPosition().hashCode(); + } + if (hasIsSelfEmployed()) { + hash = (37 * hash) + IS_SELF_EMPLOYED_FIELD_NUMBER; + hash = (53 * hash) + getIsSelfEmployed().hashCode(); + } + if (hasIsCurrent()) { + hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getIsCurrent().hashCode(); + } + hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleSnippet().hashCode(); + hash = (37 * hash) + JOB_DESCRIPTION_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobDescriptionSnippet().hashCode(); + hash = (37 * hash) + EMPLOYER_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getEmployerNameSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.EmploymentRecord prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents an employment record of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmploymentRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EmploymentRecord) + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmploymentRecord.class, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EmploymentRecord.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startDateBuilder_ == null) { + startDate_ = null; + } else { + startDate_ = null; + startDateBuilder_ = null; + } + if (endDateBuilder_ == null) { + endDate_ = null; + } else { + endDate_ = null; + endDateBuilder_ = null; + } + employerName_ = ""; + + divisionName_ = ""; + + if (addressBuilder_ == null) { + address_ = null; + } else { + address_ = null; + addressBuilder_ = null; + } + jobTitle_ = ""; + + jobDescription_ = ""; + + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPosition_ = null; + } else { + isSupervisedPosition_ = null; + isSupervisedPositionBuilder_ = null; + } + if (isSelfEmployedBuilder_ == null) { + isSelfEmployed_ = null; + } else { + isSelfEmployed_ = null; + isSelfEmployedBuilder_ = null; + } + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + jobTitleSnippet_ = ""; + + jobDescriptionSnippet_ = ""; + + employerNameSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord build() { + com.google.cloud.talent.v4beta1.EmploymentRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord buildPartial() { + com.google.cloud.talent.v4beta1.EmploymentRecord result = + new com.google.cloud.talent.v4beta1.EmploymentRecord(this); + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + result.employerName_ = employerName_; + result.divisionName_ = divisionName_; + if (addressBuilder_ == null) { + result.address_ = address_; + } else { + result.address_ = addressBuilder_.build(); + } + result.jobTitle_ = jobTitle_; + result.jobDescription_ = jobDescription_; + if (isSupervisedPositionBuilder_ == null) { + result.isSupervisedPosition_ = isSupervisedPosition_; + } else { + result.isSupervisedPosition_ = isSupervisedPositionBuilder_.build(); + } + if (isSelfEmployedBuilder_ == null) { + result.isSelfEmployed_ = isSelfEmployed_; + } else { + result.isSelfEmployed_ = isSelfEmployedBuilder_.build(); + } + if (isCurrentBuilder_ == null) { + result.isCurrent_ = isCurrent_; + } else { + result.isCurrent_ = isCurrentBuilder_.build(); + } + result.jobTitleSnippet_ = jobTitleSnippet_; + result.jobDescriptionSnippet_ = jobDescriptionSnippet_; + result.employerNameSnippet_ = employerNameSnippet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EmploymentRecord) { + return mergeFrom((com.google.cloud.talent.v4beta1.EmploymentRecord) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EmploymentRecord other) { + if (other == com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()) + return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + if (!other.getEmployerName().isEmpty()) { + employerName_ = other.employerName_; + onChanged(); + } + if (!other.getDivisionName().isEmpty()) { + divisionName_ = other.divisionName_; + onChanged(); + } + if (other.hasAddress()) { + mergeAddress(other.getAddress()); + } + if (!other.getJobTitle().isEmpty()) { + jobTitle_ = other.jobTitle_; + onChanged(); + } + if (!other.getJobDescription().isEmpty()) { + jobDescription_ = other.jobDescription_; + onChanged(); + } + if (other.hasIsSupervisedPosition()) { + mergeIsSupervisedPosition(other.getIsSupervisedPosition()); + } + if (other.hasIsSelfEmployed()) { + mergeIsSelfEmployed(other.getIsSelfEmployed()); + } + if (other.hasIsCurrent()) { + mergeIsCurrent(other.getIsCurrent()); + } + if (!other.getJobTitleSnippet().isEmpty()) { + jobTitleSnippet_ = other.jobTitleSnippet_; + onChanged(); + } + if (!other.getJobDescriptionSnippet().isEmpty()) { + jobDescriptionSnippet_ = other.jobDescriptionSnippet_; + onChanged(); + } + if (!other.getEmployerNameSnippet().isEmpty()) { + employerNameSnippet_ = other.employerNameSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.EmploymentRecord parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EmploymentRecord) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.type.Date startDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + onChanged(); + } else { + startDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + onChanged(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + } else { + startDate_ = value; + } + onChanged(); + } else { + startDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; + onChanged(); + } else { + startDate_ = null; + startDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + onChanged(); + } else { + endDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + onChanged(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); + } else { + endDate_ = value; + } + onChanged(); + } else { + endDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; + onChanged(); + } else { + endDate_ = null; + endDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + private java.lang.Object employerName_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public java.lang.String getEmployerName() { + java.lang.Object ref = employerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public com.google.protobuf.ByteString getEmployerNameBytes() { + java.lang.Object ref = employerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public Builder setEmployerName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + employerName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public Builder clearEmployerName() { + + employerName_ = getDefaultInstance().getEmployerName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public Builder setEmployerNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + employerName_ = value; + onChanged(); + return this; + } + + private java.lang.Object divisionName_ = ""; + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public java.lang.String getDivisionName() { + java.lang.Object ref = divisionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + divisionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public com.google.protobuf.ByteString getDivisionNameBytes() { + java.lang.Object ref = divisionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + divisionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public Builder setDivisionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + divisionName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public Builder clearDivisionName() { + + divisionName_ = getDefaultInstance().getDivisionName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public Builder setDivisionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + divisionName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Address address_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + addressBuilder_; + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return addressBuilder_ != null || address_ != null; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + if (addressBuilder_ == null) { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } else { + return addressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + onChanged(); + } else { + addressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressBuilder_ == null) { + address_ = builderForValue.build(); + onChanged(); + } else { + addressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder mergeAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (address_ != null) { + address_ = + com.google.cloud.talent.v4beta1.Address.newBuilder(address_) + .mergeFrom(value) + .buildPartial(); + } else { + address_ = value; + } + onChanged(); + } else { + addressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder clearAddress() { + if (addressBuilder_ == null) { + address_ = null; + onChanged(); + } else { + address_ = null; + addressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address.Builder getAddressBuilder() { + + onChanged(); + return getAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + if (addressBuilder_ != null) { + return addressBuilder_.getMessageOrBuilder(); + } else { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + getAddressFieldBuilder() { + if (addressBuilder_ == null) { + addressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder>( + getAddress(), getParentForChildren(), isClean()); + address_ = null; + } + return addressBuilder_; + } + + private java.lang.Object jobTitle_ = ""; + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public Builder setJobTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public Builder clearJobTitle() { + + jobTitle_ = getDefaultInstance().getJobTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitle_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobDescription_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public java.lang.String getJobDescription() { + java.lang.Object ref = jobDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public com.google.protobuf.ByteString getJobDescriptionBytes() { + java.lang.Object ref = jobDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public Builder setJobDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public Builder clearJobDescription() { + + jobDescription_ = getDefaultInstance().getJobDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public Builder setJobDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobDescription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isSupervisedPosition_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isSupervisedPositionBuilder_; + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public boolean hasIsSupervisedPosition() { + return isSupervisedPositionBuilder_ != null || isSupervisedPosition_ != null; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValue getIsSupervisedPosition() { + if (isSupervisedPositionBuilder_ == null) { + return isSupervisedPosition_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSupervisedPosition_; + } else { + return isSupervisedPositionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder setIsSupervisedPosition(com.google.protobuf.BoolValue value) { + if (isSupervisedPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isSupervisedPosition_ = value; + onChanged(); + } else { + isSupervisedPositionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder setIsSupervisedPosition(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPosition_ = builderForValue.build(); + onChanged(); + } else { + isSupervisedPositionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder mergeIsSupervisedPosition(com.google.protobuf.BoolValue value) { + if (isSupervisedPositionBuilder_ == null) { + if (isSupervisedPosition_ != null) { + isSupervisedPosition_ = + com.google.protobuf.BoolValue.newBuilder(isSupervisedPosition_) + .mergeFrom(value) + .buildPartial(); + } else { + isSupervisedPosition_ = value; + } + onChanged(); + } else { + isSupervisedPositionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder clearIsSupervisedPosition() { + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPosition_ = null; + onChanged(); + } else { + isSupervisedPosition_ = null; + isSupervisedPositionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValue.Builder getIsSupervisedPositionBuilder() { + + onChanged(); + return getIsSupervisedPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder() { + if (isSupervisedPositionBuilder_ != null) { + return isSupervisedPositionBuilder_.getMessageOrBuilder(); + } else { + return isSupervisedPosition_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSupervisedPosition_; + } + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsSupervisedPositionFieldBuilder() { + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsSupervisedPosition(), getParentForChildren(), isClean()); + isSupervisedPosition_ = null; + } + return isSupervisedPositionBuilder_; + } + + private com.google.protobuf.BoolValue isSelfEmployed_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isSelfEmployedBuilder_; + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public boolean hasIsSelfEmployed() { + return isSelfEmployedBuilder_ != null || isSelfEmployed_ != null; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValue getIsSelfEmployed() { + if (isSelfEmployedBuilder_ == null) { + return isSelfEmployed_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSelfEmployed_; + } else { + return isSelfEmployedBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder setIsSelfEmployed(com.google.protobuf.BoolValue value) { + if (isSelfEmployedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isSelfEmployed_ = value; + onChanged(); + } else { + isSelfEmployedBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder setIsSelfEmployed(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isSelfEmployedBuilder_ == null) { + isSelfEmployed_ = builderForValue.build(); + onChanged(); + } else { + isSelfEmployedBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder mergeIsSelfEmployed(com.google.protobuf.BoolValue value) { + if (isSelfEmployedBuilder_ == null) { + if (isSelfEmployed_ != null) { + isSelfEmployed_ = + com.google.protobuf.BoolValue.newBuilder(isSelfEmployed_) + .mergeFrom(value) + .buildPartial(); + } else { + isSelfEmployed_ = value; + } + onChanged(); + } else { + isSelfEmployedBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder clearIsSelfEmployed() { + if (isSelfEmployedBuilder_ == null) { + isSelfEmployed_ = null; + onChanged(); + } else { + isSelfEmployed_ = null; + isSelfEmployedBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValue.Builder getIsSelfEmployedBuilder() { + + onChanged(); + return getIsSelfEmployedFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder() { + if (isSelfEmployedBuilder_ != null) { + return isSelfEmployedBuilder_.getMessageOrBuilder(); + } else { + return isSelfEmployed_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSelfEmployed_; + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsSelfEmployedFieldBuilder() { + if (isSelfEmployedBuilder_ == null) { + isSelfEmployedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsSelfEmployed(), getParentForChildren(), isClean()); + isSelfEmployed_ = null; + } + return isSelfEmployedBuilder_; + } + + private com.google.protobuf.BoolValue isCurrent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isCurrentBuilder_; + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public boolean hasIsCurrent() { + return isCurrentBuilder_ != null || isCurrent_ != null; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + if (isCurrentBuilder_ == null) { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } else { + return isCurrentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isCurrent_ = value; + onChanged(); + } else { + isCurrentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isCurrentBuilder_ == null) { + isCurrent_ = builderForValue.build(); + onChanged(); + } else { + isCurrentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (isCurrent_ != null) { + isCurrent_ = + com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); + } else { + isCurrent_ = value; + } + onChanged(); + } else { + isCurrentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder clearIsCurrent() { + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + onChanged(); + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { + + onChanged(); + return getIsCurrentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + if (isCurrentBuilder_ != null) { + return isCurrentBuilder_.getMessageOrBuilder(); + } else { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsCurrentFieldBuilder() { + if (isCurrentBuilder_ == null) { + isCurrentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsCurrent(), getParentForChildren(), isClean()); + isCurrent_ = null; + } + return isCurrentBuilder_; + } + + private java.lang.Object jobTitleSnippet_ = ""; + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public Builder setJobTitleSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public Builder clearJobTitleSnippet() { + + jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobDescriptionSnippet_ = ""; + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public java.lang.String getJobDescriptionSnippet() { + java.lang.Object ref = jobDescriptionSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobDescriptionSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public com.google.protobuf.ByteString getJobDescriptionSnippetBytes() { + java.lang.Object ref = jobDescriptionSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public Builder setJobDescriptionSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobDescriptionSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public Builder clearJobDescriptionSnippet() { + + jobDescriptionSnippet_ = getDefaultInstance().getJobDescriptionSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public Builder setJobDescriptionSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobDescriptionSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object employerNameSnippet_ = ""; + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public java.lang.String getEmployerNameSnippet() { + java.lang.Object ref = employerNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employerNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public com.google.protobuf.ByteString getEmployerNameSnippetBytes() { + java.lang.Object ref = employerNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public Builder setEmployerNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + employerNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public Builder clearEmployerNameSnippet() { + + employerNameSnippet_ = getDefaultInstance().getEmployerNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public Builder setEmployerNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + employerNameSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EmploymentRecord) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EmploymentRecord) + private static final com.google.cloud.talent.v4beta1.EmploymentRecord DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EmploymentRecord(); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmploymentRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmploymentRecord(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java new file mode 100644 index 000000000000..547750279263 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface EmploymentRecordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EmploymentRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + boolean hasStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.Date getStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + boolean hasEndDate(); + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.Date getEndDate(); + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + java.lang.String getEmployerName(); + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + com.google.protobuf.ByteString getEmployerNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + java.lang.String getDivisionName(); + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + com.google.protobuf.ByteString getDivisionNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + boolean hasAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.Address getAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + java.lang.String getJobTitle(); + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + com.google.protobuf.ByteString getJobTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + java.lang.String getJobDescription(); + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + com.google.protobuf.ByteString getJobDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + boolean hasIsSupervisedPosition(); + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + com.google.protobuf.BoolValue getIsSupervisedPosition(); + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + boolean hasIsSelfEmployed(); + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + com.google.protobuf.BoolValue getIsSelfEmployed(); + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + boolean hasIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + com.google.protobuf.BoolValue getIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); + + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + java.lang.String getJobTitleSnippet(); + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + com.google.protobuf.ByteString getJobTitleSnippetBytes(); + + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + java.lang.String getJobDescriptionSnippet(); + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + com.google.protobuf.ByteString getJobDescriptionSnippetBytes(); + + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + java.lang.String getEmployerNameSnippet(); + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + com.google.protobuf.ByteString getEmployerNameSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java new file mode 100644 index 000000000000..60faba65a7ca --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java @@ -0,0 +1,353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the employment type of a job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.EmploymentType} + */ +public enum EmploymentType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value if the employment type isn't specified.
+   * 
+ * + * EMPLOYMENT_TYPE_UNSPECIFIED = 0; + */ + EMPLOYMENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * The job requires working a number of hours that constitute full
+   * time employment, typically 40 or more hours per week.
+   * 
+ * + * FULL_TIME = 1; + */ + FULL_TIME(1), + /** + * + * + *
+   * The job entails working fewer hours than a full time job,
+   * typically less than 40 hours a week.
+   * 
+ * + * PART_TIME = 2; + */ + PART_TIME(2), + /** + * + * + *
+   * The job is offered as a contracted, as opposed to a salaried employee,
+   * position.
+   * 
+ * + * CONTRACTOR = 3; + */ + CONTRACTOR(3), + /** + * + * + *
+   * The job is offered as a contracted position with the understanding
+   * that it's converted into a full-time position at the end of the
+   * contract. Jobs of this type are also returned by a search for
+   * [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR]
+   * jobs.
+   * 
+ * + * CONTRACT_TO_HIRE = 4; + */ + CONTRACT_TO_HIRE(4), + /** + * + * + *
+   * The job is offered as a temporary employment opportunity, usually
+   * a short-term engagement.
+   * 
+ * + * TEMPORARY = 5; + */ + TEMPORARY(5), + /** + * + * + *
+   * The job is a fixed-term opportunity for students or entry-level job
+   * seekers to obtain on-the-job training, typically offered as a summer
+   * position.
+   * 
+ * + * INTERN = 6; + */ + INTERN(6), + /** + * + * + *
+   * The is an opportunity for an individual to volunteer, where there's no
+   * expectation of compensation for the provided services.
+   * 
+ * + * VOLUNTEER = 7; + */ + VOLUNTEER(7), + /** + * + * + *
+   * The job requires an employee to work on an as-needed basis with a
+   * flexible schedule.
+   * 
+ * + * PER_DIEM = 8; + */ + PER_DIEM(8), + /** + * + * + *
+   * The job involves employing people in remote areas and flying them
+   * temporarily to the work site instead of relocating employees and their
+   * families permanently.
+   * 
+ * + * FLY_IN_FLY_OUT = 9; + */ + FLY_IN_FLY_OUT(9), + /** + * + * + *
+   * The job does not fit any of the other listed types.
+   * 
+ * + * OTHER_EMPLOYMENT_TYPE = 10; + */ + OTHER_EMPLOYMENT_TYPE(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The default value if the employment type isn't specified.
+   * 
+ * + * EMPLOYMENT_TYPE_UNSPECIFIED = 0; + */ + public static final int EMPLOYMENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The job requires working a number of hours that constitute full
+   * time employment, typically 40 or more hours per week.
+   * 
+ * + * FULL_TIME = 1; + */ + public static final int FULL_TIME_VALUE = 1; + /** + * + * + *
+   * The job entails working fewer hours than a full time job,
+   * typically less than 40 hours a week.
+   * 
+ * + * PART_TIME = 2; + */ + public static final int PART_TIME_VALUE = 2; + /** + * + * + *
+   * The job is offered as a contracted, as opposed to a salaried employee,
+   * position.
+   * 
+ * + * CONTRACTOR = 3; + */ + public static final int CONTRACTOR_VALUE = 3; + /** + * + * + *
+   * The job is offered as a contracted position with the understanding
+   * that it's converted into a full-time position at the end of the
+   * contract. Jobs of this type are also returned by a search for
+   * [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR]
+   * jobs.
+   * 
+ * + * CONTRACT_TO_HIRE = 4; + */ + public static final int CONTRACT_TO_HIRE_VALUE = 4; + /** + * + * + *
+   * The job is offered as a temporary employment opportunity, usually
+   * a short-term engagement.
+   * 
+ * + * TEMPORARY = 5; + */ + public static final int TEMPORARY_VALUE = 5; + /** + * + * + *
+   * The job is a fixed-term opportunity for students or entry-level job
+   * seekers to obtain on-the-job training, typically offered as a summer
+   * position.
+   * 
+ * + * INTERN = 6; + */ + public static final int INTERN_VALUE = 6; + /** + * + * + *
+   * The is an opportunity for an individual to volunteer, where there's no
+   * expectation of compensation for the provided services.
+   * 
+ * + * VOLUNTEER = 7; + */ + public static final int VOLUNTEER_VALUE = 7; + /** + * + * + *
+   * The job requires an employee to work on an as-needed basis with a
+   * flexible schedule.
+   * 
+ * + * PER_DIEM = 8; + */ + public static final int PER_DIEM_VALUE = 8; + /** + * + * + *
+   * The job involves employing people in remote areas and flying them
+   * temporarily to the work site instead of relocating employees and their
+   * families permanently.
+   * 
+ * + * FLY_IN_FLY_OUT = 9; + */ + public static final int FLY_IN_FLY_OUT_VALUE = 9; + /** + * + * + *
+   * The job does not fit any of the other listed types.
+   * 
+ * + * OTHER_EMPLOYMENT_TYPE = 10; + */ + public static final int OTHER_EMPLOYMENT_TYPE_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static EmploymentType valueOf(int value) { + return forNumber(value); + } + + public static EmploymentType forNumber(int value) { + switch (value) { + case 0: + return EMPLOYMENT_TYPE_UNSPECIFIED; + case 1: + return FULL_TIME; + case 2: + return PART_TIME; + case 3: + return CONTRACTOR; + case 4: + return CONTRACT_TO_HIRE; + case 5: + return TEMPORARY; + case 6: + return INTERN; + case 7: + return VOLUNTEER; + case 8: + return PER_DIEM; + case 9: + return FLY_IN_FLY_OUT; + case 10: + return OTHER_EMPLOYMENT_TYPE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EmploymentType findValueByNumber(int number) { + return EmploymentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(3); + } + + private static final EmploymentType[] VALUES = values(); + + public static EmploymentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EmploymentType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.EmploymentType) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java new file mode 100644 index 000000000000..103263f5aae9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public final class EventProto { + private EventProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/talent/v4beta1/event.prot" + + "o\022\033google.cloud.talent.v4beta1\032\034google/a" + + "pi/annotations.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\354\002\n\013ClientEvent\022\022\n\nrequest" + + "_id\030\001 \001(\t\022\020\n\010event_id\030\002 \001(\t\022/\n\013create_ti" + + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\022:\n\t" + + "job_event\030\005 \001(\0132%.google.cloud.talent.v4" + + "beta1.JobEventH\000\022B\n\rprofile_event\030\006 \001(\0132" + + ").google.cloud.talent.v4beta1.ProfileEve" + + "ntH\000\022K\n\nextra_info\030\007 \003(\01327.google.cloud." + + "talent.v4beta1.ClientEvent.ExtraInfoEntr" + + "y\0320\n\016ExtraInfoEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001B\007\n\005event\"\357\003\n\010JobEvent\022@\n\004typ" + + "e\030\001 \001(\01622.google.cloud.talent.v4beta1.Jo" + + "bEvent.JobEventType\022\014\n\004jobs\030\002 \003(\t\"\222\003\n\014Jo" + + "bEventType\022\036\n\032JOB_EVENT_TYPE_UNSPECIFIED" + + "\020\000\022\016\n\nIMPRESSION\020\001\022\010\n\004VIEW\020\002\022\021\n\rVIEW_RED" + + "IRECT\020\003\022\025\n\021APPLICATION_START\020\004\022\026\n\022APPLIC" + + "ATION_FINISH\020\005\022 \n\034APPLICATION_QUICK_SUBM" + + "ISSION\020\006\022\030\n\024APPLICATION_REDIRECT\020\007\022!\n\035AP" + + "PLICATION_START_FROM_SEARCH\020\010\022$\n APPLICA" + + "TION_REDIRECT_FROM_SEARCH\020\t\022\036\n\032APPLICATI" + + "ON_COMPANY_SUBMIT\020\n\022\014\n\010BOOKMARK\020\013\022\020\n\014NOT" + + "IFICATION\020\014\022\t\n\005HIRED\020\r\022\013\n\007SENT_CV\020\016\022\025\n\021I" + + "NTERVIEW_GRANTED\020\017\022\022\n\016NOT_INTERESTED\020\020\"\361" + + "\002\n\014ProfileEvent\022H\n\004type\030\001 \001(\0162:.google.c" + + "loud.talent.v4beta1.ProfileEvent.Profile" + + "EventType\022\020\n\010profiles\030\002 \003(\t\022\016\n\006job_id\030\003 " + + "\001(\t\"\364\001\n\020ProfileEventType\022\"\n\036PROFILE_EVEN" + + "T_TYPE_UNSPECIFIED\020\000\022\016\n\nIMPRESSION\020\001\022\010\n\004" + + "VIEW\020\002\022\014\n\010BOOKMARK\020\003\022\021\n\rCOMMENT_ADDED\020\004\022" + + "\016\n\nEMAIL_SENT\020\005\022\021\n\rRESUME_VIEWED\020\006\022\016\n\nAD" + + "D_TO_JOB\020\007\022 \n\034POSITIVE_REACTION_TO_PROFI" + + "LE\020\010\022 \n\034NEGATIVE_REACTION_TO_PROFILE\020\t\022\n" + + "\n\006SCREEN\020\nBx\n\037com.google.cloud.talent.v4" + + "beta1B\nEventProtoP\001ZAgoogle.golang.org/g" + + "enproto/googleapis/cloud/talent/v4beta1;" + + "talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor, + new java.lang.String[] { + "RequestId", + "EventId", + "CreateTime", + "JobEvent", + "ProfileEvent", + "ExtraInfo", + "Event", + }); + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor, + new java.lang.String[] { + "Type", "Jobs", + }); + internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor, + new java.lang.String[] { + "Type", "Profiles", "JobId", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java new file mode 100644 index 000000000000..0cf1c3a2ed60 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class EventServiceProto { + private EventServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/talent/v4beta1/event_serv" + + "ice.proto\022\033google.cloud.talent.v4beta1\032\034" + + "google/api/annotations.proto\032\'google/clo" + + "ud/talent/v4beta1/event.proto\"j\n\030CreateC" + + "lientEventRequest\022\016\n\006parent\030\001 \001(\t\022>\n\014cli" + + "ent_event\030\002 \001(\0132(.google.cloud.talent.v4" + + "beta1.ClientEvent2\273\001\n\014EventService\022\252\001\n\021C" + + "reateClientEvent\0225.google.cloud.talent.v" + + "4beta1.CreateClientEventRequest\032(.google" + + ".cloud.talent.v4beta1.ClientEvent\"4\202\323\344\223\002" + + ".\")/v4beta1/{parent=projects/*}/clientEv" + + "ents:\001*B\177\n\037com.google.cloud.talent.v4bet" + + "a1B\021EventServiceProtoP\001ZAgoogle.golang.o" + + "rg/genproto/googleapis/cloud/talent/v4be" + + "ta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.EventProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor, + new java.lang.String[] { + "Parent", "ClientEvent", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.EventProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java new file mode 100644 index 000000000000..c7d13f936a44 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java @@ -0,0 +1,412 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public final class FiltersProto { + private FiltersProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/talent/v4beta1/filters.pr" + + "oto\022\033google.cloud.talent.v4beta1\032\034google" + + "/api/annotations.proto\032(google/cloud/tal" + + "ent/v4beta1/common.proto\032%google/cloud/t" + + "alent/v4beta1/job.proto\032)google/cloud/ta" + + "lent/v4beta1/profile.proto\032\036google/proto" + + "buf/duration.proto\032\037google/protobuf/time" + + "stamp.proto\032\036google/protobuf/wrappers.pr" + + "oto\032\026google/type/date.proto\032\030google/type" + + "/latlng.proto\032\033google/type/timeofday.pro" + + "to\"\347\004\n\010JobQuery\022\r\n\005query\030\001 \001(\t\022\025\n\rcompan" + + "y_names\030\002 \003(\t\022E\n\020location_filters\030\003 \003(\0132" + + "+.google.cloud.talent.v4beta1.LocationFi" + + "lter\022@\n\016job_categories\030\004 \003(\0162(.google.cl" + + "oud.talent.v4beta1.JobCategory\022B\n\016commut" + + "e_filter\030\005 \001(\0132*.google.cloud.talent.v4b" + + "eta1.CommuteFilter\022\035\n\025company_display_na" + + "mes\030\006 \003(\t\022L\n\023compensation_filter\030\007 \001(\0132/" + + ".google.cloud.talent.v4beta1.Compensatio" + + "nFilter\022\037\n\027custom_attribute_filter\030\010 \001(\t" + + "\022\033\n\023disable_spell_check\030\t \001(\010\022E\n\020employm" + + "ent_types\030\n \003(\0162+.google.cloud.talent.v4" + + "beta1.EmploymentType\022\026\n\016language_codes\030\013" + + " \003(\t\022G\n\022publish_time_range\030\014 \001(\0132+.googl" + + "e.cloud.talent.v4beta1.TimestampRange\022\025\n" + + "\rexcluded_jobs\030\r \003(\t\"\256\010\n\014ProfileQuery\022\r\n" + + "\005query\030\001 \001(\t\022E\n\020location_filters\030\002 \003(\0132+" + + ".google.cloud.talent.v4beta1.LocationFil" + + "ter\022F\n\021job_title_filters\030\003 \003(\0132+.google." + + "cloud.talent.v4beta1.JobTitleFilter\022E\n\020e" + + "mployer_filters\030\004 \003(\0132+.google.cloud.tal" + + "ent.v4beta1.EmployerFilter\022G\n\021education_" + + "filters\030\005 \003(\0132,.google.cloud.talent.v4be" + + "ta1.EducationFilter\022?\n\rskill_filters\030\006 \003" + + "(\0132(.google.cloud.talent.v4beta1.SkillFi" + + "lter\022Q\n\026work_experience_filter\030\007 \003(\01321.g" + + "oogle.cloud.talent.v4beta1.WorkExperienc" + + "eFilter\022=\n\014time_filters\030\010 \003(\0132\'.google.c" + + "loud.talent.v4beta1.TimeFilter\0222\n\016hirabl" + + "e_filter\030\t \001(\0132\032.google.protobuf.BoolVal" + + "ue\022T\n\030application_date_filters\030\n \003(\01322.g" + + "oogle.cloud.talent.v4beta1.ApplicationDa" + + "teFilter\022g\n\"application_outcome_reason_f" + + "ilters\030\013 \003(\0132;.google.cloud.talent.v4bet" + + "a1.ApplicationOutcomeReasonFilter\022_\n\036app" + + "lication_last_stage_filters\030\014 \003(\01327.goog" + + "le.cloud.talent.v4beta1.ApplicationLastS" + + "tageFilter\022R\n\027application_job_filters\030\r " + + "\003(\01321.google.cloud.talent.v4beta1.Applic" + + "ationJobFilter\022X\n\032application_status_fil" + + "ters\030\016 \003(\01324.google.cloud.talent.v4beta1" + + ".ApplicationStatusFilter\022\033\n\023custom_field" + + "_filter\030\017 \001(\t\"\337\002\n\016LocationFilter\022\017\n\007addr" + + "ess\030\001 \001(\t\022\023\n\013region_code\030\002 \001(\t\022$\n\007lat_ln" + + "g\030\003 \001(\0132\023.google.type.LatLng\022\031\n\021distance" + + "_in_miles\030\004 \001(\001\022a\n\026telecommute_preferenc" + + "e\030\005 \001(\0162A.google.cloud.talent.v4beta1.Lo" + + "cationFilter.TelecommutePreference\022\017\n\007ne" + + "gated\030\006 \001(\010\"r\n\025TelecommutePreference\022&\n\"" + + "TELECOMMUTE_PREFERENCE_UNSPECIFIED\020\000\022\030\n\024" + + "TELECOMMUTE_EXCLUDED\020\001\022\027\n\023TELECOMMUTE_AL" + + "LOWED\020\002\"\300\003\n\022CompensationFilter\022H\n\004type\030\001" + + " \001(\0162:.google.cloud.talent.v4beta1.Compe" + + "nsationFilter.FilterType\022M\n\005units\030\002 \003(\0162" + + ">.google.cloud.talent.v4beta1.Compensati" + + "onInfo.CompensationUnit\022N\n\005range\030\003 \001(\0132?" + + ".google.cloud.talent.v4beta1.Compensatio" + + "nInfo.CompensationRange\0228\n0include_jobs_" + + "with_unspecified_compensation_range\030\004 \001(" + + "\010\"\206\001\n\nFilterType\022\033\n\027FILTER_TYPE_UNSPECIF" + + "IED\020\000\022\r\n\tUNIT_ONLY\020\001\022\023\n\017UNIT_AND_AMOUNT\020" + + "\002\022\032\n\026ANNUALIZED_BASE_AMOUNT\020\003\022\033\n\027ANNUALI" + + "ZED_TOTAL_AMOUNT\020\004\"\274\003\n\rCommuteFilter\022B\n\016" + + "commute_method\030\001 \001(\0162*.google.cloud.tale" + + "nt.v4beta1.CommuteMethod\022.\n\021start_coordi" + + "nates\030\002 \001(\0132\023.google.type.LatLng\0222\n\017trav" + + "el_duration\030\003 \001(\0132\031.google.protobuf.Dura" + + "tion\022!\n\031allow_imprecise_addresses\030\004 \001(\010\022" + + "N\n\014road_traffic\030\005 \001(\01626.google.cloud.tal" + + "ent.v4beta1.CommuteFilter.RoadTrafficH\000\022" + + "0\n\016departure_time\030\006 \001(\0132\026.google.type.Ti" + + "meOfDayH\000\"L\n\013RoadTraffic\022\034\n\030ROAD_TRAFFIC" + + "_UNSPECIFIED\020\000\022\020\n\014TRAFFIC_FREE\020\001\022\r\n\tBUSY" + + "_HOUR\020\002B\020\n\016traffic_option\"4\n\016JobTitleFil" + + "ter\022\021\n\tjob_title\030\001 \001(\t\022\017\n\007negated\030\002 \001(\010\"" + + "-\n\013SkillFilter\022\r\n\005skill\030\001 \001(\t\022\017\n\007negated" + + "\030\002 \001(\010\"\241\002\n\016EmployerFilter\022\020\n\010employer\030\001 " + + "\001(\t\022L\n\004mode\030\002 \001(\0162>.google.cloud.talent." + + "v4beta1.EmployerFilter.EmployerFilterMod" + + "e\022\017\n\007negated\030\003 \001(\010\"\235\001\n\022EmployerFilterMod" + + "e\022$\n EMPLOYER_FILTER_MODE_UNSPECIFIED\020\000\022" + + "\032\n\026ALL_EMPLOYMENT_RECORDS\020\001\022#\n\037CURRENT_E" + + "MPLOYMENT_RECORDS_ONLY\020\002\022 \n\034PAST_EMPLOYM" + + "ENT_RECORDS_ONLY\020\003\"\210\001\n\017EducationFilter\022\016" + + "\n\006school\030\001 \001(\t\022\026\n\016field_of_study\030\002 \001(\t\022<" + + "\n\013degree_type\030\003 \001(\0162\'.google.cloud.talen" + + "t.v4beta1.DegreeType\022\017\n\007negated\030\006 \001(\010\"|\n" + + "\024WorkExperienceFilter\0221\n\016min_experience\030" + + "\001 \001(\0132\031.google.protobuf.Duration\0221\n\016max_" + + "experience\030\002 \001(\0132\031.google.protobuf.Durat" + + "ion\"c\n\025ApplicationDateFilter\022%\n\nstart_da" + + "te\030\001 \001(\0132\021.google.type.Date\022#\n\010end_date\030" + + "\002 \001(\0132\021.google.type.Date\"I\n\036ApplicationO" + + "utcomeReasonFilter\022\026\n\016outcome_reason\030\001 \001" + + "(\t\022\017\n\007negated\030\002 \001(\010\"A\n\032ApplicationLastSt" + + "ageFilter\022\022\n\nlast_stage\030\001 \001(\t\022\017\n\007negated" + + "\030\002 \001(\010\"h\n\024ApplicationJobFilter\022\020\n\010job_na" + + "me\030\001 \001(\t\022\032\n\022job_requisition_id\030\002 \001(\t\022\021\n\t" + + "job_title\030\003 \001(\t\022\017\n\007negated\030\004 \001(\010\"\205\001\n\027App" + + "licationStatusFilter\022Y\n\022application_stat" + + "us\030\001 \001(\0162=.google.cloud.talent.v4beta1.J" + + "obApplication.ApplicationStatus\022\017\n\007negat" + + "ed\030\002 \001(\010\"\374\001\n\nTimeFilter\022.\n\nstart_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" + + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp\022E\n" + + "\ntime_field\030\003 \001(\01621.google.cloud.talent." + + "v4beta1.TimeFilter.TimeField\"I\n\tTimeFiel" + + "d\022\032\n\026TIME_FIELD_UNSPECIFIED\020\000\022\017\n\013CREATE_" + + "TIME\020\001\022\017\n\013UPDATE_TIME\020\002Bz\n\037com.google.cl" + + "oud.talent.v4beta1B\014FiltersProtoP\001ZAgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "talent/v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor, + new java.lang.String[] { + "Query", + "CompanyNames", + "LocationFilters", + "JobCategories", + "CommuteFilter", + "CompanyDisplayNames", + "CompensationFilter", + "CustomAttributeFilter", + "DisableSpellCheck", + "EmploymentTypes", + "LanguageCodes", + "PublishTimeRange", + "ExcludedJobs", + }); + internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor, + new java.lang.String[] { + "Query", + "LocationFilters", + "JobTitleFilters", + "EmployerFilters", + "EducationFilters", + "SkillFilters", + "WorkExperienceFilter", + "TimeFilters", + "HirableFilter", + "ApplicationDateFilters", + "ApplicationOutcomeReasonFilters", + "ApplicationLastStageFilters", + "ApplicationJobFilters", + "ApplicationStatusFilters", + "CustomFieldFilter", + }); + internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor, + new java.lang.String[] { + "Address", + "RegionCode", + "LatLng", + "DistanceInMiles", + "TelecommutePreference", + "Negated", + }); + internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor, + new java.lang.String[] { + "Type", "Units", "Range", "IncludeJobsWithUnspecifiedCompensationRange", + }); + internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor, + new java.lang.String[] { + "CommuteMethod", + "StartCoordinates", + "TravelDuration", + "AllowImpreciseAddresses", + "RoadTraffic", + "DepartureTime", + "TrafficOption", + }); + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor, + new java.lang.String[] { + "JobTitle", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor, + new java.lang.String[] { + "Skill", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor, + new java.lang.String[] { + "Employer", "Mode", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor, + new java.lang.String[] { + "School", "FieldOfStudy", "DegreeType", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor, + new java.lang.String[] { + "MinExperience", "MaxExperience", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor, + new java.lang.String[] { + "StartDate", "EndDate", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor, + new java.lang.String[] { + "OutcomeReason", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor, + new java.lang.String[] { + "LastStage", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor, + new java.lang.String[] { + "JobName", "JobRequisitionId", "JobTitle", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor, + new java.lang.String[] { + "ApplicationStatus", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "TimeField", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java new file mode 100644 index 000000000000..ef15568e61ab --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for getting a company by name.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetCompanyRequest} + */ +public final class GetCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetCompanyRequest) + GetCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCompanyRequest.newBuilder() to construct. + private GetCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCompanyRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetCompanyRequest.class, + com.google.cloud.talent.v4beta1.GetCompanyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.GetCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetCompanyRequest other = + (com.google.cloud.talent.v4beta1.GetCompanyRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.GetCompanyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for getting a company by name.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetCompanyRequest) + com.google.cloud.talent.v4beta1.GetCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetCompanyRequest.class, + com.google.cloud.talent.v4beta1.GetCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest build() { + com.google.cloud.talent.v4beta1.GetCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetCompanyRequest result = + new com.google.cloud.talent.v4beta1.GetCompanyRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetCompanyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.GetCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.GetCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetCompanyRequest) + private static final com.google.cloud.talent.v4beta1.GetCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCompanyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..a9dc06a78964 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java new file mode 100644 index 000000000000..bd8bd4574a68 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Get job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetJobRequest} + */ +public final class GetJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetJobRequest) + GetJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJobRequest.newBuilder() to construct. + private GetJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetJobRequest.class, + com.google.cloud.talent.v4beta1.GetJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.GetJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetJobRequest other = + (com.google.cloud.talent.v4beta1.GetJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.GetJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Get job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetJobRequest) + com.google.cloud.talent.v4beta1.GetJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetJobRequest.class, + com.google.cloud.talent.v4beta1.GetJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest build() { + com.google.cloud.talent.v4beta1.GetJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetJobRequest result = + new com.google.cloud.talent.v4beta1.GetJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.GetJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.GetJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetJobRequest) + private static final com.google.cloud.talent.v4beta1.GetJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java new file mode 100644 index 000000000000..29731ee39b5e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java new file mode 100644 index 000000000000..aa2092ef850e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java @@ -0,0 +1,627 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Get profile request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetProfileRequest} + */ +public final class GetProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetProfileRequest) + GetProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetProfileRequest.newBuilder() to construct. + private GetProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetProfileRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetProfileRequest.class, + com.google.cloud.talent.v4beta1.GetProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.GetProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetProfileRequest other = + (com.google.cloud.talent.v4beta1.GetProfileRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.GetProfileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Get profile request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetProfileRequest) + com.google.cloud.talent.v4beta1.GetProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetProfileRequest.class, + com.google.cloud.talent.v4beta1.GetProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest build() { + com.google.cloud.talent.v4beta1.GetProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetProfileRequest result = + new com.google.cloud.talent.v4beta1.GetProfileRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.GetProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.GetProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetProfileRequest) + private static final com.google.cloud.talent.v4beta1.GetProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProfileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java new file mode 100644 index 000000000000..b4f41d5a3624 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java new file mode 100644 index 000000000000..947fa851628b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java @@ -0,0 +1,619 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for getting a tenant by name.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetTenantRequest} + */ +public final class GetTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetTenantRequest) + GetTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTenantRequest.newBuilder() to construct. + private GetTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTenantRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetTenantRequest.class, + com.google.cloud.talent.v4beta1.GetTenantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.GetTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetTenantRequest other = + (com.google.cloud.talent.v4beta1.GetTenantRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.GetTenantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for getting a tenant by name.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetTenantRequest) + com.google.cloud.talent.v4beta1.GetTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetTenantRequest.class, + com.google.cloud.talent.v4beta1.GetTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest build() { + com.google.cloud.talent.v4beta1.GetTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetTenantRequest result = + new com.google.cloud.talent.v4beta1.GetTenantRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetTenantRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.GetTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.GetTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetTenantRequest) + private static final com.google.cloud.talent.v4beta1.GetTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTenantRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java new file mode 100644 index 000000000000..c6c8c9e2e154 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java new file mode 100644 index 000000000000..c946e92f6735 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +public final class HistogramProto { + private HistogramProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/talent/v4beta1/histogram." + + "proto\022\033google.cloud.talent.v4beta1\032\034goog" + + "le/api/annotations.proto\032\036google/protobu" + + "f/wrappers.proto\")\n\016HistogramQuery\022\027\n\017hi" + + "stogram_query\030\001 \001(\t\"\266\001\n\024HistogramQueryRe" + + "sult\022\027\n\017histogram_query\030\001 \001(\t\022S\n\thistogr" + + "am\030\002 \003(\0132@.google.cloud.talent.v4beta1.H" + + "istogramQueryResult.HistogramEntry\0320\n\016Hi" + + "stogramEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003" + + ":\0028\001B|\n\037com.google.cloud.talent.v4beta1B" + + "\016HistogramProtoP\001ZAgoogle.golang.org/gen" + + "proto/googleapis/cloud/talent/v4beta1;ta" + + "lent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor, + new java.lang.String[] { + "HistogramQuery", + }); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor, + new java.lang.String[] { + "HistogramQuery", "Histogram", + }); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java new file mode 100644 index 000000000000..148d1eaefbd8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java @@ -0,0 +1,641 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input Only.
+ * The histogram request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQuery} + */ +public final class HistogramQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.HistogramQuery) + HistogramQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use HistogramQuery.newBuilder() to construct. + private HistogramQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HistogramQuery() { + histogramQuery_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HistogramQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + histogramQuery_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQuery.class, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder.class); + } + + public static final int HISTOGRAM_QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object histogramQuery_; + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + histogramQuery_ = s; + return s; + } + } + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getHistogramQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, histogramQuery_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getHistogramQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, histogramQuery_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.HistogramQuery)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.HistogramQuery other = + (com.google.cloud.talent.v4beta1.HistogramQuery) obj; + + boolean result = true; + result = result && getHistogramQuery().equals(other.getHistogramQuery()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HISTOGRAM_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQuery().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.HistogramQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input Only.
+   * The histogram request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.HistogramQuery) + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQuery.class, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.HistogramQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + histogramQuery_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery build() { + com.google.cloud.talent.v4beta1.HistogramQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery buildPartial() { + com.google.cloud.talent.v4beta1.HistogramQuery result = + new com.google.cloud.talent.v4beta1.HistogramQuery(this); + result.histogramQuery_ = histogramQuery_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.HistogramQuery) { + return mergeFrom((com.google.cloud.talent.v4beta1.HistogramQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.HistogramQuery other) { + if (other == com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()) return this; + if (!other.getHistogramQuery().isEmpty()) { + histogramQuery_ = other.histogramQuery_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.HistogramQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.HistogramQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object histogramQuery_ = ""; + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + histogramQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + histogramQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder clearHistogramQuery() { + + histogramQuery_ = getDefaultInstance().getHistogramQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + histogramQuery_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.HistogramQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.HistogramQuery) + private static final com.google.cloud.talent.v4beta1.HistogramQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.HistogramQuery(); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HistogramQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HistogramQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java new file mode 100644 index 000000000000..01adc0f4ad69 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java @@ -0,0 +1,43 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +public interface HistogramQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.HistogramQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + java.lang.String getHistogramQuery(); + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + com.google.protobuf.ByteString getHistogramQueryBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java new file mode 100644 index 000000000000..3354371df173 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java @@ -0,0 +1,994 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Histogram result that matches [HistogramSpec][] specified in searches.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQueryResult} + */ +public final class HistogramQueryResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.HistogramQueryResult) + HistogramQueryResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use HistogramQueryResult.newBuilder() to construct. + private HistogramQueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HistogramQueryResult() { + histogramQuery_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HistogramQueryResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + histogramQuery_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + histogram_ = + com.google.protobuf.MapField.newMapField( + HistogramDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry histogram__ = + input.readMessage( + HistogramDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + histogram_.getMutableMap().put(histogram__.getKey(), histogram__.getValue()); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetHistogram(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQueryResult.class, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder.class); + } + + private int bitField0_; + public static final int HISTOGRAM_QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object histogramQuery_; + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + histogramQuery_ = s; + return s; + } + } + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HISTOGRAM_FIELD_NUMBER = 2; + + private static final class HistogramDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); + } + + private com.google.protobuf.MapField histogram_; + + private com.google.protobuf.MapField internalGetHistogram() { + if (histogram_ == null) { + return com.google.protobuf.MapField.emptyMapField(HistogramDefaultEntryHolder.defaultEntry); + } + return histogram_; + } + + public int getHistogramCount() { + return internalGetHistogram().getMap().size(); + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public boolean containsHistogram(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHistogram().getMap().containsKey(key); + } + /** Use {@link #getHistogramMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHistogram() { + return getHistogramMap(); + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public java.util.Map getHistogramMap() { + return internalGetHistogram().getMap(); + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getHistogramQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, histogramQuery_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHistogram(), HistogramDefaultEntryHolder.defaultEntry, 2); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getHistogramQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, histogramQuery_); + } + for (java.util.Map.Entry entry : + internalGetHistogram().getMap().entrySet()) { + com.google.protobuf.MapEntry histogram__ = + HistogramDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, histogram__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.HistogramQueryResult)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.HistogramQueryResult other = + (com.google.cloud.talent.v4beta1.HistogramQueryResult) obj; + + boolean result = true; + result = result && getHistogramQuery().equals(other.getHistogramQuery()); + result = result && internalGetHistogram().equals(other.internalGetHistogram()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HISTOGRAM_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQuery().hashCode(); + if (!internalGetHistogram().getMap().isEmpty()) { + hash = (37 * hash) + HISTOGRAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetHistogram().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.HistogramQueryResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Histogram result that matches [HistogramSpec][] specified in searches.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQueryResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.HistogramQueryResult) + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetHistogram(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 2: + return internalGetMutableHistogram(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQueryResult.class, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.HistogramQueryResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + histogramQuery_ = ""; + + internalGetMutableHistogram().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult build() { + com.google.cloud.talent.v4beta1.HistogramQueryResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult buildPartial() { + com.google.cloud.talent.v4beta1.HistogramQueryResult result = + new com.google.cloud.talent.v4beta1.HistogramQueryResult(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.histogramQuery_ = histogramQuery_; + result.histogram_ = internalGetHistogram(); + result.histogram_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.HistogramQueryResult) { + return mergeFrom((com.google.cloud.talent.v4beta1.HistogramQueryResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.HistogramQueryResult other) { + if (other == com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()) + return this; + if (!other.getHistogramQuery().isEmpty()) { + histogramQuery_ = other.histogramQuery_; + onChanged(); + } + internalGetMutableHistogram().mergeFrom(other.internalGetHistogram()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.HistogramQueryResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.HistogramQueryResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object histogramQuery_ = ""; + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + histogramQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + histogramQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder clearHistogramQuery() { + + histogramQuery_ = getDefaultInstance().getHistogramQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + histogramQuery_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField histogram_; + + private com.google.protobuf.MapField internalGetHistogram() { + if (histogram_ == null) { + return com.google.protobuf.MapField.emptyMapField(HistogramDefaultEntryHolder.defaultEntry); + } + return histogram_; + } + + private com.google.protobuf.MapField + internalGetMutableHistogram() { + onChanged(); + ; + if (histogram_ == null) { + histogram_ = + com.google.protobuf.MapField.newMapField(HistogramDefaultEntryHolder.defaultEntry); + } + if (!histogram_.isMutable()) { + histogram_ = histogram_.copy(); + } + return histogram_; + } + + public int getHistogramCount() { + return internalGetHistogram().getMap().size(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public boolean containsHistogram(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHistogram().getMap().containsKey(key); + } + /** Use {@link #getHistogramMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHistogram() { + return getHistogramMap(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public java.util.Map getHistogramMap() { + return internalGetHistogram().getMap(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHistogram() { + internalGetMutableHistogram().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public Builder removeHistogram(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHistogram().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableHistogram() { + return internalGetMutableHistogram().getMutableMap(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public Builder putHistogram(java.lang.String key, long value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + + internalGetMutableHistogram().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public Builder putAllHistogram(java.util.Map values) { + internalGetMutableHistogram().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.HistogramQueryResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.HistogramQueryResult) + private static final com.google.cloud.talent.v4beta1.HistogramQueryResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.HistogramQueryResult(); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HistogramQueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HistogramQueryResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java new file mode 100644 index 000000000000..ba2661a95da9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +public interface HistogramQueryResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.HistogramQueryResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + java.lang.String getHistogramQuery(); + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + com.google.protobuf.ByteString getHistogramQueryBytes(); + + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + int getHistogramCount(); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + boolean containsHistogram(java.lang.String key); + /** Use {@link #getHistogramMap()} instead. */ + @java.lang.Deprecated + java.util.Map getHistogram(); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + java.util.Map getHistogramMap(); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + long getHistogramOrDefault(java.lang.String key, long defaultValue); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + long getHistogramOrThrow(java.lang.String key); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java new file mode 100644 index 000000000000..9dad7e91641e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Option for HTML content sanitization on user input fields, for example, job
+ * description. By setting this option, user can determine whether and how
+ * sanitization is performed on these fields.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.HtmlSanitization} + */ +public enum HtmlSanitization implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * HTML_SANITIZATION_UNSPECIFIED = 0; + */ + HTML_SANITIZATION_UNSPECIFIED(0), + /** + * + * + *
+   * Disables sanitization on HTML input.
+   * 
+ * + * HTML_SANITIZATION_DISABLED = 1; + */ + HTML_SANITIZATION_DISABLED(1), + /** + * + * + *
+   * Sanitizes HTML input, only accepts bold, italic, ordered list, and
+   * unordered list markup tags.
+   * 
+ * + * SIMPLE_FORMATTING_ONLY = 2; + */ + SIMPLE_FORMATTING_ONLY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * HTML_SANITIZATION_UNSPECIFIED = 0; + */ + public static final int HTML_SANITIZATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Disables sanitization on HTML input.
+   * 
+ * + * HTML_SANITIZATION_DISABLED = 1; + */ + public static final int HTML_SANITIZATION_DISABLED_VALUE = 1; + /** + * + * + *
+   * Sanitizes HTML input, only accepts bold, italic, ordered list, and
+   * unordered list markup tags.
+   * 
+ * + * SIMPLE_FORMATTING_ONLY = 2; + */ + public static final int SIMPLE_FORMATTING_ONLY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static HtmlSanitization valueOf(int value) { + return forNumber(value); + } + + public static HtmlSanitization forNumber(int value) { + switch (value) { + case 0: + return HTML_SANITIZATION_UNSPECIFIED; + case 1: + return HTML_SANITIZATION_DISABLED; + case 2: + return SIMPLE_FORMATTING_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HtmlSanitization findValueByNumber(int number) { + return HtmlSanitization.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(9); + } + + private static final HtmlSanitization[] VALUES = values(); + + public static HtmlSanitization valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HtmlSanitization(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.HtmlSanitization) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java new file mode 100644 index 000000000000..b3a27d40fbe1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java @@ -0,0 +1,12269 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A Job resource represents a job posting (also referred to as a "job listing"
+ * or "job requisition"). A job belongs to a
+ * [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity
+ * responsible for the job.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job} + */ +public final class Job extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job) + JobOrBuilder { + private static final long serialVersionUID = 0L; + // Use Job.newBuilder() to construct. + private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Job() { + name_ = ""; + companyName_ = ""; + requisitionId_ = ""; + title_ = ""; + description_ = ""; + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + jobBenefits_ = java.util.Collections.emptyList(); + degreeTypes_ = java.util.Collections.emptyList(); + department_ = ""; + employmentTypes_ = java.util.Collections.emptyList(); + incentives_ = ""; + languageCode_ = ""; + jobLevel_ = 0; + promotionValue_ = 0; + qualifications_ = ""; + responsibilities_ = ""; + postingRegion_ = 0; + visibility_ = 0; + companyDisplayName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Job( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + companyName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + requisitionId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + addresses_.add(s); + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder subBuilder = null; + if (applicationInfo_ != null) { + subBuilder = applicationInfo_.toBuilder(); + } + applicationInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(applicationInfo_); + applicationInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + jobBenefits_.add(rawValue); + break; + } + case 66: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + jobBenefits_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 74: + { + com.google.cloud.talent.v4beta1.CompensationInfo.Builder subBuilder = null; + if (compensationInfo_ != null) { + subBuilder = compensationInfo_.toBuilder(); + } + compensationInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compensationInfo_); + compensationInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000200; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + input.readMessage( + CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + customAttributes_ + .getMutableMap() + .put(customAttributes__.getKey(), customAttributes__.getValue()); + break; + } + case 88: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + degreeTypes_.add(rawValue); + break; + } + case 90: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + degreeTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + department_ = s; + break; + } + case 104: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + employmentTypes_.add(rawValue); + break; + } + case 106: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + employmentTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + incentives_ = s; + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + case 128: + { + int rawValue = input.readEnum(); + + jobLevel_ = rawValue; + break; + } + case 136: + { + promotionValue_ = input.readInt32(); + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + qualifications_ = s; + break; + } + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + + responsibilities_ = s; + break; + } + case 160: + { + int rawValue = input.readEnum(); + + postingRegion_ = rawValue; + break; + } + case 168: + { + int rawValue = input.readEnum(); + + visibility_ = rawValue; + break; + } + case 178: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (jobStartTime_ != null) { + subBuilder = jobStartTime_.toBuilder(); + } + jobStartTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobStartTime_); + jobStartTime_ = subBuilder.buildPartial(); + } + + break; + } + case 186: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (jobEndTime_ != null) { + subBuilder = jobEndTime_.toBuilder(); + } + jobEndTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobEndTime_); + jobEndTime_ = subBuilder.buildPartial(); + } + + break; + } + case 194: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingPublishTime_ != null) { + subBuilder = postingPublishTime_.toBuilder(); + } + postingPublishTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingPublishTime_); + postingPublishTime_ = subBuilder.buildPartial(); + } + + break; + } + case 202: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingExpireTime_ != null) { + subBuilder = postingExpireTime_.toBuilder(); + } + postingExpireTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingExpireTime_); + postingExpireTime_ = subBuilder.buildPartial(); + } + + break; + } + case 210: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingCreateTime_ != null) { + subBuilder = postingCreateTime_.toBuilder(); + } + postingCreateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingCreateTime_); + postingCreateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 218: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingUpdateTime_ != null) { + subBuilder = postingUpdateTime_.toBuilder(); + } + postingUpdateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingUpdateTime_); + postingUpdateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + + companyDisplayName_ = s; + break; + } + case 234: + { + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder subBuilder = null; + if (derivedInfo_ != null) { + subBuilder = derivedInfo_.toBuilder(); + } + derivedInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(derivedInfo_); + derivedInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 242: + { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder subBuilder = null; + if (processingOptions_ != null) { + subBuilder = processingOptions_.toBuilder(); + } + processingOptions_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(processingOptions_); + processingOptions_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = addresses_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = java.util.Collections.unmodifiableList(jobBenefits_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = java.util.Collections.unmodifiableList(degreeTypes_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.class, + com.google.cloud.talent.v4beta1.Job.Builder.class); + } + + public interface ApplicationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job.ApplicationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + java.util.List getEmailsList(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + int getEmailsCount(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + java.lang.String getEmails(int index); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + com.google.protobuf.ByteString getEmailsBytes(int index); + + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + java.lang.String getInstruction(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + com.google.protobuf.ByteString getInstructionBytes(); + + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + java.util.List getUrisList(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + int getUrisCount(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + java.lang.String getUris(int index); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + com.google.protobuf.ByteString getUrisBytes(int index); + } + /** + * + * + *
+   * Application related details of a job posting.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ApplicationInfo} + */ + public static final class ApplicationInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job.ApplicationInfo) + ApplicationInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationInfo.newBuilder() to construct. + private ApplicationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationInfo() { + emails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + instruction_ = ""; + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + emails_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + instruction_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + uris_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = emails_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = uris_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.class, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder.class); + } + + private int bitField0_; + public static final int EMAILS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList emails_; + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ProtocolStringList getEmailsList() { + return emails_; + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public int getEmailsCount() { + return emails_.size(); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public java.lang.String getEmails(int index) { + return emails_.get(index); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ByteString getEmailsBytes(int index) { + return emails_.getByteString(index); + } + + public static final int INSTRUCTION_FIELD_NUMBER = 2; + private volatile java.lang.Object instruction_; + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URIS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList uris_; + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + return uris_; + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < emails_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, emails_.getRaw(i)); + } + if (!getInstructionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instruction_); + } + for (int i = 0; i < uris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uris_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < emails_.size(); i++) { + dataSize += computeStringSizeNoTag(emails_.getRaw(i)); + } + size += dataSize; + size += 1 * getEmailsList().size(); + } + if (!getInstructionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instruction_); + } + { + int dataSize = 0; + for (int i = 0; i < uris_.size(); i++) { + dataSize += computeStringSizeNoTag(uris_.getRaw(i)); + } + size += dataSize; + size += 1 * getUrisList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Job.ApplicationInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job.ApplicationInfo other = + (com.google.cloud.talent.v4beta1.Job.ApplicationInfo) obj; + + boolean result = true; + result = result && getEmailsList().equals(other.getEmailsList()); + result = result && getInstruction().equals(other.getInstruction()); + result = result && getUrisList().equals(other.getUrisList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEmailsCount() > 0) { + hash = (37 * hash) + EMAILS_FIELD_NUMBER; + hash = (53 * hash) + getEmailsList().hashCode(); + } + hash = (37 * hash) + INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getInstruction().hashCode(); + if (getUrisCount() > 0) { + hash = (37 * hash) + URIS_FIELD_NUMBER; + hash = (53 * hash) + getUrisList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Application related details of a job posting.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ApplicationInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job.ApplicationInfo) + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.class, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.ApplicationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + emails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + instruction_ = ""; + + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo build() { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo buildPartial() { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo result = + new com.google.cloud.talent.v4beta1.Job.ApplicationInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = emails_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.emails_ = emails_; + result.instruction_ = instruction_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = uris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.uris_ = uris_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job.ApplicationInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job.ApplicationInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job.ApplicationInfo other) { + if (other == com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance()) + return this; + if (!other.emails_.isEmpty()) { + if (emails_.isEmpty()) { + emails_ = other.emails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEmailsIsMutable(); + emails_.addAll(other.emails_); + } + onChanged(); + } + if (!other.getInstruction().isEmpty()) { + instruction_ = other.instruction_; + onChanged(); + } + if (!other.uris_.isEmpty()) { + if (uris_.isEmpty()) { + uris_ = other.uris_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUrisIsMutable(); + uris_.addAll(other.uris_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Job.ApplicationInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList emails_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureEmailsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = new com.google.protobuf.LazyStringArrayList(emails_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ProtocolStringList getEmailsList() { + return emails_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public int getEmailsCount() { + return emails_.size(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public java.lang.String getEmails(int index) { + return emails_.get(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ByteString getEmailsBytes(int index) { + return emails_.getByteString(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder setEmails(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailsIsMutable(); + emails_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder addEmails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailsIsMutable(); + emails_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder addAllEmails(java.lang.Iterable values) { + ensureEmailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emails_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder clearEmails() { + emails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder addEmailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEmailsIsMutable(); + emails_.add(value); + onChanged(); + return this; + } + + private java.lang.Object instruction_ = ""; + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public Builder setInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instruction_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public Builder clearInstruction() { + + instruction_ = getDefaultInstance().getInstruction(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public Builder setInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instruction_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList uris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUrisIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + return uris_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder addAllUris(java.lang.Iterable values) { + ensureUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder clearUris() { + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUrisIsMutable(); + uris_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job.ApplicationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.ApplicationInfo) + private static final com.google.cloud.talent.v4beta1.Job.ApplicationInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job.ApplicationInfo(); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DerivedInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job.DerivedInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + java.util.List getLocationsList(); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + com.google.cloud.talent.v4beta1.Location getLocations(int index); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + int getLocationsCount(); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + java.util.List + getLocationsOrBuilderList(); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationsOrBuilder(int index); + + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + java.util.List getJobCategoriesList(); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + int getJobCategoriesCount(); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + java.util.List getJobCategoriesValueList(); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + int getJobCategoriesValue(int index); + } + /** + * + * + *
+   * Output only.
+   * Derived details about the job posting.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.DerivedInfo} + */ + public static final class DerivedInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job.DerivedInfo) + DerivedInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DerivedInfo.newBuilder() to construct. + private DerivedInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DerivedInfo() { + locations_ = java.util.Collections.emptyList(); + jobCategories_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DerivedInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry)); + break; + } + case 24: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jobCategories_.add(rawValue); + break; + } + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jobCategories_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder.class); + } + + public static final int LOCATIONS_FIELD_NUMBER = 1; + private java.util.List locations_; + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List getLocationsList() { + return locations_; + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationsOrBuilder(int index) { + return locations_.get(index); + } + + public static final int JOB_CATEGORIES_FIELD_NUMBER = 3; + private java.util.List jobCategories_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory> + jobCategories_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>() { + public com.google.cloud.talent.v4beta1.JobCategory convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobCategory result = + com.google.cloud.talent.v4beta1.JobCategory.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.JobCategory.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesValueList() { + return jobCategories_; + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + + private int jobCategoriesMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(1, locations_.get(i)); + } + if (getJobCategoriesList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(jobCategoriesMemoizedSerializedSize); + } + for (int i = 0; i < jobCategories_.size(); i++) { + output.writeEnumNoTag(jobCategories_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < jobCategories_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(jobCategories_.get(i)); + } + size += dataSize; + if (!getJobCategoriesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + jobCategoriesMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Job.DerivedInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job.DerivedInfo other = + (com.google.cloud.talent.v4beta1.Job.DerivedInfo) obj; + + boolean result = true; + result = result && getLocationsList().equals(other.getLocationsList()); + result = result && jobCategories_.equals(other.jobCategories_); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + if (getJobCategoriesCount() > 0) { + hash = (37 * hash) + JOB_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + jobCategories_.hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Job.DerivedInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Output only.
+     * Derived details about the job posting.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.DerivedInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job.DerivedInfo) + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.DerivedInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + locationsBuilder_.clear(); + } + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo build() { + com.google.cloud.talent.v4beta1.Job.DerivedInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo buildPartial() { + com.google.cloud.talent.v4beta1.Job.DerivedInfo result = + new com.google.cloud.talent.v4beta1.Job.DerivedInfo(this); + int from_bitField0_ = bitField0_; + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.jobCategories_ = jobCategories_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job.DerivedInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job.DerivedInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job.DerivedInfo other) { + if (other == com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance()) + return this; + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + if (!other.jobCategories_.isEmpty()) { + if (jobCategories_.isEmpty()) { + jobCategories_ = other.jobCategories_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureJobCategoriesIsMutable(); + jobCategories_.addAll(other.jobCategories_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Job.DerivedInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Job.DerivedInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List locations_ = + java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = + new java.util.ArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder setLocations(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder setLocations( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations(com.google.cloud.talent.v4beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addAllLocations( + java.lang.Iterable values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getLocationsBuilder(int index) { + return getLocationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationsOrBuilder(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationsBuilder() { + return getLocationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationsBuilder(int index) { + return getLocationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List + getLocationsBuilderList() { + return getLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + locations_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + private java.util.List jobCategories_ = java.util.Collections.emptyList(); + + private void ensureJobCategoriesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = new java.util.ArrayList(jobCategories_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder setJobCategories( + int index, com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addJobCategories(com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addAllJobCategories( + java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (com.google.cloud.talent.v4beta1.JobCategory value : values) { + jobCategories_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder clearJobCategories() { + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesValueList() { + return java.util.Collections.unmodifiableList(jobCategories_); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder setJobCategoriesValue(int index, int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addJobCategoriesValue(int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addAllJobCategoriesValue(java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (int value : values) { + jobCategories_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job.DerivedInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.DerivedInfo) + private static final com.google.cloud.talent.v4beta1.Job.DerivedInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job.DerivedInfo(); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DerivedInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DerivedInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ProcessingOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job.ProcessingOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * If set to `true`, the service does not attempt to resolve a
+     * more precise address for the job.
+     * 
+ * + * bool disable_street_address_resolution = 1; + */ + boolean getDisableStreetAddressResolution(); + + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + int getHtmlSanitizationValue(); + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + com.google.cloud.talent.v4beta1.HtmlSanitization getHtmlSanitization(); + } + /** + * + * + *
+   * Input only.
+   * Options for job processing.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ProcessingOptions} + */ + public static final class ProcessingOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job.ProcessingOptions) + ProcessingOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcessingOptions.newBuilder() to construct. + private ProcessingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProcessingOptions() { + disableStreetAddressResolution_ = false; + htmlSanitization_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ProcessingOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disableStreetAddressResolution_ = input.readBool(); + break; + } + case 16: + { + int rawValue = input.readEnum(); + + htmlSanitization_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.class, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder.class); + } + + public static final int DISABLE_STREET_ADDRESS_RESOLUTION_FIELD_NUMBER = 1; + private boolean disableStreetAddressResolution_; + /** + * + * + *
+     * Optional.
+     * If set to `true`, the service does not attempt to resolve a
+     * more precise address for the job.
+     * 
+ * + * bool disable_street_address_resolution = 1; + */ + public boolean getDisableStreetAddressResolution() { + return disableStreetAddressResolution_; + } + + public static final int HTML_SANITIZATION_FIELD_NUMBER = 2; + private int htmlSanitization_; + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public int getHtmlSanitizationValue() { + return htmlSanitization_; + } + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public com.google.cloud.talent.v4beta1.HtmlSanitization getHtmlSanitization() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.HtmlSanitization result = + com.google.cloud.talent.v4beta1.HtmlSanitization.valueOf(htmlSanitization_); + return result == null + ? com.google.cloud.talent.v4beta1.HtmlSanitization.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disableStreetAddressResolution_ != false) { + output.writeBool(1, disableStreetAddressResolution_); + } + if (htmlSanitization_ + != com.google.cloud.talent.v4beta1.HtmlSanitization.HTML_SANITIZATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, htmlSanitization_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disableStreetAddressResolution_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, disableStreetAddressResolution_); + } + if (htmlSanitization_ + != com.google.cloud.talent.v4beta1.HtmlSanitization.HTML_SANITIZATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, htmlSanitization_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Job.ProcessingOptions)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job.ProcessingOptions other = + (com.google.cloud.talent.v4beta1.Job.ProcessingOptions) obj; + + boolean result = true; + result = + result + && (getDisableStreetAddressResolution() == other.getDisableStreetAddressResolution()); + result = result && htmlSanitization_ == other.htmlSanitization_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLE_STREET_ADDRESS_RESOLUTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisableStreetAddressResolution()); + hash = (37 * hash) + HTML_SANITIZATION_FIELD_NUMBER; + hash = (53 * hash) + htmlSanitization_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Input only.
+     * Options for job processing.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ProcessingOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job.ProcessingOptions) + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.class, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.ProcessingOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disableStreetAddressResolution_ = false; + + htmlSanitization_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions build() { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions buildPartial() { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions result = + new com.google.cloud.talent.v4beta1.Job.ProcessingOptions(this); + result.disableStreetAddressResolution_ = disableStreetAddressResolution_; + result.htmlSanitization_ = htmlSanitization_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job.ProcessingOptions) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job.ProcessingOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job.ProcessingOptions other) { + if (other == com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance()) + return this; + if (other.getDisableStreetAddressResolution() != false) { + setDisableStreetAddressResolution(other.getDisableStreetAddressResolution()); + } + if (other.htmlSanitization_ != 0) { + setHtmlSanitizationValue(other.getHtmlSanitizationValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Job.ProcessingOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disableStreetAddressResolution_; + /** + * + * + *
+       * Optional.
+       * If set to `true`, the service does not attempt to resolve a
+       * more precise address for the job.
+       * 
+ * + * bool disable_street_address_resolution = 1; + */ + public boolean getDisableStreetAddressResolution() { + return disableStreetAddressResolution_; + } + /** + * + * + *
+       * Optional.
+       * If set to `true`, the service does not attempt to resolve a
+       * more precise address for the job.
+       * 
+ * + * bool disable_street_address_resolution = 1; + */ + public Builder setDisableStreetAddressResolution(boolean value) { + + disableStreetAddressResolution_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * If set to `true`, the service does not attempt to resolve a
+       * more precise address for the job.
+       * 
+ * + * bool disable_street_address_resolution = 1; + */ + public Builder clearDisableStreetAddressResolution() { + + disableStreetAddressResolution_ = false; + onChanged(); + return this; + } + + private int htmlSanitization_ = 0; + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public int getHtmlSanitizationValue() { + return htmlSanitization_; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public Builder setHtmlSanitizationValue(int value) { + htmlSanitization_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public com.google.cloud.talent.v4beta1.HtmlSanitization getHtmlSanitization() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.HtmlSanitization result = + com.google.cloud.talent.v4beta1.HtmlSanitization.valueOf(htmlSanitization_); + return result == null + ? com.google.cloud.talent.v4beta1.HtmlSanitization.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public Builder setHtmlSanitization(com.google.cloud.talent.v4beta1.HtmlSanitization value) { + if (value == null) { + throw new NullPointerException(); + } + + htmlSanitization_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public Builder clearHtmlSanitization() { + + htmlSanitization_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job.ProcessingOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.ProcessingOptions) + private static final com.google.cloud.talent.v4beta1.Job.ProcessingOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job.ProcessingOptions(); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcessingOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProcessingOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object companyName_; + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUISITION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object requisitionId_; + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + public java.lang.String getRequisitionId() { + java.lang.Object ref = requisitionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requisitionId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + public com.google.protobuf.ByteString getRequisitionIdBytes() { + java.lang.Object ref = requisitionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 4; + private volatile java.lang.Object title_; + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESSES_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList addresses_; + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ProtocolStringList getAddressesList() { + return addresses_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public java.lang.String getAddresses(int index) { + return addresses_.get(index); + } + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ByteString getAddressesBytes(int index) { + return addresses_.getByteString(index); + } + + public static final int APPLICATION_INFO_FIELD_NUMBER = 7; + private com.google.cloud.talent.v4beta1.Job.ApplicationInfo applicationInfo_; + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public boolean hasApplicationInfo() { + return applicationInfo_ != null; + } + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getApplicationInfo() { + return applicationInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + return getApplicationInfo(); + } + + public static final int JOB_BENEFITS_FIELD_NUMBER = 8; + private java.util.List jobBenefits_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit> + jobBenefits_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit>() { + public com.google.cloud.talent.v4beta1.JobBenefit convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobBenefit result = + com.google.cloud.talent.v4beta1.JobBenefit.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.JobBenefit.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit>( + jobBenefits_, jobBenefits_converter_); + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsCount() { + return jobBenefits_.size(); + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public com.google.cloud.talent.v4beta1.JobBenefit getJobBenefits(int index) { + return jobBenefits_converter_.convert(jobBenefits_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsValueList() { + return jobBenefits_; + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsValue(int index) { + return jobBenefits_.get(index); + } + + private int jobBenefitsMemoizedSerializedSize; + + public static final int COMPENSATION_INFO_FIELD_NUMBER = 9; + private com.google.cloud.talent.v4beta1.CompensationInfo compensationInfo_; + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public boolean hasCompensationInfo() { + return compensationInfo_ != null; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo() { + return compensationInfo_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance() + : compensationInfo_; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder getCompensationInfoOrBuilder() { + return getCompensationInfo(); + } + + public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 10; + + private static final class CustomAttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DEGREE_TYPES_FIELD_NUMBER = 11; + private java.util.List degreeTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType> + degreeTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType>() { + public com.google.cloud.talent.v4beta1.DegreeType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType>( + degreeTypes_, degreeTypes_converter_); + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesCount() { + return degreeTypes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeTypes(int index) { + return degreeTypes_converter_.convert(degreeTypes_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesValueList() { + return degreeTypes_; + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesValue(int index) { + return degreeTypes_.get(index); + } + + private int degreeTypesMemoizedSerializedSize; + + public static final int DEPARTMENT_FIELD_NUMBER = 12; + private volatile java.lang.Object department_; + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + public java.lang.String getDepartment() { + java.lang.Object ref = department_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + department_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + public com.google.protobuf.ByteString getDepartmentBytes() { + java.lang.Object ref = department_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + department_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMPLOYMENT_TYPES_FIELD_NUMBER = 13; + private java.util.List employmentTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType> + employmentTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>() { + public com.google.cloud.talent.v4beta1.EmploymentType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmploymentType result = + com.google.cloud.talent.v4beta1.EmploymentType.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.EmploymentType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesValueList() { + return employmentTypes_; + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + + private int employmentTypesMemoizedSerializedSize; + + public static final int INCENTIVES_FIELD_NUMBER = 14; + private volatile java.lang.Object incentives_; + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + public java.lang.String getIncentives() { + java.lang.Object ref = incentives_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + incentives_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + public com.google.protobuf.ByteString getIncentivesBytes() { + java.lang.Object ref = incentives_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + incentives_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 15; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_LEVEL_FIELD_NUMBER = 16; + private int jobLevel_; + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public int getJobLevelValue() { + return jobLevel_; + } + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public com.google.cloud.talent.v4beta1.JobLevel getJobLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobLevel result = + com.google.cloud.talent.v4beta1.JobLevel.valueOf(jobLevel_); + return result == null ? com.google.cloud.talent.v4beta1.JobLevel.UNRECOGNIZED : result; + } + + public static final int PROMOTION_VALUE_FIELD_NUMBER = 17; + private int promotionValue_; + /** + * + * + *
+   * Optional.
+   * A promotion value of the job, as determined by the client.
+   * The value determines the sort order of the jobs returned when searching for
+   * jobs using the featured jobs search call, with higher promotional values
+   * being returned first and ties being resolved by relevance sort. Only the
+   * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+   * Default value is 0, and negative values are treated as 0.
+   * 
+ * + * int32 promotion_value = 17; + */ + public int getPromotionValue() { + return promotionValue_; + } + + public static final int QUALIFICATIONS_FIELD_NUMBER = 18; + private volatile java.lang.Object qualifications_; + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + public java.lang.String getQualifications() { + java.lang.Object ref = qualifications_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + qualifications_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + public com.google.protobuf.ByteString getQualificationsBytes() { + java.lang.Object ref = qualifications_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + qualifications_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSIBILITIES_FIELD_NUMBER = 19; + private volatile java.lang.Object responsibilities_; + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + public java.lang.String getResponsibilities() { + java.lang.Object ref = responsibilities_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responsibilities_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + public com.google.protobuf.ByteString getResponsibilitiesBytes() { + java.lang.Object ref = responsibilities_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responsibilities_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSTING_REGION_FIELD_NUMBER = 20; + private int postingRegion_; + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public int getPostingRegionValue() { + return postingRegion_; + } + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public com.google.cloud.talent.v4beta1.PostingRegion getPostingRegion() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.PostingRegion result = + com.google.cloud.talent.v4beta1.PostingRegion.valueOf(postingRegion_); + return result == null ? com.google.cloud.talent.v4beta1.PostingRegion.UNRECOGNIZED : result; + } + + public static final int VISIBILITY_FIELD_NUMBER = 21; + private int visibility_; + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public int getVisibilityValue() { + return visibility_; + } + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public com.google.cloud.talent.v4beta1.Visibility getVisibility() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Visibility result = + com.google.cloud.talent.v4beta1.Visibility.valueOf(visibility_); + return result == null ? com.google.cloud.talent.v4beta1.Visibility.UNRECOGNIZED : result; + } + + public static final int JOB_START_TIME_FIELD_NUMBER = 22; + private com.google.protobuf.Timestamp jobStartTime_; + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public boolean hasJobStartTime() { + return jobStartTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.Timestamp getJobStartTime() { + return jobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobStartTime_; + } + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.TimestampOrBuilder getJobStartTimeOrBuilder() { + return getJobStartTime(); + } + + public static final int JOB_END_TIME_FIELD_NUMBER = 23; + private com.google.protobuf.Timestamp jobEndTime_; + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public boolean hasJobEndTime() { + return jobEndTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.Timestamp getJobEndTime() { + return jobEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : jobEndTime_; + } + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.TimestampOrBuilder getJobEndTimeOrBuilder() { + return getJobEndTime(); + } + + public static final int POSTING_PUBLISH_TIME_FIELD_NUMBER = 24; + private com.google.protobuf.Timestamp postingPublishTime_; + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public boolean hasPostingPublishTime() { + return postingPublishTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.Timestamp getPostingPublishTime() { + return postingPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingPublishTime_; + } + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder() { + return getPostingPublishTime(); + } + + public static final int POSTING_EXPIRE_TIME_FIELD_NUMBER = 25; + private com.google.protobuf.Timestamp postingExpireTime_; + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public boolean hasPostingExpireTime() { + return postingExpireTime_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.Timestamp getPostingExpireTime() { + return postingExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingExpireTime_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.TimestampOrBuilder getPostingExpireTimeOrBuilder() { + return getPostingExpireTime(); + } + + public static final int POSTING_CREATE_TIME_FIELD_NUMBER = 26; + private com.google.protobuf.Timestamp postingCreateTime_; + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public boolean hasPostingCreateTime() { + return postingCreateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.Timestamp getPostingCreateTime() { + return postingCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingCreateTime_; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.TimestampOrBuilder getPostingCreateTimeOrBuilder() { + return getPostingCreateTime(); + } + + public static final int POSTING_UPDATE_TIME_FIELD_NUMBER = 27; + private com.google.protobuf.Timestamp postingUpdateTime_; + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public boolean hasPostingUpdateTime() { + return postingUpdateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.Timestamp getPostingUpdateTime() { + return postingUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingUpdateTime_; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.TimestampOrBuilder getPostingUpdateTimeOrBuilder() { + return getPostingUpdateTime(); + } + + public static final int COMPANY_DISPLAY_NAME_FIELD_NUMBER = 28; + private volatile java.lang.Object companyDisplayName_; + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + public java.lang.String getCompanyDisplayName() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DERIVED_INFO_FIELD_NUMBER = 29; + private com.google.cloud.talent.v4beta1.Job.DerivedInfo derivedInfo_; + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public boolean hasDerivedInfo() { + return derivedInfo_ != null; + } + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDerivedInfo() { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + return getDerivedInfo(); + } + + public static final int PROCESSING_OPTIONS_FIELD_NUMBER = 30; + private com.google.cloud.talent.v4beta1.Job.ProcessingOptions processingOptions_; + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public boolean hasProcessingOptions() { + return processingOptions_ != null; + } + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getProcessingOptions() { + return processingOptions_ == null + ? com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance() + : processingOptions_; + } + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder + getProcessingOptionsOrBuilder() { + return getProcessingOptions(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getCompanyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companyName_); + } + if (!getRequisitionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requisitionId_); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, title_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + for (int i = 0; i < addresses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, addresses_.getRaw(i)); + } + if (applicationInfo_ != null) { + output.writeMessage(7, getApplicationInfo()); + } + if (getJobBenefitsList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(jobBenefitsMemoizedSerializedSize); + } + for (int i = 0; i < jobBenefits_.size(); i++) { + output.writeEnumNoTag(jobBenefits_.get(i)); + } + if (compensationInfo_ != null) { + output.writeMessage(9, getCompensationInfo()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCustomAttributes(), CustomAttributesDefaultEntryHolder.defaultEntry, 10); + if (getDegreeTypesList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(degreeTypesMemoizedSerializedSize); + } + for (int i = 0; i < degreeTypes_.size(); i++) { + output.writeEnumNoTag(degreeTypes_.get(i)); + } + if (!getDepartmentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, department_); + } + if (getEmploymentTypesList().size() > 0) { + output.writeUInt32NoTag(106); + output.writeUInt32NoTag(employmentTypesMemoizedSerializedSize); + } + for (int i = 0; i < employmentTypes_.size(); i++) { + output.writeEnumNoTag(employmentTypes_.get(i)); + } + if (!getIncentivesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, incentives_); + } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, languageCode_); + } + if (jobLevel_ != com.google.cloud.talent.v4beta1.JobLevel.JOB_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(16, jobLevel_); + } + if (promotionValue_ != 0) { + output.writeInt32(17, promotionValue_); + } + if (!getQualificationsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, qualifications_); + } + if (!getResponsibilitiesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, responsibilities_); + } + if (postingRegion_ + != com.google.cloud.talent.v4beta1.PostingRegion.POSTING_REGION_UNSPECIFIED.getNumber()) { + output.writeEnum(20, postingRegion_); + } + if (visibility_ + != com.google.cloud.talent.v4beta1.Visibility.VISIBILITY_UNSPECIFIED.getNumber()) { + output.writeEnum(21, visibility_); + } + if (jobStartTime_ != null) { + output.writeMessage(22, getJobStartTime()); + } + if (jobEndTime_ != null) { + output.writeMessage(23, getJobEndTime()); + } + if (postingPublishTime_ != null) { + output.writeMessage(24, getPostingPublishTime()); + } + if (postingExpireTime_ != null) { + output.writeMessage(25, getPostingExpireTime()); + } + if (postingCreateTime_ != null) { + output.writeMessage(26, getPostingCreateTime()); + } + if (postingUpdateTime_ != null) { + output.writeMessage(27, getPostingUpdateTime()); + } + if (!getCompanyDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, companyDisplayName_); + } + if (derivedInfo_ != null) { + output.writeMessage(29, getDerivedInfo()); + } + if (processingOptions_ != null) { + output.writeMessage(30, getProcessingOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getCompanyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, companyName_); + } + if (!getRequisitionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requisitionId_); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, title_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + { + int dataSize = 0; + for (int i = 0; i < addresses_.size(); i++) { + dataSize += computeStringSizeNoTag(addresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getAddressesList().size(); + } + if (applicationInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getApplicationInfo()); + } + { + int dataSize = 0; + for (int i = 0; i < jobBenefits_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(jobBenefits_.get(i)); + } + size += dataSize; + if (!getJobBenefitsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + jobBenefitsMemoizedSerializedSize = dataSize; + } + if (compensationInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCompensationInfo()); + } + for (java.util.Map.Entry + entry : internalGetCustomAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + CustomAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, customAttributes__); + } + { + int dataSize = 0; + for (int i = 0; i < degreeTypes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(degreeTypes_.get(i)); + } + size += dataSize; + if (!getDegreeTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + degreeTypesMemoizedSerializedSize = dataSize; + } + if (!getDepartmentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, department_); + } + { + int dataSize = 0; + for (int i = 0; i < employmentTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(employmentTypes_.get(i)); + } + size += dataSize; + if (!getEmploymentTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + employmentTypesMemoizedSerializedSize = dataSize; + } + if (!getIncentivesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, incentives_); + } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, languageCode_); + } + if (jobLevel_ != com.google.cloud.talent.v4beta1.JobLevel.JOB_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, jobLevel_); + } + if (promotionValue_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(17, promotionValue_); + } + if (!getQualificationsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, qualifications_); + } + if (!getResponsibilitiesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, responsibilities_); + } + if (postingRegion_ + != com.google.cloud.talent.v4beta1.PostingRegion.POSTING_REGION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, postingRegion_); + } + if (visibility_ + != com.google.cloud.talent.v4beta1.Visibility.VISIBILITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(21, visibility_); + } + if (jobStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getJobStartTime()); + } + if (jobEndTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getJobEndTime()); + } + if (postingPublishTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getPostingPublishTime()); + } + if (postingExpireTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getPostingExpireTime()); + } + if (postingCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getPostingCreateTime()); + } + if (postingUpdateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getPostingUpdateTime()); + } + if (!getCompanyDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, companyDisplayName_); + } + if (derivedInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getDerivedInfo()); + } + if (processingOptions_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getProcessingOptions()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Job)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job other = (com.google.cloud.talent.v4beta1.Job) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getCompanyName().equals(other.getCompanyName()); + result = result && getRequisitionId().equals(other.getRequisitionId()); + result = result && getTitle().equals(other.getTitle()); + result = result && getDescription().equals(other.getDescription()); + result = result && getAddressesList().equals(other.getAddressesList()); + result = result && (hasApplicationInfo() == other.hasApplicationInfo()); + if (hasApplicationInfo()) { + result = result && getApplicationInfo().equals(other.getApplicationInfo()); + } + result = result && jobBenefits_.equals(other.jobBenefits_); + result = result && (hasCompensationInfo() == other.hasCompensationInfo()); + if (hasCompensationInfo()) { + result = result && getCompensationInfo().equals(other.getCompensationInfo()); + } + result = result && internalGetCustomAttributes().equals(other.internalGetCustomAttributes()); + result = result && degreeTypes_.equals(other.degreeTypes_); + result = result && getDepartment().equals(other.getDepartment()); + result = result && employmentTypes_.equals(other.employmentTypes_); + result = result && getIncentives().equals(other.getIncentives()); + result = result && getLanguageCode().equals(other.getLanguageCode()); + result = result && jobLevel_ == other.jobLevel_; + result = result && (getPromotionValue() == other.getPromotionValue()); + result = result && getQualifications().equals(other.getQualifications()); + result = result && getResponsibilities().equals(other.getResponsibilities()); + result = result && postingRegion_ == other.postingRegion_; + result = result && visibility_ == other.visibility_; + result = result && (hasJobStartTime() == other.hasJobStartTime()); + if (hasJobStartTime()) { + result = result && getJobStartTime().equals(other.getJobStartTime()); + } + result = result && (hasJobEndTime() == other.hasJobEndTime()); + if (hasJobEndTime()) { + result = result && getJobEndTime().equals(other.getJobEndTime()); + } + result = result && (hasPostingPublishTime() == other.hasPostingPublishTime()); + if (hasPostingPublishTime()) { + result = result && getPostingPublishTime().equals(other.getPostingPublishTime()); + } + result = result && (hasPostingExpireTime() == other.hasPostingExpireTime()); + if (hasPostingExpireTime()) { + result = result && getPostingExpireTime().equals(other.getPostingExpireTime()); + } + result = result && (hasPostingCreateTime() == other.hasPostingCreateTime()); + if (hasPostingCreateTime()) { + result = result && getPostingCreateTime().equals(other.getPostingCreateTime()); + } + result = result && (hasPostingUpdateTime() == other.hasPostingUpdateTime()); + if (hasPostingUpdateTime()) { + result = result && getPostingUpdateTime().equals(other.getPostingUpdateTime()); + } + result = result && getCompanyDisplayName().equals(other.getCompanyDisplayName()); + result = result && (hasDerivedInfo() == other.hasDerivedInfo()); + if (hasDerivedInfo()) { + result = result && getDerivedInfo().equals(other.getDerivedInfo()); + } + result = result && (hasProcessingOptions() == other.hasProcessingOptions()); + if (hasProcessingOptions()) { + result = result && getProcessingOptions().equals(other.getProcessingOptions()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyName().hashCode(); + hash = (37 * hash) + REQUISITION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequisitionId().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + if (hasApplicationInfo()) { + hash = (37 * hash) + APPLICATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getApplicationInfo().hashCode(); + } + if (getJobBenefitsCount() > 0) { + hash = (37 * hash) + JOB_BENEFITS_FIELD_NUMBER; + hash = (53 * hash) + jobBenefits_.hashCode(); + } + if (hasCompensationInfo()) { + hash = (37 * hash) + COMPENSATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCompensationInfo().hashCode(); + } + if (!internalGetCustomAttributes().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomAttributes().hashCode(); + } + if (getDegreeTypesCount() > 0) { + hash = (37 * hash) + DEGREE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + degreeTypes_.hashCode(); + } + hash = (37 * hash) + DEPARTMENT_FIELD_NUMBER; + hash = (53 * hash) + getDepartment().hashCode(); + if (getEmploymentTypesCount() > 0) { + hash = (37 * hash) + EMPLOYMENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + employmentTypes_.hashCode(); + } + hash = (37 * hash) + INCENTIVES_FIELD_NUMBER; + hash = (53 * hash) + getIncentives().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + JOB_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + jobLevel_; + hash = (37 * hash) + PROMOTION_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getPromotionValue(); + hash = (37 * hash) + QUALIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getQualifications().hashCode(); + hash = (37 * hash) + RESPONSIBILITIES_FIELD_NUMBER; + hash = (53 * hash) + getResponsibilities().hashCode(); + hash = (37 * hash) + POSTING_REGION_FIELD_NUMBER; + hash = (53 * hash) + postingRegion_; + hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + visibility_; + if (hasJobStartTime()) { + hash = (37 * hash) + JOB_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getJobStartTime().hashCode(); + } + if (hasJobEndTime()) { + hash = (37 * hash) + JOB_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getJobEndTime().hashCode(); + } + if (hasPostingPublishTime()) { + hash = (37 * hash) + POSTING_PUBLISH_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingPublishTime().hashCode(); + } + if (hasPostingExpireTime()) { + hash = (37 * hash) + POSTING_EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingExpireTime().hashCode(); + } + if (hasPostingCreateTime()) { + hash = (37 * hash) + POSTING_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingCreateTime().hashCode(); + } + if (hasPostingUpdateTime()) { + hash = (37 * hash) + POSTING_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingUpdateTime().hashCode(); + } + hash = (37 * hash) + COMPANY_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyDisplayName().hashCode(); + if (hasDerivedInfo()) { + hash = (37 * hash) + DERIVED_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDerivedInfo().hashCode(); + } + if (hasProcessingOptions()) { + hash = (37 * hash) + PROCESSING_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getProcessingOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Job prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Job resource represents a job posting (also referred to as a "job listing"
+   * or "job requisition"). A job belongs to a
+   * [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity
+   * responsible for the job.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job) + com.google.cloud.talent.v4beta1.JobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 10: + return internalGetMutableCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.class, + com.google.cloud.talent.v4beta1.Job.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + companyName_ = ""; + + requisitionId_ = ""; + + title_ = ""; + + description_ = ""; + + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + if (applicationInfoBuilder_ == null) { + applicationInfo_ = null; + } else { + applicationInfo_ = null; + applicationInfoBuilder_ = null; + } + jobBenefits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + if (compensationInfoBuilder_ == null) { + compensationInfo_ = null; + } else { + compensationInfo_ = null; + compensationInfoBuilder_ = null; + } + internalGetMutableCustomAttributes().clear(); + degreeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + department_ = ""; + + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + incentives_ = ""; + + languageCode_ = ""; + + jobLevel_ = 0; + + promotionValue_ = 0; + + qualifications_ = ""; + + responsibilities_ = ""; + + postingRegion_ = 0; + + visibility_ = 0; + + if (jobStartTimeBuilder_ == null) { + jobStartTime_ = null; + } else { + jobStartTime_ = null; + jobStartTimeBuilder_ = null; + } + if (jobEndTimeBuilder_ == null) { + jobEndTime_ = null; + } else { + jobEndTime_ = null; + jobEndTimeBuilder_ = null; + } + if (postingPublishTimeBuilder_ == null) { + postingPublishTime_ = null; + } else { + postingPublishTime_ = null; + postingPublishTimeBuilder_ = null; + } + if (postingExpireTimeBuilder_ == null) { + postingExpireTime_ = null; + } else { + postingExpireTime_ = null; + postingExpireTimeBuilder_ = null; + } + if (postingCreateTimeBuilder_ == null) { + postingCreateTime_ = null; + } else { + postingCreateTime_ = null; + postingCreateTimeBuilder_ = null; + } + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTime_ = null; + } else { + postingUpdateTime_ = null; + postingUpdateTimeBuilder_ = null; + } + companyDisplayName_ = ""; + + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + if (processingOptionsBuilder_ == null) { + processingOptions_ = null; + } else { + processingOptions_ = null; + processingOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job build() { + com.google.cloud.talent.v4beta1.Job result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job buildPartial() { + com.google.cloud.talent.v4beta1.Job result = new com.google.cloud.talent.v4beta1.Job(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.companyName_ = companyName_; + result.requisitionId_ = requisitionId_; + result.title_ = title_; + result.description_ = description_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = addresses_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.addresses_ = addresses_; + if (applicationInfoBuilder_ == null) { + result.applicationInfo_ = applicationInfo_; + } else { + result.applicationInfo_ = applicationInfoBuilder_.build(); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = java.util.Collections.unmodifiableList(jobBenefits_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.jobBenefits_ = jobBenefits_; + if (compensationInfoBuilder_ == null) { + result.compensationInfo_ = compensationInfo_; + } else { + result.compensationInfo_ = compensationInfoBuilder_.build(); + } + result.customAttributes_ = internalGetCustomAttributes(); + result.customAttributes_.makeImmutable(); + if (((bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = java.util.Collections.unmodifiableList(degreeTypes_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.degreeTypes_ = degreeTypes_; + result.department_ = department_; + if (((bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.employmentTypes_ = employmentTypes_; + result.incentives_ = incentives_; + result.languageCode_ = languageCode_; + result.jobLevel_ = jobLevel_; + result.promotionValue_ = promotionValue_; + result.qualifications_ = qualifications_; + result.responsibilities_ = responsibilities_; + result.postingRegion_ = postingRegion_; + result.visibility_ = visibility_; + if (jobStartTimeBuilder_ == null) { + result.jobStartTime_ = jobStartTime_; + } else { + result.jobStartTime_ = jobStartTimeBuilder_.build(); + } + if (jobEndTimeBuilder_ == null) { + result.jobEndTime_ = jobEndTime_; + } else { + result.jobEndTime_ = jobEndTimeBuilder_.build(); + } + if (postingPublishTimeBuilder_ == null) { + result.postingPublishTime_ = postingPublishTime_; + } else { + result.postingPublishTime_ = postingPublishTimeBuilder_.build(); + } + if (postingExpireTimeBuilder_ == null) { + result.postingExpireTime_ = postingExpireTime_; + } else { + result.postingExpireTime_ = postingExpireTimeBuilder_.build(); + } + if (postingCreateTimeBuilder_ == null) { + result.postingCreateTime_ = postingCreateTime_; + } else { + result.postingCreateTime_ = postingCreateTimeBuilder_.build(); + } + if (postingUpdateTimeBuilder_ == null) { + result.postingUpdateTime_ = postingUpdateTime_; + } else { + result.postingUpdateTime_ = postingUpdateTimeBuilder_.build(); + } + result.companyDisplayName_ = companyDisplayName_; + if (derivedInfoBuilder_ == null) { + result.derivedInfo_ = derivedInfo_; + } else { + result.derivedInfo_ = derivedInfoBuilder_.build(); + } + if (processingOptionsBuilder_ == null) { + result.processingOptions_ = processingOptions_; + } else { + result.processingOptions_ = processingOptionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job other) { + if (other == com.google.cloud.talent.v4beta1.Job.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getCompanyName().isEmpty()) { + companyName_ = other.companyName_; + onChanged(); + } + if (!other.getRequisitionId().isEmpty()) { + requisitionId_ = other.requisitionId_; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + if (other.hasApplicationInfo()) { + mergeApplicationInfo(other.getApplicationInfo()); + } + if (!other.jobBenefits_.isEmpty()) { + if (jobBenefits_.isEmpty()) { + jobBenefits_ = other.jobBenefits_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureJobBenefitsIsMutable(); + jobBenefits_.addAll(other.jobBenefits_); + } + onChanged(); + } + if (other.hasCompensationInfo()) { + mergeCompensationInfo(other.getCompensationInfo()); + } + internalGetMutableCustomAttributes().mergeFrom(other.internalGetCustomAttributes()); + if (!other.degreeTypes_.isEmpty()) { + if (degreeTypes_.isEmpty()) { + degreeTypes_ = other.degreeTypes_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureDegreeTypesIsMutable(); + degreeTypes_.addAll(other.degreeTypes_); + } + onChanged(); + } + if (!other.getDepartment().isEmpty()) { + department_ = other.department_; + onChanged(); + } + if (!other.employmentTypes_.isEmpty()) { + if (employmentTypes_.isEmpty()) { + employmentTypes_ = other.employmentTypes_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureEmploymentTypesIsMutable(); + employmentTypes_.addAll(other.employmentTypes_); + } + onChanged(); + } + if (!other.getIncentives().isEmpty()) { + incentives_ = other.incentives_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + if (other.jobLevel_ != 0) { + setJobLevelValue(other.getJobLevelValue()); + } + if (other.getPromotionValue() != 0) { + setPromotionValue(other.getPromotionValue()); + } + if (!other.getQualifications().isEmpty()) { + qualifications_ = other.qualifications_; + onChanged(); + } + if (!other.getResponsibilities().isEmpty()) { + responsibilities_ = other.responsibilities_; + onChanged(); + } + if (other.postingRegion_ != 0) { + setPostingRegionValue(other.getPostingRegionValue()); + } + if (other.visibility_ != 0) { + setVisibilityValue(other.getVisibilityValue()); + } + if (other.hasJobStartTime()) { + mergeJobStartTime(other.getJobStartTime()); + } + if (other.hasJobEndTime()) { + mergeJobEndTime(other.getJobEndTime()); + } + if (other.hasPostingPublishTime()) { + mergePostingPublishTime(other.getPostingPublishTime()); + } + if (other.hasPostingExpireTime()) { + mergePostingExpireTime(other.getPostingExpireTime()); + } + if (other.hasPostingCreateTime()) { + mergePostingCreateTime(other.getPostingCreateTime()); + } + if (other.hasPostingUpdateTime()) { + mergePostingUpdateTime(other.getPostingUpdateTime()); + } + if (!other.getCompanyDisplayName().isEmpty()) { + companyDisplayName_ = other.companyDisplayName_; + onChanged(); + } + if (other.hasDerivedInfo()) { + mergeDerivedInfo(other.getDerivedInfo()); + } + if (other.hasProcessingOptions()) { + mergeProcessingOptions(other.getProcessingOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Job parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Job) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object companyName_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public Builder setCompanyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + companyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public Builder clearCompanyName() { + + companyName_ = getDefaultInstance().getCompanyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + companyName_ = value; + onChanged(); + return this; + } + + private java.lang.Object requisitionId_ = ""; + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public java.lang.String getRequisitionId() { + java.lang.Object ref = requisitionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requisitionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public com.google.protobuf.ByteString getRequisitionIdBytes() { + java.lang.Object ref = requisitionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public Builder setRequisitionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requisitionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public Builder clearRequisitionId() { + + requisitionId_ = getDefaultInstance().getRequisitionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public Builder setRequisitionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requisitionId_ = value; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList addresses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ProtocolStringList getAddressesList() { + return addresses_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public java.lang.String getAddresses(int index) { + return addresses_.get(index); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ByteString getAddressesBytes(int index) { + return addresses_.getByteString(index); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder setAddresses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder addAddresses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder addAllAddresses(java.lang.Iterable values) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder clearAddresses() { + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder addAddressesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Job.ApplicationInfo applicationInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ApplicationInfo, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder, + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder> + applicationInfoBuilder_; + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public boolean hasApplicationInfo() { + return applicationInfoBuilder_ != null || applicationInfo_ != null; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getApplicationInfo() { + if (applicationInfoBuilder_ == null) { + return applicationInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance() + : applicationInfo_; + } else { + return applicationInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder setApplicationInfo(com.google.cloud.talent.v4beta1.Job.ApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationInfo_ = value; + onChanged(); + } else { + applicationInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder setApplicationInfo( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder builderForValue) { + if (applicationInfoBuilder_ == null) { + applicationInfo_ = builderForValue.build(); + onChanged(); + } else { + applicationInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder mergeApplicationInfo(com.google.cloud.talent.v4beta1.Job.ApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (applicationInfo_ != null) { + applicationInfo_ = + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.newBuilder(applicationInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + applicationInfo_ = value; + } + onChanged(); + } else { + applicationInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder clearApplicationInfo() { + if (applicationInfoBuilder_ == null) { + applicationInfo_ = null; + onChanged(); + } else { + applicationInfo_ = null; + applicationInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder getApplicationInfoBuilder() { + + onChanged(); + return getApplicationInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + if (applicationInfoBuilder_ != null) { + return applicationInfoBuilder_.getMessageOrBuilder(); + } else { + return applicationInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ApplicationInfo, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder, + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder> + getApplicationInfoFieldBuilder() { + if (applicationInfoBuilder_ == null) { + applicationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ApplicationInfo, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder, + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder>( + getApplicationInfo(), getParentForChildren(), isClean()); + applicationInfo_ = null; + } + return applicationInfoBuilder_; + } + + private java.util.List jobBenefits_ = java.util.Collections.emptyList(); + + private void ensureJobBenefitsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = new java.util.ArrayList(jobBenefits_); + bitField0_ |= 0x00000080; + } + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit>( + jobBenefits_, jobBenefits_converter_); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsCount() { + return jobBenefits_.size(); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public com.google.cloud.talent.v4beta1.JobBenefit getJobBenefits(int index) { + return jobBenefits_converter_.convert(jobBenefits_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder setJobBenefits(int index, com.google.cloud.talent.v4beta1.JobBenefit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobBenefitsIsMutable(); + jobBenefits_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addJobBenefits(com.google.cloud.talent.v4beta1.JobBenefit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobBenefitsIsMutable(); + jobBenefits_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addAllJobBenefits( + java.lang.Iterable values) { + ensureJobBenefitsIsMutable(); + for (com.google.cloud.talent.v4beta1.JobBenefit value : values) { + jobBenefits_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder clearJobBenefits() { + jobBenefits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsValueList() { + return java.util.Collections.unmodifiableList(jobBenefits_); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsValue(int index) { + return jobBenefits_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder setJobBenefitsValue(int index, int value) { + ensureJobBenefitsIsMutable(); + jobBenefits_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addJobBenefitsValue(int value) { + ensureJobBenefitsIsMutable(); + jobBenefits_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addAllJobBenefitsValue(java.lang.Iterable values) { + ensureJobBenefitsIsMutable(); + for (int value : values) { + jobBenefits_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo compensationInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder, + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder> + compensationInfoBuilder_; + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public boolean hasCompensationInfo() { + return compensationInfoBuilder_ != null || compensationInfo_ != null; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo() { + if (compensationInfoBuilder_ == null) { + return compensationInfo_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance() + : compensationInfo_; + } else { + return compensationInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder setCompensationInfo(com.google.cloud.talent.v4beta1.CompensationInfo value) { + if (compensationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationInfo_ = value; + onChanged(); + } else { + compensationInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder setCompensationInfo( + com.google.cloud.talent.v4beta1.CompensationInfo.Builder builderForValue) { + if (compensationInfoBuilder_ == null) { + compensationInfo_ = builderForValue.build(); + onChanged(); + } else { + compensationInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder mergeCompensationInfo(com.google.cloud.talent.v4beta1.CompensationInfo value) { + if (compensationInfoBuilder_ == null) { + if (compensationInfo_ != null) { + compensationInfo_ = + com.google.cloud.talent.v4beta1.CompensationInfo.newBuilder(compensationInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationInfo_ = value; + } + onChanged(); + } else { + compensationInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder clearCompensationInfo() { + if (compensationInfoBuilder_ == null) { + compensationInfo_ = null; + onChanged(); + } else { + compensationInfo_ = null; + compensationInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.Builder getCompensationInfoBuilder() { + + onChanged(); + return getCompensationInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder + getCompensationInfoOrBuilder() { + if (compensationInfoBuilder_ != null) { + return compensationInfoBuilder_.getMessageOrBuilder(); + } else { + return compensationInfo_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance() + : compensationInfo_; + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder, + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder> + getCompensationInfoFieldBuilder() { + if (compensationInfoBuilder_ == null) { + compensationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder, + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder>( + getCompensationInfo(), getParentForChildren(), isClean()); + compensationInfo_ = null; + } + return compensationInfoBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetMutableCustomAttributes() { + onChanged(); + ; + if (customAttributes_ == null) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + if (!customAttributes_.isMutable()) { + customAttributes_ = customAttributes_.copy(); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomAttributes() { + internalGetMutableCustomAttributes().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public Builder removeCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomAttributes() { + return internalGetMutableCustomAttributes().getMutableMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public Builder putCustomAttributes( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public Builder putAllCustomAttributes( + java.util.Map values) { + internalGetMutableCustomAttributes().getMutableMap().putAll(values); + return this; + } + + private java.util.List degreeTypes_ = java.util.Collections.emptyList(); + + private void ensureDegreeTypesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = new java.util.ArrayList(degreeTypes_); + bitField0_ |= 0x00000400; + } + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType>( + degreeTypes_, degreeTypes_converter_); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesCount() { + return degreeTypes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeTypes(int index) { + return degreeTypes_converter_.convert(degreeTypes_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder setDegreeTypes(int index, com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDegreeTypesIsMutable(); + degreeTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addDegreeTypes(com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDegreeTypesIsMutable(); + degreeTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addAllDegreeTypes( + java.lang.Iterable values) { + ensureDegreeTypesIsMutable(); + for (com.google.cloud.talent.v4beta1.DegreeType value : values) { + degreeTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder clearDegreeTypes() { + degreeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesValueList() { + return java.util.Collections.unmodifiableList(degreeTypes_); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesValue(int index) { + return degreeTypes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder setDegreeTypesValue(int index, int value) { + ensureDegreeTypesIsMutable(); + degreeTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addDegreeTypesValue(int value) { + ensureDegreeTypesIsMutable(); + degreeTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addAllDegreeTypesValue(java.lang.Iterable values) { + ensureDegreeTypesIsMutable(); + for (int value : values) { + degreeTypes_.add(value); + } + onChanged(); + return this; + } + + private java.lang.Object department_ = ""; + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public java.lang.String getDepartment() { + java.lang.Object ref = department_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + department_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public com.google.protobuf.ByteString getDepartmentBytes() { + java.lang.Object ref = department_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + department_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public Builder setDepartment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + department_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public Builder clearDepartment() { + + department_ = getDefaultInstance().getDepartment(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public Builder setDepartmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + department_ = value; + onChanged(); + return this; + } + + private java.util.List employmentTypes_ = java.util.Collections.emptyList(); + + private void ensureEmploymentTypesIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = new java.util.ArrayList(employmentTypes_); + bitField0_ |= 0x00001000; + } + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder setEmploymentTypes( + int index, com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addEmploymentTypes(com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addAllEmploymentTypes( + java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (com.google.cloud.talent.v4beta1.EmploymentType value : values) { + employmentTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder clearEmploymentTypes() { + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesValueList() { + return java.util.Collections.unmodifiableList(employmentTypes_); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder setEmploymentTypesValue(int index, int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addEmploymentTypesValue(int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addAllEmploymentTypesValue(java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (int value : values) { + employmentTypes_.add(value); + } + onChanged(); + return this; + } + + private java.lang.Object incentives_ = ""; + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public java.lang.String getIncentives() { + java.lang.Object ref = incentives_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + incentives_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public com.google.protobuf.ByteString getIncentivesBytes() { + java.lang.Object ref = incentives_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + incentives_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public Builder setIncentives(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + incentives_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public Builder clearIncentives() { + + incentives_ = getDefaultInstance().getIncentives(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public Builder setIncentivesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + incentives_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + + private int jobLevel_ = 0; + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public int getJobLevelValue() { + return jobLevel_; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public Builder setJobLevelValue(int value) { + jobLevel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public com.google.cloud.talent.v4beta1.JobLevel getJobLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobLevel result = + com.google.cloud.talent.v4beta1.JobLevel.valueOf(jobLevel_); + return result == null ? com.google.cloud.talent.v4beta1.JobLevel.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public Builder setJobLevel(com.google.cloud.talent.v4beta1.JobLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + jobLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public Builder clearJobLevel() { + + jobLevel_ = 0; + onChanged(); + return this; + } + + private int promotionValue_; + /** + * + * + *
+     * Optional.
+     * A promotion value of the job, as determined by the client.
+     * The value determines the sort order of the jobs returned when searching for
+     * jobs using the featured jobs search call, with higher promotional values
+     * being returned first and ties being resolved by relevance sort. Only the
+     * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+     * Default value is 0, and negative values are treated as 0.
+     * 
+ * + * int32 promotion_value = 17; + */ + public int getPromotionValue() { + return promotionValue_; + } + /** + * + * + *
+     * Optional.
+     * A promotion value of the job, as determined by the client.
+     * The value determines the sort order of the jobs returned when searching for
+     * jobs using the featured jobs search call, with higher promotional values
+     * being returned first and ties being resolved by relevance sort. Only the
+     * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+     * Default value is 0, and negative values are treated as 0.
+     * 
+ * + * int32 promotion_value = 17; + */ + public Builder setPromotionValue(int value) { + + promotionValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A promotion value of the job, as determined by the client.
+     * The value determines the sort order of the jobs returned when searching for
+     * jobs using the featured jobs search call, with higher promotional values
+     * being returned first and ties being resolved by relevance sort. Only the
+     * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+     * Default value is 0, and negative values are treated as 0.
+     * 
+ * + * int32 promotion_value = 17; + */ + public Builder clearPromotionValue() { + + promotionValue_ = 0; + onChanged(); + return this; + } + + private java.lang.Object qualifications_ = ""; + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public java.lang.String getQualifications() { + java.lang.Object ref = qualifications_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + qualifications_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public com.google.protobuf.ByteString getQualificationsBytes() { + java.lang.Object ref = qualifications_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + qualifications_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public Builder setQualifications(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + qualifications_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public Builder clearQualifications() { + + qualifications_ = getDefaultInstance().getQualifications(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public Builder setQualificationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + qualifications_ = value; + onChanged(); + return this; + } + + private java.lang.Object responsibilities_ = ""; + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public java.lang.String getResponsibilities() { + java.lang.Object ref = responsibilities_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responsibilities_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public com.google.protobuf.ByteString getResponsibilitiesBytes() { + java.lang.Object ref = responsibilities_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responsibilities_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public Builder setResponsibilities(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + responsibilities_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public Builder clearResponsibilities() { + + responsibilities_ = getDefaultInstance().getResponsibilities(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public Builder setResponsibilitiesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + responsibilities_ = value; + onChanged(); + return this; + } + + private int postingRegion_ = 0; + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public int getPostingRegionValue() { + return postingRegion_; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public Builder setPostingRegionValue(int value) { + postingRegion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public com.google.cloud.talent.v4beta1.PostingRegion getPostingRegion() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.PostingRegion result = + com.google.cloud.talent.v4beta1.PostingRegion.valueOf(postingRegion_); + return result == null ? com.google.cloud.talent.v4beta1.PostingRegion.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public Builder setPostingRegion(com.google.cloud.talent.v4beta1.PostingRegion value) { + if (value == null) { + throw new NullPointerException(); + } + + postingRegion_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public Builder clearPostingRegion() { + + postingRegion_ = 0; + onChanged(); + return this; + } + + private int visibility_ = 0; + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public int getVisibilityValue() { + return visibility_; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public Builder setVisibilityValue(int value) { + visibility_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public com.google.cloud.talent.v4beta1.Visibility getVisibility() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Visibility result = + com.google.cloud.talent.v4beta1.Visibility.valueOf(visibility_); + return result == null ? com.google.cloud.talent.v4beta1.Visibility.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public Builder setVisibility(com.google.cloud.talent.v4beta1.Visibility value) { + if (value == null) { + throw new NullPointerException(); + } + + visibility_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public Builder clearVisibility() { + + visibility_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp jobStartTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + jobStartTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public boolean hasJobStartTime() { + return jobStartTimeBuilder_ != null || jobStartTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.Timestamp getJobStartTime() { + if (jobStartTimeBuilder_ == null) { + return jobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobStartTime_; + } else { + return jobStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder setJobStartTime(com.google.protobuf.Timestamp value) { + if (jobStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobStartTime_ = value; + onChanged(); + } else { + jobStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder setJobStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (jobStartTimeBuilder_ == null) { + jobStartTime_ = builderForValue.build(); + onChanged(); + } else { + jobStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder mergeJobStartTime(com.google.protobuf.Timestamp value) { + if (jobStartTimeBuilder_ == null) { + if (jobStartTime_ != null) { + jobStartTime_ = + com.google.protobuf.Timestamp.newBuilder(jobStartTime_) + .mergeFrom(value) + .buildPartial(); + } else { + jobStartTime_ = value; + } + onChanged(); + } else { + jobStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder clearJobStartTime() { + if (jobStartTimeBuilder_ == null) { + jobStartTime_ = null; + onChanged(); + } else { + jobStartTime_ = null; + jobStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.Timestamp.Builder getJobStartTimeBuilder() { + + onChanged(); + return getJobStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.TimestampOrBuilder getJobStartTimeOrBuilder() { + if (jobStartTimeBuilder_ != null) { + return jobStartTimeBuilder_.getMessageOrBuilder(); + } else { + return jobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobStartTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getJobStartTimeFieldBuilder() { + if (jobStartTimeBuilder_ == null) { + jobStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getJobStartTime(), getParentForChildren(), isClean()); + jobStartTime_ = null; + } + return jobStartTimeBuilder_; + } + + private com.google.protobuf.Timestamp jobEndTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + jobEndTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public boolean hasJobEndTime() { + return jobEndTimeBuilder_ != null || jobEndTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.Timestamp getJobEndTime() { + if (jobEndTimeBuilder_ == null) { + return jobEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobEndTime_; + } else { + return jobEndTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder setJobEndTime(com.google.protobuf.Timestamp value) { + if (jobEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobEndTime_ = value; + onChanged(); + } else { + jobEndTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder setJobEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (jobEndTimeBuilder_ == null) { + jobEndTime_ = builderForValue.build(); + onChanged(); + } else { + jobEndTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder mergeJobEndTime(com.google.protobuf.Timestamp value) { + if (jobEndTimeBuilder_ == null) { + if (jobEndTime_ != null) { + jobEndTime_ = + com.google.protobuf.Timestamp.newBuilder(jobEndTime_).mergeFrom(value).buildPartial(); + } else { + jobEndTime_ = value; + } + onChanged(); + } else { + jobEndTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder clearJobEndTime() { + if (jobEndTimeBuilder_ == null) { + jobEndTime_ = null; + onChanged(); + } else { + jobEndTime_ = null; + jobEndTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.Timestamp.Builder getJobEndTimeBuilder() { + + onChanged(); + return getJobEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.TimestampOrBuilder getJobEndTimeOrBuilder() { + if (jobEndTimeBuilder_ != null) { + return jobEndTimeBuilder_.getMessageOrBuilder(); + } else { + return jobEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobEndTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getJobEndTimeFieldBuilder() { + if (jobEndTimeBuilder_ == null) { + jobEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getJobEndTime(), getParentForChildren(), isClean()); + jobEndTime_ = null; + } + return jobEndTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingPublishTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingPublishTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public boolean hasPostingPublishTime() { + return postingPublishTimeBuilder_ != null || postingPublishTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.Timestamp getPostingPublishTime() { + if (postingPublishTimeBuilder_ == null) { + return postingPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingPublishTime_; + } else { + return postingPublishTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder setPostingPublishTime(com.google.protobuf.Timestamp value) { + if (postingPublishTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingPublishTime_ = value; + onChanged(); + } else { + postingPublishTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder setPostingPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingPublishTimeBuilder_ == null) { + postingPublishTime_ = builderForValue.build(); + onChanged(); + } else { + postingPublishTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder mergePostingPublishTime(com.google.protobuf.Timestamp value) { + if (postingPublishTimeBuilder_ == null) { + if (postingPublishTime_ != null) { + postingPublishTime_ = + com.google.protobuf.Timestamp.newBuilder(postingPublishTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingPublishTime_ = value; + } + onChanged(); + } else { + postingPublishTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder clearPostingPublishTime() { + if (postingPublishTimeBuilder_ == null) { + postingPublishTime_ = null; + onChanged(); + } else { + postingPublishTime_ = null; + postingPublishTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.Timestamp.Builder getPostingPublishTimeBuilder() { + + onChanged(); + return getPostingPublishTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder() { + if (postingPublishTimeBuilder_ != null) { + return postingPublishTimeBuilder_.getMessageOrBuilder(); + } else { + return postingPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingPublishTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingPublishTimeFieldBuilder() { + if (postingPublishTimeBuilder_ == null) { + postingPublishTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingPublishTime(), getParentForChildren(), isClean()); + postingPublishTime_ = null; + } + return postingPublishTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingExpireTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingExpireTimeBuilder_; + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public boolean hasPostingExpireTime() { + return postingExpireTimeBuilder_ != null || postingExpireTime_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.Timestamp getPostingExpireTime() { + if (postingExpireTimeBuilder_ == null) { + return postingExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingExpireTime_; + } else { + return postingExpireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder setPostingExpireTime(com.google.protobuf.Timestamp value) { + if (postingExpireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingExpireTime_ = value; + onChanged(); + } else { + postingExpireTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder setPostingExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingExpireTimeBuilder_ == null) { + postingExpireTime_ = builderForValue.build(); + onChanged(); + } else { + postingExpireTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder mergePostingExpireTime(com.google.protobuf.Timestamp value) { + if (postingExpireTimeBuilder_ == null) { + if (postingExpireTime_ != null) { + postingExpireTime_ = + com.google.protobuf.Timestamp.newBuilder(postingExpireTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingExpireTime_ = value; + } + onChanged(); + } else { + postingExpireTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder clearPostingExpireTime() { + if (postingExpireTimeBuilder_ == null) { + postingExpireTime_ = null; + onChanged(); + } else { + postingExpireTime_ = null; + postingExpireTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.Timestamp.Builder getPostingExpireTimeBuilder() { + + onChanged(); + return getPostingExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.TimestampOrBuilder getPostingExpireTimeOrBuilder() { + if (postingExpireTimeBuilder_ != null) { + return postingExpireTimeBuilder_.getMessageOrBuilder(); + } else { + return postingExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingExpireTime_; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingExpireTimeFieldBuilder() { + if (postingExpireTimeBuilder_ == null) { + postingExpireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingExpireTime(), getParentForChildren(), isClean()); + postingExpireTime_ = null; + } + return postingExpireTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingCreateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingCreateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public boolean hasPostingCreateTime() { + return postingCreateTimeBuilder_ != null || postingCreateTime_ != null; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.Timestamp getPostingCreateTime() { + if (postingCreateTimeBuilder_ == null) { + return postingCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingCreateTime_; + } else { + return postingCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder setPostingCreateTime(com.google.protobuf.Timestamp value) { + if (postingCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingCreateTime_ = value; + onChanged(); + } else { + postingCreateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder setPostingCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingCreateTimeBuilder_ == null) { + postingCreateTime_ = builderForValue.build(); + onChanged(); + } else { + postingCreateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder mergePostingCreateTime(com.google.protobuf.Timestamp value) { + if (postingCreateTimeBuilder_ == null) { + if (postingCreateTime_ != null) { + postingCreateTime_ = + com.google.protobuf.Timestamp.newBuilder(postingCreateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingCreateTime_ = value; + } + onChanged(); + } else { + postingCreateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder clearPostingCreateTime() { + if (postingCreateTimeBuilder_ == null) { + postingCreateTime_ = null; + onChanged(); + } else { + postingCreateTime_ = null; + postingCreateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.Timestamp.Builder getPostingCreateTimeBuilder() { + + onChanged(); + return getPostingCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.TimestampOrBuilder getPostingCreateTimeOrBuilder() { + if (postingCreateTimeBuilder_ != null) { + return postingCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return postingCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingCreateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingCreateTimeFieldBuilder() { + if (postingCreateTimeBuilder_ == null) { + postingCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingCreateTime(), getParentForChildren(), isClean()); + postingCreateTime_ = null; + } + return postingCreateTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingUpdateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingUpdateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public boolean hasPostingUpdateTime() { + return postingUpdateTimeBuilder_ != null || postingUpdateTime_ != null; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.Timestamp getPostingUpdateTime() { + if (postingUpdateTimeBuilder_ == null) { + return postingUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingUpdateTime_; + } else { + return postingUpdateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder setPostingUpdateTime(com.google.protobuf.Timestamp value) { + if (postingUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingUpdateTime_ = value; + onChanged(); + } else { + postingUpdateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder setPostingUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTime_ = builderForValue.build(); + onChanged(); + } else { + postingUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder mergePostingUpdateTime(com.google.protobuf.Timestamp value) { + if (postingUpdateTimeBuilder_ == null) { + if (postingUpdateTime_ != null) { + postingUpdateTime_ = + com.google.protobuf.Timestamp.newBuilder(postingUpdateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingUpdateTime_ = value; + } + onChanged(); + } else { + postingUpdateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder clearPostingUpdateTime() { + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTime_ = null; + onChanged(); + } else { + postingUpdateTime_ = null; + postingUpdateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.Timestamp.Builder getPostingUpdateTimeBuilder() { + + onChanged(); + return getPostingUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.TimestampOrBuilder getPostingUpdateTimeOrBuilder() { + if (postingUpdateTimeBuilder_ != null) { + return postingUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return postingUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingUpdateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingUpdateTimeFieldBuilder() { + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingUpdateTime(), getParentForChildren(), isClean()); + postingUpdateTime_ = null; + } + return postingUpdateTimeBuilder_; + } + + private java.lang.Object companyDisplayName_ = ""; + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public java.lang.String getCompanyDisplayName() { + java.lang.Object ref = companyDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public Builder setCompanyDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + companyDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public Builder clearCompanyDisplayName() { + + companyDisplayName_ = getDefaultInstance().getCompanyDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public Builder setCompanyDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + companyDisplayName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Job.DerivedInfo derivedInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.DerivedInfo, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder> + derivedInfoBuilder_; + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public boolean hasDerivedInfo() { + return derivedInfoBuilder_ != null || derivedInfo_ != null; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDerivedInfo() { + if (derivedInfoBuilder_ == null) { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } else { + return derivedInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder setDerivedInfo(com.google.cloud.talent.v4beta1.Job.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + derivedInfo_ = value; + onChanged(); + } else { + derivedInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder setDerivedInfo( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder builderForValue) { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = builderForValue.build(); + onChanged(); + } else { + derivedInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder mergeDerivedInfo(com.google.cloud.talent.v4beta1.Job.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (derivedInfo_ != null) { + derivedInfo_ = + com.google.cloud.talent.v4beta1.Job.DerivedInfo.newBuilder(derivedInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + derivedInfo_ = value; + } + onChanged(); + } else { + derivedInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder clearDerivedInfo() { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + onChanged(); + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder getDerivedInfoBuilder() { + + onChanged(); + return getDerivedInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + if (derivedInfoBuilder_ != null) { + return derivedInfoBuilder_.getMessageOrBuilder(); + } else { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.DerivedInfo, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder> + getDerivedInfoFieldBuilder() { + if (derivedInfoBuilder_ == null) { + derivedInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.DerivedInfo, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder>( + getDerivedInfo(), getParentForChildren(), isClean()); + derivedInfo_ = null; + } + return derivedInfoBuilder_; + } + + private com.google.cloud.talent.v4beta1.Job.ProcessingOptions processingOptions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ProcessingOptions, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder, + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder> + processingOptionsBuilder_; + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public boolean hasProcessingOptions() { + return processingOptionsBuilder_ != null || processingOptions_ != null; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getProcessingOptions() { + if (processingOptionsBuilder_ == null) { + return processingOptions_ == null + ? com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance() + : processingOptions_; + } else { + return processingOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder setProcessingOptions( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions value) { + if (processingOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + processingOptions_ = value; + onChanged(); + } else { + processingOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder setProcessingOptions( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder builderForValue) { + if (processingOptionsBuilder_ == null) { + processingOptions_ = builderForValue.build(); + onChanged(); + } else { + processingOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder mergeProcessingOptions( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions value) { + if (processingOptionsBuilder_ == null) { + if (processingOptions_ != null) { + processingOptions_ = + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.newBuilder(processingOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + processingOptions_ = value; + } + onChanged(); + } else { + processingOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder clearProcessingOptions() { + if (processingOptionsBuilder_ == null) { + processingOptions_ = null; + onChanged(); + } else { + processingOptions_ = null; + processingOptionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder + getProcessingOptionsBuilder() { + + onChanged(); + return getProcessingOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder + getProcessingOptionsOrBuilder() { + if (processingOptionsBuilder_ != null) { + return processingOptionsBuilder_.getMessageOrBuilder(); + } else { + return processingOptions_ == null + ? com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance() + : processingOptions_; + } + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ProcessingOptions, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder, + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder> + getProcessingOptionsFieldBuilder() { + if (processingOptionsBuilder_ == null) { + processingOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ProcessingOptions, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder, + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder>( + getProcessingOptions(), getParentForChildren(), isClean()); + processingOptions_ = null; + } + return processingOptionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job) + private static final com.google.cloud.talent.v4beta1.Job DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job(); + } + + public static com.google.cloud.talent.v4beta1.Job getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Job parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Job(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java new file mode 100644 index 000000000000..50fe42668444 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java @@ -0,0 +1,3468 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a job application record of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobApplication} + */ +public final class JobApplication extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobApplication) + JobApplicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobApplication.newBuilder() to construct. + private JobApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobApplication() { + applicationId_ = ""; + lastStage_ = ""; + state_ = 0; + averageInterviewScore_ = 0D; + interviewScoreScaleId_ = ""; + numberOfInterviews_ = 0; + outcomeReason_ = ""; + outcomePositiveness_ = 0D; + jobTitleSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobApplication( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + applicationId_ = s; + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (applicationDate_ != null) { + subBuilder = applicationDate_.toBuilder(); + } + applicationDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(applicationDate_); + applicationDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + lastStage_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 49: + { + averageInterviewScore_ = input.readDouble(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + interviewScoreScaleId_ = s; + break; + } + case 64: + { + numberOfInterviews_ = input.readInt32(); + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isEmployeeReferred_ != null) { + subBuilder = isEmployeeReferred_.toBuilder(); + } + isEmployeeReferred_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isEmployeeReferred_); + isEmployeeReferred_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + outcomeReason_ = s; + break; + } + case 97: + { + outcomePositiveness_ = input.readDouble(); + break; + } + case 106: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isMatch_ != null) { + subBuilder = isMatch_.toBuilder(); + } + isMatch_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isMatch_); + isMatch_ = subBuilder.buildPartial(); + } + + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitleSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobApplication.class, + com.google.cloud.talent.v4beta1.JobApplication.Builder.class); + } + + /** + * + * + *
+   * Enum that represents the application status.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobApplication.ApplicationStatus} + */ + public enum ApplicationStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * APPLICATION_STATUS_UNSPECIFIED = 0; + */ + APPLICATION_STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The offer is extended.
+     * 
+ * + * OFFER_EXTENDED = 1; + */ + OFFER_EXTENDED(1), + /** + * + * + *
+     * The offer is rejected by candidate.
+     * 
+ * + * REJECTED_BY_CANDIDATE = 2; + */ + REJECTED_BY_CANDIDATE(2), + /** + * + * + *
+     * The application is active.
+     * 
+ * + * ACTIVE = 3; + */ + ACTIVE(3), + /** + * + * + *
+     * The candidate is rejected by employer.
+     * 
+ * + * REJECTED_BY_EMPLOYER = 4; + */ + REJECTED_BY_EMPLOYER(4), + /** + * + * + *
+     * The candidate is hired and hasn't started the new job.
+     * 
+ * + * HIRED_PENDING_DATE = 5; + */ + HIRED_PENDING_DATE(5), + /** + * + * + *
+     * The candidate is hired started.
+     * 
+ * + * HIRED_STARTED = 6; + */ + HIRED_STARTED(6), + /** + * + * + *
+     * The candidate is a prospect candidate.
+     * 
+ * + * PROSPECTED = 7; + */ + PROSPECTED(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * APPLICATION_STATUS_UNSPECIFIED = 0; + */ + public static final int APPLICATION_STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The offer is extended.
+     * 
+ * + * OFFER_EXTENDED = 1; + */ + public static final int OFFER_EXTENDED_VALUE = 1; + /** + * + * + *
+     * The offer is rejected by candidate.
+     * 
+ * + * REJECTED_BY_CANDIDATE = 2; + */ + public static final int REJECTED_BY_CANDIDATE_VALUE = 2; + /** + * + * + *
+     * The application is active.
+     * 
+ * + * ACTIVE = 3; + */ + public static final int ACTIVE_VALUE = 3; + /** + * + * + *
+     * The candidate is rejected by employer.
+     * 
+ * + * REJECTED_BY_EMPLOYER = 4; + */ + public static final int REJECTED_BY_EMPLOYER_VALUE = 4; + /** + * + * + *
+     * The candidate is hired and hasn't started the new job.
+     * 
+ * + * HIRED_PENDING_DATE = 5; + */ + public static final int HIRED_PENDING_DATE_VALUE = 5; + /** + * + * + *
+     * The candidate is hired started.
+     * 
+ * + * HIRED_STARTED = 6; + */ + public static final int HIRED_STARTED_VALUE = 6; + /** + * + * + *
+     * The candidate is a prospect candidate.
+     * 
+ * + * PROSPECTED = 7; + */ + public static final int PROSPECTED_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ApplicationStatus valueOf(int value) { + return forNumber(value); + } + + public static ApplicationStatus forNumber(int value) { + switch (value) { + case 0: + return APPLICATION_STATUS_UNSPECIFIED; + case 1: + return OFFER_EXTENDED; + case 2: + return REJECTED_BY_CANDIDATE; + case 3: + return ACTIVE; + case 4: + return REJECTED_BY_EMPLOYER; + case 5: + return HIRED_PENDING_DATE; + case 6: + return HIRED_STARTED; + case 7: + return PROSPECTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ApplicationStatus findValueByNumber(int number) { + return ApplicationStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobApplication.getDescriptor().getEnumTypes().get(0); + } + + private static final ApplicationStatus[] VALUES = values(); + + public static ApplicationStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ApplicationStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobApplication.ApplicationStatus) + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int APPLICATION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object applicationId_; + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + public java.lang.String getApplicationId() { + java.lang.Object ref = applicationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + public com.google.protobuf.ByteString getApplicationIdBytes() { + java.lang.Object ref = applicationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_DATE_FIELD_NUMBER = 3; + private com.google.type.Date applicationDate_; + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + public boolean hasApplicationDate() { + return applicationDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.Date getApplicationDate() { + return applicationDate_ == null ? com.google.type.Date.getDefaultInstance() : applicationDate_; + } + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.DateOrBuilder getApplicationDateOrBuilder() { + return getApplicationDate(); + } + + public static final int LAST_STAGE_FIELD_NUMBER = 4; + private volatile java.lang.Object lastStage_; + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastStage_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_; + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf(state_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + + public static final int AVERAGE_INTERVIEW_SCORE_FIELD_NUMBER = 6; + private double averageInterviewScore_; + /** + * + * + *
+   * Optional.
+   * The average interview score.
+   * 
+ * + * double average_interview_score = 6; + */ + public double getAverageInterviewScore() { + return averageInterviewScore_; + } + + public static final int INTERVIEW_SCORE_SCALE_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object interviewScoreScaleId_; + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + public java.lang.String getInterviewScoreScaleId() { + java.lang.Object ref = interviewScoreScaleId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interviewScoreScaleId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + public com.google.protobuf.ByteString getInterviewScoreScaleIdBytes() { + java.lang.Object ref = interviewScoreScaleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interviewScoreScaleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NUMBER_OF_INTERVIEWS_FIELD_NUMBER = 8; + private int numberOfInterviews_; + /** + * + * + *
+   * Optional.
+   * The number of interviews.
+   * 
+ * + * int32 number_of_interviews = 8; + */ + public int getNumberOfInterviews() { + return numberOfInterviews_; + } + + public static final int IS_EMPLOYEE_REFERRED_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue isEmployeeReferred_; + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public boolean hasIsEmployeeReferred() { + return isEmployeeReferred_ != null; + } + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValue getIsEmployeeReferred() { + return isEmployeeReferred_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isEmployeeReferred_; + } + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder() { + return getIsEmployeeReferred(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int OUTCOME_REASON_FIELD_NUMBER = 11; + private volatile java.lang.Object outcomeReason_; + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeReason_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTCOME_POSITIVENESS_FIELD_NUMBER = 12; + private double outcomePositiveness_; + /** + * + * + *
+   * Optional.
+   * Outcome positiveness shows how positive the outcome is.
+   * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+   * means neutral and 1 means positive. An error is thrown if other value is
+   * set.
+   * 
+ * + * double outcome_positiveness = 12; + */ + public double getOutcomePositiveness() { + return outcomePositiveness_; + } + + public static final int IS_MATCH_FIELD_NUMBER = 13; + private com.google.protobuf.BoolValue isMatch_; + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public boolean hasIsMatch() { + return isMatch_ != null; + } + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValue getIsMatch() { + return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; + } + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder() { + return getIsMatch(); + } + + public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 14; + private volatile java.lang.Object jobTitleSnippet_; + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (job_ != null) { + output.writeMessage(1, getJob()); + } + if (!getApplicationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicationId_); + } + if (applicationDate_ != null) { + output.writeMessage(3, getApplicationDate()); + } + if (!getLastStageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastStage_); + } + if (state_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, state_); + } + if (averageInterviewScore_ != 0D) { + output.writeDouble(6, averageInterviewScore_); + } + if (!getInterviewScoreScaleIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, interviewScoreScaleId_); + } + if (numberOfInterviews_ != 0) { + output.writeInt32(8, numberOfInterviews_); + } + if (isEmployeeReferred_ != null) { + output.writeMessage(9, getIsEmployeeReferred()); + } + if (updateTime_ != null) { + output.writeMessage(10, getUpdateTime()); + } + if (!getOutcomeReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, outcomeReason_); + } + if (outcomePositiveness_ != 0D) { + output.writeDouble(12, outcomePositiveness_); + } + if (isMatch_ != null) { + output.writeMessage(13, getIsMatch()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, jobTitleSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + if (!getApplicationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, applicationId_); + } + if (applicationDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApplicationDate()); + } + if (!getLastStageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastStage_); + } + if (state_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (averageInterviewScore_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, averageInterviewScore_); + } + if (!getInterviewScoreScaleIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, interviewScoreScaleId_); + } + if (numberOfInterviews_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, numberOfInterviews_); + } + if (isEmployeeReferred_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsEmployeeReferred()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + } + if (!getOutcomeReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, outcomeReason_); + } + if (outcomePositiveness_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, outcomePositiveness_); + } + if (isMatch_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getIsMatch()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, jobTitleSnippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.JobApplication)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobApplication other = + (com.google.cloud.talent.v4beta1.JobApplication) obj; + + boolean result = true; + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && getApplicationId().equals(other.getApplicationId()); + result = result && (hasApplicationDate() == other.hasApplicationDate()); + if (hasApplicationDate()) { + result = result && getApplicationDate().equals(other.getApplicationDate()); + } + result = result && getLastStage().equals(other.getLastStage()); + result = result && state_ == other.state_; + result = + result + && (java.lang.Double.doubleToLongBits(getAverageInterviewScore()) + == java.lang.Double.doubleToLongBits(other.getAverageInterviewScore())); + result = result && getInterviewScoreScaleId().equals(other.getInterviewScoreScaleId()); + result = result && (getNumberOfInterviews() == other.getNumberOfInterviews()); + result = result && (hasIsEmployeeReferred() == other.hasIsEmployeeReferred()); + if (hasIsEmployeeReferred()) { + result = result && getIsEmployeeReferred().equals(other.getIsEmployeeReferred()); + } + result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime()) { + result = result && getUpdateTime().equals(other.getUpdateTime()); + } + result = result && getOutcomeReason().equals(other.getOutcomeReason()); + result = + result + && (java.lang.Double.doubleToLongBits(getOutcomePositiveness()) + == java.lang.Double.doubleToLongBits(other.getOutcomePositiveness())); + result = result && (hasIsMatch() == other.hasIsMatch()); + if (hasIsMatch()) { + result = result && getIsMatch().equals(other.getIsMatch()); + } + result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getApplicationId().hashCode(); + if (hasApplicationDate()) { + hash = (37 * hash) + APPLICATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getApplicationDate().hashCode(); + } + hash = (37 * hash) + LAST_STAGE_FIELD_NUMBER; + hash = (53 * hash) + getLastStage().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + AVERAGE_INTERVIEW_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAverageInterviewScore())); + hash = (37 * hash) + INTERVIEW_SCORE_SCALE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInterviewScoreScaleId().hashCode(); + hash = (37 * hash) + NUMBER_OF_INTERVIEWS_FIELD_NUMBER; + hash = (53 * hash) + getNumberOfInterviews(); + if (hasIsEmployeeReferred()) { + hash = (37 * hash) + IS_EMPLOYEE_REFERRED_FIELD_NUMBER; + hash = (53 * hash) + getIsEmployeeReferred().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + OUTCOME_REASON_FIELD_NUMBER; + hash = (53 * hash) + getOutcomeReason().hashCode(); + hash = (37 * hash) + OUTCOME_POSITIVENESS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getOutcomePositiveness())); + if (hasIsMatch()) { + hash = (37 * hash) + IS_MATCH_FIELD_NUMBER; + hash = (53 * hash) + getIsMatch().hashCode(); + } + hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.JobApplication prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a job application record of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobApplication} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobApplication) + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobApplication.class, + com.google.cloud.talent.v4beta1.JobApplication.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobApplication.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + applicationId_ = ""; + + if (applicationDateBuilder_ == null) { + applicationDate_ = null; + } else { + applicationDate_ = null; + applicationDateBuilder_ = null; + } + lastStage_ = ""; + + state_ = 0; + + averageInterviewScore_ = 0D; + + interviewScoreScaleId_ = ""; + + numberOfInterviews_ = 0; + + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferred_ = null; + } else { + isEmployeeReferred_ = null; + isEmployeeReferredBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + outcomeReason_ = ""; + + outcomePositiveness_ = 0D; + + if (isMatchBuilder_ == null) { + isMatch_ = null; + } else { + isMatch_ = null; + isMatchBuilder_ = null; + } + jobTitleSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication build() { + com.google.cloud.talent.v4beta1.JobApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication buildPartial() { + com.google.cloud.talent.v4beta1.JobApplication result = + new com.google.cloud.talent.v4beta1.JobApplication(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + result.applicationId_ = applicationId_; + if (applicationDateBuilder_ == null) { + result.applicationDate_ = applicationDate_; + } else { + result.applicationDate_ = applicationDateBuilder_.build(); + } + result.lastStage_ = lastStage_; + result.state_ = state_; + result.averageInterviewScore_ = averageInterviewScore_; + result.interviewScoreScaleId_ = interviewScoreScaleId_; + result.numberOfInterviews_ = numberOfInterviews_; + if (isEmployeeReferredBuilder_ == null) { + result.isEmployeeReferred_ = isEmployeeReferred_; + } else { + result.isEmployeeReferred_ = isEmployeeReferredBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.outcomeReason_ = outcomeReason_; + result.outcomePositiveness_ = outcomePositiveness_; + if (isMatchBuilder_ == null) { + result.isMatch_ = isMatch_; + } else { + result.isMatch_ = isMatchBuilder_.build(); + } + result.jobTitleSnippet_ = jobTitleSnippet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobApplication) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobApplication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobApplication other) { + if (other == com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()) return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (!other.getApplicationId().isEmpty()) { + applicationId_ = other.applicationId_; + onChanged(); + } + if (other.hasApplicationDate()) { + mergeApplicationDate(other.getApplicationDate()); + } + if (!other.getLastStage().isEmpty()) { + lastStage_ = other.lastStage_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getAverageInterviewScore() != 0D) { + setAverageInterviewScore(other.getAverageInterviewScore()); + } + if (!other.getInterviewScoreScaleId().isEmpty()) { + interviewScoreScaleId_ = other.interviewScoreScaleId_; + onChanged(); + } + if (other.getNumberOfInterviews() != 0) { + setNumberOfInterviews(other.getNumberOfInterviews()); + } + if (other.hasIsEmployeeReferred()) { + mergeIsEmployeeReferred(other.getIsEmployeeReferred()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getOutcomeReason().isEmpty()) { + outcomeReason_ = other.outcomeReason_; + onChanged(); + } + if (other.getOutcomePositiveness() != 0D) { + setOutcomePositiveness(other.getOutcomePositiveness()); + } + if (other.hasIsMatch()) { + mergeIsMatch(other.getIsMatch()); + } + if (!other.getJobTitleSnippet().isEmpty()) { + jobTitleSnippet_ = other.jobTitleSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.JobApplication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobApplication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + private java.lang.Object applicationId_ = ""; + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public java.lang.String getApplicationId() { + java.lang.Object ref = applicationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public com.google.protobuf.ByteString getApplicationIdBytes() { + java.lang.Object ref = applicationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public Builder setApplicationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + applicationId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public Builder clearApplicationId() { + + applicationId_ = getDefaultInstance().getApplicationId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public Builder setApplicationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + applicationId_ = value; + onChanged(); + return this; + } + + private com.google.type.Date applicationDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + applicationDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public boolean hasApplicationDate() { + return applicationDateBuilder_ != null || applicationDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.Date getApplicationDate() { + if (applicationDateBuilder_ == null) { + return applicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : applicationDate_; + } else { + return applicationDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder setApplicationDate(com.google.type.Date value) { + if (applicationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationDate_ = value; + onChanged(); + } else { + applicationDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder setApplicationDate(com.google.type.Date.Builder builderForValue) { + if (applicationDateBuilder_ == null) { + applicationDate_ = builderForValue.build(); + onChanged(); + } else { + applicationDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder mergeApplicationDate(com.google.type.Date value) { + if (applicationDateBuilder_ == null) { + if (applicationDate_ != null) { + applicationDate_ = + com.google.type.Date.newBuilder(applicationDate_).mergeFrom(value).buildPartial(); + } else { + applicationDate_ = value; + } + onChanged(); + } else { + applicationDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder clearApplicationDate() { + if (applicationDateBuilder_ == null) { + applicationDate_ = null; + onChanged(); + } else { + applicationDate_ = null; + applicationDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.Date.Builder getApplicationDateBuilder() { + + onChanged(); + return getApplicationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.DateOrBuilder getApplicationDateOrBuilder() { + if (applicationDateBuilder_ != null) { + return applicationDateBuilder_.getMessageOrBuilder(); + } else { + return applicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : applicationDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getApplicationDateFieldBuilder() { + if (applicationDateBuilder_ == null) { + applicationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getApplicationDate(), getParentForChildren(), isClean()); + applicationDate_ = null; + } + return applicationDateBuilder_; + } + + private java.lang.Object lastStage_ = ""; + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastStage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public Builder setLastStage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lastStage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public Builder clearLastStage() { + + lastStage_ = getDefaultInstance().getLastStage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public Builder setLastStageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastStage_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf(state_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public Builder setState( + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private double averageInterviewScore_; + /** + * + * + *
+     * Optional.
+     * The average interview score.
+     * 
+ * + * double average_interview_score = 6; + */ + public double getAverageInterviewScore() { + return averageInterviewScore_; + } + /** + * + * + *
+     * Optional.
+     * The average interview score.
+     * 
+ * + * double average_interview_score = 6; + */ + public Builder setAverageInterviewScore(double value) { + + averageInterviewScore_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The average interview score.
+     * 
+ * + * double average_interview_score = 6; + */ + public Builder clearAverageInterviewScore() { + + averageInterviewScore_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object interviewScoreScaleId_ = ""; + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public java.lang.String getInterviewScoreScaleId() { + java.lang.Object ref = interviewScoreScaleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interviewScoreScaleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public com.google.protobuf.ByteString getInterviewScoreScaleIdBytes() { + java.lang.Object ref = interviewScoreScaleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interviewScoreScaleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public Builder setInterviewScoreScaleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + interviewScoreScaleId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public Builder clearInterviewScoreScaleId() { + + interviewScoreScaleId_ = getDefaultInstance().getInterviewScoreScaleId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public Builder setInterviewScoreScaleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + interviewScoreScaleId_ = value; + onChanged(); + return this; + } + + private int numberOfInterviews_; + /** + * + * + *
+     * Optional.
+     * The number of interviews.
+     * 
+ * + * int32 number_of_interviews = 8; + */ + public int getNumberOfInterviews() { + return numberOfInterviews_; + } + /** + * + * + *
+     * Optional.
+     * The number of interviews.
+     * 
+ * + * int32 number_of_interviews = 8; + */ + public Builder setNumberOfInterviews(int value) { + + numberOfInterviews_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The number of interviews.
+     * 
+ * + * int32 number_of_interviews = 8; + */ + public Builder clearNumberOfInterviews() { + + numberOfInterviews_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isEmployeeReferred_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isEmployeeReferredBuilder_; + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public boolean hasIsEmployeeReferred() { + return isEmployeeReferredBuilder_ != null || isEmployeeReferred_ != null; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValue getIsEmployeeReferred() { + if (isEmployeeReferredBuilder_ == null) { + return isEmployeeReferred_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isEmployeeReferred_; + } else { + return isEmployeeReferredBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder setIsEmployeeReferred(com.google.protobuf.BoolValue value) { + if (isEmployeeReferredBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isEmployeeReferred_ = value; + onChanged(); + } else { + isEmployeeReferredBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder setIsEmployeeReferred(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferred_ = builderForValue.build(); + onChanged(); + } else { + isEmployeeReferredBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder mergeIsEmployeeReferred(com.google.protobuf.BoolValue value) { + if (isEmployeeReferredBuilder_ == null) { + if (isEmployeeReferred_ != null) { + isEmployeeReferred_ = + com.google.protobuf.BoolValue.newBuilder(isEmployeeReferred_) + .mergeFrom(value) + .buildPartial(); + } else { + isEmployeeReferred_ = value; + } + onChanged(); + } else { + isEmployeeReferredBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder clearIsEmployeeReferred() { + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferred_ = null; + onChanged(); + } else { + isEmployeeReferred_ = null; + isEmployeeReferredBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValue.Builder getIsEmployeeReferredBuilder() { + + onChanged(); + return getIsEmployeeReferredFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder() { + if (isEmployeeReferredBuilder_ != null) { + return isEmployeeReferredBuilder_.getMessageOrBuilder(); + } else { + return isEmployeeReferred_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isEmployeeReferred_; + } + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsEmployeeReferredFieldBuilder() { + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferredBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsEmployeeReferred(), getParentForChildren(), isClean()); + isEmployeeReferred_ = null; + } + return isEmployeeReferredBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object outcomeReason_ = ""; + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public Builder setOutcomeReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outcomeReason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public Builder clearOutcomeReason() { + + outcomeReason_ = getDefaultInstance().getOutcomeReason(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public Builder setOutcomeReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outcomeReason_ = value; + onChanged(); + return this; + } + + private double outcomePositiveness_; + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+     * means neutral and 1 means positive. An error is thrown if other value is
+     * set.
+     * 
+ * + * double outcome_positiveness = 12; + */ + public double getOutcomePositiveness() { + return outcomePositiveness_; + } + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+     * means neutral and 1 means positive. An error is thrown if other value is
+     * set.
+     * 
+ * + * double outcome_positiveness = 12; + */ + public Builder setOutcomePositiveness(double value) { + + outcomePositiveness_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+     * means neutral and 1 means positive. An error is thrown if other value is
+     * set.
+     * 
+ * + * double outcome_positiveness = 12; + */ + public Builder clearOutcomePositiveness() { + + outcomePositiveness_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isMatch_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isMatchBuilder_; + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public boolean hasIsMatch() { + return isMatchBuilder_ != null || isMatch_ != null; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValue getIsMatch() { + if (isMatchBuilder_ == null) { + return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; + } else { + return isMatchBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder setIsMatch(com.google.protobuf.BoolValue value) { + if (isMatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isMatch_ = value; + onChanged(); + } else { + isMatchBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder setIsMatch(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isMatchBuilder_ == null) { + isMatch_ = builderForValue.build(); + onChanged(); + } else { + isMatchBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder mergeIsMatch(com.google.protobuf.BoolValue value) { + if (isMatchBuilder_ == null) { + if (isMatch_ != null) { + isMatch_ = + com.google.protobuf.BoolValue.newBuilder(isMatch_).mergeFrom(value).buildPartial(); + } else { + isMatch_ = value; + } + onChanged(); + } else { + isMatchBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder clearIsMatch() { + if (isMatchBuilder_ == null) { + isMatch_ = null; + onChanged(); + } else { + isMatch_ = null; + isMatchBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValue.Builder getIsMatchBuilder() { + + onChanged(); + return getIsMatchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder() { + if (isMatchBuilder_ != null) { + return isMatchBuilder_.getMessageOrBuilder(); + } else { + return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; + } + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsMatchFieldBuilder() { + if (isMatchBuilder_ == null) { + isMatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsMatch(), getParentForChildren(), isClean()); + isMatch_ = null; + } + return isMatchBuilder_; + } + + private java.lang.Object jobTitleSnippet_ = ""; + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public Builder setJobTitleSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public Builder clearJobTitleSnippet() { + + jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobApplication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobApplication) + private static final com.google.cloud.talent.v4beta1.JobApplication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobApplication(); + } + + public static com.google.cloud.talent.v4beta1.JobApplication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobApplication(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java new file mode 100644 index 000000000000..1b49e17ee3ba --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java @@ -0,0 +1,397 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobApplicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobApplication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + boolean hasJob(); + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + java.lang.String getApplicationId(); + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + com.google.protobuf.ByteString getApplicationIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + boolean hasApplicationDate(); + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + com.google.type.Date getApplicationDate(); + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + com.google.type.DateOrBuilder getApplicationDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + java.lang.String getLastStage(); + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + com.google.protobuf.ByteString getLastStageBytes(); + + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + int getStateValue(); + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState(); + + /** + * + * + *
+   * Optional.
+   * The average interview score.
+   * 
+ * + * double average_interview_score = 6; + */ + double getAverageInterviewScore(); + + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + java.lang.String getInterviewScoreScaleId(); + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + com.google.protobuf.ByteString getInterviewScoreScaleIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The number of interviews.
+   * 
+ * + * int32 number_of_interviews = 8; + */ + int getNumberOfInterviews(); + + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + boolean hasIsEmployeeReferred(); + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + com.google.protobuf.BoolValue getIsEmployeeReferred(); + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + java.lang.String getOutcomeReason(); + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + com.google.protobuf.ByteString getOutcomeReasonBytes(); + + /** + * + * + *
+   * Optional.
+   * Outcome positiveness shows how positive the outcome is.
+   * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+   * means neutral and 1 means positive. An error is thrown if other value is
+   * set.
+   * 
+ * + * double outcome_positiveness = 12; + */ + double getOutcomePositiveness(); + + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + boolean hasIsMatch(); + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + com.google.protobuf.BoolValue getIsMatch(); + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder(); + + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + java.lang.String getJobTitleSnippet(); + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + com.google.protobuf.ByteString getJobTitleSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java new file mode 100644 index 000000000000..ad5c4057d852 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java @@ -0,0 +1,359 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents employee benefits included with the job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobBenefit} + */ +public enum JobBenefit implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value if the type isn't specified.
+   * 
+ * + * JOB_BENEFIT_UNSPECIFIED = 0; + */ + JOB_BENEFIT_UNSPECIFIED(0), + /** + * + * + *
+   * The job includes access to programs that support child care, such
+   * as daycare.
+   * 
+ * + * CHILD_CARE = 1; + */ + CHILD_CARE(1), + /** + * + * + *
+   * The job includes dental services covered by a dental
+   * insurance plan.
+   * 
+ * + * DENTAL = 2; + */ + DENTAL(2), + /** + * + * + *
+   * The job offers specific benefits to domestic partners.
+   * 
+ * + * DOMESTIC_PARTNER = 3; + */ + DOMESTIC_PARTNER(3), + /** + * + * + *
+   * The job allows for a flexible work schedule.
+   * 
+ * + * FLEXIBLE_HOURS = 4; + */ + FLEXIBLE_HOURS(4), + /** + * + * + *
+   * The job includes health services covered by a medical insurance plan.
+   * 
+ * + * MEDICAL = 5; + */ + MEDICAL(5), + /** + * + * + *
+   * The job includes a life insurance plan provided by the employer or
+   * available for purchase by the employee.
+   * 
+ * + * LIFE_INSURANCE = 6; + */ + LIFE_INSURANCE(6), + /** + * + * + *
+   * The job allows for a leave of absence to a parent to care for a newborn
+   * child.
+   * 
+ * + * PARENTAL_LEAVE = 7; + */ + PARENTAL_LEAVE(7), + /** + * + * + *
+   * The job includes a workplace retirement plan provided by the
+   * employer or available for purchase by the employee.
+   * 
+ * + * RETIREMENT_PLAN = 8; + */ + RETIREMENT_PLAN(8), + /** + * + * + *
+   * The job allows for paid time off due to illness.
+   * 
+ * + * SICK_DAYS = 9; + */ + SICK_DAYS(9), + /** + * + * + *
+   * The job includes paid time off for vacation.
+   * 
+ * + * VACATION = 10; + */ + VACATION(10), + /** + * + * + *
+   * The job includes vision services covered by a vision
+   * insurance plan.
+   * 
+ * + * VISION = 11; + */ + VISION(11), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value if the type isn't specified.
+   * 
+ * + * JOB_BENEFIT_UNSPECIFIED = 0; + */ + public static final int JOB_BENEFIT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The job includes access to programs that support child care, such
+   * as daycare.
+   * 
+ * + * CHILD_CARE = 1; + */ + public static final int CHILD_CARE_VALUE = 1; + /** + * + * + *
+   * The job includes dental services covered by a dental
+   * insurance plan.
+   * 
+ * + * DENTAL = 2; + */ + public static final int DENTAL_VALUE = 2; + /** + * + * + *
+   * The job offers specific benefits to domestic partners.
+   * 
+ * + * DOMESTIC_PARTNER = 3; + */ + public static final int DOMESTIC_PARTNER_VALUE = 3; + /** + * + * + *
+   * The job allows for a flexible work schedule.
+   * 
+ * + * FLEXIBLE_HOURS = 4; + */ + public static final int FLEXIBLE_HOURS_VALUE = 4; + /** + * + * + *
+   * The job includes health services covered by a medical insurance plan.
+   * 
+ * + * MEDICAL = 5; + */ + public static final int MEDICAL_VALUE = 5; + /** + * + * + *
+   * The job includes a life insurance plan provided by the employer or
+   * available for purchase by the employee.
+   * 
+ * + * LIFE_INSURANCE = 6; + */ + public static final int LIFE_INSURANCE_VALUE = 6; + /** + * + * + *
+   * The job allows for a leave of absence to a parent to care for a newborn
+   * child.
+   * 
+ * + * PARENTAL_LEAVE = 7; + */ + public static final int PARENTAL_LEAVE_VALUE = 7; + /** + * + * + *
+   * The job includes a workplace retirement plan provided by the
+   * employer or available for purchase by the employee.
+   * 
+ * + * RETIREMENT_PLAN = 8; + */ + public static final int RETIREMENT_PLAN_VALUE = 8; + /** + * + * + *
+   * The job allows for paid time off due to illness.
+   * 
+ * + * SICK_DAYS = 9; + */ + public static final int SICK_DAYS_VALUE = 9; + /** + * + * + *
+   * The job includes paid time off for vacation.
+   * 
+ * + * VACATION = 10; + */ + public static final int VACATION_VALUE = 10; + /** + * + * + *
+   * The job includes vision services covered by a vision
+   * insurance plan.
+   * 
+ * + * VISION = 11; + */ + public static final int VISION_VALUE = 11; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobBenefit valueOf(int value) { + return forNumber(value); + } + + public static JobBenefit forNumber(int value) { + switch (value) { + case 0: + return JOB_BENEFIT_UNSPECIFIED; + case 1: + return CHILD_CARE; + case 2: + return DENTAL; + case 3: + return DOMESTIC_PARTNER; + case 4: + return FLEXIBLE_HOURS; + case 5: + return MEDICAL; + case 6: + return LIFE_INSURANCE; + case 7: + return PARENTAL_LEAVE; + case 8: + return RETIREMENT_PLAN; + case 9: + return SICK_DAYS; + case 10: + return VACATION; + case 11: + return VISION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobBenefit findValueByNumber(int number) { + return JobBenefit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(1); + } + + private static final JobBenefit[] VALUES = values(); + + public static JobBenefit valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobBenefit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobBenefit) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java new file mode 100644 index 000000000000..ccf521a07d1d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java @@ -0,0 +1,769 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the categorization or primary focus of specific
+ * role. This value is different than the "industry" associated with a role,
+ * which is related to the categorization of the company listing the job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobCategory} + */ +public enum JobCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value if the category isn't specified.
+   * 
+ * + * JOB_CATEGORY_UNSPECIFIED = 0; + */ + JOB_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
+   * An accounting and finance job, such as an Accountant.
+   * 
+ * + * ACCOUNTING_AND_FINANCE = 1; + */ + ACCOUNTING_AND_FINANCE(1), + /** + * + * + *
+   * An administrative and office job, such as an Administrative Assistant.
+   * 
+ * + * ADMINISTRATIVE_AND_OFFICE = 2; + */ + ADMINISTRATIVE_AND_OFFICE(2), + /** + * + * + *
+   * An advertising and marketing job, such as Marketing Manager.
+   * 
+ * + * ADVERTISING_AND_MARKETING = 3; + */ + ADVERTISING_AND_MARKETING(3), + /** + * + * + *
+   * An animal care job, such as Veterinarian.
+   * 
+ * + * ANIMAL_CARE = 4; + */ + ANIMAL_CARE(4), + /** + * + * + *
+   * An art, fashion, or design job, such as Designer.
+   * 
+ * + * ART_FASHION_AND_DESIGN = 5; + */ + ART_FASHION_AND_DESIGN(5), + /** + * + * + *
+   * A business operations job, such as Business Operations Manager.
+   * 
+ * + * BUSINESS_OPERATIONS = 6; + */ + BUSINESS_OPERATIONS(6), + /** + * + * + *
+   * A cleaning and facilities job, such as Custodial Staff.
+   * 
+ * + * CLEANING_AND_FACILITIES = 7; + */ + CLEANING_AND_FACILITIES(7), + /** + * + * + *
+   * A computer and IT job, such as Systems Administrator.
+   * 
+ * + * COMPUTER_AND_IT = 8; + */ + COMPUTER_AND_IT(8), + /** + * + * + *
+   * A construction job, such as General Laborer.
+   * 
+ * + * CONSTRUCTION = 9; + */ + CONSTRUCTION(9), + /** + * + * + *
+   * A customer service job, such s Cashier.
+   * 
+ * + * CUSTOMER_SERVICE = 10; + */ + CUSTOMER_SERVICE(10), + /** + * + * + *
+   * An education job, such as School Teacher.
+   * 
+ * + * EDUCATION = 11; + */ + EDUCATION(11), + /** + * + * + *
+   * An entertainment and travel job, such as Flight Attendant.
+   * 
+ * + * ENTERTAINMENT_AND_TRAVEL = 12; + */ + ENTERTAINMENT_AND_TRAVEL(12), + /** + * + * + *
+   * A farming or outdoor job, such as Park Ranger.
+   * 
+ * + * FARMING_AND_OUTDOORS = 13; + */ + FARMING_AND_OUTDOORS(13), + /** + * + * + *
+   * A healthcare job, such as Registered Nurse.
+   * 
+ * + * HEALTHCARE = 14; + */ + HEALTHCARE(14), + /** + * + * + *
+   * A human resources job, such as Human Resources Director.
+   * 
+ * + * HUMAN_RESOURCES = 15; + */ + HUMAN_RESOURCES(15), + /** + * + * + *
+   * An installation, maintenance, or repair job, such as Electrician.
+   * 
+ * + * INSTALLATION_MAINTENANCE_AND_REPAIR = 16; + */ + INSTALLATION_MAINTENANCE_AND_REPAIR(16), + /** + * + * + *
+   * A legal job, such as Law Clerk.
+   * 
+ * + * LEGAL = 17; + */ + LEGAL(17), + /** + * + * + *
+   * A management job, often used in conjunction with another category,
+   * such as Store Manager.
+   * 
+ * + * MANAGEMENT = 18; + */ + MANAGEMENT(18), + /** + * + * + *
+   * A manufacturing or warehouse job, such as Assembly Technician.
+   * 
+ * + * MANUFACTURING_AND_WAREHOUSE = 19; + */ + MANUFACTURING_AND_WAREHOUSE(19), + /** + * + * + *
+   * A media, communications, or writing job, such as Media Relations.
+   * 
+ * + * MEDIA_COMMUNICATIONS_AND_WRITING = 20; + */ + MEDIA_COMMUNICATIONS_AND_WRITING(20), + /** + * + * + *
+   * An oil, gas or mining job, such as Offshore Driller.
+   * 
+ * + * OIL_GAS_AND_MINING = 21; + */ + OIL_GAS_AND_MINING(21), + /** + * + * + *
+   * A personal care and services job, such as Hair Stylist.
+   * 
+ * + * PERSONAL_CARE_AND_SERVICES = 22; + */ + PERSONAL_CARE_AND_SERVICES(22), + /** + * + * + *
+   * A protective services job, such as Security Guard.
+   * 
+ * + * PROTECTIVE_SERVICES = 23; + */ + PROTECTIVE_SERVICES(23), + /** + * + * + *
+   * A real estate job, such as Buyer's Agent.
+   * 
+ * + * REAL_ESTATE = 24; + */ + REAL_ESTATE(24), + /** + * + * + *
+   * A restaurant and hospitality job, such as Restaurant Server.
+   * 
+ * + * RESTAURANT_AND_HOSPITALITY = 25; + */ + RESTAURANT_AND_HOSPITALITY(25), + /** + * + * + *
+   * A sales and/or retail job, such Sales Associate.
+   * 
+ * + * SALES_AND_RETAIL = 26; + */ + SALES_AND_RETAIL(26), + /** + * + * + *
+   * A science and engineering job, such as Lab Technician.
+   * 
+ * + * SCIENCE_AND_ENGINEERING = 27; + */ + SCIENCE_AND_ENGINEERING(27), + /** + * + * + *
+   * A social services or non-profit job, such as Case Worker.
+   * 
+ * + * SOCIAL_SERVICES_AND_NON_PROFIT = 28; + */ + SOCIAL_SERVICES_AND_NON_PROFIT(28), + /** + * + * + *
+   * A sports, fitness, or recreation job, such as Personal Trainer.
+   * 
+ * + * SPORTS_FITNESS_AND_RECREATION = 29; + */ + SPORTS_FITNESS_AND_RECREATION(29), + /** + * + * + *
+   * A transportation or logistics job, such as Truck Driver.
+   * 
+ * + * TRANSPORTATION_AND_LOGISTICS = 30; + */ + TRANSPORTATION_AND_LOGISTICS(30), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The default value if the category isn't specified.
+   * 
+ * + * JOB_CATEGORY_UNSPECIFIED = 0; + */ + public static final int JOB_CATEGORY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * An accounting and finance job, such as an Accountant.
+   * 
+ * + * ACCOUNTING_AND_FINANCE = 1; + */ + public static final int ACCOUNTING_AND_FINANCE_VALUE = 1; + /** + * + * + *
+   * An administrative and office job, such as an Administrative Assistant.
+   * 
+ * + * ADMINISTRATIVE_AND_OFFICE = 2; + */ + public static final int ADMINISTRATIVE_AND_OFFICE_VALUE = 2; + /** + * + * + *
+   * An advertising and marketing job, such as Marketing Manager.
+   * 
+ * + * ADVERTISING_AND_MARKETING = 3; + */ + public static final int ADVERTISING_AND_MARKETING_VALUE = 3; + /** + * + * + *
+   * An animal care job, such as Veterinarian.
+   * 
+ * + * ANIMAL_CARE = 4; + */ + public static final int ANIMAL_CARE_VALUE = 4; + /** + * + * + *
+   * An art, fashion, or design job, such as Designer.
+   * 
+ * + * ART_FASHION_AND_DESIGN = 5; + */ + public static final int ART_FASHION_AND_DESIGN_VALUE = 5; + /** + * + * + *
+   * A business operations job, such as Business Operations Manager.
+   * 
+ * + * BUSINESS_OPERATIONS = 6; + */ + public static final int BUSINESS_OPERATIONS_VALUE = 6; + /** + * + * + *
+   * A cleaning and facilities job, such as Custodial Staff.
+   * 
+ * + * CLEANING_AND_FACILITIES = 7; + */ + public static final int CLEANING_AND_FACILITIES_VALUE = 7; + /** + * + * + *
+   * A computer and IT job, such as Systems Administrator.
+   * 
+ * + * COMPUTER_AND_IT = 8; + */ + public static final int COMPUTER_AND_IT_VALUE = 8; + /** + * + * + *
+   * A construction job, such as General Laborer.
+   * 
+ * + * CONSTRUCTION = 9; + */ + public static final int CONSTRUCTION_VALUE = 9; + /** + * + * + *
+   * A customer service job, such s Cashier.
+   * 
+ * + * CUSTOMER_SERVICE = 10; + */ + public static final int CUSTOMER_SERVICE_VALUE = 10; + /** + * + * + *
+   * An education job, such as School Teacher.
+   * 
+ * + * EDUCATION = 11; + */ + public static final int EDUCATION_VALUE = 11; + /** + * + * + *
+   * An entertainment and travel job, such as Flight Attendant.
+   * 
+ * + * ENTERTAINMENT_AND_TRAVEL = 12; + */ + public static final int ENTERTAINMENT_AND_TRAVEL_VALUE = 12; + /** + * + * + *
+   * A farming or outdoor job, such as Park Ranger.
+   * 
+ * + * FARMING_AND_OUTDOORS = 13; + */ + public static final int FARMING_AND_OUTDOORS_VALUE = 13; + /** + * + * + *
+   * A healthcare job, such as Registered Nurse.
+   * 
+ * + * HEALTHCARE = 14; + */ + public static final int HEALTHCARE_VALUE = 14; + /** + * + * + *
+   * A human resources job, such as Human Resources Director.
+   * 
+ * + * HUMAN_RESOURCES = 15; + */ + public static final int HUMAN_RESOURCES_VALUE = 15; + /** + * + * + *
+   * An installation, maintenance, or repair job, such as Electrician.
+   * 
+ * + * INSTALLATION_MAINTENANCE_AND_REPAIR = 16; + */ + public static final int INSTALLATION_MAINTENANCE_AND_REPAIR_VALUE = 16; + /** + * + * + *
+   * A legal job, such as Law Clerk.
+   * 
+ * + * LEGAL = 17; + */ + public static final int LEGAL_VALUE = 17; + /** + * + * + *
+   * A management job, often used in conjunction with another category,
+   * such as Store Manager.
+   * 
+ * + * MANAGEMENT = 18; + */ + public static final int MANAGEMENT_VALUE = 18; + /** + * + * + *
+   * A manufacturing or warehouse job, such as Assembly Technician.
+   * 
+ * + * MANUFACTURING_AND_WAREHOUSE = 19; + */ + public static final int MANUFACTURING_AND_WAREHOUSE_VALUE = 19; + /** + * + * + *
+   * A media, communications, or writing job, such as Media Relations.
+   * 
+ * + * MEDIA_COMMUNICATIONS_AND_WRITING = 20; + */ + public static final int MEDIA_COMMUNICATIONS_AND_WRITING_VALUE = 20; + /** + * + * + *
+   * An oil, gas or mining job, such as Offshore Driller.
+   * 
+ * + * OIL_GAS_AND_MINING = 21; + */ + public static final int OIL_GAS_AND_MINING_VALUE = 21; + /** + * + * + *
+   * A personal care and services job, such as Hair Stylist.
+   * 
+ * + * PERSONAL_CARE_AND_SERVICES = 22; + */ + public static final int PERSONAL_CARE_AND_SERVICES_VALUE = 22; + /** + * + * + *
+   * A protective services job, such as Security Guard.
+   * 
+ * + * PROTECTIVE_SERVICES = 23; + */ + public static final int PROTECTIVE_SERVICES_VALUE = 23; + /** + * + * + *
+   * A real estate job, such as Buyer's Agent.
+   * 
+ * + * REAL_ESTATE = 24; + */ + public static final int REAL_ESTATE_VALUE = 24; + /** + * + * + *
+   * A restaurant and hospitality job, such as Restaurant Server.
+   * 
+ * + * RESTAURANT_AND_HOSPITALITY = 25; + */ + public static final int RESTAURANT_AND_HOSPITALITY_VALUE = 25; + /** + * + * + *
+   * A sales and/or retail job, such Sales Associate.
+   * 
+ * + * SALES_AND_RETAIL = 26; + */ + public static final int SALES_AND_RETAIL_VALUE = 26; + /** + * + * + *
+   * A science and engineering job, such as Lab Technician.
+   * 
+ * + * SCIENCE_AND_ENGINEERING = 27; + */ + public static final int SCIENCE_AND_ENGINEERING_VALUE = 27; + /** + * + * + *
+   * A social services or non-profit job, such as Case Worker.
+   * 
+ * + * SOCIAL_SERVICES_AND_NON_PROFIT = 28; + */ + public static final int SOCIAL_SERVICES_AND_NON_PROFIT_VALUE = 28; + /** + * + * + *
+   * A sports, fitness, or recreation job, such as Personal Trainer.
+   * 
+ * + * SPORTS_FITNESS_AND_RECREATION = 29; + */ + public static final int SPORTS_FITNESS_AND_RECREATION_VALUE = 29; + /** + * + * + *
+   * A transportation or logistics job, such as Truck Driver.
+   * 
+ * + * TRANSPORTATION_AND_LOGISTICS = 30; + */ + public static final int TRANSPORTATION_AND_LOGISTICS_VALUE = 30; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobCategory valueOf(int value) { + return forNumber(value); + } + + public static JobCategory forNumber(int value) { + switch (value) { + case 0: + return JOB_CATEGORY_UNSPECIFIED; + case 1: + return ACCOUNTING_AND_FINANCE; + case 2: + return ADMINISTRATIVE_AND_OFFICE; + case 3: + return ADVERTISING_AND_MARKETING; + case 4: + return ANIMAL_CARE; + case 5: + return ART_FASHION_AND_DESIGN; + case 6: + return BUSINESS_OPERATIONS; + case 7: + return CLEANING_AND_FACILITIES; + case 8: + return COMPUTER_AND_IT; + case 9: + return CONSTRUCTION; + case 10: + return CUSTOMER_SERVICE; + case 11: + return EDUCATION; + case 12: + return ENTERTAINMENT_AND_TRAVEL; + case 13: + return FARMING_AND_OUTDOORS; + case 14: + return HEALTHCARE; + case 15: + return HUMAN_RESOURCES; + case 16: + return INSTALLATION_MAINTENANCE_AND_REPAIR; + case 17: + return LEGAL; + case 18: + return MANAGEMENT; + case 19: + return MANUFACTURING_AND_WAREHOUSE; + case 20: + return MEDIA_COMMUNICATIONS_AND_WRITING; + case 21: + return OIL_GAS_AND_MINING; + case 22: + return PERSONAL_CARE_AND_SERVICES; + case 23: + return PROTECTIVE_SERVICES; + case 24: + return REAL_ESTATE; + case 25: + return RESTAURANT_AND_HOSPITALITY; + case 26: + return SALES_AND_RETAIL; + case 27: + return SCIENCE_AND_ENGINEERING; + case 28: + return SOCIAL_SERVICES_AND_NON_PROFIT; + case 29: + return SPORTS_FITNESS_AND_RECREATION; + case 30: + return TRANSPORTATION_AND_LOGISTICS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobCategory findValueByNumber(int number) { + return JobCategory.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(5); + } + + private static final JobCategory[] VALUES = values(); + + public static JobCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobCategory) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java new file mode 100644 index 000000000000..0d60fb0a0927 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java @@ -0,0 +1,1478 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An event issued when a job seeker interacts with the application that
+ * implements Cloud Talent Solution.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobEvent} + */ +public final class JobEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobEvent) + JobEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobEvent.newBuilder() to construct. + private JobEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobEvent() { + type_ = 0; + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jobs_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = jobs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobEvent.class, + com.google.cloud.talent.v4beta1.JobEvent.Builder.class); + } + + /** + * + * + *
+   * An enumeration of an event attributed to the behavior of the end user,
+   * such as a job seeker.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobEvent.JobEventType} + */ + public enum JobEventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The event is unspecified by other provided values.
+     * 
+ * + * JOB_EVENT_TYPE_UNSPECIFIED = 0; + */ + JOB_EVENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The job seeker or other entity interacting with the service has
+     * had a job rendered in their view, such as in a list of search results in
+     * a compressed or clipped format. This event is typically associated with
+     * the viewing of a jobs list on a single page by a job seeker.
+     * 
+ * + * IMPRESSION = 1; + */ + IMPRESSION(1), + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, has
+     * viewed the details of a job, including the full description. This
+     * event doesn't apply to the viewing a snippet of a job appearing as a
+     * part of the job search results. Viewing a snippet is associated with an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]).
+     * 
+ * + * VIEW = 2; + */ + VIEW(2), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to view a job and was redirected to a different
+     * website for job.
+     * 
+ * + * VIEW_REDIRECT = 3; + */ + VIEW_REDIRECT(3), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * began the process or demonstrated the intention of applying for a job.
+     * 
+ * + * APPLICATION_START = 4; + */ + APPLICATION_START(4), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job.
+     * 
+ * + * APPLICATION_FINISH = 5; + */ + APPLICATION_FINISH(5), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job with a single click without
+     * entering information. If a job seeker performs this action, send only
+     * this event to the service. Do not also send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START]
+     * or
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * events.
+     * 
+ * + * APPLICATION_QUICK_SUBMISSION = 6; + */ + APPLICATION_QUICK_SUBMISSION(6), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to apply to a job and was redirected to a different
+     * website to complete the application.
+     * 
+ * + * APPLICATION_REDIRECT = 7; + */ + APPLICATION_REDIRECT(7), + /** + * + * + *
+     * The job seeker or other entity interacting with the service began the
+     * process or demonstrated the intention of applying for a job from the
+     * search results page without viewing the details of the job posting.
+     * If sending this event, JobEventType.VIEW event shouldn't be sent.
+     * 
+ * + * APPLICATION_START_FROM_SEARCH = 8; + */ + APPLICATION_START_FROM_SEARCH(8), + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, performs an
+     * action with a single click from the search results page to apply to a job
+     * (without viewing the details of the job posting), and is redirected
+     * to a different website to complete the application. If a candidate
+     * performs this action, send only this event to the service. Do not also
+     * send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START],
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * or
+     * [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW]
+     * events.
+     * 
+ * + * APPLICATION_REDIRECT_FROM_SEARCH = 9; + */ + APPLICATION_REDIRECT_FROM_SEARCH(9), + /** + * + * + *
+     * This event should be used when a company submits an application
+     * on behalf of a job seeker. This event is intended for use by staffing
+     * agencies attempting to place candidates.
+     * 
+ * + * APPLICATION_COMPANY_SUBMIT = 10; + */ + APPLICATION_COMPANY_SUBMIT(10), + /** + * + * + *
+     * The job seeker or other entity interacting with the service demonstrated
+     * an interest in a job by bookmarking or saving it.
+     * 
+ * + * BOOKMARK = 11; + */ + BOOKMARK(11), + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * sent a notification, such as an email alert or device notification,
+     * containing one or more jobs listings generated by the service.
+     * 
+ * + * NOTIFICATION = 12; + */ + NOTIFICATION(12), + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * employed by the hiring entity (employer). Send this event
+     * only if the job seeker was hired through an application that was
+     * initiated by a search conducted through the Cloud Talent Solution
+     * service.
+     * 
+ * + * HIRED = 13; + */ + HIRED(13), + /** + * + * + *
+     * A recruiter or staffing agency submitted an application on behalf of the
+     * candidate after interacting with the service to identify a suitable job
+     * posting.
+     * 
+ * + * SENT_CV = 14; + */ + SENT_CV(14), + /** + * + * + *
+     * The entity interacting with the service (for example, the job seeker),
+     * was granted an initial interview by the hiring entity (employer). This
+     * event should only be sent if the job seeker was granted an interview as
+     * part of an application that was initiated by a search conducted through /
+     * recommendation provided by the Cloud Talent Solution service.
+     * 
+ * + * INTERVIEW_GRANTED = 15; + */ + INTERVIEW_GRANTED(15), + /** + * + * + *
+     * The job seeker or other entity interacting with the service showed
+     * no interest in the job.
+     * 
+ * + * NOT_INTERESTED = 16; + */ + NOT_INTERESTED(16), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The event is unspecified by other provided values.
+     * 
+ * + * JOB_EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int JOB_EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The job seeker or other entity interacting with the service has
+     * had a job rendered in their view, such as in a list of search results in
+     * a compressed or clipped format. This event is typically associated with
+     * the viewing of a jobs list on a single page by a job seeker.
+     * 
+ * + * IMPRESSION = 1; + */ + public static final int IMPRESSION_VALUE = 1; + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, has
+     * viewed the details of a job, including the full description. This
+     * event doesn't apply to the viewing a snippet of a job appearing as a
+     * part of the job search results. Viewing a snippet is associated with an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]).
+     * 
+ * + * VIEW = 2; + */ + public static final int VIEW_VALUE = 2; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to view a job and was redirected to a different
+     * website for job.
+     * 
+ * + * VIEW_REDIRECT = 3; + */ + public static final int VIEW_REDIRECT_VALUE = 3; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * began the process or demonstrated the intention of applying for a job.
+     * 
+ * + * APPLICATION_START = 4; + */ + public static final int APPLICATION_START_VALUE = 4; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job.
+     * 
+ * + * APPLICATION_FINISH = 5; + */ + public static final int APPLICATION_FINISH_VALUE = 5; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job with a single click without
+     * entering information. If a job seeker performs this action, send only
+     * this event to the service. Do not also send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START]
+     * or
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * events.
+     * 
+ * + * APPLICATION_QUICK_SUBMISSION = 6; + */ + public static final int APPLICATION_QUICK_SUBMISSION_VALUE = 6; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to apply to a job and was redirected to a different
+     * website to complete the application.
+     * 
+ * + * APPLICATION_REDIRECT = 7; + */ + public static final int APPLICATION_REDIRECT_VALUE = 7; + /** + * + * + *
+     * The job seeker or other entity interacting with the service began the
+     * process or demonstrated the intention of applying for a job from the
+     * search results page without viewing the details of the job posting.
+     * If sending this event, JobEventType.VIEW event shouldn't be sent.
+     * 
+ * + * APPLICATION_START_FROM_SEARCH = 8; + */ + public static final int APPLICATION_START_FROM_SEARCH_VALUE = 8; + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, performs an
+     * action with a single click from the search results page to apply to a job
+     * (without viewing the details of the job posting), and is redirected
+     * to a different website to complete the application. If a candidate
+     * performs this action, send only this event to the service. Do not also
+     * send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START],
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * or
+     * [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW]
+     * events.
+     * 
+ * + * APPLICATION_REDIRECT_FROM_SEARCH = 9; + */ + public static final int APPLICATION_REDIRECT_FROM_SEARCH_VALUE = 9; + /** + * + * + *
+     * This event should be used when a company submits an application
+     * on behalf of a job seeker. This event is intended for use by staffing
+     * agencies attempting to place candidates.
+     * 
+ * + * APPLICATION_COMPANY_SUBMIT = 10; + */ + public static final int APPLICATION_COMPANY_SUBMIT_VALUE = 10; + /** + * + * + *
+     * The job seeker or other entity interacting with the service demonstrated
+     * an interest in a job by bookmarking or saving it.
+     * 
+ * + * BOOKMARK = 11; + */ + public static final int BOOKMARK_VALUE = 11; + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * sent a notification, such as an email alert or device notification,
+     * containing one or more jobs listings generated by the service.
+     * 
+ * + * NOTIFICATION = 12; + */ + public static final int NOTIFICATION_VALUE = 12; + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * employed by the hiring entity (employer). Send this event
+     * only if the job seeker was hired through an application that was
+     * initiated by a search conducted through the Cloud Talent Solution
+     * service.
+     * 
+ * + * HIRED = 13; + */ + public static final int HIRED_VALUE = 13; + /** + * + * + *
+     * A recruiter or staffing agency submitted an application on behalf of the
+     * candidate after interacting with the service to identify a suitable job
+     * posting.
+     * 
+ * + * SENT_CV = 14; + */ + public static final int SENT_CV_VALUE = 14; + /** + * + * + *
+     * The entity interacting with the service (for example, the job seeker),
+     * was granted an initial interview by the hiring entity (employer). This
+     * event should only be sent if the job seeker was granted an interview as
+     * part of an application that was initiated by a search conducted through /
+     * recommendation provided by the Cloud Talent Solution service.
+     * 
+ * + * INTERVIEW_GRANTED = 15; + */ + public static final int INTERVIEW_GRANTED_VALUE = 15; + /** + * + * + *
+     * The job seeker or other entity interacting with the service showed
+     * no interest in the job.
+     * 
+ * + * NOT_INTERESTED = 16; + */ + public static final int NOT_INTERESTED_VALUE = 16; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobEventType valueOf(int value) { + return forNumber(value); + } + + public static JobEventType forNumber(int value) { + switch (value) { + case 0: + return JOB_EVENT_TYPE_UNSPECIFIED; + case 1: + return IMPRESSION; + case 2: + return VIEW; + case 3: + return VIEW_REDIRECT; + case 4: + return APPLICATION_START; + case 5: + return APPLICATION_FINISH; + case 6: + return APPLICATION_QUICK_SUBMISSION; + case 7: + return APPLICATION_REDIRECT; + case 8: + return APPLICATION_START_FROM_SEARCH; + case 9: + return APPLICATION_REDIRECT_FROM_SEARCH; + case 10: + return APPLICATION_COMPANY_SUBMIT; + case 11: + return BOOKMARK; + case 12: + return NOTIFICATION; + case 13: + return HIRED; + case 14: + return SENT_CV; + case 15: + return INTERVIEW_GRANTED; + case 16: + return NOT_INTERESTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobEventType findValueByNumber(int number) { + return JobEventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobEvent.getDescriptor().getEnumTypes().get(0); + } + + private static final JobEventType[] VALUES = values(); + + public static JobEventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobEventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobEvent.JobEventType) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.JobEvent.JobEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobEvent.JobEventType result = + com.google.cloud.talent.v4beta1.JobEvent.JobEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.JobEvent.JobEventType.UNRECOGNIZED + : result; + } + + public static final int JOBS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList jobs_; + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ProtocolStringList getJobsList() { + return jobs_; + } + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public java.lang.String getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ByteString getJobsBytes(int index) { + return jobs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.talent.v4beta1.JobEvent.JobEventType.JOB_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + for (int i = 0; i < jobs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.JobEvent.JobEventType.JOB_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + { + int dataSize = 0; + for (int i = 0; i < jobs_.size(); i++) { + dataSize += computeStringSizeNoTag(jobs_.getRaw(i)); + } + size += dataSize; + size += 1 * getJobsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.JobEvent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobEvent other = (com.google.cloud.talent.v4beta1.JobEvent) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getJobsList().equals(other.getJobsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.JobEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobEvent) + com.google.cloud.talent.v4beta1.JobEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobEvent.class, + com.google.cloud.talent.v4beta1.JobEvent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent build() { + com.google.cloud.talent.v4beta1.JobEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent buildPartial() { + com.google.cloud.talent.v4beta1.JobEvent result = + new com.google.cloud.talent.v4beta1.JobEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.type_ = type_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = jobs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.jobs_ = jobs_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobEvent) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobEvent other) { + if (other == com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.JobEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.JobEvent.JobEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobEvent.JobEventType result = + com.google.cloud.talent.v4beta1.JobEvent.JobEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.JobEvent.JobEventType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public Builder setType(com.google.cloud.talent.v4beta1.JobEvent.JobEventType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList jobs_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = new com.google.protobuf.LazyStringArrayList(jobs_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ProtocolStringList getJobsList() { + return jobs_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public java.lang.String getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ByteString getJobsBytes(int index) { + return jobs_.getByteString(index); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder setJobs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder addJobs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder addAllJobs(java.lang.Iterable values) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder clearJobs() { + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder addJobsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobEvent) + private static final com.google.cloud.talent.v4beta1.JobEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobEvent(); + } + + public static com.google.cloud.talent.v4beta1.JobEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java new file mode 100644 index 000000000000..6d63344a67b6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + com.google.cloud.talent.v4beta1.JobEvent.JobEventType getType(); + + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + java.util.List getJobsList(); + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + int getJobsCount(); + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + java.lang.String getJobs(int index); + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + com.google.protobuf.ByteString getJobsBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java new file mode 100644 index 000000000000..79b48a9d0a31 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java @@ -0,0 +1,219 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the required experience level required for the job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobLevel} + */ +public enum JobLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value if the level isn't specified.
+   * 
+ * + * JOB_LEVEL_UNSPECIFIED = 0; + */ + JOB_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+   * Entry-level individual contributors, typically with less than 2 years of
+   * experience in a similar role. Includes interns.
+   * 
+ * + * ENTRY_LEVEL = 1; + */ + ENTRY_LEVEL(1), + /** + * + * + *
+   * Experienced individual contributors, typically with 2+ years of
+   * experience in a similar role.
+   * 
+ * + * EXPERIENCED = 2; + */ + EXPERIENCED(2), + /** + * + * + *
+   * Entry- to mid-level managers responsible for managing a team of people.
+   * 
+ * + * MANAGER = 3; + */ + MANAGER(3), + /** + * + * + *
+   * Senior-level managers responsible for managing teams of managers.
+   * 
+ * + * DIRECTOR = 4; + */ + DIRECTOR(4), + /** + * + * + *
+   * Executive-level managers and above, including C-level positions.
+   * 
+ * + * EXECUTIVE = 5; + */ + EXECUTIVE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The default value if the level isn't specified.
+   * 
+ * + * JOB_LEVEL_UNSPECIFIED = 0; + */ + public static final int JOB_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Entry-level individual contributors, typically with less than 2 years of
+   * experience in a similar role. Includes interns.
+   * 
+ * + * ENTRY_LEVEL = 1; + */ + public static final int ENTRY_LEVEL_VALUE = 1; + /** + * + * + *
+   * Experienced individual contributors, typically with 2+ years of
+   * experience in a similar role.
+   * 
+ * + * EXPERIENCED = 2; + */ + public static final int EXPERIENCED_VALUE = 2; + /** + * + * + *
+   * Entry- to mid-level managers responsible for managing a team of people.
+   * 
+ * + * MANAGER = 3; + */ + public static final int MANAGER_VALUE = 3; + /** + * + * + *
+   * Senior-level managers responsible for managing teams of managers.
+   * 
+ * + * DIRECTOR = 4; + */ + public static final int DIRECTOR_VALUE = 4; + /** + * + * + *
+   * Executive-level managers and above, including C-level positions.
+   * 
+ * + * EXECUTIVE = 5; + */ + public static final int EXECUTIVE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobLevel valueOf(int value) { + return forNumber(value); + } + + public static JobLevel forNumber(int value) { + switch (value) { + case 0: + return JOB_LEVEL_UNSPECIFIED; + case 1: + return ENTRY_LEVEL; + case 2: + return EXPERIENCED; + case 3: + return MANAGER; + case 4: + return DIRECTOR; + case 5: + return EXECUTIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobLevel findValueByNumber(int number) { + return JobLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(4); + } + + private static final JobLevel[] VALUES = values(); + + public static JobLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobLevel) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java new file mode 100644 index 000000000000..5bf3fec9adf1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class JobName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/jobs/{jobs}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String jobs; + + public String getProject() { + return project; + } + + public String getJobs() { + return jobs; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private JobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + jobs = Preconditions.checkNotNull(builder.getJobs()); + } + + public static JobName of(String project, String jobs) { + return newBuilder().setProject(project).setJobs(jobs).build(); + } + + public static String format(String project, String jobs) { + return newBuilder().setProject(project).setJobs(jobs).build().toString(); + } + + public static JobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "JobName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("jobs")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (JobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("jobs", jobs); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "jobs", jobs); + } + + /** Builder for JobName. */ + public static class Builder { + + private String project; + private String jobs; + + public String getProject() { + return project; + } + + public String getJobs() { + return jobs; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setJobs(String jobs) { + this.jobs = jobs; + return this; + } + + private Builder() {} + + private Builder(JobName jobName) { + project = jobName.project; + jobs = jobName.jobs; + } + + public JobName build() { + return new JobName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof JobName) { + JobName that = (JobName) o; + return (this.project.equals(that.project)) && (this.jobs.equals(that.jobs)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= jobs.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java new file mode 100644 index 000000000000..4667ecf62c2f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java @@ -0,0 +1,1291 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + java.lang.String getCompanyName(); + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + com.google.protobuf.ByteString getCompanyNameBytes(); + + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + java.lang.String getRequisitionId(); + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + com.google.protobuf.ByteString getRequisitionIdBytes(); + + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + java.lang.String getTitle(); + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + java.util.List getAddressesList(); + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + int getAddressesCount(); + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + java.lang.String getAddresses(int index); + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + com.google.protobuf.ByteString getAddressesBytes(int index); + + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + boolean hasApplicationInfo(); + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + com.google.cloud.talent.v4beta1.Job.ApplicationInfo getApplicationInfo(); + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder getApplicationInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + java.util.List getJobBenefitsList(); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + int getJobBenefitsCount(); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + com.google.cloud.talent.v4beta1.JobBenefit getJobBenefits(int index); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + java.util.List getJobBenefitsValueList(); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + int getJobBenefitsValue(int index); + + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + boolean hasCompensationInfo(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder getCompensationInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + int getCustomAttributesCount(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + boolean containsCustomAttributes(java.lang.String key); + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getCustomAttributes(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + java.util.Map + getCustomAttributesMap(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + java.util.List getDegreeTypesList(); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + int getDegreeTypesCount(); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + com.google.cloud.talent.v4beta1.DegreeType getDegreeTypes(int index); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + java.util.List getDegreeTypesValueList(); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + int getDegreeTypesValue(int index); + + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + java.lang.String getDepartment(); + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + com.google.protobuf.ByteString getDepartmentBytes(); + + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + java.util.List getEmploymentTypesList(); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + int getEmploymentTypesCount(); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + java.util.List getEmploymentTypesValueList(); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + int getEmploymentTypesValue(int index); + + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + java.lang.String getIncentives(); + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + com.google.protobuf.ByteString getIncentivesBytes(); + + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + int getJobLevelValue(); + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + com.google.cloud.talent.v4beta1.JobLevel getJobLevel(); + + /** + * + * + *
+   * Optional.
+   * A promotion value of the job, as determined by the client.
+   * The value determines the sort order of the jobs returned when searching for
+   * jobs using the featured jobs search call, with higher promotional values
+   * being returned first and ties being resolved by relevance sort. Only the
+   * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+   * Default value is 0, and negative values are treated as 0.
+   * 
+ * + * int32 promotion_value = 17; + */ + int getPromotionValue(); + + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + java.lang.String getQualifications(); + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + com.google.protobuf.ByteString getQualificationsBytes(); + + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + java.lang.String getResponsibilities(); + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + com.google.protobuf.ByteString getResponsibilitiesBytes(); + + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + int getPostingRegionValue(); + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + com.google.cloud.talent.v4beta1.PostingRegion getPostingRegion(); + + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + int getVisibilityValue(); + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + com.google.cloud.talent.v4beta1.Visibility getVisibility(); + + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + boolean hasJobStartTime(); + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + com.google.protobuf.Timestamp getJobStartTime(); + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + com.google.protobuf.TimestampOrBuilder getJobStartTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + boolean hasJobEndTime(); + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + com.google.protobuf.Timestamp getJobEndTime(); + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + com.google.protobuf.TimestampOrBuilder getJobEndTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + boolean hasPostingPublishTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + com.google.protobuf.Timestamp getPostingPublishTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + boolean hasPostingExpireTime(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + com.google.protobuf.Timestamp getPostingExpireTime(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + com.google.protobuf.TimestampOrBuilder getPostingExpireTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + boolean hasPostingCreateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + com.google.protobuf.Timestamp getPostingCreateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + com.google.protobuf.TimestampOrBuilder getPostingCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + boolean hasPostingUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + com.google.protobuf.Timestamp getPostingUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + com.google.protobuf.TimestampOrBuilder getPostingUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + java.lang.String getCompanyDisplayName(); + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + com.google.protobuf.ByteString getCompanyDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + boolean hasDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + com.google.cloud.talent.v4beta1.Job.DerivedInfo getDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder getDerivedInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + boolean hasProcessingOptions(); + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + com.google.cloud.talent.v4beta1.Job.ProcessingOptions getProcessingOptions(); + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder getProcessingOptionsOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java new file mode 100644 index 000000000000..bbe1abacaa37 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java @@ -0,0 +1,4880 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * The query required to perform a search query.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobQuery} + */ +public final class JobQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobQuery) + JobQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobQuery.newBuilder() to construct. + private JobQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobQuery() { + query_ = ""; + companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + locationFilters_ = java.util.Collections.emptyList(); + jobCategories_ = java.util.Collections.emptyList(); + companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + customAttributeFilter_ = ""; + disableSpellCheck_ = false; + employmentTypes_ = java.util.Collections.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + companyNames_.add(s); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + locationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.LocationFilter.parser(), extensionRegistry)); + break; + } + case 32: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + jobCategories_.add(rawValue); + break; + } + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + jobCategories_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.CommuteFilter.Builder subBuilder = null; + if (commuteFilter_ != null) { + subBuilder = commuteFilter_.toBuilder(); + } + commuteFilter_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CommuteFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(commuteFilter_); + commuteFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + companyDisplayNames_.add(s); + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.CompensationFilter.Builder subBuilder = null; + if (compensationFilter_ != null) { + subBuilder = compensationFilter_.toBuilder(); + } + compensationFilter_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compensationFilter_); + compensationFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + customAttributeFilter_ = s; + break; + } + case 72: + { + disableSpellCheck_ = input.readBool(); + break; + } + case 80: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + employmentTypes_.add(rawValue); + break; + } + case 82: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + employmentTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000400; + } + languageCodes_.add(s); + break; + } + case 98: + { + com.google.cloud.talent.v4beta1.TimestampRange.Builder subBuilder = null; + if (publishTimeRange_ != null) { + subBuilder = publishTimeRange_.toBuilder(); + } + publishTimeRange_ = + input.readMessage( + com.google.cloud.talent.v4beta1.TimestampRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(publishTimeRange_); + publishTimeRange_ = subBuilder.buildPartial(); + } + + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00001000; + } + excludedJobs_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = companyNames_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = companyDisplayNames_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = excludedJobs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobQuery.class, + com.google.cloud.talent.v4beta1.JobQuery.Builder.class); + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_NAMES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList companyNames_; + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ProtocolStringList getCompanyNamesList() { + return companyNames_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public int getCompanyNamesCount() { + return companyNames_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public java.lang.String getCompanyNames(int index) { + return companyNames_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ByteString getCompanyNamesBytes(int index) { + return companyNames_.getByteString(index); + } + + public static final int LOCATION_FILTERS_FIELD_NUMBER = 3; + private java.util.List locationFilters_; + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List getLocationFiltersList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public int getLocationFiltersCount() { + return locationFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + return locationFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + return locationFilters_.get(index); + } + + public static final int JOB_CATEGORIES_FIELD_NUMBER = 4; + private java.util.List jobCategories_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory> + jobCategories_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>() { + public com.google.cloud.talent.v4beta1.JobCategory convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobCategory result = + com.google.cloud.talent.v4beta1.JobCategory.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.JobCategory.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesValueList() { + return jobCategories_; + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + + private int jobCategoriesMemoizedSerializedSize; + + public static final int COMMUTE_FILTER_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.CommuteFilter commuteFilter_; + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public boolean hasCommuteFilter() { + return commuteFilter_ != null; + } + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter() { + return commuteFilter_ == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance() + : commuteFilter_; + } + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder() { + return getCommuteFilter(); + } + + public static final int COMPANY_DISPLAY_NAMES_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList companyDisplayNames_; + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ProtocolStringList getCompanyDisplayNamesList() { + return companyDisplayNames_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public int getCompanyDisplayNamesCount() { + return companyDisplayNames_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public java.lang.String getCompanyDisplayNames(int index) { + return companyDisplayNames_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index) { + return companyDisplayNames_.getByteString(index); + } + + public static final int COMPENSATION_FILTER_FIELD_NUMBER = 7; + private com.google.cloud.talent.v4beta1.CompensationFilter compensationFilter_; + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public boolean hasCompensationFilter() { + return compensationFilter_ != null; + } + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter() { + return compensationFilter_ == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance() + : compensationFilter_; + } + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder + getCompensationFilterOrBuilder() { + return getCompensationFilter(); + } + + public static final int CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER = 8; + private volatile java.lang.Object customAttributeFilter_; + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + public java.lang.String getCustomAttributeFilter() { + java.lang.Object ref = customAttributeFilter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customAttributeFilter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + public com.google.protobuf.ByteString getCustomAttributeFilterBytes() { + java.lang.Object ref = customAttributeFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customAttributeFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLE_SPELL_CHECK_FIELD_NUMBER = 9; + private boolean disableSpellCheck_; + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If false, the
+   * service attempts to correct a misspelled query,
+   * for example, "enginee" is corrected to "engineer".
+   * Defaults to false: a spell check is performed.
+   * 
+ * + * bool disable_spell_check = 9; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + + public static final int EMPLOYMENT_TYPES_FIELD_NUMBER = 10; + private java.util.List employmentTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType> + employmentTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>() { + public com.google.cloud.talent.v4beta1.EmploymentType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmploymentType result = + com.google.cloud.talent.v4beta1.EmploymentType.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.EmploymentType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesValueList() { + return employmentTypes_; + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + + private int employmentTypesMemoizedSerializedSize; + + public static final int LANGUAGE_CODES_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList languageCodes_; + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + + public static final int PUBLISH_TIME_RANGE_FIELD_NUMBER = 12; + private com.google.cloud.talent.v4beta1.TimestampRange publishTimeRange_; + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public boolean hasPublishTimeRange() { + return publishTimeRange_ != null; + } + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange() { + return publishTimeRange_ == null + ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() + : publishTimeRange_; + } + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder() { + return getPublishTimeRange(); + } + + public static final int EXCLUDED_JOBS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList excludedJobs_; + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ProtocolStringList getExcludedJobsList() { + return excludedJobs_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public int getExcludedJobsCount() { + return excludedJobs_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public java.lang.String getExcludedJobs(int index) { + return excludedJobs_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ByteString getExcludedJobsBytes(int index) { + return excludedJobs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + for (int i = 0; i < companyNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companyNames_.getRaw(i)); + } + for (int i = 0; i < locationFilters_.size(); i++) { + output.writeMessage(3, locationFilters_.get(i)); + } + if (getJobCategoriesList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(jobCategoriesMemoizedSerializedSize); + } + for (int i = 0; i < jobCategories_.size(); i++) { + output.writeEnumNoTag(jobCategories_.get(i)); + } + if (commuteFilter_ != null) { + output.writeMessage(5, getCommuteFilter()); + } + for (int i = 0; i < companyDisplayNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, companyDisplayNames_.getRaw(i)); + } + if (compensationFilter_ != null) { + output.writeMessage(7, getCompensationFilter()); + } + if (!getCustomAttributeFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, customAttributeFilter_); + } + if (disableSpellCheck_ != false) { + output.writeBool(9, disableSpellCheck_); + } + if (getEmploymentTypesList().size() > 0) { + output.writeUInt32NoTag(82); + output.writeUInt32NoTag(employmentTypesMemoizedSerializedSize); + } + for (int i = 0; i < employmentTypes_.size(); i++) { + output.writeEnumNoTag(employmentTypes_.get(i)); + } + for (int i = 0; i < languageCodes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, languageCodes_.getRaw(i)); + } + if (publishTimeRange_ != null) { + output.writeMessage(12, getPublishTimeRange()); + } + for (int i = 0; i < excludedJobs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, excludedJobs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + { + int dataSize = 0; + for (int i = 0; i < companyNames_.size(); i++) { + dataSize += computeStringSizeNoTag(companyNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getCompanyNamesList().size(); + } + for (int i = 0; i < locationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, locationFilters_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < jobCategories_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(jobCategories_.get(i)); + } + size += dataSize; + if (!getJobCategoriesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + jobCategoriesMemoizedSerializedSize = dataSize; + } + if (commuteFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommuteFilter()); + } + { + int dataSize = 0; + for (int i = 0; i < companyDisplayNames_.size(); i++) { + dataSize += computeStringSizeNoTag(companyDisplayNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getCompanyDisplayNamesList().size(); + } + if (compensationFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCompensationFilter()); + } + if (!getCustomAttributeFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, customAttributeFilter_); + } + if (disableSpellCheck_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, disableSpellCheck_); + } + { + int dataSize = 0; + for (int i = 0; i < employmentTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(employmentTypes_.get(i)); + } + size += dataSize; + if (!getEmploymentTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + employmentTypesMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < languageCodes_.size(); i++) { + dataSize += computeStringSizeNoTag(languageCodes_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguageCodesList().size(); + } + if (publishTimeRange_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPublishTimeRange()); + } + { + int dataSize = 0; + for (int i = 0; i < excludedJobs_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedJobs_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedJobsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.JobQuery)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobQuery other = (com.google.cloud.talent.v4beta1.JobQuery) obj; + + boolean result = true; + result = result && getQuery().equals(other.getQuery()); + result = result && getCompanyNamesList().equals(other.getCompanyNamesList()); + result = result && getLocationFiltersList().equals(other.getLocationFiltersList()); + result = result && jobCategories_.equals(other.jobCategories_); + result = result && (hasCommuteFilter() == other.hasCommuteFilter()); + if (hasCommuteFilter()) { + result = result && getCommuteFilter().equals(other.getCommuteFilter()); + } + result = result && getCompanyDisplayNamesList().equals(other.getCompanyDisplayNamesList()); + result = result && (hasCompensationFilter() == other.hasCompensationFilter()); + if (hasCompensationFilter()) { + result = result && getCompensationFilter().equals(other.getCompensationFilter()); + } + result = result && getCustomAttributeFilter().equals(other.getCustomAttributeFilter()); + result = result && (getDisableSpellCheck() == other.getDisableSpellCheck()); + result = result && employmentTypes_.equals(other.employmentTypes_); + result = result && getLanguageCodesList().equals(other.getLanguageCodesList()); + result = result && (hasPublishTimeRange() == other.hasPublishTimeRange()); + if (hasPublishTimeRange()) { + result = result && getPublishTimeRange().equals(other.getPublishTimeRange()); + } + result = result && getExcludedJobsList().equals(other.getExcludedJobsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getCompanyNamesCount() > 0) { + hash = (37 * hash) + COMPANY_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getCompanyNamesList().hashCode(); + } + if (getLocationFiltersCount() > 0) { + hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getLocationFiltersList().hashCode(); + } + if (getJobCategoriesCount() > 0) { + hash = (37 * hash) + JOB_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + jobCategories_.hashCode(); + } + if (hasCommuteFilter()) { + hash = (37 * hash) + COMMUTE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCommuteFilter().hashCode(); + } + if (getCompanyDisplayNamesCount() > 0) { + hash = (37 * hash) + COMPANY_DISPLAY_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getCompanyDisplayNamesList().hashCode(); + } + if (hasCompensationFilter()) { + hash = (37 * hash) + COMPENSATION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCompensationFilter().hashCode(); + } + hash = (37 * hash) + CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCustomAttributeFilter().hashCode(); + hash = (37 * hash) + DISABLE_SPELL_CHECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSpellCheck()); + if (getEmploymentTypesCount() > 0) { + hash = (37 * hash) + EMPLOYMENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + employmentTypes_.hashCode(); + } + if (getLanguageCodesCount() > 0) { + hash = (37 * hash) + LANGUAGE_CODES_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCodesList().hashCode(); + } + if (hasPublishTimeRange()) { + hash = (37 * hash) + PUBLISH_TIME_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getPublishTimeRange().hashCode(); + } + if (getExcludedJobsCount() > 0) { + hash = (37 * hash) + EXCLUDED_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedJobsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.JobQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * The query required to perform a search query.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobQuery) + com.google.cloud.talent.v4beta1.JobQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobQuery.class, + com.google.cloud.talent.v4beta1.JobQuery.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationFiltersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + query_ = ""; + + companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + locationFiltersBuilder_.clear(); + } + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + if (commuteFilterBuilder_ == null) { + commuteFilter_ = null; + } else { + commuteFilter_ = null; + commuteFilterBuilder_ = null; + } + companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + if (compensationFilterBuilder_ == null) { + compensationFilter_ = null; + } else { + compensationFilter_ = null; + compensationFilterBuilder_ = null; + } + customAttributeFilter_ = ""; + + disableSpellCheck_ = false; + + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + if (publishTimeRangeBuilder_ == null) { + publishTimeRange_ = null; + } else { + publishTimeRange_ = null; + publishTimeRangeBuilder_ = null; + } + excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery build() { + com.google.cloud.talent.v4beta1.JobQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery buildPartial() { + com.google.cloud.talent.v4beta1.JobQuery result = + new com.google.cloud.talent.v4beta1.JobQuery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.query_ = query_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = companyNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.companyNames_ = companyNames_; + if (locationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.locationFilters_ = locationFilters_; + } else { + result.locationFilters_ = locationFiltersBuilder_.build(); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.jobCategories_ = jobCategories_; + if (commuteFilterBuilder_ == null) { + result.commuteFilter_ = commuteFilter_; + } else { + result.commuteFilter_ = commuteFilterBuilder_.build(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = companyDisplayNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.companyDisplayNames_ = companyDisplayNames_; + if (compensationFilterBuilder_ == null) { + result.compensationFilter_ = compensationFilter_; + } else { + result.compensationFilter_ = compensationFilterBuilder_.build(); + } + result.customAttributeFilter_ = customAttributeFilter_; + result.disableSpellCheck_ = disableSpellCheck_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.employmentTypes_ = employmentTypes_; + if (((bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.languageCodes_ = languageCodes_; + if (publishTimeRangeBuilder_ == null) { + result.publishTimeRange_ = publishTimeRange_; + } else { + result.publishTimeRange_ = publishTimeRangeBuilder_.build(); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = excludedJobs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.excludedJobs_ = excludedJobs_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobQuery) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { + if (other == com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (!other.companyNames_.isEmpty()) { + if (companyNames_.isEmpty()) { + companyNames_ = other.companyNames_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCompanyNamesIsMutable(); + companyNames_.addAll(other.companyNames_); + } + onChanged(); + } + if (locationFiltersBuilder_ == null) { + if (!other.locationFilters_.isEmpty()) { + if (locationFilters_.isEmpty()) { + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLocationFiltersIsMutable(); + locationFilters_.addAll(other.locationFilters_); + } + onChanged(); + } + } else { + if (!other.locationFilters_.isEmpty()) { + if (locationFiltersBuilder_.isEmpty()) { + locationFiltersBuilder_.dispose(); + locationFiltersBuilder_ = null; + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + locationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationFiltersFieldBuilder() + : null; + } else { + locationFiltersBuilder_.addAllMessages(other.locationFilters_); + } + } + } + if (!other.jobCategories_.isEmpty()) { + if (jobCategories_.isEmpty()) { + jobCategories_ = other.jobCategories_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureJobCategoriesIsMutable(); + jobCategories_.addAll(other.jobCategories_); + } + onChanged(); + } + if (other.hasCommuteFilter()) { + mergeCommuteFilter(other.getCommuteFilter()); + } + if (!other.companyDisplayNames_.isEmpty()) { + if (companyDisplayNames_.isEmpty()) { + companyDisplayNames_ = other.companyDisplayNames_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.addAll(other.companyDisplayNames_); + } + onChanged(); + } + if (other.hasCompensationFilter()) { + mergeCompensationFilter(other.getCompensationFilter()); + } + if (!other.getCustomAttributeFilter().isEmpty()) { + customAttributeFilter_ = other.customAttributeFilter_; + onChanged(); + } + if (other.getDisableSpellCheck() != false) { + setDisableSpellCheck(other.getDisableSpellCheck()); + } + if (!other.employmentTypes_.isEmpty()) { + if (employmentTypes_.isEmpty()) { + employmentTypes_ = other.employmentTypes_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureEmploymentTypesIsMutable(); + employmentTypes_.addAll(other.employmentTypes_); + } + onChanged(); + } + if (!other.languageCodes_.isEmpty()) { + if (languageCodes_.isEmpty()) { + languageCodes_ = other.languageCodes_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureLanguageCodesIsMutable(); + languageCodes_.addAll(other.languageCodes_); + } + onChanged(); + } + if (other.hasPublishTimeRange()) { + mergePublishTimeRange(other.getPublishTimeRange()); + } + if (!other.excludedJobs_.isEmpty()) { + if (excludedJobs_.isEmpty()) { + excludedJobs_ = other.excludedJobs_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureExcludedJobsIsMutable(); + excludedJobs_.addAll(other.excludedJobs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.JobQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object query_ = ""; + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList companyNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCompanyNamesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = new com.google.protobuf.LazyStringArrayList(companyNames_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ProtocolStringList getCompanyNamesList() { + return companyNames_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public int getCompanyNamesCount() { + return companyNames_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public java.lang.String getCompanyNames(int index) { + return companyNames_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ByteString getCompanyNamesBytes(int index) { + return companyNames_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder setCompanyNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyNamesIsMutable(); + companyNames_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder addCompanyNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyNamesIsMutable(); + companyNames_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder addAllCompanyNames(java.lang.Iterable values) { + ensureCompanyNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companyNames_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder clearCompanyNames() { + companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder addCompanyNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCompanyNamesIsMutable(); + companyNames_.add(value); + onChanged(); + return this; + } + + private java.util.List locationFilters_ = + java.util.Collections.emptyList(); + + private void ensureLocationFiltersIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = + new java.util.ArrayList( + locationFilters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + locationFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List getLocationFiltersList() { + if (locationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationFilters_); + } else { + return locationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public int getLocationFiltersCount() { + if (locationFiltersBuilder_ == null) { + return locationFilters_.size(); + } else { + return locationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, value); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters(com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters( + com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addAllLocationFilters( + java.lang.Iterable values) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_); + onChanged(); + } else { + locationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder clearLocationFilters() { + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + locationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder removeLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.remove(index); + onChanged(); + } else { + locationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder getLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + if (locationFiltersBuilder_ != null) { + return locationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder() { + return getLocationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List + getLocationFiltersBuilderList() { + return getLocationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + getLocationFiltersFieldBuilder() { + if (locationFiltersBuilder_ == null) { + locationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>( + locationFilters_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + locationFilters_ = null; + } + return locationFiltersBuilder_; + } + + private java.util.List jobCategories_ = java.util.Collections.emptyList(); + + private void ensureJobCategoriesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = new java.util.ArrayList(jobCategories_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder setJobCategories(int index, com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addJobCategories(com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addAllJobCategories( + java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (com.google.cloud.talent.v4beta1.JobCategory value : values) { + jobCategories_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder clearJobCategories() { + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesValueList() { + return java.util.Collections.unmodifiableList(jobCategories_); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder setJobCategoriesValue(int index, int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addJobCategoriesValue(int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addAllJobCategoriesValue(java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (int value : values) { + jobCategories_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CommuteFilter commuteFilter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CommuteFilter, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder, + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder> + commuteFilterBuilder_; + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public boolean hasCommuteFilter() { + return commuteFilterBuilder_ != null || commuteFilter_ != null; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter() { + if (commuteFilterBuilder_ == null) { + return commuteFilter_ == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance() + : commuteFilter_; + } else { + return commuteFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder setCommuteFilter(com.google.cloud.talent.v4beta1.CommuteFilter value) { + if (commuteFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commuteFilter_ = value; + onChanged(); + } else { + commuteFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder setCommuteFilter( + com.google.cloud.talent.v4beta1.CommuteFilter.Builder builderForValue) { + if (commuteFilterBuilder_ == null) { + commuteFilter_ = builderForValue.build(); + onChanged(); + } else { + commuteFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder mergeCommuteFilter(com.google.cloud.talent.v4beta1.CommuteFilter value) { + if (commuteFilterBuilder_ == null) { + if (commuteFilter_ != null) { + commuteFilter_ = + com.google.cloud.talent.v4beta1.CommuteFilter.newBuilder(commuteFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + commuteFilter_ = value; + } + onChanged(); + } else { + commuteFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder clearCommuteFilter() { + if (commuteFilterBuilder_ == null) { + commuteFilter_ = null; + onChanged(); + } else { + commuteFilter_ = null; + commuteFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter.Builder getCommuteFilterBuilder() { + + onChanged(); + return getCommuteFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder() { + if (commuteFilterBuilder_ != null) { + return commuteFilterBuilder_.getMessageOrBuilder(); + } else { + return commuteFilter_ == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance() + : commuteFilter_; + } + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CommuteFilter, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder, + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder> + getCommuteFilterFieldBuilder() { + if (commuteFilterBuilder_ == null) { + commuteFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CommuteFilter, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder, + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder>( + getCommuteFilter(), getParentForChildren(), isClean()); + commuteFilter_ = null; + } + return commuteFilterBuilder_; + } + + private com.google.protobuf.LazyStringList companyDisplayNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCompanyDisplayNamesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = new com.google.protobuf.LazyStringArrayList(companyDisplayNames_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ProtocolStringList getCompanyDisplayNamesList() { + return companyDisplayNames_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public int getCompanyDisplayNamesCount() { + return companyDisplayNames_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public java.lang.String getCompanyDisplayNames(int index) { + return companyDisplayNames_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index) { + return companyDisplayNames_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder setCompanyDisplayNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder addCompanyDisplayNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder addAllCompanyDisplayNames(java.lang.Iterable values) { + ensureCompanyDisplayNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companyDisplayNames_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder clearCompanyDisplayNames() { + companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder addCompanyDisplayNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CompensationFilter compensationFilter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationFilter, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder, + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder> + compensationFilterBuilder_; + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public boolean hasCompensationFilter() { + return compensationFilterBuilder_ != null || compensationFilter_ != null; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter() { + if (compensationFilterBuilder_ == null) { + return compensationFilter_ == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance() + : compensationFilter_; + } else { + return compensationFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder setCompensationFilter(com.google.cloud.talent.v4beta1.CompensationFilter value) { + if (compensationFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationFilter_ = value; + onChanged(); + } else { + compensationFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder setCompensationFilter( + com.google.cloud.talent.v4beta1.CompensationFilter.Builder builderForValue) { + if (compensationFilterBuilder_ == null) { + compensationFilter_ = builderForValue.build(); + onChanged(); + } else { + compensationFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder mergeCompensationFilter( + com.google.cloud.talent.v4beta1.CompensationFilter value) { + if (compensationFilterBuilder_ == null) { + if (compensationFilter_ != null) { + compensationFilter_ = + com.google.cloud.talent.v4beta1.CompensationFilter.newBuilder(compensationFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationFilter_ = value; + } + onChanged(); + } else { + compensationFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder clearCompensationFilter() { + if (compensationFilterBuilder_ == null) { + compensationFilter_ = null; + onChanged(); + } else { + compensationFilter_ = null; + compensationFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter.Builder + getCompensationFilterBuilder() { + + onChanged(); + return getCompensationFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder + getCompensationFilterOrBuilder() { + if (compensationFilterBuilder_ != null) { + return compensationFilterBuilder_.getMessageOrBuilder(); + } else { + return compensationFilter_ == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance() + : compensationFilter_; + } + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationFilter, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder, + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder> + getCompensationFilterFieldBuilder() { + if (compensationFilterBuilder_ == null) { + compensationFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationFilter, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder, + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder>( + getCompensationFilter(), getParentForChildren(), isClean()); + compensationFilter_ = null; + } + return compensationFilterBuilder_; + } + + private java.lang.Object customAttributeFilter_ = ""; + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public java.lang.String getCustomAttributeFilter() { + java.lang.Object ref = customAttributeFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customAttributeFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public com.google.protobuf.ByteString getCustomAttributeFilterBytes() { + java.lang.Object ref = customAttributeFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customAttributeFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public Builder setCustomAttributeFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customAttributeFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public Builder clearCustomAttributeFilter() { + + customAttributeFilter_ = getDefaultInstance().getCustomAttributeFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public Builder setCustomAttributeFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customAttributeFilter_ = value; + onChanged(); + return this; + } + + private boolean disableSpellCheck_; + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If false, the
+     * service attempts to correct a misspelled query,
+     * for example, "enginee" is corrected to "engineer".
+     * Defaults to false: a spell check is performed.
+     * 
+ * + * bool disable_spell_check = 9; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If false, the
+     * service attempts to correct a misspelled query,
+     * for example, "enginee" is corrected to "engineer".
+     * Defaults to false: a spell check is performed.
+     * 
+ * + * bool disable_spell_check = 9; + */ + public Builder setDisableSpellCheck(boolean value) { + + disableSpellCheck_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If false, the
+     * service attempts to correct a misspelled query,
+     * for example, "enginee" is corrected to "engineer".
+     * Defaults to false: a spell check is performed.
+     * 
+ * + * bool disable_spell_check = 9; + */ + public Builder clearDisableSpellCheck() { + + disableSpellCheck_ = false; + onChanged(); + return this; + } + + private java.util.List employmentTypes_ = java.util.Collections.emptyList(); + + private void ensureEmploymentTypesIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = new java.util.ArrayList(employmentTypes_); + bitField0_ |= 0x00000200; + } + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder setEmploymentTypes( + int index, com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addEmploymentTypes(com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addAllEmploymentTypes( + java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (com.google.cloud.talent.v4beta1.EmploymentType value : values) { + employmentTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder clearEmploymentTypes() { + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesValueList() { + return java.util.Collections.unmodifiableList(employmentTypes_); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder setEmploymentTypesValue(int index, int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addEmploymentTypesValue(int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addAllEmploymentTypesValue(java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (int value : values) { + employmentTypes_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList languageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLanguageCodesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); + bitField0_ |= 0x00000400; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder addAllLanguageCodes(java.lang.Iterable values) { + ensureLanguageCodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder clearLanguageCodes() { + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.TimestampRange publishTimeRange_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimestampRange, + com.google.cloud.talent.v4beta1.TimestampRange.Builder, + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder> + publishTimeRangeBuilder_; + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public boolean hasPublishTimeRange() { + return publishTimeRangeBuilder_ != null || publishTimeRange_ != null; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange() { + if (publishTimeRangeBuilder_ == null) { + return publishTimeRange_ == null + ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() + : publishTimeRange_; + } else { + return publishTimeRangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder setPublishTimeRange(com.google.cloud.talent.v4beta1.TimestampRange value) { + if (publishTimeRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publishTimeRange_ = value; + onChanged(); + } else { + publishTimeRangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder setPublishTimeRange( + com.google.cloud.talent.v4beta1.TimestampRange.Builder builderForValue) { + if (publishTimeRangeBuilder_ == null) { + publishTimeRange_ = builderForValue.build(); + onChanged(); + } else { + publishTimeRangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder mergePublishTimeRange(com.google.cloud.talent.v4beta1.TimestampRange value) { + if (publishTimeRangeBuilder_ == null) { + if (publishTimeRange_ != null) { + publishTimeRange_ = + com.google.cloud.talent.v4beta1.TimestampRange.newBuilder(publishTimeRange_) + .mergeFrom(value) + .buildPartial(); + } else { + publishTimeRange_ = value; + } + onChanged(); + } else { + publishTimeRangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder clearPublishTimeRange() { + if (publishTimeRangeBuilder_ == null) { + publishTimeRange_ = null; + onChanged(); + } else { + publishTimeRange_ = null; + publishTimeRangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRange.Builder getPublishTimeRangeBuilder() { + + onChanged(); + return getPublishTimeRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder() { + if (publishTimeRangeBuilder_ != null) { + return publishTimeRangeBuilder_.getMessageOrBuilder(); + } else { + return publishTimeRange_ == null + ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() + : publishTimeRange_; + } + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimestampRange, + com.google.cloud.talent.v4beta1.TimestampRange.Builder, + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder> + getPublishTimeRangeFieldBuilder() { + if (publishTimeRangeBuilder_ == null) { + publishTimeRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimestampRange, + com.google.cloud.talent.v4beta1.TimestampRange.Builder, + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder>( + getPublishTimeRange(), getParentForChildren(), isClean()); + publishTimeRange_ = null; + } + return publishTimeRangeBuilder_; + } + + private com.google.protobuf.LazyStringList excludedJobs_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureExcludedJobsIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = new com.google.protobuf.LazyStringArrayList(excludedJobs_); + bitField0_ |= 0x00001000; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ProtocolStringList getExcludedJobsList() { + return excludedJobs_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public int getExcludedJobsCount() { + return excludedJobs_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public java.lang.String getExcludedJobs(int index) { + return excludedJobs_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ByteString getExcludedJobsBytes(int index) { + return excludedJobs_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder setExcludedJobs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedJobsIsMutable(); + excludedJobs_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder addExcludedJobs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedJobsIsMutable(); + excludedJobs_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder addAllExcludedJobs(java.lang.Iterable values) { + ensureExcludedJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedJobs_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder clearExcludedJobs() { + excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder addExcludedJobsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedJobsIsMutable(); + excludedJobs_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobQuery) + private static final com.google.cloud.talent.v4beta1.JobQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobQuery(); + } + + public static com.google.cloud.talent.v4beta1.JobQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java new file mode 100644 index 000000000000..a087101e8b33 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java @@ -0,0 +1,771 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + java.util.List getCompanyNamesList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + int getCompanyNamesCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + java.lang.String getCompanyNames(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + com.google.protobuf.ByteString getCompanyNamesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + java.util.List getLocationFiltersList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + int getLocationFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + java.util.List + getLocationFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + java.util.List getJobCategoriesList(); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + int getJobCategoriesCount(); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + java.util.List getJobCategoriesValueList(); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + int getJobCategoriesValue(int index); + + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + boolean hasCommuteFilter(); + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter(); + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + java.util.List getCompanyDisplayNamesList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + int getCompanyDisplayNamesCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + java.lang.String getCompanyDisplayNames(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + boolean hasCompensationFilter(); + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter(); + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder getCompensationFilterOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + java.lang.String getCustomAttributeFilter(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + com.google.protobuf.ByteString getCustomAttributeFilterBytes(); + + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If false, the
+   * service attempts to correct a misspelled query,
+   * for example, "enginee" is corrected to "engineer".
+   * Defaults to false: a spell check is performed.
+   * 
+ * + * bool disable_spell_check = 9; + */ + boolean getDisableSpellCheck(); + + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + java.util.List getEmploymentTypesList(); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + int getEmploymentTypesCount(); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + java.util.List getEmploymentTypesValueList(); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + int getEmploymentTypesValue(int index); + + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + java.util.List getLanguageCodesList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + int getLanguageCodesCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + java.lang.String getLanguageCodes(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + com.google.protobuf.ByteString getLanguageCodesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + boolean hasPublishTimeRange(); + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange(); + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + java.util.List getExcludedJobsList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + int getExcludedJobsCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + java.lang.String getExcludedJobs(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + com.google.protobuf.ByteString getExcludedJobsBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java new file mode 100644 index 000000000000..5c503c1d3997 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job.proto + +package com.google.cloud.talent.v4beta1; + +public final class JobResourceProto { + private JobResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/talent/v4beta1/job.proto\022" + + "\033google.cloud.talent.v4beta1\032\034google/api" + + "/annotations.proto\032(google/cloud/talent/" + + "v4beta1/common.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\254\016\n\003Job\022\014\n\004name\030\001 \001(\t\022\024\n\014c" + + "ompany_name\030\002 \001(\t\022\026\n\016requisition_id\030\003 \001(" + + "\t\022\r\n\005title\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022\021\n" + + "\taddresses\030\006 \003(\t\022J\n\020application_info\030\007 \001" + + "(\01320.google.cloud.talent.v4beta1.Job.App" + + "licationInfo\022=\n\014job_benefits\030\010 \003(\0162\'.goo" + + "gle.cloud.talent.v4beta1.JobBenefit\022H\n\021c" + + "ompensation_info\030\t \001(\0132-.google.cloud.ta" + + "lent.v4beta1.CompensationInfo\022Q\n\021custom_" + + "attributes\030\n \003(\01326.google.cloud.talent.v" + + "4beta1.Job.CustomAttributesEntry\022=\n\014degr" + + "ee_types\030\013 \003(\0162\'.google.cloud.talent.v4b" + + "eta1.DegreeType\022\022\n\ndepartment\030\014 \001(\t\022E\n\020e" + + "mployment_types\030\r \003(\0162+.google.cloud.tal" + + "ent.v4beta1.EmploymentType\022\022\n\nincentives" + + "\030\016 \001(\t\022\025\n\rlanguage_code\030\017 \001(\t\0228\n\tjob_lev" + + "el\030\020 \001(\0162%.google.cloud.talent.v4beta1.J" + + "obLevel\022\027\n\017promotion_value\030\021 \001(\005\022\026\n\016qual" + + "ifications\030\022 \001(\t\022\030\n\020responsibilities\030\023 \001" + + "(\t\022B\n\016posting_region\030\024 \001(\0162*.google.clou" + + "d.talent.v4beta1.PostingRegion\022;\n\nvisibi" + + "lity\030\025 \001(\0162\'.google.cloud.talent.v4beta1" + + ".Visibility\0222\n\016job_start_time\030\026 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\0220\n\014job_end_time\030" + + "\027 \001(\0132\032.google.protobuf.Timestamp\0228\n\024pos" + + "ting_publish_time\030\030 \001(\0132\032.google.protobu" + + "f.Timestamp\0227\n\023posting_expire_time\030\031 \001(\013" + + "2\032.google.protobuf.Timestamp\0227\n\023posting_" + + "create_time\030\032 \001(\0132\032.google.protobuf.Time" + + "stamp\0227\n\023posting_update_time\030\033 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\034\n\024company_displa" + + "y_name\030\034 \001(\t\022B\n\014derived_info\030\035 \001(\0132,.goo" + + "gle.cloud.talent.v4beta1.Job.DerivedInfo" + + "\022N\n\022processing_options\030\036 \001(\01322.google.cl" + + "oud.talent.v4beta1.Job.ProcessingOptions" + + "\032D\n\017ApplicationInfo\022\016\n\006emails\030\001 \003(\t\022\023\n\013i" + + "nstruction\030\002 \001(\t\022\014\n\004uris\030\003 \003(\t\032\211\001\n\013Deriv" + + "edInfo\0228\n\tlocations\030\001 \003(\0132%.google.cloud" + + ".talent.v4beta1.Location\022@\n\016job_categori" + + "es\030\003 \003(\0162(.google.cloud.talent.v4beta1.J" + + "obCategory\032\210\001\n\021ProcessingOptions\022)\n!disa" + + "ble_street_address_resolution\030\001 \001(\010\022H\n\021h" + + "tml_sanitization\030\002 \001(\0162-.google.cloud.ta" + + "lent.v4beta1.HtmlSanitization\032e\n\025CustomA" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001" + + "(\0132,.google.cloud.talent.v4beta1.CustomA" + + "ttribute:\0028\001B~\n\037com.google.cloud.talent." + + "v4beta1B\020JobResourceProtoP\001ZAgoogle.gola" + + "ng.org/genproto/googleapis/cloud/talent/" + + "v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Job_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_descriptor, + new java.lang.String[] { + "Name", + "CompanyName", + "RequisitionId", + "Title", + "Description", + "Addresses", + "ApplicationInfo", + "JobBenefits", + "CompensationInfo", + "CustomAttributes", + "DegreeTypes", + "Department", + "EmploymentTypes", + "Incentives", + "LanguageCode", + "JobLevel", + "PromotionValue", + "Qualifications", + "Responsibilities", + "PostingRegion", + "Visibility", + "JobStartTime", + "JobEndTime", + "PostingPublishTime", + "PostingExpireTime", + "PostingCreateTime", + "PostingUpdateTime", + "CompanyDisplayName", + "DerivedInfo", + "ProcessingOptions", + }); + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor, + new java.lang.String[] { + "Emails", "Instruction", "Uris", + }); + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor, + new java.lang.String[] { + "Locations", "JobCategories", + }); + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor, + new java.lang.String[] { + "DisableStreetAddressResolution", "HtmlSanitization", + }); + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java new file mode 100644 index 000000000000..73488e373bf5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java @@ -0,0 +1,353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class JobServiceProto { + private JobServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/talent/v4beta1/job_servic" + + "e.proto\022\033google.cloud.talent.v4beta1\032\034go" + + "ogle/api/annotations.proto\032\'google/cloud" + + "/talent/v4beta1/batch.proto\032(google/clou" + + "d/talent/v4beta1/common.proto\032)google/cl" + + "oud/talent/v4beta1/filters.proto\032+google" + + "/cloud/talent/v4beta1/histogram.proto\032%g" + + "oogle/cloud/talent/v4beta1/job.proto\032#go" + + "ogle/longrunning/operations.proto\032\036googl" + + "e/protobuf/duration.proto\032\033google/protob" + + "uf/empty.proto\032 google/protobuf/field_ma" + + "sk.proto\"Q\n\020CreateJobRequest\022\016\n\006parent\030\001" + + " \001(\t\022-\n\003job\030\002 \001(\0132 .google.cloud.talent." + + "v4beta1.Job\"\035\n\rGetJobRequest\022\014\n\004name\030\001 \001" + + "(\t\"r\n\020UpdateJobRequest\022-\n\003job\030\001 \001(\0132 .go" + + "ogle.cloud.talent.v4beta1.Job\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\" " + + "\n\020DeleteJobRequest\022\014\n\004name\030\001 \001(\t\"8\n\026Batc" + + "hDeleteJobsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006fi" + + "lter\030\002 \001(\t\"\220\001\n\017ListJobsRequest\022\016\n\006parent" + + "\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\022\n\npage_token\030\003 \001" + + "(\t\022\021\n\tpage_size\030\004 \001(\005\0226\n\010job_view\030\005 \001(\0162" + + "$.google.cloud.talent.v4beta1.JobView\"\234\001" + + "\n\020ListJobsResponse\022.\n\004jobs\030\001 \003(\0132 .googl" + + "e.cloud.talent.v4beta1.Job\022\027\n\017next_page_" + + "token\030\002 \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.c" + + "loud.talent.v4beta1.ResponseMetadata\"\240\t\n" + + "\021SearchJobsRequest\022\016\n\006parent\030\001 \001(\t\022N\n\013se" + + "arch_mode\030\002 \001(\01629.google.cloud.talent.v4" + + "beta1.SearchJobsRequest.SearchMode\022F\n\020re" + + "quest_metadata\030\003 \001(\0132,.google.cloud.tale" + + "nt.v4beta1.RequestMetadata\0228\n\tjob_query\030" + + "\004 \001(\0132%.google.cloud.talent.v4beta1.JobQ" + + "uery\022\031\n\021enable_broadening\030\005 \001(\010\022#\n\033requi" + + "re_precise_result_size\030\006 \001(\010\022F\n\021histogra" + + "m_queries\030\007 \003(\0132+.google.cloud.talent.v4" + + "beta1.HistogramQuery\0226\n\010job_view\030\010 \001(\0162$" + + ".google.cloud.talent.v4beta1.JobView\022\016\n\006" + + "offset\030\t \001(\005\022\021\n\tpage_size\030\n \001(\005\022\022\n\npage_" + + "token\030\013 \001(\t\022\020\n\010order_by\030\014 \001(\t\022b\n\025diversi" + + "fication_level\030\r \001(\0162C.google.cloud.tale" + + "nt.v4beta1.SearchJobsRequest.Diversifica" + + "tionLevel\022]\n\023custom_ranking_info\030\016 \001(\0132@" + + ".google.cloud.talent.v4beta1.SearchJobsR" + + "equest.CustomRankingInfo\022\035\n\025disable_keyw" + + "ord_match\030\020 \001(\010\032\220\002\n\021CustomRankingInfo\022j\n" + + "\020importance_level\030\001 \001(\0162P.google.cloud.t" + + "alent.v4beta1.SearchJobsRequest.CustomRa" + + "nkingInfo.ImportanceLevel\022\032\n\022ranking_exp" + + "ression\030\002 \001(\t\"s\n\017ImportanceLevel\022 \n\034IMPO" + + "RTANCE_LEVEL_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\007\n\003" + + "LOW\020\002\022\010\n\004MILD\020\003\022\n\n\006MEDIUM\020\004\022\010\n\004HIGH\020\005\022\013\n" + + "\007EXTREME\020\006\"R\n\nSearchMode\022\033\n\027SEARCH_MODE_" + + "UNSPECIFIED\020\000\022\016\n\nJOB_SEARCH\020\001\022\027\n\023FEATURE" + + "D_JOB_SEARCH\020\002\"W\n\024DiversificationLevel\022%" + + "\n!DIVERSIFICATION_LEVEL_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\n\n\006SIMPLE\020\002\"\327\006\n\022SearchJobsRe" + + "sponse\022R\n\rmatching_jobs\030\001 \003(\0132;.google.c" + + "loud.talent.v4beta1.SearchJobsResponse.M" + + "atchingJob\022R\n\027histogram_query_results\030\002 " + + "\003(\01321.google.cloud.talent.v4beta1.Histog" + + "ramQueryResult\022\027\n\017next_page_token\030\003 \001(\t\022" + + "?\n\020location_filters\030\004 \003(\0132%.google.cloud" + + ".talent.v4beta1.Location\022\034\n\024estimated_to" + + "tal_size\030\005 \001(\005\022\022\n\ntotal_size\030\006 \001(\005\022?\n\010me" + + "tadata\030\007 \001(\0132-.google.cloud.talent.v4bet" + + "a1.ResponseMetadata\022\"\n\032broadened_query_j" + + "obs_count\030\010 \001(\005\022I\n\020spell_correction\030\t \001(" + + "\0132/.google.cloud.talent.v4beta1.Spelling" + + "Correction\032\334\001\n\013MatchingJob\022-\n\003job\030\001 \001(\0132" + + " .google.cloud.talent.v4beta1.Job\022\023\n\013job" + + "_summary\030\002 \001(\t\022\031\n\021job_title_snippet\030\003 \001(" + + "\t\022\033\n\023search_text_snippet\030\004 \001(\t\022Q\n\014commut" + + "e_info\030\005 \001(\0132;.google.cloud.talent.v4bet" + + "a1.SearchJobsResponse.CommuteInfo\032~\n\013Com" + + "muteInfo\022;\n\014job_location\030\001 \001(\0132%.google." + + "cloud.talent.v4beta1.Location\0222\n\017travel_" + + "duration\030\002 \001(\0132\031.google.protobuf.Duratio" + + "n*v\n\007JobView\022\030\n\024JOB_VIEW_UNSPECIFIED\020\000\022\024" + + "\n\020JOB_VIEW_ID_ONLY\020\001\022\024\n\020JOB_VIEW_MINIMAL" + + "\020\002\022\022\n\016JOB_VIEW_SMALL\020\003\022\021\n\rJOB_VIEW_FULL\020" + + "\0042\267\t\n\nJobService\022\212\001\n\tCreateJob\022-.google." + + "cloud.talent.v4beta1.CreateJobRequest\032 ." + + "google.cloud.talent.v4beta1.Job\",\202\323\344\223\002&\"" + + "!/v4beta1/{parent=projects/*}/jobs:\001*\022\201\001" + + "\n\006GetJob\022*.google.cloud.talent.v4beta1.G" + + "etJobRequest\032 .google.cloud.talent.v4bet" + + "a1.Job\")\202\323\344\223\002#\022!/v4beta1/{name=projects/" + + "*/jobs/*}\022\216\001\n\tUpdateJob\022-.google.cloud.t" + + "alent.v4beta1.UpdateJobRequest\032 .google." + + "cloud.talent.v4beta1.Job\"0\202\323\344\223\002*2%/v4bet" + + "a1/{job.name=projects/*/jobs/*}:\001*\022}\n\tDe" + + "leteJob\022-.google.cloud.talent.v4beta1.De" + + "leteJobRequest\032\026.google.protobuf.Empty\")" + + "\202\323\344\223\002#*!/v4beta1/{name=projects/*/jobs/*" + + "}\022\222\001\n\010ListJobs\022,.google.cloud.talent.v4b" + + "eta1.ListJobsRequest\032-.google.cloud.tale" + + "nt.v4beta1.ListJobsResponse\")\202\323\344\223\002#\022!/v4" + + "beta1/{parent=projects/*}/jobs\022\230\001\n\017Batch" + + "DeleteJobs\0223.google.cloud.talent.v4beta1" + + ".BatchDeleteJobsRequest\032\026.google.protobu" + + "f.Empty\"8\202\323\344\223\0022\"-/v4beta1/{parent=projec" + + "ts/*}/jobs:batchDelete:\001*\022\242\001\n\nSearchJobs" + + "\022..google.cloud.talent.v4beta1.SearchJob" + + "sRequest\032/.google.cloud.talent.v4beta1.S" + + "earchJobsResponse\"3\202\323\344\223\002-\"(/v4beta1/{par" + + "ent=projects/*}/jobs:search:\001*\022\262\001\n\022Searc" + + "hJobsForAlert\022..google.cloud.talent.v4be" + + "ta1.SearchJobsRequest\032/.google.cloud.tal" + + "ent.v4beta1.SearchJobsResponse\";\202\323\344\223\0025\"0" + + "/v4beta1/{parent=projects/*}/jobs:search" + + "ForAlert:\001*B}\n\037com.google.cloud.talent.v" + + "4beta1B\017JobServiceProtoP\001ZAgoogle.golang" + + ".org/genproto/googleapis/cloud/talent/v4" + + "beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.BatchProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(), + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor, + new java.lang.String[] { + "Parent", "Job", + }); + internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor, + new java.lang.String[] { + "Job", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", + }); + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageToken", "PageSize", "JobView", + }); + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor, + new java.lang.String[] { + "Jobs", "NextPageToken", "Metadata", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor, + new java.lang.String[] { + "Parent", + "SearchMode", + "RequestMetadata", + "JobQuery", + "EnableBroadening", + "RequirePreciseResultSize", + "HistogramQueries", + "JobView", + "Offset", + "PageSize", + "PageToken", + "OrderBy", + "DiversificationLevel", + "CustomRankingInfo", + "DisableKeywordMatch", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor, + new java.lang.String[] { + "ImportanceLevel", "RankingExpression", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor, + new java.lang.String[] { + "MatchingJobs", + "HistogramQueryResults", + "NextPageToken", + "LocationFilters", + "EstimatedTotalSize", + "TotalSize", + "Metadata", + "BroadenedQueryJobsCount", + "SpellCorrection", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor = + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor, + new java.lang.String[] { + "Job", "JobSummary", "JobTitleSnippet", "SearchTextSnippet", "CommuteInfo", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor, + new java.lang.String[] { + "JobLocation", "TravelDuration", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.BatchProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(); + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java new file mode 100644 index 000000000000..e40192c690d7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java @@ -0,0 +1,694 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Job title of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobTitleFilter} + */ +public final class JobTitleFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobTitleFilter) + JobTitleFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobTitleFilter.newBuilder() to construct. + private JobTitleFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobTitleFilter() { + jobTitle_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobTitleFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitle_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobTitleFilter.class, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder.class); + } + + public static final int JOB_TITLE_FIELD_NUMBER = 1; + private volatile java.lang.Object jobTitle_; + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getJobTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobTitle_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getJobTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobTitle_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.JobTitleFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobTitleFilter other = + (com.google.cloud.talent.v4beta1.JobTitleFilter) obj; + + boolean result = true; + result = result && getJobTitle().equals(other.getJobTitle()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getJobTitle().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.JobTitleFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Job title of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobTitleFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobTitleFilter) + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobTitleFilter.class, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobTitleFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + jobTitle_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter build() { + com.google.cloud.talent.v4beta1.JobTitleFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter buildPartial() { + com.google.cloud.talent.v4beta1.JobTitleFilter result = + new com.google.cloud.talent.v4beta1.JobTitleFilter(this); + result.jobTitle_ = jobTitle_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobTitleFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobTitleFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobTitleFilter other) { + if (other == com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()) return this; + if (!other.getJobTitle().isEmpty()) { + jobTitle_ = other.jobTitle_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.JobTitleFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobTitleFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object jobTitle_ = ""; + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public Builder setJobTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public Builder clearJobTitle() { + + jobTitle_ = getDefaultInstance().getJobTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitle_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobTitleFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobTitleFilter) + private static final com.google.cloud.talent.v4beta1.JobTitleFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobTitleFilter(); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobTitleFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobTitleFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java new file mode 100644 index 000000000000..a3623d46cc5c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobTitleFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobTitleFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + java.lang.String getJobTitle(); + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + com.google.protobuf.ByteString getJobTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java new file mode 100644 index 000000000000..b5f0cb13fd5b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java @@ -0,0 +1,231 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that specifies the job attributes that are returned in the
+ * [MatchingJob.Job][] in
+ * [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse] or
+ * [Job][google.cloud.talent.v4beta1.Job] objects in
+ * [ListJobsResponse][google.cloud.talent.v4beta1.ListJobsResponse].
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobView} + */ +public enum JobView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * JOB_VIEW_UNSPECIFIED = 0; + */ + JOB_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * A ID only view of job, with following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_ID_ONLY = 1; + */ + JOB_VIEW_ID_ONLY(1), + /** + * + * + *
+   * A minimal view of the job, with the following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_MINIMAL = 2; + */ + JOB_VIEW_MINIMAL(2), + /** + * + * + *
+   * A small view of the job, with the following attributes in the search
+   * results: [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.visibility][google.cloud.talent.v4beta1.Job.visibility],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description].
+   * 
+ * + * JOB_VIEW_SMALL = 3; + */ + JOB_VIEW_SMALL(3), + /** + * + * + *
+   * All available attributes are included in the search results.
+   * 
+ * + * JOB_VIEW_FULL = 4; + */ + JOB_VIEW_FULL(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * JOB_VIEW_UNSPECIFIED = 0; + */ + public static final int JOB_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * A ID only view of job, with following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_ID_ONLY = 1; + */ + public static final int JOB_VIEW_ID_ONLY_VALUE = 1; + /** + * + * + *
+   * A minimal view of the job, with the following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_MINIMAL = 2; + */ + public static final int JOB_VIEW_MINIMAL_VALUE = 2; + /** + * + * + *
+   * A small view of the job, with the following attributes in the search
+   * results: [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.visibility][google.cloud.talent.v4beta1.Job.visibility],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description].
+   * 
+ * + * JOB_VIEW_SMALL = 3; + */ + public static final int JOB_VIEW_SMALL_VALUE = 3; + /** + * + * + *
+   * All available attributes are included in the search results.
+   * 
+ * + * JOB_VIEW_FULL = 4; + */ + public static final int JOB_VIEW_FULL_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobView valueOf(int value) { + return forNumber(value); + } + + public static JobView forNumber(int value) { + switch (value) { + case 0: + return JOB_VIEW_UNSPECIFIED; + case 1: + return JOB_VIEW_ID_ONLY; + case 2: + return JOB_VIEW_MINIMAL; + case 3: + return JOB_VIEW_SMALL; + case 4: + return JOB_VIEW_FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobView findValueByNumber(int number) { + return JobView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final JobView[] VALUES = values(); + + public static JobView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobView) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java new file mode 100644 index 000000000000..0e2d9968fd23 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java @@ -0,0 +1,976 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * List companies for which the client has ACL visibility.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesRequest} + */ +public final class ListCompaniesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListCompaniesRequest) + ListCompaniesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCompaniesRequest.newBuilder() to construct. + private ListCompaniesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCompaniesRequest() { + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + requireOpenJobs_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCompaniesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 32: + { + requireOpenJobs_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesRequest.class, + com.google.cloud.talent.v4beta1.ListCompaniesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of companies to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int REQUIRE_OPEN_JOBS_FIELD_NUMBER = 4; + private boolean requireOpenJobs_; + /** + * + * + *
+   * Optional.
+   * Set to true if the companies requested must have open jobs.
+   * Defaults to false.
+   * If true, at most
+   * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+   * companies are fetched, among which only those with open jobs are returned.
+   * 
+ * + * bool require_open_jobs = 4; + */ + public boolean getRequireOpenJobs() { + return requireOpenJobs_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (requireOpenJobs_ != false) { + output.writeBool(4, requireOpenJobs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (requireOpenJobs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, requireOpenJobs_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListCompaniesRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListCompaniesRequest other = + (com.google.cloud.talent.v4beta1.ListCompaniesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && (getRequireOpenJobs() == other.getRequireOpenJobs()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + REQUIRE_OPEN_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireOpenJobs()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListCompaniesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * List companies for which the client has ACL visibility.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListCompaniesRequest) + com.google.cloud.talent.v4beta1.ListCompaniesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesRequest.class, + com.google.cloud.talent.v4beta1.ListCompaniesRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListCompaniesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + requireOpenJobs_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListCompaniesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest build() { + com.google.cloud.talent.v4beta1.ListCompaniesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListCompaniesRequest result = + new com.google.cloud.talent.v4beta1.ListCompaniesRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + result.requireOpenJobs_ = requireOpenJobs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListCompaniesRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListCompaniesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListCompaniesRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListCompaniesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.getRequireOpenJobs() != false) { + setRequireOpenJobs(other.getRequireOpenJobs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListCompaniesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListCompaniesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of companies to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of companies to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of companies to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private boolean requireOpenJobs_; + /** + * + * + *
+     * Optional.
+     * Set to true if the companies requested must have open jobs.
+     * Defaults to false.
+     * If true, at most
+     * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+     * companies are fetched, among which only those with open jobs are returned.
+     * 
+ * + * bool require_open_jobs = 4; + */ + public boolean getRequireOpenJobs() { + return requireOpenJobs_; + } + /** + * + * + *
+     * Optional.
+     * Set to true if the companies requested must have open jobs.
+     * Defaults to false.
+     * If true, at most
+     * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+     * companies are fetched, among which only those with open jobs are returned.
+     * 
+ * + * bool require_open_jobs = 4; + */ + public Builder setRequireOpenJobs(boolean value) { + + requireOpenJobs_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Set to true if the companies requested must have open jobs.
+     * Defaults to false.
+     * If true, at most
+     * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+     * companies are fetched, among which only those with open jobs are returned.
+     * 
+ * + * bool require_open_jobs = 4; + */ + public Builder clearRequireOpenJobs() { + + requireOpenJobs_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListCompaniesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListCompaniesRequest) + private static final com.google.cloud.talent.v4beta1.ListCompaniesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListCompaniesRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCompaniesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCompaniesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java new file mode 100644 index 000000000000..7392d93df2f5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java @@ -0,0 +1,89 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListCompaniesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListCompaniesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of companies to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * Set to true if the companies requested must have open jobs.
+   * Defaults to false.
+   * If true, at most
+   * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+   * companies are fetched, among which only those with open jobs are returned.
+   * 
+ * + * bool require_open_jobs = 4; + */ + boolean getRequireOpenJobs(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java new file mode 100644 index 000000000000..8c2317acf46e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java @@ -0,0 +1,1373 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * The List companies response object.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesResponse} + */ +public final class ListCompaniesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListCompaniesResponse) + ListCompaniesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCompaniesResponse.newBuilder() to construct. + private ListCompaniesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCompaniesResponse() { + companies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCompaniesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + companies_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Company.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = java.util.Collections.unmodifiableList(companies_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesResponse.class, + com.google.cloud.talent.v4beta1.ListCompaniesResponse.Builder.class); + } + + private int bitField0_; + public static final int COMPANIES_FIELD_NUMBER = 1; + private java.util.List companies_; + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List getCompaniesList() { + return companies_; + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List + getCompaniesOrBuilderList() { + return companies_; + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public int getCompaniesCount() { + return companies_.size(); + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompanies(int index) { + return companies_.get(index); + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompaniesOrBuilder(int index) { + return companies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < companies_.size(); i++) { + output.writeMessage(1, companies_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < companies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, companies_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListCompaniesResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListCompaniesResponse other = + (com.google.cloud.talent.v4beta1.ListCompaniesResponse) obj; + + boolean result = true; + result = result && getCompaniesList().equals(other.getCompaniesList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCompaniesCount() > 0) { + hash = (37 * hash) + COMPANIES_FIELD_NUMBER; + hash = (53 * hash) + getCompaniesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.ListCompaniesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * The List companies response object.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListCompaniesResponse) + com.google.cloud.talent.v4beta1.ListCompaniesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesResponse.class, + com.google.cloud.talent.v4beta1.ListCompaniesResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListCompaniesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCompaniesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (companiesBuilder_ == null) { + companies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + companiesBuilder_.clear(); + } + nextPageToken_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListCompaniesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse build() { + com.google.cloud.talent.v4beta1.ListCompaniesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListCompaniesResponse result = + new com.google.cloud.talent.v4beta1.ListCompaniesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (companiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = java.util.Collections.unmodifiableList(companies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.companies_ = companies_; + } else { + result.companies_ = companiesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListCompaniesResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListCompaniesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListCompaniesResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListCompaniesResponse.getDefaultInstance()) + return this; + if (companiesBuilder_ == null) { + if (!other.companies_.isEmpty()) { + if (companies_.isEmpty()) { + companies_ = other.companies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCompaniesIsMutable(); + companies_.addAll(other.companies_); + } + onChanged(); + } + } else { + if (!other.companies_.isEmpty()) { + if (companiesBuilder_.isEmpty()) { + companiesBuilder_.dispose(); + companiesBuilder_ = null; + companies_ = other.companies_; + bitField0_ = (bitField0_ & ~0x00000001); + companiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCompaniesFieldBuilder() + : null; + } else { + companiesBuilder_.addAllMessages(other.companies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListCompaniesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListCompaniesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List companies_ = + java.util.Collections.emptyList(); + + private void ensureCompaniesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = new java.util.ArrayList(companies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + companiesBuilder_; + + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List getCompaniesList() { + if (companiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(companies_); + } else { + return companiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public int getCompaniesCount() { + if (companiesBuilder_ == null) { + return companies_.size(); + } else { + return companiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompanies(int index) { + if (companiesBuilder_ == null) { + return companies_.get(index); + } else { + return companiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder setCompanies(int index, com.google.cloud.talent.v4beta1.Company value) { + if (companiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompaniesIsMutable(); + companies_.set(index, value); + onChanged(); + } else { + companiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder setCompanies( + int index, com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.set(index, builderForValue.build()); + onChanged(); + } else { + companiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies(com.google.cloud.talent.v4beta1.Company value) { + if (companiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompaniesIsMutable(); + companies_.add(value); + onChanged(); + } else { + companiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies(int index, com.google.cloud.talent.v4beta1.Company value) { + if (companiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompaniesIsMutable(); + companies_.add(index, value); + onChanged(); + } else { + companiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies(com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.add(builderForValue.build()); + onChanged(); + } else { + companiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies( + int index, com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.add(index, builderForValue.build()); + onChanged(); + } else { + companiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addAllCompanies( + java.lang.Iterable values) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companies_); + onChanged(); + } else { + companiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder clearCompanies() { + if (companiesBuilder_ == null) { + companies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + companiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder removeCompanies(int index) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.remove(index); + onChanged(); + } else { + companiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder getCompaniesBuilder(int index) { + return getCompaniesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompaniesOrBuilder(int index) { + if (companiesBuilder_ == null) { + return companies_.get(index); + } else { + return companiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List + getCompaniesOrBuilderList() { + if (companiesBuilder_ != null) { + return companiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(companies_); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder addCompaniesBuilder() { + return getCompaniesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Company.getDefaultInstance()); + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder addCompaniesBuilder(int index) { + return getCompaniesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Company.getDefaultInstance()); + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List + getCompaniesBuilderList() { + return getCompaniesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + getCompaniesFieldBuilder() { + if (companiesBuilder_ == null) { + companiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder>( + companies_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + companies_ = null; + } + return companiesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListCompaniesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListCompaniesResponse) + private static final com.google.cloud.talent.v4beta1.ListCompaniesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListCompaniesResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCompaniesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCompaniesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java new file mode 100644 index 000000000000..526e9a65eca3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListCompaniesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListCompaniesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + java.util.List getCompaniesList(); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + com.google.cloud.talent.v4beta1.Company getCompanies(int index); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + int getCompaniesCount(); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + java.util.List + getCompaniesOrBuilderList(); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompaniesOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java new file mode 100644 index 000000000000..13c2012aa246 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java @@ -0,0 +1,1306 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * List jobs request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsRequest} + */ +public final class ListJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListJobsRequest) + ListJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListJobsRequest.newBuilder() to construct. + private ListJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListJobsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + pageSize_ = 0; + jobView_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + jobView_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsRequest.class, + com.google.cloud.talent.v4beta1.ListJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of jobs to be returned per page of results.
+   * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+   * to
+   * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+   * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+   * size is 100.
+   * Default is 100 if empty or a number < 1 is specified.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int JOB_VIEW_FIELD_NUMBER = 5; + private int jobView_; + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(5, jobView_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, jobView_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListJobsRequest other = + (com.google.cloud.talent.v4beta1.ListJobsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && jobView_ == other.jobView_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + JOB_VIEW_FIELD_NUMBER; + hash = (53 * hash) + jobView_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * List jobs request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListJobsRequest) + com.google.cloud.talent.v4beta1.ListJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsRequest.class, + com.google.cloud.talent.v4beta1.ListJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListJobsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + jobView_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest build() { + com.google.cloud.talent.v4beta1.ListJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListJobsRequest result = + new com.google.cloud.talent.v4beta1.ListJobsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + result.jobView_ = jobView_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListJobsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListJobsRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.jobView_ != 0) { + setJobViewValue(other.getJobViewValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ListJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of jobs to be returned per page of results.
+     * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+     * to
+     * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+     * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+     * size is 100.
+     * Default is 100 if empty or a number < 1 is specified.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of jobs to be returned per page of results.
+     * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+     * to
+     * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+     * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+     * size is 100.
+     * Default is 100 if empty or a number < 1 is specified.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of jobs to be returned per page of results.
+     * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+     * to
+     * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+     * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+     * size is 100.
+     * Default is 100 if empty or a number < 1 is specified.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private int jobView_ = 0; + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public Builder setJobViewValue(int value) { + jobView_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public Builder setJobView(com.google.cloud.talent.v4beta1.JobView value) { + if (value == null) { + throw new NullPointerException(); + } + + jobView_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public Builder clearJobView() { + + jobView_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListJobsRequest) + private static final com.google.cloud.talent.v4beta1.ListJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListJobsRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListJobsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java new file mode 100644 index 000000000000..7b6046a8dc03 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of jobs to be returned per page of results.
+   * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+   * to
+   * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+   * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+   * size is 100.
+   * Default is 100 if empty or a number < 1 is specified.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + int getJobViewValue(); + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + com.google.cloud.talent.v4beta1.JobView getJobView(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java new file mode 100644 index 000000000000..bb07334aab85 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java @@ -0,0 +1,1414 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * List jobs response.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsResponse} + */ +public final class ListJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListJobsResponse) + ListJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListJobsResponse.newBuilder() to construct. + private ListJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListJobsResponse() { + jobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListJobsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + jobs_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsResponse.class, + com.google.cloud.talent.v4beta1.ListJobsResponse.Builder.class); + } + + private int bitField0_; + public static final int JOBS_FIELD_NUMBER = 1; + private java.util.List jobs_; + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List getJobsList() { + return jobs_; + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + return jobs_; + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobsOrBuilder(int index) { + return jobs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < jobs_.size(); i++) { + output.writeMessage(1, jobs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < jobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListJobsResponse other = + (com.google.cloud.talent.v4beta1.ListJobsResponse) obj; + + boolean result = true; + result = result && getJobsList().equals(other.getJobsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListJobsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * List jobs response.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListJobsResponse) + com.google.cloud.talent.v4beta1.ListJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsResponse.class, + com.google.cloud.talent.v4beta1.ListJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListJobsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getJobsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + jobsBuilder_.clear(); + } + nextPageToken_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse build() { + com.google.cloud.talent.v4beta1.ListJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListJobsResponse result = + new com.google.cloud.talent.v4beta1.ListJobsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (jobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.jobs_ = jobs_; + } else { + result.jobs_ = jobsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListJobsResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListJobsResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListJobsResponse.getDefaultInstance()) + return this; + if (jobsBuilder_ == null) { + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } + onChanged(); + } + } else { + if (!other.jobs_.isEmpty()) { + if (jobsBuilder_.isEmpty()) { + jobsBuilder_.dispose(); + jobsBuilder_ = null; + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + jobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobsFieldBuilder() + : null; + } else { + jobsBuilder_.addAllMessages(other.jobs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListJobsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ListJobsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List jobs_ = + java.util.Collections.emptyList(); + + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = new java.util.ArrayList(jobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobsBuilder_; + + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List getJobsList() { + if (jobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobs_); + } else { + return jobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public int getJobsCount() { + if (jobsBuilder_ == null) { + return jobs_.size(); + } else { + return jobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJobs(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder setJobs(int index, com.google.cloud.talent.v4beta1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + } else { + jobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder setJobs(int index, com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.set(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(com.google.cloud.talent.v4beta1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + } else { + jobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(int index, com.google.cloud.talent.v4beta1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(index, value); + onChanged(); + } else { + jobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(int index, com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addAllJobs( + java.lang.Iterable values) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); + onChanged(); + } else { + jobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder clearJobs() { + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder removeJobs(int index) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.remove(index); + onChanged(); + } else { + jobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobsBuilder(int index) { + return getJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobsOrBuilder(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + if (jobsBuilder_ != null) { + return jobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobs_); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder addJobsBuilder() { + return getJobsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Job.getDefaultInstance()); + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder addJobsBuilder(int index) { + return getJobsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Job.getDefaultInstance()); + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List getJobsBuilderList() { + return getJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobsFieldBuilder() { + if (jobsBuilder_ == null) { + jobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + jobs_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + jobs_ = null; + } + return jobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListJobsResponse) + private static final com.google.cloud.talent.v4beta1.ListJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListJobsResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListJobsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java new file mode 100644 index 000000000000..94d9909647ac --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + java.util.List getJobsList(); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + com.google.cloud.talent.v4beta1.Job getJobs(int index); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + int getJobsCount(); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + java.util.List getJobsOrBuilderList(); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java new file mode 100644 index 000000000000..a9393cd5c846 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java @@ -0,0 +1,1202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * List profiles request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesRequest} + */ +public final class ListProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListProfilesRequest) + ListProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListProfilesRequest.newBuilder() to construct. + private ListProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProfilesRequest() { + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListProfilesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesRequest.class, + com.google.cloud.talent.v4beta1.ListProfilesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of profiles to be returned, at most 100.
+   * Default is 100 unless a positive number smaller than 100 is specified.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int FIELD_MASK_FIELD_NUMBER = 4; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (fieldMask_ != null) { + output.writeMessage(4, getFieldMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFieldMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListProfilesRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListProfilesRequest other = + (com.google.cloud.talent.v4beta1.ListProfilesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && (hasFieldMask() == other.hasFieldMask()); + if (hasFieldMask()) { + result = result && getFieldMask().equals(other.getFieldMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListProfilesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * List profiles request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListProfilesRequest) + com.google.cloud.talent.v4beta1.ListProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesRequest.class, + com.google.cloud.talent.v4beta1.ListProfilesRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListProfilesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest build() { + com.google.cloud.talent.v4beta1.ListProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListProfilesRequest result = + new com.google.cloud.talent.v4beta1.ListProfilesRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListProfilesRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListProfilesRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListProfilesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListProfilesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of profiles to be returned, at most 100.
+     * Default is 100 unless a positive number smaller than 100 is specified.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of profiles to be returned, at most 100.
+     * Default is 100 unless a positive number smaller than 100 is specified.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of profiles to be returned, at most 100.
+     * Default is 100 unless a positive number smaller than 100 is specified.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListProfilesRequest) + private static final com.google.cloud.talent.v4beta1.ListProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListProfilesRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProfilesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..7cbb0c4929f1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of profiles to be returned, at most 100.
+   * Default is 100 unless a positive number smaller than 100 is specified.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java new file mode 100644 index 000000000000..b523fd92215a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java @@ -0,0 +1,1098 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The List profiles response object.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesResponse} + */ +public final class ListProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListProfilesResponse) + ListProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListProfilesResponse.newBuilder() to construct. + private ListProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProfilesResponse() { + profiles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListProfilesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + profiles_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesResponse.class, + com.google.cloud.talent.v4beta1.ListProfilesResponse.Builder.class); + } + + private int bitField0_; + public static final int PROFILES_FIELD_NUMBER = 1; + private java.util.List profiles_; + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + return profiles_; + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + return profiles_; + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + return profiles_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < profiles_.size(); i++) { + output.writeMessage(1, profiles_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < profiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, profiles_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListProfilesResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListProfilesResponse other = + (com.google.cloud.talent.v4beta1.ListProfilesResponse) obj; + + boolean result = true; + result = result && getProfilesList().equals(other.getProfilesList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProfilesCount() > 0) { + hash = (37 * hash) + PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProfilesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListProfilesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The List profiles response object.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListProfilesResponse) + com.google.cloud.talent.v4beta1.ListProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesResponse.class, + com.google.cloud.talent.v4beta1.ListProfilesResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListProfilesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProfilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + profilesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse build() { + com.google.cloud.talent.v4beta1.ListProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListProfilesResponse result = + new com.google.cloud.talent.v4beta1.ListProfilesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (profilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.profiles_ = profiles_; + } else { + result.profiles_ = profilesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListProfilesResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListProfilesResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListProfilesResponse.getDefaultInstance()) + return this; + if (profilesBuilder_ == null) { + if (!other.profiles_.isEmpty()) { + if (profiles_.isEmpty()) { + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProfilesIsMutable(); + profiles_.addAll(other.profiles_); + } + onChanged(); + } + } else { + if (!other.profiles_.isEmpty()) { + if (profilesBuilder_.isEmpty()) { + profilesBuilder_.dispose(); + profilesBuilder_ = null; + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + profilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProfilesFieldBuilder() + : null; + } else { + profilesBuilder_.addAllMessages(other.profiles_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListProfilesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListProfilesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List profiles_ = + java.util.Collections.emptyList(); + + private void ensureProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(profiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profilesBuilder_; + + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + if (profilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(profiles_); + } else { + return profilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + if (profilesBuilder_ == null) { + return profiles_.size(); + } else { + return profilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.set(index, value); + onChanged(); + } else { + profilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.set(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + } else { + profilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(index, value); + onChanged(); + } else { + profilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addAllProfiles( + java.lang.Iterable values) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); + onChanged(); + } else { + profilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder clearProfiles() { + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + profilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder removeProfiles(int index) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.remove(index); + onChanged(); + } else { + profilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfilesBuilder(int index) { + return getProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + if (profilesBuilder_ != null) { + return profilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(profiles_); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder() { + return getProfilesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder(int index) { + return getProfilesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesBuilderList() { + return getProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfilesFieldBuilder() { + if (profilesBuilder_ == null) { + profilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + profiles_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + profiles_ = null; + } + return profilesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListProfilesResponse) + private static final com.google.cloud.talent.v4beta1.ListProfilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListProfilesResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProfilesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..1e74130652d0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List getProfilesList(); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfiles(int index); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + int getProfilesCount(); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List + getProfilesOrBuilderList(); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java new file mode 100644 index 000000000000..681261be2f00 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java @@ -0,0 +1,876 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * List tenants for which the client has ACL visibility.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsRequest} + */ +public final class ListTenantsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListTenantsRequest) + ListTenantsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTenantsRequest.newBuilder() to construct. + private ListTenantsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTenantsRequest() { + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTenantsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsRequest.class, + com.google.cloud.talent.v4beta1.ListTenantsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of tenants to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListTenantsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListTenantsRequest other = + (com.google.cloud.talent.v4beta1.ListTenantsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListTenantsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * List tenants for which the client has ACL visibility.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListTenantsRequest) + com.google.cloud.talent.v4beta1.ListTenantsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsRequest.class, + com.google.cloud.talent.v4beta1.ListTenantsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListTenantsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListTenantsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest build() { + com.google.cloud.talent.v4beta1.ListTenantsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListTenantsRequest result = + new com.google.cloud.talent.v4beta1.ListTenantsRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListTenantsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListTenantsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListTenantsRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListTenantsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListTenantsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListTenantsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of tenants to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of tenants to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of tenants to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListTenantsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListTenantsRequest) + private static final com.google.cloud.talent.v4beta1.ListTenantsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListTenantsRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTenantsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTenantsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java new file mode 100644 index 000000000000..e07e301e58bf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListTenantsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListTenantsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of tenants to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java new file mode 100644 index 000000000000..59b06d30cb17 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java @@ -0,0 +1,1371 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * The List tenants response object.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsResponse} + */ +public final class ListTenantsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListTenantsResponse) + ListTenantsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTenantsResponse.newBuilder() to construct. + private ListTenantsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTenantsResponse() { + tenants_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTenantsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tenants_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Tenant.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = java.util.Collections.unmodifiableList(tenants_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsResponse.class, + com.google.cloud.talent.v4beta1.ListTenantsResponse.Builder.class); + } + + private int bitField0_; + public static final int TENANTS_FIELD_NUMBER = 1; + private java.util.List tenants_; + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List getTenantsList() { + return tenants_; + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List + getTenantsOrBuilderList() { + return tenants_; + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public int getTenantsCount() { + return tenants_.size(); + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenants(int index) { + return tenants_.get(index); + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantsOrBuilder(int index) { + return tenants_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < tenants_.size(); i++) { + output.writeMessage(1, tenants_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tenants_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tenants_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ListTenantsResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListTenantsResponse other = + (com.google.cloud.talent.v4beta1.ListTenantsResponse) obj; + + boolean result = true; + result = result && getTenantsList().equals(other.getTenantsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTenantsCount() > 0) { + hash = (37 * hash) + TENANTS_FIELD_NUMBER; + hash = (53 * hash) + getTenantsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListTenantsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * The List tenants response object.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListTenantsResponse) + com.google.cloud.talent.v4beta1.ListTenantsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsResponse.class, + com.google.cloud.talent.v4beta1.ListTenantsResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListTenantsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTenantsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tenantsBuilder_ == null) { + tenants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tenantsBuilder_.clear(); + } + nextPageToken_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListTenantsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse build() { + com.google.cloud.talent.v4beta1.ListTenantsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListTenantsResponse result = + new com.google.cloud.talent.v4beta1.ListTenantsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (tenantsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = java.util.Collections.unmodifiableList(tenants_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tenants_ = tenants_; + } else { + result.tenants_ = tenantsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListTenantsResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListTenantsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListTenantsResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListTenantsResponse.getDefaultInstance()) + return this; + if (tenantsBuilder_ == null) { + if (!other.tenants_.isEmpty()) { + if (tenants_.isEmpty()) { + tenants_ = other.tenants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTenantsIsMutable(); + tenants_.addAll(other.tenants_); + } + onChanged(); + } + } else { + if (!other.tenants_.isEmpty()) { + if (tenantsBuilder_.isEmpty()) { + tenantsBuilder_.dispose(); + tenantsBuilder_ = null; + tenants_ = other.tenants_; + bitField0_ = (bitField0_ & ~0x00000001); + tenantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTenantsFieldBuilder() + : null; + } else { + tenantsBuilder_.addAllMessages(other.tenants_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ListTenantsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListTenantsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List tenants_ = + java.util.Collections.emptyList(); + + private void ensureTenantsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = new java.util.ArrayList(tenants_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + tenantsBuilder_; + + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List getTenantsList() { + if (tenantsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tenants_); + } else { + return tenantsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public int getTenantsCount() { + if (tenantsBuilder_ == null) { + return tenants_.size(); + } else { + return tenantsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenants(int index) { + if (tenantsBuilder_ == null) { + return tenants_.get(index); + } else { + return tenantsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder setTenants(int index, com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.set(index, value); + onChanged(); + } else { + tenantsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder setTenants( + int index, com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.set(index, builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.add(value); + onChanged(); + } else { + tenantsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants(int index, com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.add(index, value); + onChanged(); + } else { + tenantsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants(com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.add(builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants( + int index, com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.add(index, builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addAllTenants( + java.lang.Iterable values) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tenants_); + onChanged(); + } else { + tenantsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder clearTenants() { + if (tenantsBuilder_ == null) { + tenants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tenantsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder removeTenants(int index) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.remove(index); + onChanged(); + } else { + tenantsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder getTenantsBuilder(int index) { + return getTenantsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantsOrBuilder(int index) { + if (tenantsBuilder_ == null) { + return tenants_.get(index); + } else { + return tenantsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List + getTenantsOrBuilderList() { + if (tenantsBuilder_ != null) { + return tenantsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tenants_); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder addTenantsBuilder() { + return getTenantsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance()); + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder addTenantsBuilder(int index) { + return getTenantsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance()); + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List getTenantsBuilderList() { + return getTenantsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + getTenantsFieldBuilder() { + if (tenantsBuilder_ == null) { + tenantsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder>( + tenants_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + tenants_ = null; + } + return tenantsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListTenantsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListTenantsResponse) + private static final com.google.cloud.talent.v4beta1.ListTenantsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListTenantsResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTenantsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTenantsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java new file mode 100644 index 000000000000..4d3812ce8f1e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListTenantsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListTenantsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + java.util.List getTenantsList(); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + com.google.cloud.talent.v4beta1.Tenant getTenants(int index); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + int getTenantsCount(); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + java.util.List + getTenantsOrBuilderList(); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java new file mode 100644 index 000000000000..80eb5f9b3f2b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java @@ -0,0 +1,1577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * A resource that represents a location with full geographic information.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Location} + */ +public final class Location extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Location) + LocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Location.newBuilder() to construct. + private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Location() { + locationType_ = 0; + radiusMiles_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Location( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + locationType_ = rawValue; + break; + } + case 18: + { + com.google.type.PostalAddress.Builder subBuilder = null; + if (postalAddress_ != null) { + subBuilder = postalAddress_.toBuilder(); + } + postalAddress_ = + input.readMessage(com.google.type.PostalAddress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postalAddress_); + postalAddress_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + case 33: + { + radiusMiles_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Location.class, + com.google.cloud.talent.v4beta1.Location.Builder.class); + } + + /** + * + * + *
+   * An enum which represents the type of a location.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Location.LocationType} + */ + public enum LocationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value if the type isn't specified.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + LOCATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A country level location.
+     * 
+ * + * COUNTRY = 1; + */ + COUNTRY(1), + /** + * + * + *
+     * A state or equivalent level location.
+     * 
+ * + * ADMINISTRATIVE_AREA = 2; + */ + ADMINISTRATIVE_AREA(2), + /** + * + * + *
+     * A county or equivalent level location.
+     * 
+ * + * SUB_ADMINISTRATIVE_AREA = 3; + */ + SUB_ADMINISTRATIVE_AREA(3), + /** + * + * + *
+     * A city or equivalent level location.
+     * 
+ * + * LOCALITY = 4; + */ + LOCALITY(4), + /** + * + * + *
+     * A postal code level location.
+     * 
+ * + * POSTAL_CODE = 5; + */ + POSTAL_CODE(5), + /** + * + * + *
+     * A sublocality is a subdivision of a locality, for example a city borough,
+     * ward, or arrondissement. Sublocalities are usually recognized by a local
+     * political authority. For example, Manhattan and Brooklyn are recognized
+     * as boroughs by the City of New York, and are therefore modeled as
+     * sublocalities.
+     * 
+ * + * SUB_LOCALITY = 6; + */ + SUB_LOCALITY(6), + /** + * + * + *
+     * A district or equivalent level location.
+     * 
+ * + * SUB_LOCALITY_1 = 7; + */ + SUB_LOCALITY_1(7), + /** + * + * + *
+     * A smaller district or equivalent level display.
+     * 
+ * + * SUB_LOCALITY_2 = 8; + */ + SUB_LOCALITY_2(8), + /** + * + * + *
+     * A neighborhood level location.
+     * 
+ * + * NEIGHBORHOOD = 9; + */ + NEIGHBORHOOD(9), + /** + * + * + *
+     * A street address level location.
+     * 
+ * + * STREET_ADDRESS = 10; + */ + STREET_ADDRESS(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value if the type isn't specified.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + public static final int LOCATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A country level location.
+     * 
+ * + * COUNTRY = 1; + */ + public static final int COUNTRY_VALUE = 1; + /** + * + * + *
+     * A state or equivalent level location.
+     * 
+ * + * ADMINISTRATIVE_AREA = 2; + */ + public static final int ADMINISTRATIVE_AREA_VALUE = 2; + /** + * + * + *
+     * A county or equivalent level location.
+     * 
+ * + * SUB_ADMINISTRATIVE_AREA = 3; + */ + public static final int SUB_ADMINISTRATIVE_AREA_VALUE = 3; + /** + * + * + *
+     * A city or equivalent level location.
+     * 
+ * + * LOCALITY = 4; + */ + public static final int LOCALITY_VALUE = 4; + /** + * + * + *
+     * A postal code level location.
+     * 
+ * + * POSTAL_CODE = 5; + */ + public static final int POSTAL_CODE_VALUE = 5; + /** + * + * + *
+     * A sublocality is a subdivision of a locality, for example a city borough,
+     * ward, or arrondissement. Sublocalities are usually recognized by a local
+     * political authority. For example, Manhattan and Brooklyn are recognized
+     * as boroughs by the City of New York, and are therefore modeled as
+     * sublocalities.
+     * 
+ * + * SUB_LOCALITY = 6; + */ + public static final int SUB_LOCALITY_VALUE = 6; + /** + * + * + *
+     * A district or equivalent level location.
+     * 
+ * + * SUB_LOCALITY_1 = 7; + */ + public static final int SUB_LOCALITY_1_VALUE = 7; + /** + * + * + *
+     * A smaller district or equivalent level display.
+     * 
+ * + * SUB_LOCALITY_2 = 8; + */ + public static final int SUB_LOCALITY_2_VALUE = 8; + /** + * + * + *
+     * A neighborhood level location.
+     * 
+ * + * NEIGHBORHOOD = 9; + */ + public static final int NEIGHBORHOOD_VALUE = 9; + /** + * + * + *
+     * A street address level location.
+     * 
+ * + * STREET_ADDRESS = 10; + */ + public static final int STREET_ADDRESS_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static LocationType valueOf(int value) { + return forNumber(value); + } + + public static LocationType forNumber(int value) { + switch (value) { + case 0: + return LOCATION_TYPE_UNSPECIFIED; + case 1: + return COUNTRY; + case 2: + return ADMINISTRATIVE_AREA; + case 3: + return SUB_ADMINISTRATIVE_AREA; + case 4: + return LOCALITY; + case 5: + return POSTAL_CODE; + case 6: + return SUB_LOCALITY; + case 7: + return SUB_LOCALITY_1; + case 8: + return SUB_LOCALITY_2; + case 9: + return NEIGHBORHOOD; + case 10: + return STREET_ADDRESS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationType findValueByNumber(int number) { + return LocationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Location.getDescriptor().getEnumTypes().get(0); + } + + private static final LocationType[] VALUES = values(); + + public static LocationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LocationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Location.LocationType) + } + + public static final int LOCATION_TYPE_FIELD_NUMBER = 1; + private int locationType_; + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public int getLocationTypeValue() { + return locationType_; + } + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public com.google.cloud.talent.v4beta1.Location.LocationType getLocationType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Location.LocationType result = + com.google.cloud.talent.v4beta1.Location.LocationType.valueOf(locationType_); + return result == null + ? com.google.cloud.talent.v4beta1.Location.LocationType.UNRECOGNIZED + : result; + } + + public static final int POSTAL_ADDRESS_FIELD_NUMBER = 2; + private com.google.type.PostalAddress postalAddress_; + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public boolean hasPostalAddress() { + return postalAddress_ != null; + } + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddress getPostalAddress() { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; + } + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { + return getPostalAddress(); + } + + public static final int LAT_LNG_FIELD_NUMBER = 3; + private com.google.type.LatLng latLng_; + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLng_ != null; + } + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + return getLatLng(); + } + + public static final int RADIUS_MILES_FIELD_NUMBER = 4; + private double radiusMiles_; + /** + * + * + *
+   * Radius in miles of the job location. This value is derived from the
+   * location bounding box in which a circle with the specified radius
+   * centered from [LatLng][] covers the area associated with the job location.
+   * For example, currently, "Mountain View, CA, USA" has a radius of
+   * 6.17 miles.
+   * 
+ * + * double radius_miles = 4; + */ + public double getRadiusMiles() { + return radiusMiles_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (locationType_ + != com.google.cloud.talent.v4beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, locationType_); + } + if (postalAddress_ != null) { + output.writeMessage(2, getPostalAddress()); + } + if (latLng_ != null) { + output.writeMessage(3, getLatLng()); + } + if (radiusMiles_ != 0D) { + output.writeDouble(4, radiusMiles_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (locationType_ + != com.google.cloud.talent.v4beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, locationType_); + } + if (postalAddress_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPostalAddress()); + } + if (latLng_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLatLng()); + } + if (radiusMiles_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, radiusMiles_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Location)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Location other = (com.google.cloud.talent.v4beta1.Location) obj; + + boolean result = true; + result = result && locationType_ == other.locationType_; + result = result && (hasPostalAddress() == other.hasPostalAddress()); + if (hasPostalAddress()) { + result = result && getPostalAddress().equals(other.getPostalAddress()); + } + result = result && (hasLatLng() == other.hasLatLng()); + if (hasLatLng()) { + result = result && getLatLng().equals(other.getLatLng()); + } + result = + result + && (java.lang.Double.doubleToLongBits(getRadiusMiles()) + == java.lang.Double.doubleToLongBits(other.getRadiusMiles())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + locationType_; + if (hasPostalAddress()) { + hash = (37 * hash) + POSTAL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getPostalAddress().hashCode(); + } + if (hasLatLng()) { + hash = (37 * hash) + LAT_LNG_FIELD_NUMBER; + hash = (53 * hash) + getLatLng().hashCode(); + } + hash = (37 * hash) + RADIUS_MILES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRadiusMiles())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Location parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Location prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * A resource that represents a location with full geographic information.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Location} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Location) + com.google.cloud.talent.v4beta1.LocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Location.class, + com.google.cloud.talent.v4beta1.Location.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Location.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + locationType_ = 0; + + if (postalAddressBuilder_ == null) { + postalAddress_ = null; + } else { + postalAddress_ = null; + postalAddressBuilder_ = null; + } + if (latLngBuilder_ == null) { + latLng_ = null; + } else { + latLng_ = null; + latLngBuilder_ = null; + } + radiusMiles_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Location.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location build() { + com.google.cloud.talent.v4beta1.Location result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location buildPartial() { + com.google.cloud.talent.v4beta1.Location result = + new com.google.cloud.talent.v4beta1.Location(this); + result.locationType_ = locationType_; + if (postalAddressBuilder_ == null) { + result.postalAddress_ = postalAddress_; + } else { + result.postalAddress_ = postalAddressBuilder_.build(); + } + if (latLngBuilder_ == null) { + result.latLng_ = latLng_; + } else { + result.latLng_ = latLngBuilder_.build(); + } + result.radiusMiles_ = radiusMiles_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Location) { + return mergeFrom((com.google.cloud.talent.v4beta1.Location) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Location other) { + if (other == com.google.cloud.talent.v4beta1.Location.getDefaultInstance()) return this; + if (other.locationType_ != 0) { + setLocationTypeValue(other.getLocationTypeValue()); + } + if (other.hasPostalAddress()) { + mergePostalAddress(other.getPostalAddress()); + } + if (other.hasLatLng()) { + mergeLatLng(other.getLatLng()); + } + if (other.getRadiusMiles() != 0D) { + setRadiusMiles(other.getRadiusMiles()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Location parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Location) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int locationType_ = 0; + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public int getLocationTypeValue() { + return locationType_; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public Builder setLocationTypeValue(int value) { + locationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public com.google.cloud.talent.v4beta1.Location.LocationType getLocationType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Location.LocationType result = + com.google.cloud.talent.v4beta1.Location.LocationType.valueOf(locationType_); + return result == null + ? com.google.cloud.talent.v4beta1.Location.LocationType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public Builder setLocationType(com.google.cloud.talent.v4beta1.Location.LocationType value) { + if (value == null) { + throw new NullPointerException(); + } + + locationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public Builder clearLocationType() { + + locationType_ = 0; + onChanged(); + return this; + } + + private com.google.type.PostalAddress postalAddress_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + postalAddressBuilder_; + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public boolean hasPostalAddress() { + return postalAddressBuilder_ != null || postalAddress_ != null; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddress getPostalAddress() { + if (postalAddressBuilder_ == null) { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; + } else { + return postalAddressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder setPostalAddress(com.google.type.PostalAddress value) { + if (postalAddressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postalAddress_ = value; + onChanged(); + } else { + postalAddressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderForValue) { + if (postalAddressBuilder_ == null) { + postalAddress_ = builderForValue.build(); + onChanged(); + } else { + postalAddressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder mergePostalAddress(com.google.type.PostalAddress value) { + if (postalAddressBuilder_ == null) { + if (postalAddress_ != null) { + postalAddress_ = + com.google.type.PostalAddress.newBuilder(postalAddress_) + .mergeFrom(value) + .buildPartial(); + } else { + postalAddress_ = value; + } + onChanged(); + } else { + postalAddressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder clearPostalAddress() { + if (postalAddressBuilder_ == null) { + postalAddress_ = null; + onChanged(); + } else { + postalAddress_ = null; + postalAddressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddress.Builder getPostalAddressBuilder() { + + onChanged(); + return getPostalAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { + if (postalAddressBuilder_ != null) { + return postalAddressBuilder_.getMessageOrBuilder(); + } else { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; + } + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + getPostalAddressFieldBuilder() { + if (postalAddressBuilder_ == null) { + postalAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder>( + getPostalAddress(), getParentForChildren(), isClean()); + postalAddress_ = null; + } + return postalAddressBuilder_; + } + + private com.google.type.LatLng latLng_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLngBuilder_ != null || latLng_ != null; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + if (latLngBuilder_ == null) { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } else { + return latLngBuilder_.getMessage(); + } + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latLng_ = value; + onChanged(); + } else { + latLngBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + if (latLngBuilder_ == null) { + latLng_ = builderForValue.build(); + onChanged(); + } else { + latLngBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder mergeLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (latLng_ != null) { + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + } else { + latLng_ = value; + } + onChanged(); + } else { + latLngBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder clearLatLng() { + if (latLngBuilder_ == null) { + latLng_ = null; + onChanged(); + } else { + latLng_ = null; + latLngBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng.Builder getLatLngBuilder() { + + onChanged(); + return getLatLngFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + if (latLngBuilder_ != null) { + return latLngBuilder_.getMessageOrBuilder(); + } else { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getLatLngFieldBuilder() { + if (latLngBuilder_ == null) { + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLng_ = null; + } + return latLngBuilder_; + } + + private double radiusMiles_; + /** + * + * + *
+     * Radius in miles of the job location. This value is derived from the
+     * location bounding box in which a circle with the specified radius
+     * centered from [LatLng][] covers the area associated with the job location.
+     * For example, currently, "Mountain View, CA, USA" has a radius of
+     * 6.17 miles.
+     * 
+ * + * double radius_miles = 4; + */ + public double getRadiusMiles() { + return radiusMiles_; + } + /** + * + * + *
+     * Radius in miles of the job location. This value is derived from the
+     * location bounding box in which a circle with the specified radius
+     * centered from [LatLng][] covers the area associated with the job location.
+     * For example, currently, "Mountain View, CA, USA" has a radius of
+     * 6.17 miles.
+     * 
+ * + * double radius_miles = 4; + */ + public Builder setRadiusMiles(double value) { + + radiusMiles_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Radius in miles of the job location. This value is derived from the
+     * location bounding box in which a circle with the specified radius
+     * centered from [LatLng][] covers the area associated with the job location.
+     * For example, currently, "Mountain View, CA, USA" has a radius of
+     * 6.17 miles.
+     * 
+ * + * double radius_miles = 4; + */ + public Builder clearRadiusMiles() { + + radiusMiles_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Location) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Location) + private static final com.google.cloud.talent.v4beta1.Location DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Location(); + } + + public static com.google.cloud.talent.v4beta1.Location getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Location(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java new file mode 100644 index 000000000000..40f7bbb05452 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java @@ -0,0 +1,1719 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Geographic region of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.LocationFilter} + */ +public final class LocationFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.LocationFilter) + LocationFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationFilter.newBuilder() to construct. + private LocationFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationFilter() { + address_ = ""; + regionCode_ = ""; + distanceInMiles_ = 0D; + telecommutePreference_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LocationFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + address_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + regionCode_ = s; + break; + } + case 26: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + case 33: + { + distanceInMiles_ = input.readDouble(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + telecommutePreference_ = rawValue; + break; + } + case 48: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.LocationFilter.class, + com.google.cloud.talent.v4beta1.LocationFilter.Builder.class); + } + + /** + * + * + *
+   * Specify whether including telecommute jobs.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference} + */ + public enum TelecommutePreference implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value if the telecommute preference isn't specified.
+     * 
+ * + * TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; + */ + TELECOMMUTE_PREFERENCE_UNSPECIFIED(0), + /** + * + * + *
+     * Exclude telecommute jobs.
+     * 
+ * + * TELECOMMUTE_EXCLUDED = 1; + */ + TELECOMMUTE_EXCLUDED(1), + /** + * + * + *
+     * Allow telecommute jobs.
+     * 
+ * + * TELECOMMUTE_ALLOWED = 2; + */ + TELECOMMUTE_ALLOWED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value if the telecommute preference isn't specified.
+     * 
+ * + * TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; + */ + public static final int TELECOMMUTE_PREFERENCE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Exclude telecommute jobs.
+     * 
+ * + * TELECOMMUTE_EXCLUDED = 1; + */ + public static final int TELECOMMUTE_EXCLUDED_VALUE = 1; + /** + * + * + *
+     * Allow telecommute jobs.
+     * 
+ * + * TELECOMMUTE_ALLOWED = 2; + */ + public static final int TELECOMMUTE_ALLOWED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TelecommutePreference valueOf(int value) { + return forNumber(value); + } + + public static TelecommutePreference forNumber(int value) { + switch (value) { + case 0: + return TELECOMMUTE_PREFERENCE_UNSPECIFIED; + case 1: + return TELECOMMUTE_EXCLUDED; + case 2: + return TELECOMMUTE_ALLOWED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TelecommutePreference findValueByNumber(int number) { + return TelecommutePreference.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.LocationFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final TelecommutePreference[] VALUES = values(); + + public static TelecommutePreference valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TelecommutePreference(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference) + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object address_; + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_CODE_FIELD_NUMBER = 2; + private volatile java.lang.Object regionCode_; + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAT_LNG_FIELD_NUMBER = 3; + private com.google.type.LatLng latLng_; + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLng_ != null; + } + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + return getLatLng(); + } + + public static final int DISTANCE_IN_MILES_FIELD_NUMBER = 4; + private double distanceInMiles_; + /** + * + * + *
+   * Optional.
+   * The distance_in_miles is applied when the location being searched for is
+   * identified as a city or smaller. When the location being searched for is a
+   * state or larger, this field is ignored.
+   * 
+ * + * double distance_in_miles = 4; + */ + public double getDistanceInMiles() { + return distanceInMiles_; + } + + public static final int TELECOMMUTE_PREFERENCE_FIELD_NUMBER = 5; + private int telecommutePreference_; + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public int getTelecommutePreferenceValue() { + return telecommutePreference_; + } + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + getTelecommutePreference() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference result = + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.valueOf( + telecommutePreference_); + return result == null + ? com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.UNRECOGNIZED + : result; + } + + public static final int NEGATED_FIELD_NUMBER = 6; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * Currently only supported in profile search.
+   * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + if (!getRegionCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regionCode_); + } + if (latLng_ != null) { + output.writeMessage(3, getLatLng()); + } + if (distanceInMiles_ != 0D) { + output.writeDouble(4, distanceInMiles_); + } + if (telecommutePreference_ + != com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + .TELECOMMUTE_PREFERENCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, telecommutePreference_); + } + if (negated_ != false) { + output.writeBool(6, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); + } + if (!getRegionCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regionCode_); + } + if (latLng_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLatLng()); + } + if (distanceInMiles_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, distanceInMiles_); + } + if (telecommutePreference_ + != com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + .TELECOMMUTE_PREFERENCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, telecommutePreference_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.LocationFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.LocationFilter other = + (com.google.cloud.talent.v4beta1.LocationFilter) obj; + + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && getRegionCode().equals(other.getRegionCode()); + result = result && (hasLatLng() == other.hasLatLng()); + if (hasLatLng()) { + result = result && getLatLng().equals(other.getLatLng()); + } + result = + result + && (java.lang.Double.doubleToLongBits(getDistanceInMiles()) + == java.lang.Double.doubleToLongBits(other.getDistanceInMiles())); + result = result && telecommutePreference_ == other.telecommutePreference_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + if (hasLatLng()) { + hash = (37 * hash) + LAT_LNG_FIELD_NUMBER; + hash = (53 * hash) + getLatLng().hashCode(); + } + hash = (37 * hash) + DISTANCE_IN_MILES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistanceInMiles())); + hash = (37 * hash) + TELECOMMUTE_PREFERENCE_FIELD_NUMBER; + hash = (53 * hash) + telecommutePreference_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.LocationFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Geographic region of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.LocationFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.LocationFilter) + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.LocationFilter.class, + com.google.cloud.talent.v4beta1.LocationFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.LocationFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + address_ = ""; + + regionCode_ = ""; + + if (latLngBuilder_ == null) { + latLng_ = null; + } else { + latLng_ = null; + latLngBuilder_ = null; + } + distanceInMiles_ = 0D; + + telecommutePreference_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter build() { + com.google.cloud.talent.v4beta1.LocationFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter buildPartial() { + com.google.cloud.talent.v4beta1.LocationFilter result = + new com.google.cloud.talent.v4beta1.LocationFilter(this); + result.address_ = address_; + result.regionCode_ = regionCode_; + if (latLngBuilder_ == null) { + result.latLng_ = latLng_; + } else { + result.latLng_ = latLngBuilder_.build(); + } + result.distanceInMiles_ = distanceInMiles_; + result.telecommutePreference_ = telecommutePreference_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.LocationFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.LocationFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.LocationFilter other) { + if (other == com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()) return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + onChanged(); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + onChanged(); + } + if (other.hasLatLng()) { + mergeLatLng(other.getLatLng()); + } + if (other.getDistanceInMiles() != 0D) { + setDistanceInMiles(other.getDistanceInMiles()); + } + if (other.telecommutePreference_ != 0) { + setTelecommutePreferenceValue(other.getTelecommutePreferenceValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.LocationFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.LocationFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object address_ = ""; + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + address_ = value; + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regionCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public Builder clearRegionCode() { + + regionCode_ = getDefaultInstance().getRegionCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regionCode_ = value; + onChanged(); + return this; + } + + private com.google.type.LatLng latLng_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLngBuilder_ != null || latLng_ != null; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + if (latLngBuilder_ == null) { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } else { + return latLngBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latLng_ = value; + onChanged(); + } else { + latLngBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + if (latLngBuilder_ == null) { + latLng_ = builderForValue.build(); + onChanged(); + } else { + latLngBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder mergeLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (latLng_ != null) { + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + } else { + latLng_ = value; + } + onChanged(); + } else { + latLngBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder clearLatLng() { + if (latLngBuilder_ == null) { + latLng_ = null; + onChanged(); + } else { + latLng_ = null; + latLngBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng.Builder getLatLngBuilder() { + + onChanged(); + return getLatLngFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + if (latLngBuilder_ != null) { + return latLngBuilder_.getMessageOrBuilder(); + } else { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getLatLngFieldBuilder() { + if (latLngBuilder_ == null) { + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLng_ = null; + } + return latLngBuilder_; + } + + private double distanceInMiles_; + /** + * + * + *
+     * Optional.
+     * The distance_in_miles is applied when the location being searched for is
+     * identified as a city or smaller. When the location being searched for is a
+     * state or larger, this field is ignored.
+     * 
+ * + * double distance_in_miles = 4; + */ + public double getDistanceInMiles() { + return distanceInMiles_; + } + /** + * + * + *
+     * Optional.
+     * The distance_in_miles is applied when the location being searched for is
+     * identified as a city or smaller. When the location being searched for is a
+     * state or larger, this field is ignored.
+     * 
+ * + * double distance_in_miles = 4; + */ + public Builder setDistanceInMiles(double value) { + + distanceInMiles_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The distance_in_miles is applied when the location being searched for is
+     * identified as a city or smaller. When the location being searched for is a
+     * state or larger, this field is ignored.
+     * 
+ * + * double distance_in_miles = 4; + */ + public Builder clearDistanceInMiles() { + + distanceInMiles_ = 0D; + onChanged(); + return this; + } + + private int telecommutePreference_ = 0; + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public int getTelecommutePreferenceValue() { + return telecommutePreference_; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public Builder setTelecommutePreferenceValue(int value) { + telecommutePreference_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + getTelecommutePreference() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference result = + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.valueOf( + telecommutePreference_); + return result == null + ? com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public Builder setTelecommutePreference( + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference value) { + if (value == null) { + throw new NullPointerException(); + } + + telecommutePreference_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public Builder clearTelecommutePreference() { + + telecommutePreference_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * Currently only supported in profile search.
+     * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * Currently only supported in profile search.
+     * 
+ * + * bool negated = 6; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * Currently only supported in profile search.
+     * 
+ * + * bool negated = 6; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.LocationFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.LocationFilter) + private static final com.google.cloud.talent.v4beta1.LocationFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.LocationFilter(); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java new file mode 100644 index 000000000000..fe1b46df3010 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java @@ -0,0 +1,196 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface LocationFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.LocationFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + java.lang.String getAddress(); + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + java.lang.String getRegionCode(); + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + boolean hasLatLng(); + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLng getLatLng(); + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLngOrBuilder getLatLngOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The distance_in_miles is applied when the location being searched for is
+   * identified as a city or smaller. When the location being searched for is a
+   * state or larger, this field is ignored.
+   * 
+ * + * double distance_in_miles = 4; + */ + double getDistanceInMiles(); + + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + int getTelecommutePreferenceValue(); + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference getTelecommutePreference(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * Currently only supported in profile search.
+   * 
+ * + * bool negated = 6; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java new file mode 100644 index 000000000000..9a5ac5bceba3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface LocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Location) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + int getLocationTypeValue(); + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + com.google.cloud.talent.v4beta1.Location.LocationType getLocationType(); + + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + boolean hasPostalAddress(); + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + com.google.type.PostalAddress getPostalAddress(); + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder(); + + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + boolean hasLatLng(); + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLng getLatLng(); + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLngOrBuilder getLatLngOrBuilder(); + + /** + * + * + *
+   * Radius in miles of the job location. This value is derived from the
+   * location bounding box in which a circle with the specified radius
+   * centered from [LatLng][] covers the area associated with the job location.
+   * For example, currently, "Mountain View, CA, USA" has a radius of
+   * 6.17 miles.
+   * 
+ * + * double radius_miles = 4; + */ + double getRadiusMiles(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java new file mode 100644 index 000000000000..7c09ccb1d5fe --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java @@ -0,0 +1,638 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Options that change how the resume parse is performed.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeOptions} + */ +public final class ParseResumeOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeOptions) + ParseResumeOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParseResumeOptions.newBuilder() to construct. + private ParseResumeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParseResumeOptions() { + enableOcr_ = false; + enableFullSkillDetection_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParseResumeOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableOcr_ = input.readBool(); + break; + } + case 16: + { + enableFullSkillDetection_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeOptions.class, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder.class); + } + + public static final int ENABLE_OCR_FIELD_NUMBER = 1; + private boolean enableOcr_; + /** + * + * + *
+   * Optional.
+   * Controls whether Optical Character Recognition (OCR) is enabled.
+   * OCR is used to decipher pictorial resumes, or resumes that have some
+   * element of pictorial detail (for example, contact information placed within
+   * an image in a pdf). Note that the API call has a higher latency if OCR is
+   * enabled.
+   * 
+ * + * bool enable_ocr = 1; + */ + public boolean getEnableOcr() { + return enableOcr_; + } + + public static final int ENABLE_FULL_SKILL_DETECTION_FIELD_NUMBER = 2; + private boolean enableFullSkillDetection_; + /** + * + * + *
+   * Optional.
+   * Controls whether detected skills are included in the parsed profile from
+   * sections of the resume other than just skills sections.
+   * Normally, returned skills are limited to those taken from a resume section
+   * intended to list skills. When enabled, this feature causes detected
+   * skills in other sections to also be included in the returned profile.
+   * 
+ * + * bool enable_full_skill_detection = 2; + */ + public boolean getEnableFullSkillDetection() { + return enableFullSkillDetection_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableOcr_ != false) { + output.writeBool(1, enableOcr_); + } + if (enableFullSkillDetection_ != false) { + output.writeBool(2, enableFullSkillDetection_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableOcr_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableOcr_); + } + if (enableFullSkillDetection_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableFullSkillDetection_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ParseResumeOptions)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ParseResumeOptions other = + (com.google.cloud.talent.v4beta1.ParseResumeOptions) obj; + + boolean result = true; + result = result && (getEnableOcr() == other.getEnableOcr()); + result = result && (getEnableFullSkillDetection() == other.getEnableFullSkillDetection()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_OCR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableOcr()); + hash = (37 * hash) + ENABLE_FULL_SKILL_DETECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFullSkillDetection()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ParseResumeOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Options that change how the resume parse is performed.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeOptions) + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeOptions.class, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ParseResumeOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enableOcr_ = false; + + enableFullSkillDetection_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions build() { + com.google.cloud.talent.v4beta1.ParseResumeOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions buildPartial() { + com.google.cloud.talent.v4beta1.ParseResumeOptions result = + new com.google.cloud.talent.v4beta1.ParseResumeOptions(this); + result.enableOcr_ = enableOcr_; + result.enableFullSkillDetection_ = enableFullSkillDetection_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeOptions) { + return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeOptions other) { + if (other == com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance()) + return this; + if (other.getEnableOcr() != false) { + setEnableOcr(other.getEnableOcr()); + } + if (other.getEnableFullSkillDetection() != false) { + setEnableFullSkillDetection(other.getEnableFullSkillDetection()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ParseResumeOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ParseResumeOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enableOcr_; + /** + * + * + *
+     * Optional.
+     * Controls whether Optical Character Recognition (OCR) is enabled.
+     * OCR is used to decipher pictorial resumes, or resumes that have some
+     * element of pictorial detail (for example, contact information placed within
+     * an image in a pdf). Note that the API call has a higher latency if OCR is
+     * enabled.
+     * 
+ * + * bool enable_ocr = 1; + */ + public boolean getEnableOcr() { + return enableOcr_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether Optical Character Recognition (OCR) is enabled.
+     * OCR is used to decipher pictorial resumes, or resumes that have some
+     * element of pictorial detail (for example, contact information placed within
+     * an image in a pdf). Note that the API call has a higher latency if OCR is
+     * enabled.
+     * 
+ * + * bool enable_ocr = 1; + */ + public Builder setEnableOcr(boolean value) { + + enableOcr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether Optical Character Recognition (OCR) is enabled.
+     * OCR is used to decipher pictorial resumes, or resumes that have some
+     * element of pictorial detail (for example, contact information placed within
+     * an image in a pdf). Note that the API call has a higher latency if OCR is
+     * enabled.
+     * 
+ * + * bool enable_ocr = 1; + */ + public Builder clearEnableOcr() { + + enableOcr_ = false; + onChanged(); + return this; + } + + private boolean enableFullSkillDetection_; + /** + * + * + *
+     * Optional.
+     * Controls whether detected skills are included in the parsed profile from
+     * sections of the resume other than just skills sections.
+     * Normally, returned skills are limited to those taken from a resume section
+     * intended to list skills. When enabled, this feature causes detected
+     * skills in other sections to also be included in the returned profile.
+     * 
+ * + * bool enable_full_skill_detection = 2; + */ + public boolean getEnableFullSkillDetection() { + return enableFullSkillDetection_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether detected skills are included in the parsed profile from
+     * sections of the resume other than just skills sections.
+     * Normally, returned skills are limited to those taken from a resume section
+     * intended to list skills. When enabled, this feature causes detected
+     * skills in other sections to also be included in the returned profile.
+     * 
+ * + * bool enable_full_skill_detection = 2; + */ + public Builder setEnableFullSkillDetection(boolean value) { + + enableFullSkillDetection_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether detected skills are included in the parsed profile from
+     * sections of the resume other than just skills sections.
+     * Normally, returned skills are limited to those taken from a resume section
+     * intended to list skills. When enabled, this feature causes detected
+     * skills in other sections to also be included in the returned profile.
+     * 
+ * + * bool enable_full_skill_detection = 2; + */ + public Builder clearEnableFullSkillDetection() { + + enableFullSkillDetection_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ParseResumeOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeOptions) + private static final com.google.cloud.talent.v4beta1.ParseResumeOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeOptions(); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseResumeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParseResumeOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java new file mode 100644 index 000000000000..d6d88c786dc4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java @@ -0,0 +1,42 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ParseResumeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Controls whether Optical Character Recognition (OCR) is enabled.
+   * OCR is used to decipher pictorial resumes, or resumes that have some
+   * element of pictorial detail (for example, contact information placed within
+   * an image in a pdf). Note that the API call has a higher latency if OCR is
+   * enabled.
+   * 
+ * + * bool enable_ocr = 1; + */ + boolean getEnableOcr(); + + /** + * + * + *
+   * Optional.
+   * Controls whether detected skills are included in the parsed profile from
+   * sections of the resume other than just skills sections.
+   * Normally, returned skills are limited to those taken from a resume section
+   * intended to list skills. When enabled, this feature causes detected
+   * skills in other sections to also be included in the returned profile.
+   * 
+ * + * bool enable_full_skill_detection = 2; + */ + boolean getEnableFullSkillDetection(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java new file mode 100644 index 000000000000..b7a095feb2db --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java @@ -0,0 +1,1387 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Parse resume request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeRequest} + */ +public final class ParseResumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeRequest) + ParseResumeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParseResumeRequest.newBuilder() to construct. + private ParseResumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParseResumeRequest() { + parent_ = ""; + resume_ = com.google.protobuf.ByteString.EMPTY; + regionCode_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParseResumeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + resume_ = input.readBytes(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + regionCode_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ParseResumeOptions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeRequest.class, + com.google.cloud.talent.v4beta1.ParseResumeRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESUME_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString resume_; + /** + * + * + *
+   * Required.
+   * The bytes of the resume file in common format, for example, PDF, TXT.
+   * UTF-8 encoding is required if the resume is text-based, otherwise an error
+   * is thrown.
+   * 
+ * + * bytes resume = 2; + */ + public com.google.protobuf.ByteString getResume() { + return resume_; + } + + public static final int REGION_CODE_FIELD_NUMBER = 3; + private volatile java.lang.Object regionCode_; + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPTIONS_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.ParseResumeOptions options_; + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public boolean hasOptions() { + return options_ != null; + } + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions() { + return options_ == null + ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() + : options_; + } + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder() { + return getOptions(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!resume_.isEmpty()) { + output.writeBytes(2, resume_); + } + if (!getRegionCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, regionCode_); + } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); + } + if (options_ != null) { + output.writeMessage(5, getOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!resume_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, resume_); + } + if (!getRegionCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, regionCode_); + } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); + } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOptions()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ParseResumeRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ParseResumeRequest other = + (com.google.cloud.talent.v4beta1.ParseResumeRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getResume().equals(other.getResume()); + result = result && getRegionCode().equals(other.getRegionCode()); + result = result && getLanguageCode().equals(other.getLanguageCode()); + result = result && (hasOptions() == other.hasOptions()); + if (hasOptions()) { + result = result && getOptions().equals(other.getOptions()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + RESUME_FIELD_NUMBER; + hash = (53 * hash) + getResume().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ParseResumeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Parse resume request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeRequest) + com.google.cloud.talent.v4beta1.ParseResumeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeRequest.class, + com.google.cloud.talent.v4beta1.ParseResumeRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ParseResumeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + resume_ = com.google.protobuf.ByteString.EMPTY; + + regionCode_ = ""; + + languageCode_ = ""; + + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ParseResumeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest build() { + com.google.cloud.talent.v4beta1.ParseResumeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest buildPartial() { + com.google.cloud.talent.v4beta1.ParseResumeRequest result = + new com.google.cloud.talent.v4beta1.ParseResumeRequest(this); + result.parent_ = parent_; + result.resume_ = resume_; + result.regionCode_ = regionCode_; + result.languageCode_ = languageCode_; + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeRequest other) { + if (other == com.google.cloud.talent.v4beta1.ParseResumeRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getResume() != com.google.protobuf.ByteString.EMPTY) { + setResume(other.getResume()); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ParseResumeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ParseResumeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString resume_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Required.
+     * The bytes of the resume file in common format, for example, PDF, TXT.
+     * UTF-8 encoding is required if the resume is text-based, otherwise an error
+     * is thrown.
+     * 
+ * + * bytes resume = 2; + */ + public com.google.protobuf.ByteString getResume() { + return resume_; + } + /** + * + * + *
+     * Required.
+     * The bytes of the resume file in common format, for example, PDF, TXT.
+     * UTF-8 encoding is required if the resume is text-based, otherwise an error
+     * is thrown.
+     * 
+ * + * bytes resume = 2; + */ + public Builder setResume(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resume_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The bytes of the resume file in common format, for example, PDF, TXT.
+     * UTF-8 encoding is required if the resume is text-based, otherwise an error
+     * is thrown.
+     * 
+ * + * bytes resume = 2; + */ + public Builder clearResume() { + + resume_ = getDefaultInstance().getResume(); + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regionCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public Builder clearRegionCode() { + + regionCode_ = getDefaultInstance().getRegionCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regionCode_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ParseResumeOptions options_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ParseResumeOptions, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder> + optionsBuilder_; + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null + ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() + : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder setOptions(com.google.cloud.talent.v4beta1.ParseResumeOptions value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + optionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder setOptions( + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder mergeOptions(com.google.cloud.talent.v4beta1.ParseResumeOptions value) { + if (optionsBuilder_ == null) { + if (options_ != null) { + options_ = + com.google.cloud.talent.v4beta1.ParseResumeOptions.newBuilder(options_) + .mergeFrom(value) + .buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + optionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; + onChanged(); + } else { + options_ = null; + optionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null + ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() + : options_; + } + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ParseResumeOptions, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ParseResumeOptions, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder>( + getOptions(), getParentForChildren(), isClean()); + options_ = null; + } + return optionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ParseResumeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeRequest) + private static final com.google.cloud.talent.v4beta1.ParseResumeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeRequest(); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseResumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParseResumeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java new file mode 100644 index 000000000000..f4ca4847d5fb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java @@ -0,0 +1,147 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ParseResumeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The bytes of the resume file in common format, for example, PDF, TXT.
+   * UTF-8 encoding is required if the resume is text-based, otherwise an error
+   * is thrown.
+   * 
+ * + * bytes resume = 2; + */ + com.google.protobuf.ByteString getResume(); + + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + java.lang.String getRegionCode(); + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + boolean hasOptions(); + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions(); + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java new file mode 100644 index 000000000000..aa52350520c9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java @@ -0,0 +1,865 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Parse resume response.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeResponse} + */ +public final class ParseResumeResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeResponse) + ParseResumeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParseResumeResponse.newBuilder() to construct. + private ParseResumeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParseResumeResponse() { + rawText_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParseResumeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + rawText_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeResponse.class, + com.google.cloud.talent.v4beta1.ParseResumeResponse.Builder.class); + } + + public static final int PROFILE_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Profile profile_; + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + return getProfile(); + } + + public static final int RAW_TEXT_FIELD_NUMBER = 2; + private volatile java.lang.Object rawText_; + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + public java.lang.String getRawText() { + java.lang.Object ref = rawText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rawText_ = s; + return s; + } + } + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + public com.google.protobuf.ByteString getRawTextBytes() { + java.lang.Object ref = rawText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rawText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (profile_ != null) { + output.writeMessage(1, getProfile()); + } + if (!getRawTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rawText_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfile()); + } + if (!getRawTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rawText_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ParseResumeResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ParseResumeResponse other = + (com.google.cloud.talent.v4beta1.ParseResumeResponse) obj; + + boolean result = true; + result = result && (hasProfile() == other.hasProfile()); + if (hasProfile()) { + result = result && getProfile().equals(other.getProfile()); + } + result = result && getRawText().equals(other.getRawText()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + hash = (37 * hash) + RAW_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getRawText().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ParseResumeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Parse resume response.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeResponse) + com.google.cloud.talent.v4beta1.ParseResumeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeResponse.class, + com.google.cloud.talent.v4beta1.ParseResumeResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ParseResumeResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + rawText_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ParseResumeResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse build() { + com.google.cloud.talent.v4beta1.ParseResumeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse buildPartial() { + com.google.cloud.talent.v4beta1.ParseResumeResponse result = + new com.google.cloud.talent.v4beta1.ParseResumeResponse(this); + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + result.rawText_ = rawText_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeResponse other) { + if (other == com.google.cloud.talent.v4beta1.ParseResumeResponse.getDefaultInstance()) + return this; + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + if (!other.getRawText().isEmpty()) { + rawText_ = other.rawText_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ParseResumeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ParseResumeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Profile profile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profileBuilder_; + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + private java.lang.Object rawText_ = ""; + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public java.lang.String getRawText() { + java.lang.Object ref = rawText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rawText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public com.google.protobuf.ByteString getRawTextBytes() { + java.lang.Object ref = rawText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rawText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public Builder setRawText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rawText_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public Builder clearRawText() { + + rawText_ = getDefaultInstance().getRawText(); + onChanged(); + return this; + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public Builder setRawTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rawText_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ParseResumeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeResponse) + private static final com.google.cloud.talent.v4beta1.ParseResumeResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeResponse(); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseResumeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParseResumeResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java new file mode 100644 index 000000000000..a0a8563223a8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ParseResumeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + boolean hasProfile(); + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfile(); + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); + + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + java.lang.String getRawText(); + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + com.google.protobuf.ByteString getRawTextBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java new file mode 100644 index 000000000000..232d20a3dda3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java @@ -0,0 +1,2630 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents the patent acquired by a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Patent} + */ +public final class Patent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Patent) + PatentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Patent.newBuilder() to construct. + private Patent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Patent() { + displayName_ = ""; + inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + patentStatus_ = ""; + patentOffice_ = ""; + patentNumber_ = ""; + patentDescription_ = ""; + skillsUsed_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Patent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + inventors_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentStatus_ = s; + break; + } + case 34: + { + com.google.type.Date.Builder subBuilder = null; + if (patentStatusDate_ != null) { + subBuilder = patentStatusDate_.toBuilder(); + } + patentStatusDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(patentStatusDate_); + patentStatusDate_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.type.Date.Builder subBuilder = null; + if (patentFilingDate_ != null) { + subBuilder = patentFilingDate_.toBuilder(); + } + patentFilingDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(patentFilingDate_); + patentFilingDate_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentOffice_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentNumber_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentDescription_ = s; + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + skillsUsed_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = inventors_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Patent.class, + com.google.cloud.talent.v4beta1.Patent.Builder.class); + } + + private int bitField0_; + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INVENTORS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList inventors_; + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ProtocolStringList getInventorsList() { + return inventors_; + } + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public int getInventorsCount() { + return inventors_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public java.lang.String getInventors(int index) { + return inventors_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ByteString getInventorsBytes(int index) { + return inventors_.getByteString(index); + } + + public static final int PATENT_STATUS_FIELD_NUMBER = 3; + private volatile java.lang.Object patentStatus_; + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + public java.lang.String getPatentStatus() { + java.lang.Object ref = patentStatus_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentStatus_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + public com.google.protobuf.ByteString getPatentStatusBytes() { + java.lang.Object ref = patentStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATENT_STATUS_DATE_FIELD_NUMBER = 4; + private com.google.type.Date patentStatusDate_; + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public boolean hasPatentStatusDate() { + return patentStatusDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.Date getPatentStatusDate() { + return patentStatusDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentStatusDate_; + } + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.DateOrBuilder getPatentStatusDateOrBuilder() { + return getPatentStatusDate(); + } + + public static final int PATENT_FILING_DATE_FIELD_NUMBER = 5; + private com.google.type.Date patentFilingDate_; + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public boolean hasPatentFilingDate() { + return patentFilingDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.Date getPatentFilingDate() { + return patentFilingDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentFilingDate_; + } + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.DateOrBuilder getPatentFilingDateOrBuilder() { + return getPatentFilingDate(); + } + + public static final int PATENT_OFFICE_FIELD_NUMBER = 6; + private volatile java.lang.Object patentOffice_; + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + public java.lang.String getPatentOffice() { + java.lang.Object ref = patentOffice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentOffice_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + public com.google.protobuf.ByteString getPatentOfficeBytes() { + java.lang.Object ref = patentOffice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentOffice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATENT_NUMBER_FIELD_NUMBER = 7; + private volatile java.lang.Object patentNumber_; + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + public java.lang.String getPatentNumber() { + java.lang.Object ref = patentNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentNumber_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + public com.google.protobuf.ByteString getPatentNumberBytes() { + java.lang.Object ref = patentNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATENT_DESCRIPTION_FIELD_NUMBER = 8; + private volatile java.lang.Object patentDescription_; + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + public java.lang.String getPatentDescription() { + java.lang.Object ref = patentDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentDescription_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + public com.google.protobuf.ByteString getPatentDescriptionBytes() { + java.lang.Object ref = patentDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILLS_USED_FIELD_NUMBER = 9; + private java.util.List skillsUsed_; + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List getSkillsUsedList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public int getSkillsUsedCount() { + return skillsUsed_.size(); + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + return skillsUsed_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + return skillsUsed_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + for (int i = 0; i < inventors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inventors_.getRaw(i)); + } + if (!getPatentStatusBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patentStatus_); + } + if (patentStatusDate_ != null) { + output.writeMessage(4, getPatentStatusDate()); + } + if (patentFilingDate_ != null) { + output.writeMessage(5, getPatentFilingDate()); + } + if (!getPatentOfficeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, patentOffice_); + } + if (!getPatentNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, patentNumber_); + } + if (!getPatentDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patentDescription_); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + output.writeMessage(9, skillsUsed_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + { + int dataSize = 0; + for (int i = 0; i < inventors_.size(); i++) { + dataSize += computeStringSizeNoTag(inventors_.getRaw(i)); + } + size += dataSize; + size += 1 * getInventorsList().size(); + } + if (!getPatentStatusBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patentStatus_); + } + if (patentStatusDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPatentStatusDate()); + } + if (patentFilingDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPatentFilingDate()); + } + if (!getPatentOfficeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, patentOffice_); + } + if (!getPatentNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, patentNumber_); + } + if (!getPatentDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, patentDescription_); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, skillsUsed_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Patent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Patent other = (com.google.cloud.talent.v4beta1.Patent) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && getInventorsList().equals(other.getInventorsList()); + result = result && getPatentStatus().equals(other.getPatentStatus()); + result = result && (hasPatentStatusDate() == other.hasPatentStatusDate()); + if (hasPatentStatusDate()) { + result = result && getPatentStatusDate().equals(other.getPatentStatusDate()); + } + result = result && (hasPatentFilingDate() == other.hasPatentFilingDate()); + if (hasPatentFilingDate()) { + result = result && getPatentFilingDate().equals(other.getPatentFilingDate()); + } + result = result && getPatentOffice().equals(other.getPatentOffice()); + result = result && getPatentNumber().equals(other.getPatentNumber()); + result = result && getPatentDescription().equals(other.getPatentDescription()); + result = result && getSkillsUsedList().equals(other.getSkillsUsedList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getInventorsCount() > 0) { + hash = (37 * hash) + INVENTORS_FIELD_NUMBER; + hash = (53 * hash) + getInventorsList().hashCode(); + } + hash = (37 * hash) + PATENT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getPatentStatus().hashCode(); + if (hasPatentStatusDate()) { + hash = (37 * hash) + PATENT_STATUS_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPatentStatusDate().hashCode(); + } + if (hasPatentFilingDate()) { + hash = (37 * hash) + PATENT_FILING_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPatentFilingDate().hashCode(); + } + hash = (37 * hash) + PATENT_OFFICE_FIELD_NUMBER; + hash = (53 * hash) + getPatentOffice().hashCode(); + hash = (37 * hash) + PATENT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPatentNumber().hashCode(); + hash = (37 * hash) + PATENT_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getPatentDescription().hashCode(); + if (getSkillsUsedCount() > 0) { + hash = (37 * hash) + SKILLS_USED_FIELD_NUMBER; + hash = (53 * hash) + getSkillsUsedList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Patent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Patent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents the patent acquired by a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Patent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Patent) + com.google.cloud.talent.v4beta1.PatentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Patent.class, + com.google.cloud.talent.v4beta1.Patent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Patent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSkillsUsedFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + patentStatus_ = ""; + + if (patentStatusDateBuilder_ == null) { + patentStatusDate_ = null; + } else { + patentStatusDate_ = null; + patentStatusDateBuilder_ = null; + } + if (patentFilingDateBuilder_ == null) { + patentFilingDate_ = null; + } else { + patentFilingDate_ = null; + patentFilingDateBuilder_ = null; + } + patentOffice_ = ""; + + patentNumber_ = ""; + + patentDescription_ = ""; + + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + } else { + skillsUsedBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Patent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent build() { + com.google.cloud.talent.v4beta1.Patent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent buildPartial() { + com.google.cloud.talent.v4beta1.Patent result = + new com.google.cloud.talent.v4beta1.Patent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.displayName_ = displayName_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = inventors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inventors_ = inventors_; + result.patentStatus_ = patentStatus_; + if (patentStatusDateBuilder_ == null) { + result.patentStatusDate_ = patentStatusDate_; + } else { + result.patentStatusDate_ = patentStatusDateBuilder_.build(); + } + if (patentFilingDateBuilder_ == null) { + result.patentFilingDate_ = patentFilingDate_; + } else { + result.patentFilingDate_ = patentFilingDateBuilder_.build(); + } + result.patentOffice_ = patentOffice_; + result.patentNumber_ = patentNumber_; + result.patentDescription_ = patentDescription_; + if (skillsUsedBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.skillsUsed_ = skillsUsed_; + } else { + result.skillsUsed_ = skillsUsedBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Patent) { + return mergeFrom((com.google.cloud.talent.v4beta1.Patent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Patent other) { + if (other == com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.inventors_.isEmpty()) { + if (inventors_.isEmpty()) { + inventors_ = other.inventors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInventorsIsMutable(); + inventors_.addAll(other.inventors_); + } + onChanged(); + } + if (!other.getPatentStatus().isEmpty()) { + patentStatus_ = other.patentStatus_; + onChanged(); + } + if (other.hasPatentStatusDate()) { + mergePatentStatusDate(other.getPatentStatusDate()); + } + if (other.hasPatentFilingDate()) { + mergePatentFilingDate(other.getPatentFilingDate()); + } + if (!other.getPatentOffice().isEmpty()) { + patentOffice_ = other.patentOffice_; + onChanged(); + } + if (!other.getPatentNumber().isEmpty()) { + patentNumber_ = other.patentNumber_; + onChanged(); + } + if (!other.getPatentDescription().isEmpty()) { + patentDescription_ = other.patentDescription_; + onChanged(); + } + if (skillsUsedBuilder_ == null) { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsed_.isEmpty()) { + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureSkillsUsedIsMutable(); + skillsUsed_.addAll(other.skillsUsed_); + } + onChanged(); + } + } else { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsedBuilder_.isEmpty()) { + skillsUsedBuilder_.dispose(); + skillsUsedBuilder_ = null; + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000100); + skillsUsedBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillsUsedFieldBuilder() + : null; + } else { + skillsUsedBuilder_.addAllMessages(other.skillsUsed_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Patent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Patent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList inventors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInventorsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = new com.google.protobuf.LazyStringArrayList(inventors_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ProtocolStringList getInventorsList() { + return inventors_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public int getInventorsCount() { + return inventors_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public java.lang.String getInventors(int index) { + return inventors_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ByteString getInventorsBytes(int index) { + return inventors_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder setInventors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInventorsIsMutable(); + inventors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder addInventors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInventorsIsMutable(); + inventors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder addAllInventors(java.lang.Iterable values) { + ensureInventorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inventors_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder clearInventors() { + inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder addInventorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInventorsIsMutable(); + inventors_.add(value); + onChanged(); + return this; + } + + private java.lang.Object patentStatus_ = ""; + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public java.lang.String getPatentStatus() { + java.lang.Object ref = patentStatus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentStatus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public com.google.protobuf.ByteString getPatentStatusBytes() { + java.lang.Object ref = patentStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public Builder setPatentStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentStatus_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public Builder clearPatentStatus() { + + patentStatus_ = getDefaultInstance().getPatentStatus(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public Builder setPatentStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentStatus_ = value; + onChanged(); + return this; + } + + private com.google.type.Date patentStatusDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + patentStatusDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public boolean hasPatentStatusDate() { + return patentStatusDateBuilder_ != null || patentStatusDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.Date getPatentStatusDate() { + if (patentStatusDateBuilder_ == null) { + return patentStatusDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentStatusDate_; + } else { + return patentStatusDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder setPatentStatusDate(com.google.type.Date value) { + if (patentStatusDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + patentStatusDate_ = value; + onChanged(); + } else { + patentStatusDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder setPatentStatusDate(com.google.type.Date.Builder builderForValue) { + if (patentStatusDateBuilder_ == null) { + patentStatusDate_ = builderForValue.build(); + onChanged(); + } else { + patentStatusDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder mergePatentStatusDate(com.google.type.Date value) { + if (patentStatusDateBuilder_ == null) { + if (patentStatusDate_ != null) { + patentStatusDate_ = + com.google.type.Date.newBuilder(patentStatusDate_).mergeFrom(value).buildPartial(); + } else { + patentStatusDate_ = value; + } + onChanged(); + } else { + patentStatusDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder clearPatentStatusDate() { + if (patentStatusDateBuilder_ == null) { + patentStatusDate_ = null; + onChanged(); + } else { + patentStatusDate_ = null; + patentStatusDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.Date.Builder getPatentStatusDateBuilder() { + + onChanged(); + return getPatentStatusDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.DateOrBuilder getPatentStatusDateOrBuilder() { + if (patentStatusDateBuilder_ != null) { + return patentStatusDateBuilder_.getMessageOrBuilder(); + } else { + return patentStatusDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentStatusDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getPatentStatusDateFieldBuilder() { + if (patentStatusDateBuilder_ == null) { + patentStatusDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPatentStatusDate(), getParentForChildren(), isClean()); + patentStatusDate_ = null; + } + return patentStatusDateBuilder_; + } + + private com.google.type.Date patentFilingDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + patentFilingDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public boolean hasPatentFilingDate() { + return patentFilingDateBuilder_ != null || patentFilingDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.Date getPatentFilingDate() { + if (patentFilingDateBuilder_ == null) { + return patentFilingDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentFilingDate_; + } else { + return patentFilingDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder setPatentFilingDate(com.google.type.Date value) { + if (patentFilingDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + patentFilingDate_ = value; + onChanged(); + } else { + patentFilingDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder setPatentFilingDate(com.google.type.Date.Builder builderForValue) { + if (patentFilingDateBuilder_ == null) { + patentFilingDate_ = builderForValue.build(); + onChanged(); + } else { + patentFilingDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder mergePatentFilingDate(com.google.type.Date value) { + if (patentFilingDateBuilder_ == null) { + if (patentFilingDate_ != null) { + patentFilingDate_ = + com.google.type.Date.newBuilder(patentFilingDate_).mergeFrom(value).buildPartial(); + } else { + patentFilingDate_ = value; + } + onChanged(); + } else { + patentFilingDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder clearPatentFilingDate() { + if (patentFilingDateBuilder_ == null) { + patentFilingDate_ = null; + onChanged(); + } else { + patentFilingDate_ = null; + patentFilingDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.Date.Builder getPatentFilingDateBuilder() { + + onChanged(); + return getPatentFilingDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.DateOrBuilder getPatentFilingDateOrBuilder() { + if (patentFilingDateBuilder_ != null) { + return patentFilingDateBuilder_.getMessageOrBuilder(); + } else { + return patentFilingDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentFilingDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getPatentFilingDateFieldBuilder() { + if (patentFilingDateBuilder_ == null) { + patentFilingDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPatentFilingDate(), getParentForChildren(), isClean()); + patentFilingDate_ = null; + } + return patentFilingDateBuilder_; + } + + private java.lang.Object patentOffice_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public java.lang.String getPatentOffice() { + java.lang.Object ref = patentOffice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentOffice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public com.google.protobuf.ByteString getPatentOfficeBytes() { + java.lang.Object ref = patentOffice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentOffice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public Builder setPatentOffice(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentOffice_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public Builder clearPatentOffice() { + + patentOffice_ = getDefaultInstance().getPatentOffice(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public Builder setPatentOfficeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentOffice_ = value; + onChanged(); + return this; + } + + private java.lang.Object patentNumber_ = ""; + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public java.lang.String getPatentNumber() { + java.lang.Object ref = patentNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public com.google.protobuf.ByteString getPatentNumberBytes() { + java.lang.Object ref = patentNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public Builder setPatentNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentNumber_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public Builder clearPatentNumber() { + + patentNumber_ = getDefaultInstance().getPatentNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public Builder setPatentNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentNumber_ = value; + onChanged(); + return this; + } + + private java.lang.Object patentDescription_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public java.lang.String getPatentDescription() { + java.lang.Object ref = patentDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public com.google.protobuf.ByteString getPatentDescriptionBytes() { + java.lang.Object ref = patentDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public Builder setPatentDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public Builder clearPatentDescription() { + + patentDescription_ = getDefaultInstance().getPatentDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public Builder setPatentDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentDescription_ = value; + onChanged(); + return this; + } + + private java.util.List skillsUsed_ = + java.util.Collections.emptyList(); + + private void ensureSkillsUsedIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = new java.util.ArrayList(skillsUsed_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + skillsUsedBuilder_; + + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List getSkillsUsedList() { + if (skillsUsedBuilder_ == null) { + return java.util.Collections.unmodifiableList(skillsUsed_); + } else { + return skillsUsedBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public int getSkillsUsedCount() { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.size(); + } else { + return skillsUsedBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder setSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, value); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder setSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addAllSkillsUsed( + java.lang.Iterable values) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsed_); + onChanged(); + } else { + skillsUsedBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder clearSkillsUsed() { + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + skillsUsedBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder removeSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.remove(index); + onChanged(); + } else { + skillsUsedBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + if (skillsUsedBuilder_ != null) { + return skillsUsedBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skillsUsed_); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder() { + return getSkillsUsedFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List + getSkillsUsedBuilderList() { + return getSkillsUsedFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + getSkillsUsedFieldBuilder() { + if (skillsUsedBuilder_ == null) { + skillsUsedBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder>( + skillsUsed_, + ((bitField0_ & 0x00000100) == 0x00000100), + getParentForChildren(), + isClean()); + skillsUsed_ = null; + } + return skillsUsedBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Patent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Patent) + private static final com.google.cloud.talent.v4beta1.Patent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Patent(); + } + + public static com.google.cloud.talent.v4beta1.Patent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Patent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Patent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java new file mode 100644 index 000000000000..afa687caea83 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java @@ -0,0 +1,309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PatentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Patent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + java.util.List getInventorsList(); + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + int getInventorsCount(); + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + java.lang.String getInventors(int index); + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + com.google.protobuf.ByteString getInventorsBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + java.lang.String getPatentStatus(); + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + com.google.protobuf.ByteString getPatentStatusBytes(); + + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + boolean hasPatentStatusDate(); + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + com.google.type.Date getPatentStatusDate(); + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + com.google.type.DateOrBuilder getPatentStatusDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + boolean hasPatentFilingDate(); + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + com.google.type.Date getPatentFilingDate(); + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + com.google.type.DateOrBuilder getPatentFilingDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + java.lang.String getPatentOffice(); + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + com.google.protobuf.ByteString getPatentOfficeBytes(); + + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + java.lang.String getPatentNumber(); + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + com.google.protobuf.ByteString getPatentNumberBytes(); + + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + java.lang.String getPatentDescription(); + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + com.google.protobuf.ByteString getPatentDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + java.util.List getSkillsUsedList(); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + int getSkillsUsedCount(); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + java.util.List + getSkillsUsedOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java new file mode 100644 index 000000000000..434ac7d22ab0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java @@ -0,0 +1,2975 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents the name of a person.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName} + */ +public final class PersonName extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonName) + PersonNameOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonName.newBuilder() to construct. + private PersonName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonName() { + preferredName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PersonName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + personNameCase_ = 1; + personName_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder subBuilder = + null; + if (personNameCase_ == 2) { + subBuilder = + ((com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_) + .toBuilder(); + } + personName_ = + input.readMessage( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); + personName_ = subBuilder.buildPartial(); + } + personNameCase_ = 2; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + preferredName_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.class, + com.google.cloud.talent.v4beta1.PersonName.Builder.class); + } + + public interface PersonStructuredNameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + java.lang.String getGivenName(); + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + com.google.protobuf.ByteString getGivenNameBytes(); + + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + java.lang.String getMiddleInitial(); + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + com.google.protobuf.ByteString getMiddleInitialBytes(); + + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + java.lang.String getFamilyName(); + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + com.google.protobuf.ByteString getFamilyNameBytes(); + + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + java.util.List getSuffixesList(); + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + int getSuffixesCount(); + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + java.lang.String getSuffixes(int index); + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + com.google.protobuf.ByteString getSuffixesBytes(int index); + + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + java.util.List getPrefixesList(); + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + int getPrefixesCount(); + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + java.lang.String getPrefixes(int index); + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + com.google.protobuf.ByteString getPrefixesBytes(int index); + } + /** + * + * + *
+   * Resource that represents a person's structured name.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName.PersonStructuredName} + */ + public static final class PersonStructuredName extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + PersonStructuredNameOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonStructuredName.newBuilder() to construct. + private PersonStructuredName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonStructuredName() { + givenName_ = ""; + middleInitial_ = ""; + familyName_ = ""; + suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PersonStructuredName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + givenName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + middleInitial_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + familyName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + suffixes_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + prefixes_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = suffixes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = prefixes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.class, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder.class); + } + + private int bitField0_; + public static final int GIVEN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object givenName_; + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + givenName_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + public com.google.protobuf.ByteString getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIDDLE_INITIAL_FIELD_NUMBER = 2; + private volatile java.lang.Object middleInitial_; + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + public java.lang.String getMiddleInitial() { + java.lang.Object ref = middleInitial_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + middleInitial_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + public com.google.protobuf.ByteString getMiddleInitialBytes() { + java.lang.Object ref = middleInitial_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + middleInitial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAMILY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object familyName_; + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + public com.google.protobuf.ByteString getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUFFIXES_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList suffixes_; + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ProtocolStringList getSuffixesList() { + return suffixes_; + } + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public int getSuffixesCount() { + return suffixes_.size(); + } + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public java.lang.String getSuffixes(int index) { + return suffixes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ByteString getSuffixesBytes(int index) { + return suffixes_.getByteString(index); + } + + public static final int PREFIXES_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList prefixes_; + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ProtocolStringList getPrefixesList() { + return prefixes_; + } + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public int getPrefixesCount() { + return prefixes_.size(); + } + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public java.lang.String getPrefixes(int index) { + return prefixes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ByteString getPrefixesBytes(int index) { + return prefixes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getGivenNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, givenName_); + } + if (!getMiddleInitialBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, middleInitial_); + } + if (!getFamilyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, familyName_); + } + for (int i = 0; i < suffixes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, suffixes_.getRaw(i)); + } + for (int i = 0; i < prefixes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, prefixes_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getGivenNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, givenName_); + } + if (!getMiddleInitialBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, middleInitial_); + } + if (!getFamilyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, familyName_); + } + { + int dataSize = 0; + for (int i = 0; i < suffixes_.size(); i++) { + dataSize += computeStringSizeNoTag(suffixes_.getRaw(i)); + } + size += dataSize; + size += 1 * getSuffixesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < prefixes_.size(); i++) { + dataSize += computeStringSizeNoTag(prefixes_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrefixesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName other = + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) obj; + + boolean result = true; + result = result && getGivenName().equals(other.getGivenName()); + result = result && getMiddleInitial().equals(other.getMiddleInitial()); + result = result && getFamilyName().equals(other.getFamilyName()); + result = result && getSuffixesList().equals(other.getSuffixesList()); + result = result && getPrefixesList().equals(other.getPrefixesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GIVEN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGivenName().hashCode(); + hash = (37 * hash) + MIDDLE_INITIAL_FIELD_NUMBER; + hash = (53 * hash) + getMiddleInitial().hashCode(); + hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFamilyName().hashCode(); + if (getSuffixesCount() > 0) { + hash = (37 * hash) + SUFFIXES_FIELD_NUMBER; + hash = (53 * hash) + getSuffixesList().hashCode(); + } + if (getPrefixesCount() > 0) { + hash = (37 * hash) + PREFIXES_FIELD_NUMBER; + hash = (53 * hash) + getPrefixesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Resource that represents a person's structured name.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName.PersonStructuredName} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.class, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + givenName_ = ""; + + middleInitial_ = ""; + + familyName_ = ""; + + suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName build() { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName buildPartial() { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName result = + new com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.givenName_ = givenName_; + result.middleInitial_ = middleInitial_; + result.familyName_ = familyName_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = suffixes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.suffixes_ = suffixes_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = prefixes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.prefixes_ = prefixes_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) { + return mergeFrom((com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName other) { + if (other + == com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance()) + return this; + if (!other.getGivenName().isEmpty()) { + givenName_ = other.givenName_; + onChanged(); + } + if (!other.getMiddleInitial().isEmpty()) { + middleInitial_ = other.middleInitial_; + onChanged(); + } + if (!other.getFamilyName().isEmpty()) { + familyName_ = other.familyName_; + onChanged(); + } + if (!other.suffixes_.isEmpty()) { + if (suffixes_.isEmpty()) { + suffixes_ = other.suffixes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSuffixesIsMutable(); + suffixes_.addAll(other.suffixes_); + } + onChanged(); + } + if (!other.prefixes_.isEmpty()) { + if (prefixes_.isEmpty()) { + prefixes_ = other.prefixes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePrefixesIsMutable(); + prefixes_.addAll(other.prefixes_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object givenName_ = ""; + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + givenName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public com.google.protobuf.ByteString getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public Builder setGivenName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + givenName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public Builder clearGivenName() { + + givenName_ = getDefaultInstance().getGivenName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public Builder setGivenNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + givenName_ = value; + onChanged(); + return this; + } + + private java.lang.Object middleInitial_ = ""; + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public java.lang.String getMiddleInitial() { + java.lang.Object ref = middleInitial_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + middleInitial_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public com.google.protobuf.ByteString getMiddleInitialBytes() { + java.lang.Object ref = middleInitial_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + middleInitial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public Builder setMiddleInitial(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + middleInitial_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public Builder clearMiddleInitial() { + + middleInitial_ = getDefaultInstance().getMiddleInitial(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public Builder setMiddleInitialBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + middleInitial_ = value; + onChanged(); + return this; + } + + private java.lang.Object familyName_ = ""; + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public com.google.protobuf.ByteString getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public Builder setFamilyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + familyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public Builder clearFamilyName() { + + familyName_ = getDefaultInstance().getFamilyName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public Builder setFamilyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + familyName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList suffixes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSuffixesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = new com.google.protobuf.LazyStringArrayList(suffixes_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ProtocolStringList getSuffixesList() { + return suffixes_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public int getSuffixesCount() { + return suffixes_.size(); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public java.lang.String getSuffixes(int index) { + return suffixes_.get(index); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ByteString getSuffixesBytes(int index) { + return suffixes_.getByteString(index); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder setSuffixes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuffixesIsMutable(); + suffixes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder addSuffixes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuffixesIsMutable(); + suffixes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder addAllSuffixes(java.lang.Iterable values) { + ensureSuffixesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suffixes_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder clearSuffixes() { + suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder addSuffixesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSuffixesIsMutable(); + suffixes_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList prefixes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePrefixesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ProtocolStringList getPrefixesList() { + return prefixes_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public int getPrefixesCount() { + return prefixes_.size(); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public java.lang.String getPrefixes(int index) { + return prefixes_.get(index); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ByteString getPrefixesBytes(int index) { + return prefixes_.getByteString(index); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder setPrefixes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrefixesIsMutable(); + prefixes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder addPrefixes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrefixesIsMutable(); + prefixes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder addAllPrefixes(java.lang.Iterable values) { + ensurePrefixesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prefixes_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder clearPrefixes() { + prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrefixesIsMutable(); + prefixes_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + private static final com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName(); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonStructuredName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersonStructuredName(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int personNameCase_ = 0; + private java.lang.Object personName_; + + public enum PersonNameCase implements com.google.protobuf.Internal.EnumLite { + FORMATTED_NAME(1), + STRUCTURED_NAME(2), + PERSONNAME_NOT_SET(0); + private final int value; + + private PersonNameCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static PersonNameCase valueOf(int value) { + return forNumber(value); + } + + public static PersonNameCase forNumber(int value) { + switch (value) { + case 1: + return FORMATTED_NAME; + case 2: + return STRUCTURED_NAME; + case 0: + return PERSONNAME_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PersonNameCase getPersonNameCase() { + return PersonNameCase.forNumber(personNameCase_); + } + + public static final int FORMATTED_NAME_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + public java.lang.String getFormattedName() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (personNameCase_ == 1) { + personName_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + public com.google.protobuf.ByteString getFormattedNameBytes() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (personNameCase_ == 1) { + personName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCTURED_NAME_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + public boolean hasStructuredName() { + return personNameCase_ == 2; + } + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName() { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder + getStructuredNameOrBuilder() { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + + public static final int PREFERRED_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object preferredName_; + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + public java.lang.String getPreferredName() { + java.lang.Object ref = preferredName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preferredName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + public com.google.protobuf.ByteString getPreferredNameBytes() { + java.lang.Object ref = preferredName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preferredName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (personNameCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, personName_); + } + if (personNameCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); + } + if (!getPreferredNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, preferredName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (personNameCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, personName_); + } + if (personNameCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); + } + if (!getPreferredNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, preferredName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.PersonName)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.PersonName other = + (com.google.cloud.talent.v4beta1.PersonName) obj; + + boolean result = true; + result = result && getPreferredName().equals(other.getPreferredName()); + result = result && getPersonNameCase().equals(other.getPersonNameCase()); + if (!result) return false; + switch (personNameCase_) { + case 1: + result = result && getFormattedName().equals(other.getFormattedName()); + break; + case 2: + result = result && getStructuredName().equals(other.getStructuredName()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREFERRED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPreferredName().hashCode(); + switch (personNameCase_) { + case 1: + hash = (37 * hash) + FORMATTED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFormattedName().hashCode(); + break; + case 2: + hash = (37 * hash) + STRUCTURED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getStructuredName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.PersonName prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents the name of a person.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonName) + com.google.cloud.talent.v4beta1.PersonNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.class, + com.google.cloud.talent.v4beta1.PersonName.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.PersonName.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + preferredName_ = ""; + + personNameCase_ = 0; + personName_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName build() { + com.google.cloud.talent.v4beta1.PersonName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName buildPartial() { + com.google.cloud.talent.v4beta1.PersonName result = + new com.google.cloud.talent.v4beta1.PersonName(this); + if (personNameCase_ == 1) { + result.personName_ = personName_; + } + if (personNameCase_ == 2) { + if (structuredNameBuilder_ == null) { + result.personName_ = personName_; + } else { + result.personName_ = structuredNameBuilder_.build(); + } + } + result.preferredName_ = preferredName_; + result.personNameCase_ = personNameCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.PersonName) { + return mergeFrom((com.google.cloud.talent.v4beta1.PersonName) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.PersonName other) { + if (other == com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()) return this; + if (!other.getPreferredName().isEmpty()) { + preferredName_ = other.preferredName_; + onChanged(); + } + switch (other.getPersonNameCase()) { + case FORMATTED_NAME: + { + personNameCase_ = 1; + personName_ = other.personName_; + onChanged(); + break; + } + case STRUCTURED_NAME: + { + mergeStructuredName(other.getStructuredName()); + break; + } + case PERSONNAME_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.PersonName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.PersonName) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int personNameCase_ = 0; + private java.lang.Object personName_; + + public PersonNameCase getPersonNameCase() { + return PersonNameCase.forNumber(personNameCase_); + } + + public Builder clearPersonName() { + personNameCase_ = 0; + personName_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public java.lang.String getFormattedName() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (personNameCase_ == 1) { + personName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public com.google.protobuf.ByteString getFormattedNameBytes() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (personNameCase_ == 1) { + personName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public Builder setFormattedName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + personNameCase_ = 1; + personName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public Builder clearFormattedName() { + if (personNameCase_ == 1) { + personNameCase_ = 0; + personName_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public Builder setFormattedNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + personNameCase_ = 1; + personName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder> + structuredNameBuilder_; + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public boolean hasStructuredName() { + return personNameCase_ == 2; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName() { + if (structuredNameBuilder_ == null) { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } else { + if (personNameCase_ == 2) { + return structuredNameBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder setStructuredName( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName value) { + if (structuredNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + personName_ = value; + onChanged(); + } else { + structuredNameBuilder_.setMessage(value); + } + personNameCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder setStructuredName( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder builderForValue) { + if (structuredNameBuilder_ == null) { + personName_ = builderForValue.build(); + onChanged(); + } else { + structuredNameBuilder_.setMessage(builderForValue.build()); + } + personNameCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder mergeStructuredName( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName value) { + if (structuredNameBuilder_ == null) { + if (personNameCase_ == 2 + && personName_ + != com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + .getDefaultInstance()) { + personName_ = + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.newBuilder( + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_) + .mergeFrom(value) + .buildPartial(); + } else { + personName_ = value; + } + onChanged(); + } else { + if (personNameCase_ == 2) { + structuredNameBuilder_.mergeFrom(value); + } + structuredNameBuilder_.setMessage(value); + } + personNameCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder clearStructuredName() { + if (structuredNameBuilder_ == null) { + if (personNameCase_ == 2) { + personNameCase_ = 0; + personName_ = null; + onChanged(); + } + } else { + if (personNameCase_ == 2) { + personNameCase_ = 0; + personName_ = null; + } + structuredNameBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder + getStructuredNameBuilder() { + return getStructuredNameFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder + getStructuredNameOrBuilder() { + if ((personNameCase_ == 2) && (structuredNameBuilder_ != null)) { + return structuredNameBuilder_.getMessageOrBuilder(); + } else { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder> + getStructuredNameFieldBuilder() { + if (structuredNameBuilder_ == null) { + if (!(personNameCase_ == 2)) { + personName_ = + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + structuredNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder>( + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_, + getParentForChildren(), + isClean()); + personName_ = null; + } + personNameCase_ = 2; + onChanged(); + ; + return structuredNameBuilder_; + } + + private java.lang.Object preferredName_ = ""; + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public java.lang.String getPreferredName() { + java.lang.Object ref = preferredName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preferredName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public com.google.protobuf.ByteString getPreferredNameBytes() { + java.lang.Object ref = preferredName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preferredName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public Builder setPreferredName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + preferredName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public Builder clearPreferredName() { + + preferredName_ = getDefaultInstance().getPreferredName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public Builder setPreferredNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + preferredName_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonName) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonName) + private static final com.google.cloud.talent.v4beta1.PersonName DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonName(); + } + + public static com.google.cloud.talent.v4beta1.PersonName getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersonName(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java new file mode 100644 index 000000000000..916ca05ec8db --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PersonNameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonName) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + java.lang.String getFormattedName(); + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + com.google.protobuf.ByteString getFormattedNameBytes(); + + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + boolean hasStructuredName(); + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName(); + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder + getStructuredNameOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + java.lang.String getPreferredName(); + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + com.google.protobuf.ByteString getPreferredNameBytes(); + + public com.google.cloud.talent.v4beta1.PersonName.PersonNameCase getPersonNameCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java new file mode 100644 index 000000000000..b36f80bf7100 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java @@ -0,0 +1,611 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a valid URI for a personal use.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonalUri} + */ +public final class PersonalUri extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonalUri) + PersonalUriOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonalUri.newBuilder() to construct. + private PersonalUri(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonalUri() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PersonalUri( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonalUri.class, + com.google.cloud.talent.v4beta1.PersonalUri.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.PersonalUri)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.PersonalUri other = + (com.google.cloud.talent.v4beta1.PersonalUri) obj; + + boolean result = true; + result = result && getUri().equals(other.getUri()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.PersonalUri prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a valid URI for a personal use.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonalUri} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonalUri) + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonalUri.class, + com.google.cloud.talent.v4beta1.PersonalUri.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.PersonalUri.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + uri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri build() { + com.google.cloud.talent.v4beta1.PersonalUri result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri buildPartial() { + com.google.cloud.talent.v4beta1.PersonalUri result = + new com.google.cloud.talent.v4beta1.PersonalUri(this); + result.uri_ = uri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.PersonalUri) { + return mergeFrom((com.google.cloud.talent.v4beta1.PersonalUri) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.PersonalUri other) { + if (other == com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.PersonalUri parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.PersonalUri) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonalUri) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonalUri) + private static final com.google.cloud.talent.v4beta1.PersonalUri DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonalUri(); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonalUri parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersonalUri(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java new file mode 100644 index 000000000000..7b2ade421ca1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PersonalUriOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonalUri) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + com.google.protobuf.ByteString getUriBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java new file mode 100644 index 000000000000..9b822c84812d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java @@ -0,0 +1,1403 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a person's telephone number.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Phone} + */ +public final class Phone extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Phone) + PhoneOrBuilder { + private static final long serialVersionUID = 0L; + // Use Phone.newBuilder() to construct. + private Phone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Phone() { + usage_ = 0; + type_ = 0; + number_ = ""; + whenAvailable_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Phone( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + number_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + whenAvailable_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Phone.class, + com.google.cloud.talent.v4beta1.Phone.Builder.class); + } + + /** + * + * + *
+   * Enum that represents the type of the telephone.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Phone.PhoneType} + */ + public enum PhoneType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * PHONE_TYPE_UNSPECIFIED = 0; + */ + PHONE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A landline.
+     * 
+ * + * LANDLINE = 1; + */ + LANDLINE(1), + /** + * + * + *
+     * A mobile.
+     * 
+ * + * MOBILE = 2; + */ + MOBILE(2), + /** + * + * + *
+     * A fax.
+     * 
+ * + * FAX = 3; + */ + FAX(3), + /** + * + * + *
+     * A pager.
+     * 
+ * + * PAGER = 4; + */ + PAGER(4), + /** + * + * + *
+     * A TTY (test telephone) or TDD (telecommunication device for the deaf).
+     * 
+ * + * TTY_OR_TDD = 5; + */ + TTY_OR_TDD(5), + /** + * + * + *
+     * A voicemail.
+     * 
+ * + * VOICEMAIL = 6; + */ + VOICEMAIL(6), + /** + * + * + *
+     * A virtual telephone number is a number that can be routed to another
+     * number and managed by the user via Web, SMS, IVR, etc.  It is associated
+     * with a particular person, and may be routed to either a MOBILE or
+     * LANDLINE number. The phone usage (see ContactInfoUsage above) should be
+     * set to PERSONAL for these phone types. Some more information can be
+     * found here: http://en.wikipedia.org/wiki/Personal_Numbers
+     * 
+ * + * VIRTUAL = 7; + */ + VIRTUAL(7), + /** + * + * + *
+     * Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
+     * 
+ * + * VOIP = 8; + */ + VOIP(8), + /** + * + * + *
+     * In some regions (e.g. the USA), it is impossible to distinguish between
+     * fixed-line and mobile numbers by looking at the phone number itself.
+     * 
+ * + * MOBILE_OR_LANDLINE = 9; + */ + MOBILE_OR_LANDLINE(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * PHONE_TYPE_UNSPECIFIED = 0; + */ + public static final int PHONE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A landline.
+     * 
+ * + * LANDLINE = 1; + */ + public static final int LANDLINE_VALUE = 1; + /** + * + * + *
+     * A mobile.
+     * 
+ * + * MOBILE = 2; + */ + public static final int MOBILE_VALUE = 2; + /** + * + * + *
+     * A fax.
+     * 
+ * + * FAX = 3; + */ + public static final int FAX_VALUE = 3; + /** + * + * + *
+     * A pager.
+     * 
+ * + * PAGER = 4; + */ + public static final int PAGER_VALUE = 4; + /** + * + * + *
+     * A TTY (test telephone) or TDD (telecommunication device for the deaf).
+     * 
+ * + * TTY_OR_TDD = 5; + */ + public static final int TTY_OR_TDD_VALUE = 5; + /** + * + * + *
+     * A voicemail.
+     * 
+ * + * VOICEMAIL = 6; + */ + public static final int VOICEMAIL_VALUE = 6; + /** + * + * + *
+     * A virtual telephone number is a number that can be routed to another
+     * number and managed by the user via Web, SMS, IVR, etc.  It is associated
+     * with a particular person, and may be routed to either a MOBILE or
+     * LANDLINE number. The phone usage (see ContactInfoUsage above) should be
+     * set to PERSONAL for these phone types. Some more information can be
+     * found here: http://en.wikipedia.org/wiki/Personal_Numbers
+     * 
+ * + * VIRTUAL = 7; + */ + public static final int VIRTUAL_VALUE = 7; + /** + * + * + *
+     * Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
+     * 
+ * + * VOIP = 8; + */ + public static final int VOIP_VALUE = 8; + /** + * + * + *
+     * In some regions (e.g. the USA), it is impossible to distinguish between
+     * fixed-line and mobile numbers by looking at the phone number itself.
+     * 
+ * + * MOBILE_OR_LANDLINE = 9; + */ + public static final int MOBILE_OR_LANDLINE_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static PhoneType valueOf(int value) { + return forNumber(value); + } + + public static PhoneType forNumber(int value) { + switch (value) { + case 0: + return PHONE_TYPE_UNSPECIFIED; + case 1: + return LANDLINE; + case 2: + return MOBILE; + case 3: + return FAX; + case 4: + return PAGER; + case 5: + return TTY_OR_TDD; + case 6: + return VOICEMAIL; + case 7: + return VIRTUAL; + case 8: + return VOIP; + case 9: + return MOBILE_OR_LANDLINE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PhoneType findValueByNumber(int number) { + return PhoneType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Phone.getDescriptor().getEnumTypes().get(0); + } + + private static final PhoneType[] VALUES = values(); + + public static PhoneType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PhoneType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Phone.PhoneType) + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public com.google.cloud.talent.v4beta1.Phone.PhoneType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Phone.PhoneType result = + com.google.cloud.talent.v4beta1.Phone.PhoneType.valueOf(type_); + return result == null ? com.google.cloud.talent.v4beta1.Phone.PhoneType.UNRECOGNIZED : result; + } + + public static final int NUMBER_FIELD_NUMBER = 3; + private volatile java.lang.Object number_; + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + public java.lang.String getNumber() { + java.lang.Object ref = number_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + number_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + public com.google.protobuf.ByteString getNumberBytes() { + java.lang.Object ref = number_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + number_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WHEN_AVAILABLE_FIELD_NUMBER = 4; + private volatile java.lang.Object whenAvailable_; + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + public java.lang.String getWhenAvailable() { + java.lang.Object ref = whenAvailable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + whenAvailable_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + public com.google.protobuf.ByteString getWhenAvailableBytes() { + java.lang.Object ref = whenAvailable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + whenAvailable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (type_ + != com.google.cloud.talent.v4beta1.Phone.PhoneType.PHONE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (!getNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, number_); + } + if (!getWhenAvailableBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, whenAvailable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (type_ + != com.google.cloud.talent.v4beta1.Phone.PhoneType.PHONE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!getNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, number_); + } + if (!getWhenAvailableBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, whenAvailable_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Phone)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Phone other = (com.google.cloud.talent.v4beta1.Phone) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && type_ == other.type_; + result = result && getNumber().equals(other.getNumber()); + result = result && getWhenAvailable().equals(other.getWhenAvailable()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getNumber().hashCode(); + hash = (37 * hash) + WHEN_AVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + getWhenAvailable().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Phone parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Phone prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a person's telephone number.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Phone} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Phone) + com.google.cloud.talent.v4beta1.PhoneOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Phone.class, + com.google.cloud.talent.v4beta1.Phone.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Phone.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + type_ = 0; + + number_ = ""; + + whenAvailable_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Phone.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone build() { + com.google.cloud.talent.v4beta1.Phone result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone buildPartial() { + com.google.cloud.talent.v4beta1.Phone result = + new com.google.cloud.talent.v4beta1.Phone(this); + result.usage_ = usage_; + result.type_ = type_; + result.number_ = number_; + result.whenAvailable_ = whenAvailable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Phone) { + return mergeFrom((com.google.cloud.talent.v4beta1.Phone) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Phone other) { + if (other == com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()) return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getNumber().isEmpty()) { + number_ = other.number_; + onChanged(); + } + if (!other.getWhenAvailable().isEmpty()) { + whenAvailable_ = other.whenAvailable_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Phone parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Phone) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public com.google.cloud.talent.v4beta1.Phone.PhoneType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Phone.PhoneType result = + com.google.cloud.talent.v4beta1.Phone.PhoneType.valueOf(type_); + return result == null ? com.google.cloud.talent.v4beta1.Phone.PhoneType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public Builder setType(com.google.cloud.talent.v4beta1.Phone.PhoneType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object number_ = ""; + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public java.lang.String getNumber() { + java.lang.Object ref = number_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + number_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public com.google.protobuf.ByteString getNumberBytes() { + java.lang.Object ref = number_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + number_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public Builder setNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + number_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public Builder clearNumber() { + + number_ = getDefaultInstance().getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public Builder setNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + number_ = value; + onChanged(); + return this; + } + + private java.lang.Object whenAvailable_ = ""; + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public java.lang.String getWhenAvailable() { + java.lang.Object ref = whenAvailable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + whenAvailable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public com.google.protobuf.ByteString getWhenAvailableBytes() { + java.lang.Object ref = whenAvailable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + whenAvailable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public Builder setWhenAvailable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + whenAvailable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public Builder clearWhenAvailable() { + + whenAvailable_ = getDefaultInstance().getWhenAvailable(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public Builder setWhenAvailableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + whenAvailable_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Phone) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Phone) + private static final com.google.cloud.talent.v4beta1.Phone DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Phone(); + } + + public static com.google.cloud.talent.v4beta1.Phone getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phone parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phone(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java new file mode 100644 index 000000000000..958d7d253301 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java @@ -0,0 +1,114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PhoneOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Phone) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + int getTypeValue(); + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + com.google.cloud.talent.v4beta1.Phone.PhoneType getType(); + + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + java.lang.String getNumber(); + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + com.google.protobuf.ByteString getNumberBytes(); + + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + java.lang.String getWhenAvailable(); + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + com.google.protobuf.ByteString getWhenAvailableBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java new file mode 100644 index 000000000000..f270640dcded --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java @@ -0,0 +1,205 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the job posting region. In most cases, job postings
+ * don't need to specify a region. If a region is given, jobs are
+ * eligible for searches in the specified region.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.PostingRegion} + */ +public enum PostingRegion implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * If the region is unspecified, the job is only returned if it
+   * matches the [LocationFilter][google.cloud.talent.v4beta1.LocationFilter].
+   * 
+ * + * POSTING_REGION_UNSPECIFIED = 0; + */ + POSTING_REGION_UNSPECIFIED(0), + /** + * + * + *
+   * In addition to exact location matching, job posting is returned when the
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search
+   * query is in the same administrative area as the returned job posting. For
+   * example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's
+   * returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter]
+   * has "Mountain View".
+   * Administrative area refers to top-level administrative subdivision of this
+   * country. For example, US state, IT region, UK constituent nation and
+   * JP prefecture.
+   * 
+ * + * ADMINISTRATIVE_AREA = 1; + */ + ADMINISTRATIVE_AREA(1), + /** + * + * + *
+   * In addition to exact location matching, job is returned when
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search
+   * query is in the same country as this job. For example, if a `NATION_WIDE`
+   * job is posted in "USA", it's returned if
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain
+   * View'.
+   * 
+ * + * NATION = 2; + */ + NATION(2), + /** + * + * + *
+   * Job allows employees to work remotely (telecommute).
+   * If [locations][] are provided with this value, the job is
+   * considered as having a location, but telecommuting is allowed.
+   * 
+ * + * TELECOMMUTE = 3; + */ + TELECOMMUTE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * If the region is unspecified, the job is only returned if it
+   * matches the [LocationFilter][google.cloud.talent.v4beta1.LocationFilter].
+   * 
+ * + * POSTING_REGION_UNSPECIFIED = 0; + */ + public static final int POSTING_REGION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * In addition to exact location matching, job posting is returned when the
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search
+   * query is in the same administrative area as the returned job posting. For
+   * example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's
+   * returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter]
+   * has "Mountain View".
+   * Administrative area refers to top-level administrative subdivision of this
+   * country. For example, US state, IT region, UK constituent nation and
+   * JP prefecture.
+   * 
+ * + * ADMINISTRATIVE_AREA = 1; + */ + public static final int ADMINISTRATIVE_AREA_VALUE = 1; + /** + * + * + *
+   * In addition to exact location matching, job is returned when
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search
+   * query is in the same country as this job. For example, if a `NATION_WIDE`
+   * job is posted in "USA", it's returned if
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain
+   * View'.
+   * 
+ * + * NATION = 2; + */ + public static final int NATION_VALUE = 2; + /** + * + * + *
+   * Job allows employees to work remotely (telecommute).
+   * If [locations][] are provided with this value, the job is
+   * considered as having a location, but telecommuting is allowed.
+   * 
+ * + * TELECOMMUTE = 3; + */ + public static final int TELECOMMUTE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static PostingRegion valueOf(int value) { + return forNumber(value); + } + + public static PostingRegion forNumber(int value) { + switch (value) { + case 0: + return POSTING_REGION_UNSPECIFIED; + case 1: + return ADMINISTRATIVE_AREA; + case 2: + return NATION; + case 3: + return TELECOMMUTE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PostingRegion findValueByNumber(int number) { + return PostingRegion.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(6); + } + + private static final PostingRegion[] VALUES = values(); + + public static PostingRegion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PostingRegion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.PostingRegion) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java new file mode 100644 index 000000000000..96236e9874e4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java @@ -0,0 +1,11834 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A resource that represents the profile for a job candidate (also referred to
+ * as a "single-source profile"). A profile belongs to a
+ * [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance
+ * of the customer that owns the profile.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Profile} + */ +public final class Profile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Profile) + ProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use Profile.newBuilder() to construct. + private Profile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Profile() { + name_ = ""; + externalId_ = ""; + source_ = ""; + uri_ = ""; + groupId_ = ""; + resumeHrxml_ = ""; + personNames_ = java.util.Collections.emptyList(); + addresses_ = java.util.Collections.emptyList(); + emailAddresses_ = java.util.Collections.emptyList(); + phoneNumbers_ = java.util.Collections.emptyList(); + personalUris_ = java.util.Collections.emptyList(); + additionalContactInfo_ = java.util.Collections.emptyList(); + employmentRecords_ = java.util.Collections.emptyList(); + educationRecords_ = java.util.Collections.emptyList(); + skills_ = java.util.Collections.emptyList(); + activities_ = java.util.Collections.emptyList(); + publications_ = java.util.Collections.emptyList(); + patents_ = java.util.Collections.emptyList(); + certifications_ = java.util.Collections.emptyList(); + jobApplications_ = java.util.Collections.emptyList(); + recruitingNotes_ = java.util.Collections.emptyList(); + processed_ = false; + keywordSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Profile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + groupId_ = s; + break; + } + case 50: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isHirable_ != null) { + subBuilder = isHirable_.toBuilder(); + } + isHirable_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isHirable_); + isHirable_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + resumeHrxml_ = s; + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + personNames_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.PersonName.parser(), extensionRegistry)); + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + addresses_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry)); + break; + } + case 106: + { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + emailAddresses_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Email.parser(), extensionRegistry)); + break; + } + case 114: + { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + phoneNumbers_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Phone.parser(), extensionRegistry)); + break; + } + case 122: + { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00002000; + } + personalUris_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.PersonalUri.parser(), extensionRegistry)); + break; + } + case 130: + { + if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.AdditionalContactInfo>(); + mutable_bitField0_ |= 0x00004000; + } + additionalContactInfo_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.parser(), + extensionRegistry)); + break; + } + case 138: + { + if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00008000; + } + employmentRecords_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EmploymentRecord.parser(), + extensionRegistry)); + break; + } + case 146: + { + if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00010000; + } + educationRecords_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EducationRecord.parser(), extensionRegistry)); + break; + } + case 154: + { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00020000; + } + skills_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); + break; + } + case 162: + { + if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00040000; + } + activities_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Activity.parser(), extensionRegistry)); + break; + } + case 170: + { + if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00080000; + } + publications_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Publication.parser(), extensionRegistry)); + break; + } + case 178: + { + if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00100000; + } + patents_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Patent.parser(), extensionRegistry)); + break; + } + case 186: + { + if (!((mutable_bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00200000; + } + certifications_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Certification.parser(), extensionRegistry)); + break; + } + case 194: + { + if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00400000; + } + jobApplications_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.JobApplication.parser(), extensionRegistry)); + break; + } + case 202: + { + if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00800000; + } + recruitingNotes_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.RecruitingNote.parser(), extensionRegistry)); + break; + } + case 210: + { + if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x01000000; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + input.readMessage( + CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + customAttributes_ + .getMutableMap() + .put(customAttributes__.getKey(), customAttributes__.getValue()); + break; + } + case 216: + { + processed_ = input.readBool(); + break; + } + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + + keywordSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = java.util.Collections.unmodifiableList(personNames_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + } + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = java.util.Collections.unmodifiableList(emailAddresses_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = java.util.Collections.unmodifiableList(phoneNumbers_); + } + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = java.util.Collections.unmodifiableList(personalUris_); + } + if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = java.util.Collections.unmodifiableList(additionalContactInfo_); + } + if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = java.util.Collections.unmodifiableList(employmentRecords_); + } + if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = java.util.Collections.unmodifiableList(educationRecords_); + } + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = java.util.Collections.unmodifiableList(skills_); + } + if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = java.util.Collections.unmodifiableList(activities_); + } + if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = java.util.Collections.unmodifiableList(publications_); + } + if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = java.util.Collections.unmodifiableList(patents_); + } + if (((mutable_bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = java.util.Collections.unmodifiableList(certifications_); + } + if (((mutable_bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = java.util.Collections.unmodifiableList(jobApplications_); + } + if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = java.util.Collections.unmodifiableList(recruitingNotes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 26: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Profile.class, + com.google.cloud.talent.v4beta1.Profile.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object externalId_; + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 3; + private volatile java.lang.Object source_; + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 4; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object groupId_; + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_HIRABLE_FIELD_NUMBER = 6; + private com.google.protobuf.BoolValue isHirable_; + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public boolean hasIsHirable() { + return isHirable_ != null; + } + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValue getIsHirable() { + return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; + } + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder() { + return getIsHirable(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int RESUME_HRXML_FIELD_NUMBER = 10; + private volatile java.lang.Object resumeHrxml_; + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + public java.lang.String getResumeHrxml() { + java.lang.Object ref = resumeHrxml_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resumeHrxml_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + public com.google.protobuf.ByteString getResumeHrxmlBytes() { + java.lang.Object ref = resumeHrxml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resumeHrxml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERSON_NAMES_FIELD_NUMBER = 11; + private java.util.List personNames_; + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List getPersonNamesList() { + return personNames_; + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List + getPersonNamesOrBuilderList() { + return personNames_; + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public int getPersonNamesCount() { + return personNames_.size(); + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index) { + return personNames_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index) { + return personNames_.get(index); + } + + public static final int ADDRESSES_FIELD_NUMBER = 12; + private java.util.List addresses_; + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List getAddressesList() { + return addresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List + getAddressesOrBuilderList() { + return addresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address getAddresses(int index) { + return addresses_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index) { + return addresses_.get(index); + } + + public static final int EMAIL_ADDRESSES_FIELD_NUMBER = 13; + private java.util.List emailAddresses_; + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List getEmailAddressesList() { + return emailAddresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List + getEmailAddressesOrBuilderList() { + return emailAddresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public int getEmailAddressesCount() { + return emailAddresses_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index) { + return emailAddresses_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index) { + return emailAddresses_.get(index); + } + + public static final int PHONE_NUMBERS_FIELD_NUMBER = 14; + private java.util.List phoneNumbers_; + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List getPhoneNumbersList() { + return phoneNumbers_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List + getPhoneNumbersOrBuilderList() { + return phoneNumbers_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public int getPhoneNumbersCount() { + return phoneNumbers_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index) { + return phoneNumbers_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index) { + return phoneNumbers_.get(index); + } + + public static final int PERSONAL_URIS_FIELD_NUMBER = 15; + private java.util.List personalUris_; + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List getPersonalUrisList() { + return personalUris_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List + getPersonalUrisOrBuilderList() { + return personalUris_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public int getPersonalUrisCount() { + return personalUris_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index) { + return personalUris_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder(int index) { + return personalUris_.get(index); + } + + public static final int ADDITIONAL_CONTACT_INFO_FIELD_NUMBER = 16; + private java.util.List + additionalContactInfo_; + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoList() { + return additionalContactInfo_; + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoOrBuilderList() { + return additionalContactInfo_; + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public int getAdditionalContactInfoCount() { + return additionalContactInfo_.size(); + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo(int index) { + return additionalContactInfo_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder + getAdditionalContactInfoOrBuilder(int index) { + return additionalContactInfo_.get(index); + } + + public static final int EMPLOYMENT_RECORDS_FIELD_NUMBER = 17; + private java.util.List employmentRecords_; + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsList() { + return employmentRecords_; + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsOrBuilderList() { + return employmentRecords_; + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public int getEmploymentRecordsCount() { + return employmentRecords_.size(); + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index) { + return employmentRecords_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( + int index) { + return employmentRecords_.get(index); + } + + public static final int EDUCATION_RECORDS_FIELD_NUMBER = 18; + private java.util.List educationRecords_; + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List getEducationRecordsList() { + return educationRecords_; + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsOrBuilderList() { + return educationRecords_; + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public int getEducationRecordsCount() { + return educationRecords_.size(); + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index) { + return educationRecords_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder( + int index) { + return educationRecords_.get(index); + } + + public static final int SKILLS_FIELD_NUMBER = 19; + private java.util.List skills_; + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List getSkillsList() { + return skills_; + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List + getSkillsOrBuilderList() { + return skills_; + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public int getSkillsCount() { + return skills_.size(); + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill getSkills(int index) { + return skills_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index) { + return skills_.get(index); + } + + public static final int ACTIVITIES_FIELD_NUMBER = 20; + private java.util.List activities_; + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List getActivitiesList() { + return activities_; + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List + getActivitiesOrBuilderList() { + return activities_; + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public int getActivitiesCount() { + return activities_.size(); + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity getActivities(int index) { + return activities_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index) { + return activities_.get(index); + } + + public static final int PUBLICATIONS_FIELD_NUMBER = 21; + private java.util.List publications_; + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List getPublicationsList() { + return publications_; + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List + getPublicationsOrBuilderList() { + return publications_; + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public int getPublicationsCount() { + return publications_.size(); + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication getPublications(int index) { + return publications_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder(int index) { + return publications_.get(index); + } + + public static final int PATENTS_FIELD_NUMBER = 22; + private java.util.List patents_; + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List getPatentsList() { + return patents_; + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List + getPatentsOrBuilderList() { + return patents_; + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public int getPatentsCount() { + return patents_.size(); + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent getPatents(int index) { + return patents_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index) { + return patents_.get(index); + } + + public static final int CERTIFICATIONS_FIELD_NUMBER = 23; + private java.util.List certifications_; + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List getCertificationsList() { + return certifications_; + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List + getCertificationsOrBuilderList() { + return certifications_; + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public int getCertificationsCount() { + return certifications_.size(); + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification getCertifications(int index) { + return certifications_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder( + int index) { + return certifications_.get(index); + } + + public static final int JOB_APPLICATIONS_FIELD_NUMBER = 24; + private java.util.List jobApplications_; + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List getJobApplicationsList() { + return jobApplications_; + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List + getJobApplicationsOrBuilderList() { + return jobApplications_; + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public int getJobApplicationsCount() { + return jobApplications_.size(); + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index) { + return jobApplications_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder( + int index) { + return jobApplications_.get(index); + } + + public static final int RECRUITING_NOTES_FIELD_NUMBER = 25; + private java.util.List recruitingNotes_; + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List getRecruitingNotesList() { + return recruitingNotes_; + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List + getRecruitingNotesOrBuilderList() { + return recruitingNotes_; + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public int getRecruitingNotesCount() { + return recruitingNotes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index) { + return recruitingNotes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder( + int index) { + return recruitingNotes_.get(index); + } + + public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 26; + + private static final class CustomAttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PROCESSED_FIELD_NUMBER = 27; + private boolean processed_; + /** + * + * + *
+   * Output only. Indicates if the profile is fully processed and searchable.
+   * 
+ * + * bool processed = 27; + */ + public boolean getProcessed() { + return processed_; + } + + public static final int KEYWORD_SNIPPET_FIELD_NUMBER = 28; + private volatile java.lang.Object keywordSnippet_; + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + public java.lang.String getKeywordSnippet() { + java.lang.Object ref = keywordSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keywordSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + public com.google.protobuf.ByteString getKeywordSnippetBytes() { + java.lang.Object ref = keywordSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keywordSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalId_); + } + if (!getSourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uri_); + } + if (!getGroupIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, groupId_); + } + if (isHirable_ != null) { + output.writeMessage(6, getIsHirable()); + } + if (createTime_ != null) { + output.writeMessage(7, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + if (!getResumeHrxmlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, resumeHrxml_); + } + for (int i = 0; i < personNames_.size(); i++) { + output.writeMessage(11, personNames_.get(i)); + } + for (int i = 0; i < addresses_.size(); i++) { + output.writeMessage(12, addresses_.get(i)); + } + for (int i = 0; i < emailAddresses_.size(); i++) { + output.writeMessage(13, emailAddresses_.get(i)); + } + for (int i = 0; i < phoneNumbers_.size(); i++) { + output.writeMessage(14, phoneNumbers_.get(i)); + } + for (int i = 0; i < personalUris_.size(); i++) { + output.writeMessage(15, personalUris_.get(i)); + } + for (int i = 0; i < additionalContactInfo_.size(); i++) { + output.writeMessage(16, additionalContactInfo_.get(i)); + } + for (int i = 0; i < employmentRecords_.size(); i++) { + output.writeMessage(17, employmentRecords_.get(i)); + } + for (int i = 0; i < educationRecords_.size(); i++) { + output.writeMessage(18, educationRecords_.get(i)); + } + for (int i = 0; i < skills_.size(); i++) { + output.writeMessage(19, skills_.get(i)); + } + for (int i = 0; i < activities_.size(); i++) { + output.writeMessage(20, activities_.get(i)); + } + for (int i = 0; i < publications_.size(); i++) { + output.writeMessage(21, publications_.get(i)); + } + for (int i = 0; i < patents_.size(); i++) { + output.writeMessage(22, patents_.get(i)); + } + for (int i = 0; i < certifications_.size(); i++) { + output.writeMessage(23, certifications_.get(i)); + } + for (int i = 0; i < jobApplications_.size(); i++) { + output.writeMessage(24, jobApplications_.get(i)); + } + for (int i = 0; i < recruitingNotes_.size(); i++) { + output.writeMessage(25, recruitingNotes_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCustomAttributes(), CustomAttributesDefaultEntryHolder.defaultEntry, 26); + if (processed_ != false) { + output.writeBool(27, processed_); + } + if (!getKeywordSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, keywordSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalId_); + } + if (!getSourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); + } + if (!getGroupIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, groupId_); + } + if (isHirable_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIsHirable()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (!getResumeHrxmlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, resumeHrxml_); + } + for (int i = 0; i < personNames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, personNames_.get(i)); + } + for (int i = 0; i < addresses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, addresses_.get(i)); + } + for (int i = 0; i < emailAddresses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, emailAddresses_.get(i)); + } + for (int i = 0; i < phoneNumbers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, phoneNumbers_.get(i)); + } + for (int i = 0; i < personalUris_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, personalUris_.get(i)); + } + for (int i = 0; i < additionalContactInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, additionalContactInfo_.get(i)); + } + for (int i = 0; i < employmentRecords_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(17, employmentRecords_.get(i)); + } + for (int i = 0; i < educationRecords_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18, educationRecords_.get(i)); + } + for (int i = 0; i < skills_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, skills_.get(i)); + } + for (int i = 0; i < activities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, activities_.get(i)); + } + for (int i = 0; i < publications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, publications_.get(i)); + } + for (int i = 0; i < patents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, patents_.get(i)); + } + for (int i = 0; i < certifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, certifications_.get(i)); + } + for (int i = 0; i < jobApplications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, jobApplications_.get(i)); + } + for (int i = 0; i < recruitingNotes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, recruitingNotes_.get(i)); + } + for (java.util.Map.Entry + entry : internalGetCustomAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + CustomAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, customAttributes__); + } + if (processed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, processed_); + } + if (!getKeywordSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, keywordSnippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Profile)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Profile other = (com.google.cloud.talent.v4beta1.Profile) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getExternalId().equals(other.getExternalId()); + result = result && getSource().equals(other.getSource()); + result = result && getUri().equals(other.getUri()); + result = result && getGroupId().equals(other.getGroupId()); + result = result && (hasIsHirable() == other.hasIsHirable()); + if (hasIsHirable()) { + result = result && getIsHirable().equals(other.getIsHirable()); + } + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime().equals(other.getCreateTime()); + } + result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime()) { + result = result && getUpdateTime().equals(other.getUpdateTime()); + } + result = result && getResumeHrxml().equals(other.getResumeHrxml()); + result = result && getPersonNamesList().equals(other.getPersonNamesList()); + result = result && getAddressesList().equals(other.getAddressesList()); + result = result && getEmailAddressesList().equals(other.getEmailAddressesList()); + result = result && getPhoneNumbersList().equals(other.getPhoneNumbersList()); + result = result && getPersonalUrisList().equals(other.getPersonalUrisList()); + result = result && getAdditionalContactInfoList().equals(other.getAdditionalContactInfoList()); + result = result && getEmploymentRecordsList().equals(other.getEmploymentRecordsList()); + result = result && getEducationRecordsList().equals(other.getEducationRecordsList()); + result = result && getSkillsList().equals(other.getSkillsList()); + result = result && getActivitiesList().equals(other.getActivitiesList()); + result = result && getPublicationsList().equals(other.getPublicationsList()); + result = result && getPatentsList().equals(other.getPatentsList()); + result = result && getCertificationsList().equals(other.getCertificationsList()); + result = result && getJobApplicationsList().equals(other.getJobApplicationsList()); + result = result && getRecruitingNotesList().equals(other.getRecruitingNotesList()); + result = result && internalGetCustomAttributes().equals(other.internalGetCustomAttributes()); + result = result && (getProcessed() == other.getProcessed()); + result = result && getKeywordSnippet().equals(other.getKeywordSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + if (hasIsHirable()) { + hash = (37 * hash) + IS_HIRABLE_FIELD_NUMBER; + hash = (53 * hash) + getIsHirable().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + RESUME_HRXML_FIELD_NUMBER; + hash = (53 * hash) + getResumeHrxml().hashCode(); + if (getPersonNamesCount() > 0) { + hash = (37 * hash) + PERSON_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getPersonNamesList().hashCode(); + } + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + if (getEmailAddressesCount() > 0) { + hash = (37 * hash) + EMAIL_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddressesList().hashCode(); + } + if (getPhoneNumbersCount() > 0) { + hash = (37 * hash) + PHONE_NUMBERS_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumbersList().hashCode(); + } + if (getPersonalUrisCount() > 0) { + hash = (37 * hash) + PERSONAL_URIS_FIELD_NUMBER; + hash = (53 * hash) + getPersonalUrisList().hashCode(); + } + if (getAdditionalContactInfoCount() > 0) { + hash = (37 * hash) + ADDITIONAL_CONTACT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalContactInfoList().hashCode(); + } + if (getEmploymentRecordsCount() > 0) { + hash = (37 * hash) + EMPLOYMENT_RECORDS_FIELD_NUMBER; + hash = (53 * hash) + getEmploymentRecordsList().hashCode(); + } + if (getEducationRecordsCount() > 0) { + hash = (37 * hash) + EDUCATION_RECORDS_FIELD_NUMBER; + hash = (53 * hash) + getEducationRecordsList().hashCode(); + } + if (getSkillsCount() > 0) { + hash = (37 * hash) + SKILLS_FIELD_NUMBER; + hash = (53 * hash) + getSkillsList().hashCode(); + } + if (getActivitiesCount() > 0) { + hash = (37 * hash) + ACTIVITIES_FIELD_NUMBER; + hash = (53 * hash) + getActivitiesList().hashCode(); + } + if (getPublicationsCount() > 0) { + hash = (37 * hash) + PUBLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getPublicationsList().hashCode(); + } + if (getPatentsCount() > 0) { + hash = (37 * hash) + PATENTS_FIELD_NUMBER; + hash = (53 * hash) + getPatentsList().hashCode(); + } + if (getCertificationsCount() > 0) { + hash = (37 * hash) + CERTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCertificationsList().hashCode(); + } + if (getJobApplicationsCount() > 0) { + hash = (37 * hash) + JOB_APPLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getJobApplicationsList().hashCode(); + } + if (getRecruitingNotesCount() > 0) { + hash = (37 * hash) + RECRUITING_NOTES_FIELD_NUMBER; + hash = (53 * hash) + getRecruitingNotesList().hashCode(); + } + if (!internalGetCustomAttributes().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomAttributes().hashCode(); + } + hash = (37 * hash) + PROCESSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProcessed()); + hash = (37 * hash) + KEYWORD_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getKeywordSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Profile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Profile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource that represents the profile for a job candidate (also referred to
+   * as a "single-source profile"). A profile belongs to a
+   * [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance
+   * of the customer that owns the profile.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Profile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Profile) + com.google.cloud.talent.v4beta1.ProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 26: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 26: + return internalGetMutableCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Profile.class, + com.google.cloud.talent.v4beta1.Profile.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Profile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPersonNamesFieldBuilder(); + getAddressesFieldBuilder(); + getEmailAddressesFieldBuilder(); + getPhoneNumbersFieldBuilder(); + getPersonalUrisFieldBuilder(); + getAdditionalContactInfoFieldBuilder(); + getEmploymentRecordsFieldBuilder(); + getEducationRecordsFieldBuilder(); + getSkillsFieldBuilder(); + getActivitiesFieldBuilder(); + getPublicationsFieldBuilder(); + getPatentsFieldBuilder(); + getCertificationsFieldBuilder(); + getJobApplicationsFieldBuilder(); + getRecruitingNotesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + externalId_ = ""; + + source_ = ""; + + uri_ = ""; + + groupId_ = ""; + + if (isHirableBuilder_ == null) { + isHirable_ = null; + } else { + isHirable_ = null; + isHirableBuilder_ = null; + } + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + resumeHrxml_ = ""; + + if (personNamesBuilder_ == null) { + personNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + personNamesBuilder_.clear(); + } + if (addressesBuilder_ == null) { + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + addressesBuilder_.clear(); + } + if (emailAddressesBuilder_ == null) { + emailAddresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + emailAddressesBuilder_.clear(); + } + if (phoneNumbersBuilder_ == null) { + phoneNumbers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + } else { + phoneNumbersBuilder_.clear(); + } + if (personalUrisBuilder_ == null) { + personalUris_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + } else { + personalUrisBuilder_.clear(); + } + if (additionalContactInfoBuilder_ == null) { + additionalContactInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + } else { + additionalContactInfoBuilder_.clear(); + } + if (employmentRecordsBuilder_ == null) { + employmentRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + } else { + employmentRecordsBuilder_.clear(); + } + if (educationRecordsBuilder_ == null) { + educationRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + } else { + educationRecordsBuilder_.clear(); + } + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + } else { + skillsBuilder_.clear(); + } + if (activitiesBuilder_ == null) { + activities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + } else { + activitiesBuilder_.clear(); + } + if (publicationsBuilder_ == null) { + publications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + } else { + publicationsBuilder_.clear(); + } + if (patentsBuilder_ == null) { + patents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + } else { + patentsBuilder_.clear(); + } + if (certificationsBuilder_ == null) { + certifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + } else { + certificationsBuilder_.clear(); + } + if (jobApplicationsBuilder_ == null) { + jobApplications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + } else { + jobApplicationsBuilder_.clear(); + } + if (recruitingNotesBuilder_ == null) { + recruitingNotes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + } else { + recruitingNotesBuilder_.clear(); + } + internalGetMutableCustomAttributes().clear(); + processed_ = false; + + keywordSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Profile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile build() { + com.google.cloud.talent.v4beta1.Profile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile buildPartial() { + com.google.cloud.talent.v4beta1.Profile result = + new com.google.cloud.talent.v4beta1.Profile(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.externalId_ = externalId_; + result.source_ = source_; + result.uri_ = uri_; + result.groupId_ = groupId_; + if (isHirableBuilder_ == null) { + result.isHirable_ = isHirable_; + } else { + result.isHirable_ = isHirableBuilder_.build(); + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.resumeHrxml_ = resumeHrxml_; + if (personNamesBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = java.util.Collections.unmodifiableList(personNames_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.personNames_ = personNames_; + } else { + result.personNames_ = personNamesBuilder_.build(); + } + if (addressesBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.addresses_ = addresses_; + } else { + result.addresses_ = addressesBuilder_.build(); + } + if (emailAddressesBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = java.util.Collections.unmodifiableList(emailAddresses_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.emailAddresses_ = emailAddresses_; + } else { + result.emailAddresses_ = emailAddressesBuilder_.build(); + } + if (phoneNumbersBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = java.util.Collections.unmodifiableList(phoneNumbers_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.phoneNumbers_ = phoneNumbers_; + } else { + result.phoneNumbers_ = phoneNumbersBuilder_.build(); + } + if (personalUrisBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = java.util.Collections.unmodifiableList(personalUris_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.personalUris_ = personalUris_; + } else { + result.personalUris_ = personalUrisBuilder_.build(); + } + if (additionalContactInfoBuilder_ == null) { + if (((bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = java.util.Collections.unmodifiableList(additionalContactInfo_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.additionalContactInfo_ = additionalContactInfo_; + } else { + result.additionalContactInfo_ = additionalContactInfoBuilder_.build(); + } + if (employmentRecordsBuilder_ == null) { + if (((bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = java.util.Collections.unmodifiableList(employmentRecords_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.employmentRecords_ = employmentRecords_; + } else { + result.employmentRecords_ = employmentRecordsBuilder_.build(); + } + if (educationRecordsBuilder_ == null) { + if (((bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = java.util.Collections.unmodifiableList(educationRecords_); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.educationRecords_ = educationRecords_; + } else { + result.educationRecords_ = educationRecordsBuilder_.build(); + } + if (skillsBuilder_ == null) { + if (((bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = java.util.Collections.unmodifiableList(skills_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.skills_ = skills_; + } else { + result.skills_ = skillsBuilder_.build(); + } + if (activitiesBuilder_ == null) { + if (((bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = java.util.Collections.unmodifiableList(activities_); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.activities_ = activities_; + } else { + result.activities_ = activitiesBuilder_.build(); + } + if (publicationsBuilder_ == null) { + if (((bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = java.util.Collections.unmodifiableList(publications_); + bitField0_ = (bitField0_ & ~0x00080000); + } + result.publications_ = publications_; + } else { + result.publications_ = publicationsBuilder_.build(); + } + if (patentsBuilder_ == null) { + if (((bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = java.util.Collections.unmodifiableList(patents_); + bitField0_ = (bitField0_ & ~0x00100000); + } + result.patents_ = patents_; + } else { + result.patents_ = patentsBuilder_.build(); + } + if (certificationsBuilder_ == null) { + if (((bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = java.util.Collections.unmodifiableList(certifications_); + bitField0_ = (bitField0_ & ~0x00200000); + } + result.certifications_ = certifications_; + } else { + result.certifications_ = certificationsBuilder_.build(); + } + if (jobApplicationsBuilder_ == null) { + if (((bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = java.util.Collections.unmodifiableList(jobApplications_); + bitField0_ = (bitField0_ & ~0x00400000); + } + result.jobApplications_ = jobApplications_; + } else { + result.jobApplications_ = jobApplicationsBuilder_.build(); + } + if (recruitingNotesBuilder_ == null) { + if (((bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = java.util.Collections.unmodifiableList(recruitingNotes_); + bitField0_ = (bitField0_ & ~0x00800000); + } + result.recruitingNotes_ = recruitingNotes_; + } else { + result.recruitingNotes_ = recruitingNotesBuilder_.build(); + } + result.customAttributes_ = internalGetCustomAttributes(); + result.customAttributes_.makeImmutable(); + result.processed_ = processed_; + result.keywordSnippet_ = keywordSnippet_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Profile) { + return mergeFrom((com.google.cloud.talent.v4beta1.Profile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Profile other) { + if (other == com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getExternalId().isEmpty()) { + externalId_ = other.externalId_; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + onChanged(); + } + if (other.hasIsHirable()) { + mergeIsHirable(other.getIsHirable()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getResumeHrxml().isEmpty()) { + resumeHrxml_ = other.resumeHrxml_; + onChanged(); + } + if (personNamesBuilder_ == null) { + if (!other.personNames_.isEmpty()) { + if (personNames_.isEmpty()) { + personNames_ = other.personNames_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensurePersonNamesIsMutable(); + personNames_.addAll(other.personNames_); + } + onChanged(); + } + } else { + if (!other.personNames_.isEmpty()) { + if (personNamesBuilder_.isEmpty()) { + personNamesBuilder_.dispose(); + personNamesBuilder_ = null; + personNames_ = other.personNames_; + bitField0_ = (bitField0_ & ~0x00000200); + personNamesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPersonNamesFieldBuilder() + : null; + } else { + personNamesBuilder_.addAllMessages(other.personNames_); + } + } + } + if (addressesBuilder_ == null) { + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + } else { + if (!other.addresses_.isEmpty()) { + if (addressesBuilder_.isEmpty()) { + addressesBuilder_.dispose(); + addressesBuilder_ = null; + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000400); + addressesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAddressesFieldBuilder() + : null; + } else { + addressesBuilder_.addAllMessages(other.addresses_); + } + } + } + if (emailAddressesBuilder_ == null) { + if (!other.emailAddresses_.isEmpty()) { + if (emailAddresses_.isEmpty()) { + emailAddresses_ = other.emailAddresses_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureEmailAddressesIsMutable(); + emailAddresses_.addAll(other.emailAddresses_); + } + onChanged(); + } + } else { + if (!other.emailAddresses_.isEmpty()) { + if (emailAddressesBuilder_.isEmpty()) { + emailAddressesBuilder_.dispose(); + emailAddressesBuilder_ = null; + emailAddresses_ = other.emailAddresses_; + bitField0_ = (bitField0_ & ~0x00000800); + emailAddressesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEmailAddressesFieldBuilder() + : null; + } else { + emailAddressesBuilder_.addAllMessages(other.emailAddresses_); + } + } + } + if (phoneNumbersBuilder_ == null) { + if (!other.phoneNumbers_.isEmpty()) { + if (phoneNumbers_.isEmpty()) { + phoneNumbers_ = other.phoneNumbers_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.addAll(other.phoneNumbers_); + } + onChanged(); + } + } else { + if (!other.phoneNumbers_.isEmpty()) { + if (phoneNumbersBuilder_.isEmpty()) { + phoneNumbersBuilder_.dispose(); + phoneNumbersBuilder_ = null; + phoneNumbers_ = other.phoneNumbers_; + bitField0_ = (bitField0_ & ~0x00001000); + phoneNumbersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPhoneNumbersFieldBuilder() + : null; + } else { + phoneNumbersBuilder_.addAllMessages(other.phoneNumbers_); + } + } + } + if (personalUrisBuilder_ == null) { + if (!other.personalUris_.isEmpty()) { + if (personalUris_.isEmpty()) { + personalUris_ = other.personalUris_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensurePersonalUrisIsMutable(); + personalUris_.addAll(other.personalUris_); + } + onChanged(); + } + } else { + if (!other.personalUris_.isEmpty()) { + if (personalUrisBuilder_.isEmpty()) { + personalUrisBuilder_.dispose(); + personalUrisBuilder_ = null; + personalUris_ = other.personalUris_; + bitField0_ = (bitField0_ & ~0x00002000); + personalUrisBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPersonalUrisFieldBuilder() + : null; + } else { + personalUrisBuilder_.addAllMessages(other.personalUris_); + } + } + } + if (additionalContactInfoBuilder_ == null) { + if (!other.additionalContactInfo_.isEmpty()) { + if (additionalContactInfo_.isEmpty()) { + additionalContactInfo_ = other.additionalContactInfo_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.addAll(other.additionalContactInfo_); + } + onChanged(); + } + } else { + if (!other.additionalContactInfo_.isEmpty()) { + if (additionalContactInfoBuilder_.isEmpty()) { + additionalContactInfoBuilder_.dispose(); + additionalContactInfoBuilder_ = null; + additionalContactInfo_ = other.additionalContactInfo_; + bitField0_ = (bitField0_ & ~0x00004000); + additionalContactInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdditionalContactInfoFieldBuilder() + : null; + } else { + additionalContactInfoBuilder_.addAllMessages(other.additionalContactInfo_); + } + } + } + if (employmentRecordsBuilder_ == null) { + if (!other.employmentRecords_.isEmpty()) { + if (employmentRecords_.isEmpty()) { + employmentRecords_ = other.employmentRecords_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.addAll(other.employmentRecords_); + } + onChanged(); + } + } else { + if (!other.employmentRecords_.isEmpty()) { + if (employmentRecordsBuilder_.isEmpty()) { + employmentRecordsBuilder_.dispose(); + employmentRecordsBuilder_ = null; + employmentRecords_ = other.employmentRecords_; + bitField0_ = (bitField0_ & ~0x00008000); + employmentRecordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEmploymentRecordsFieldBuilder() + : null; + } else { + employmentRecordsBuilder_.addAllMessages(other.employmentRecords_); + } + } + } + if (educationRecordsBuilder_ == null) { + if (!other.educationRecords_.isEmpty()) { + if (educationRecords_.isEmpty()) { + educationRecords_ = other.educationRecords_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureEducationRecordsIsMutable(); + educationRecords_.addAll(other.educationRecords_); + } + onChanged(); + } + } else { + if (!other.educationRecords_.isEmpty()) { + if (educationRecordsBuilder_.isEmpty()) { + educationRecordsBuilder_.dispose(); + educationRecordsBuilder_ = null; + educationRecords_ = other.educationRecords_; + bitField0_ = (bitField0_ & ~0x00010000); + educationRecordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEducationRecordsFieldBuilder() + : null; + } else { + educationRecordsBuilder_.addAllMessages(other.educationRecords_); + } + } + } + if (skillsBuilder_ == null) { + if (!other.skills_.isEmpty()) { + if (skills_.isEmpty()) { + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureSkillsIsMutable(); + skills_.addAll(other.skills_); + } + onChanged(); + } + } else { + if (!other.skills_.isEmpty()) { + if (skillsBuilder_.isEmpty()) { + skillsBuilder_.dispose(); + skillsBuilder_ = null; + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00020000); + skillsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillsFieldBuilder() + : null; + } else { + skillsBuilder_.addAllMessages(other.skills_); + } + } + } + if (activitiesBuilder_ == null) { + if (!other.activities_.isEmpty()) { + if (activities_.isEmpty()) { + activities_ = other.activities_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureActivitiesIsMutable(); + activities_.addAll(other.activities_); + } + onChanged(); + } + } else { + if (!other.activities_.isEmpty()) { + if (activitiesBuilder_.isEmpty()) { + activitiesBuilder_.dispose(); + activitiesBuilder_ = null; + activities_ = other.activities_; + bitField0_ = (bitField0_ & ~0x00040000); + activitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getActivitiesFieldBuilder() + : null; + } else { + activitiesBuilder_.addAllMessages(other.activities_); + } + } + } + if (publicationsBuilder_ == null) { + if (!other.publications_.isEmpty()) { + if (publications_.isEmpty()) { + publications_ = other.publications_; + bitField0_ = (bitField0_ & ~0x00080000); + } else { + ensurePublicationsIsMutable(); + publications_.addAll(other.publications_); + } + onChanged(); + } + } else { + if (!other.publications_.isEmpty()) { + if (publicationsBuilder_.isEmpty()) { + publicationsBuilder_.dispose(); + publicationsBuilder_ = null; + publications_ = other.publications_; + bitField0_ = (bitField0_ & ~0x00080000); + publicationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPublicationsFieldBuilder() + : null; + } else { + publicationsBuilder_.addAllMessages(other.publications_); + } + } + } + if (patentsBuilder_ == null) { + if (!other.patents_.isEmpty()) { + if (patents_.isEmpty()) { + patents_ = other.patents_; + bitField0_ = (bitField0_ & ~0x00100000); + } else { + ensurePatentsIsMutable(); + patents_.addAll(other.patents_); + } + onChanged(); + } + } else { + if (!other.patents_.isEmpty()) { + if (patentsBuilder_.isEmpty()) { + patentsBuilder_.dispose(); + patentsBuilder_ = null; + patents_ = other.patents_; + bitField0_ = (bitField0_ & ~0x00100000); + patentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPatentsFieldBuilder() + : null; + } else { + patentsBuilder_.addAllMessages(other.patents_); + } + } + } + if (certificationsBuilder_ == null) { + if (!other.certifications_.isEmpty()) { + if (certifications_.isEmpty()) { + certifications_ = other.certifications_; + bitField0_ = (bitField0_ & ~0x00200000); + } else { + ensureCertificationsIsMutable(); + certifications_.addAll(other.certifications_); + } + onChanged(); + } + } else { + if (!other.certifications_.isEmpty()) { + if (certificationsBuilder_.isEmpty()) { + certificationsBuilder_.dispose(); + certificationsBuilder_ = null; + certifications_ = other.certifications_; + bitField0_ = (bitField0_ & ~0x00200000); + certificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCertificationsFieldBuilder() + : null; + } else { + certificationsBuilder_.addAllMessages(other.certifications_); + } + } + } + if (jobApplicationsBuilder_ == null) { + if (!other.jobApplications_.isEmpty()) { + if (jobApplications_.isEmpty()) { + jobApplications_ = other.jobApplications_; + bitField0_ = (bitField0_ & ~0x00400000); + } else { + ensureJobApplicationsIsMutable(); + jobApplications_.addAll(other.jobApplications_); + } + onChanged(); + } + } else { + if (!other.jobApplications_.isEmpty()) { + if (jobApplicationsBuilder_.isEmpty()) { + jobApplicationsBuilder_.dispose(); + jobApplicationsBuilder_ = null; + jobApplications_ = other.jobApplications_; + bitField0_ = (bitField0_ & ~0x00400000); + jobApplicationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobApplicationsFieldBuilder() + : null; + } else { + jobApplicationsBuilder_.addAllMessages(other.jobApplications_); + } + } + } + if (recruitingNotesBuilder_ == null) { + if (!other.recruitingNotes_.isEmpty()) { + if (recruitingNotes_.isEmpty()) { + recruitingNotes_ = other.recruitingNotes_; + bitField0_ = (bitField0_ & ~0x00800000); + } else { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.addAll(other.recruitingNotes_); + } + onChanged(); + } + } else { + if (!other.recruitingNotes_.isEmpty()) { + if (recruitingNotesBuilder_.isEmpty()) { + recruitingNotesBuilder_.dispose(); + recruitingNotesBuilder_ = null; + recruitingNotes_ = other.recruitingNotes_; + bitField0_ = (bitField0_ & ~0x00800000); + recruitingNotesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecruitingNotesFieldBuilder() + : null; + } else { + recruitingNotesBuilder_.addAllMessages(other.recruitingNotes_); + } + } + } + internalGetMutableCustomAttributes().mergeFrom(other.internalGetCustomAttributes()); + if (other.getProcessed() != false) { + setProcessed(other.getProcessed()); + } + if (!other.getKeywordSnippet().isEmpty()) { + keywordSnippet_ = other.keywordSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Profile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Profile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalId_ = ""; + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalId_ = value; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + source_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public Builder clearSource() { + + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + source_ = value; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private java.lang.Object groupId_ = ""; + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + groupId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public Builder clearGroupId() { + + groupId_ = getDefaultInstance().getGroupId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isHirable_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isHirableBuilder_; + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public boolean hasIsHirable() { + return isHirableBuilder_ != null || isHirable_ != null; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValue getIsHirable() { + if (isHirableBuilder_ == null) { + return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; + } else { + return isHirableBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder setIsHirable(com.google.protobuf.BoolValue value) { + if (isHirableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isHirable_ = value; + onChanged(); + } else { + isHirableBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder setIsHirable(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isHirableBuilder_ == null) { + isHirable_ = builderForValue.build(); + onChanged(); + } else { + isHirableBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder mergeIsHirable(com.google.protobuf.BoolValue value) { + if (isHirableBuilder_ == null) { + if (isHirable_ != null) { + isHirable_ = + com.google.protobuf.BoolValue.newBuilder(isHirable_).mergeFrom(value).buildPartial(); + } else { + isHirable_ = value; + } + onChanged(); + } else { + isHirableBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder clearIsHirable() { + if (isHirableBuilder_ == null) { + isHirable_ = null; + onChanged(); + } else { + isHirable_ = null; + isHirableBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValue.Builder getIsHirableBuilder() { + + onChanged(); + return getIsHirableFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder() { + if (isHirableBuilder_ != null) { + return isHirableBuilder_.getMessageOrBuilder(); + } else { + return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; + } + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsHirableFieldBuilder() { + if (isHirableBuilder_ == null) { + isHirableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsHirable(), getParentForChildren(), isClean()); + isHirable_ = null; + } + return isHirableBuilder_; + } + + private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object resumeHrxml_ = ""; + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public java.lang.String getResumeHrxml() { + java.lang.Object ref = resumeHrxml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resumeHrxml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public com.google.protobuf.ByteString getResumeHrxmlBytes() { + java.lang.Object ref = resumeHrxml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resumeHrxml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public Builder setResumeHrxml(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resumeHrxml_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public Builder clearResumeHrxml() { + + resumeHrxml_ = getDefaultInstance().getResumeHrxml(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public Builder setResumeHrxmlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resumeHrxml_ = value; + onChanged(); + return this; + } + + private java.util.List personNames_ = + java.util.Collections.emptyList(); + + private void ensurePersonNamesIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = + new java.util.ArrayList(personNames_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName, + com.google.cloud.talent.v4beta1.PersonName.Builder, + com.google.cloud.talent.v4beta1.PersonNameOrBuilder> + personNamesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List getPersonNamesList() { + if (personNamesBuilder_ == null) { + return java.util.Collections.unmodifiableList(personNames_); + } else { + return personNamesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public int getPersonNamesCount() { + if (personNamesBuilder_ == null) { + return personNames_.size(); + } else { + return personNamesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index) { + if (personNamesBuilder_ == null) { + return personNames_.get(index); + } else { + return personNamesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder setPersonNames(int index, com.google.cloud.talent.v4beta1.PersonName value) { + if (personNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonNamesIsMutable(); + personNames_.set(index, value); + onChanged(); + } else { + personNamesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder setPersonNames( + int index, com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.set(index, builderForValue.build()); + onChanged(); + } else { + personNamesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames(com.google.cloud.talent.v4beta1.PersonName value) { + if (personNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonNamesIsMutable(); + personNames_.add(value); + onChanged(); + } else { + personNamesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames(int index, com.google.cloud.talent.v4beta1.PersonName value) { + if (personNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonNamesIsMutable(); + personNames_.add(index, value); + onChanged(); + } else { + personNamesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames( + com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.add(builderForValue.build()); + onChanged(); + } else { + personNamesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames( + int index, com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.add(index, builderForValue.build()); + onChanged(); + } else { + personNamesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addAllPersonNames( + java.lang.Iterable values) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, personNames_); + onChanged(); + } else { + personNamesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder clearPersonNames() { + if (personNamesBuilder_ == null) { + personNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + personNamesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder removePersonNames(int index) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.remove(index); + onChanged(); + } else { + personNamesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName.Builder getPersonNamesBuilder(int index) { + return getPersonNamesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index) { + if (personNamesBuilder_ == null) { + return personNames_.get(index); + } else { + return personNamesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List + getPersonNamesOrBuilderList() { + if (personNamesBuilder_ != null) { + return personNamesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(personNames_); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName.Builder addPersonNamesBuilder() { + return getPersonNamesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName.Builder addPersonNamesBuilder(int index) { + return getPersonNamesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List + getPersonNamesBuilderList() { + return getPersonNamesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName, + com.google.cloud.talent.v4beta1.PersonName.Builder, + com.google.cloud.talent.v4beta1.PersonNameOrBuilder> + getPersonNamesFieldBuilder() { + if (personNamesBuilder_ == null) { + personNamesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName, + com.google.cloud.talent.v4beta1.PersonName.Builder, + com.google.cloud.talent.v4beta1.PersonNameOrBuilder>( + personNames_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + personNames_ = null; + } + return personNamesBuilder_; + } + + private java.util.List addresses_ = + java.util.Collections.emptyList(); + + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = new java.util.ArrayList(addresses_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + addressesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List getAddressesList() { + if (addressesBuilder_ == null) { + return java.util.Collections.unmodifiableList(addresses_); + } else { + return addressesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public int getAddressesCount() { + if (addressesBuilder_ == null) { + return addresses_.size(); + } else { + return addressesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address getAddresses(int index) { + if (addressesBuilder_ == null) { + return addresses_.get(index); + } else { + return addressesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder setAddresses(int index, com.google.cloud.talent.v4beta1.Address value) { + if (addressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + } else { + addressesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder setAddresses( + int index, com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.set(index, builderForValue.build()); + onChanged(); + } else { + addressesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses(com.google.cloud.talent.v4beta1.Address value) { + if (addressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + } else { + addressesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses(int index, com.google.cloud.talent.v4beta1.Address value) { + if (addressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(index, value); + onChanged(); + } else { + addressesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.add(builderForValue.build()); + onChanged(); + } else { + addressesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses( + int index, com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.add(index, builderForValue.build()); + onChanged(); + } else { + addressesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAllAddresses( + java.lang.Iterable values) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); + onChanged(); + } else { + addressesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder clearAddresses() { + if (addressesBuilder_ == null) { + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + addressesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder removeAddresses(int index) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.remove(index); + onChanged(); + } else { + addressesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address.Builder getAddressesBuilder(int index) { + return getAddressesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index) { + if (addressesBuilder_ == null) { + return addresses_.get(index); + } else { + return addressesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List + getAddressesOrBuilderList() { + if (addressesBuilder_ != null) { + return addressesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(addresses_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address.Builder addAddressesBuilder() { + return getAddressesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Address.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address.Builder addAddressesBuilder(int index) { + return getAddressesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Address.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List + getAddressesBuilderList() { + return getAddressesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + getAddressesFieldBuilder() { + if (addressesBuilder_ == null) { + addressesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder>( + addresses_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + addresses_ = null; + } + return addressesBuilder_; + } + + private java.util.List emailAddresses_ = + java.util.Collections.emptyList(); + + private void ensureEmailAddressesIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = + new java.util.ArrayList(emailAddresses_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Email, + com.google.cloud.talent.v4beta1.Email.Builder, + com.google.cloud.talent.v4beta1.EmailOrBuilder> + emailAddressesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List getEmailAddressesList() { + if (emailAddressesBuilder_ == null) { + return java.util.Collections.unmodifiableList(emailAddresses_); + } else { + return emailAddressesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public int getEmailAddressesCount() { + if (emailAddressesBuilder_ == null) { + return emailAddresses_.size(); + } else { + return emailAddressesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index) { + if (emailAddressesBuilder_ == null) { + return emailAddresses_.get(index); + } else { + return emailAddressesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder setEmailAddresses(int index, com.google.cloud.talent.v4beta1.Email value) { + if (emailAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); + emailAddresses_.set(index, value); + onChanged(); + } else { + emailAddressesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder setEmailAddresses( + int index, com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.set(index, builderForValue.build()); + onChanged(); + } else { + emailAddressesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses(com.google.cloud.talent.v4beta1.Email value) { + if (emailAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); + emailAddresses_.add(value); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses(int index, com.google.cloud.talent.v4beta1.Email value) { + if (emailAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); + emailAddresses_.add(index, value); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses( + com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.add(builderForValue.build()); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses( + int index, com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.add(index, builderForValue.build()); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addAllEmailAddresses( + java.lang.Iterable values) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emailAddresses_); + onChanged(); + } else { + emailAddressesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder clearEmailAddresses() { + if (emailAddressesBuilder_ == null) { + emailAddresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + emailAddressesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder removeEmailAddresses(int index) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.remove(index); + onChanged(); + } else { + emailAddressesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email.Builder getEmailAddressesBuilder(int index) { + return getEmailAddressesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index) { + if (emailAddressesBuilder_ == null) { + return emailAddresses_.get(index); + } else { + return emailAddressesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List + getEmailAddressesOrBuilderList() { + if (emailAddressesBuilder_ != null) { + return emailAddressesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(emailAddresses_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email.Builder addEmailAddressesBuilder() { + return getEmailAddressesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Email.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email.Builder addEmailAddressesBuilder(int index) { + return getEmailAddressesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Email.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List + getEmailAddressesBuilderList() { + return getEmailAddressesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Email, + com.google.cloud.talent.v4beta1.Email.Builder, + com.google.cloud.talent.v4beta1.EmailOrBuilder> + getEmailAddressesFieldBuilder() { + if (emailAddressesBuilder_ == null) { + emailAddressesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Email, + com.google.cloud.talent.v4beta1.Email.Builder, + com.google.cloud.talent.v4beta1.EmailOrBuilder>( + emailAddresses_, + ((bitField0_ & 0x00000800) == 0x00000800), + getParentForChildren(), + isClean()); + emailAddresses_ = null; + } + return emailAddressesBuilder_; + } + + private java.util.List phoneNumbers_ = + java.util.Collections.emptyList(); + + private void ensurePhoneNumbersIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = + new java.util.ArrayList(phoneNumbers_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Phone, + com.google.cloud.talent.v4beta1.Phone.Builder, + com.google.cloud.talent.v4beta1.PhoneOrBuilder> + phoneNumbersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List getPhoneNumbersList() { + if (phoneNumbersBuilder_ == null) { + return java.util.Collections.unmodifiableList(phoneNumbers_); + } else { + return phoneNumbersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public int getPhoneNumbersCount() { + if (phoneNumbersBuilder_ == null) { + return phoneNumbers_.size(); + } else { + return phoneNumbersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index) { + if (phoneNumbersBuilder_ == null) { + return phoneNumbers_.get(index); + } else { + return phoneNumbersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder setPhoneNumbers(int index, com.google.cloud.talent.v4beta1.Phone value) { + if (phoneNumbersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneNumbersIsMutable(); + phoneNumbers_.set(index, value); + onChanged(); + } else { + phoneNumbersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder setPhoneNumbers( + int index, com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.set(index, builderForValue.build()); + onChanged(); + } else { + phoneNumbersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers(com.google.cloud.talent.v4beta1.Phone value) { + if (phoneNumbersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(value); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers(int index, com.google.cloud.talent.v4beta1.Phone value) { + if (phoneNumbersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(index, value); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers(com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(builderForValue.build()); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers( + int index, com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(index, builderForValue.build()); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addAllPhoneNumbers( + java.lang.Iterable values) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phoneNumbers_); + onChanged(); + } else { + phoneNumbersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder clearPhoneNumbers() { + if (phoneNumbersBuilder_ == null) { + phoneNumbers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + phoneNumbersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder removePhoneNumbers(int index) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.remove(index); + onChanged(); + } else { + phoneNumbersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone.Builder getPhoneNumbersBuilder(int index) { + return getPhoneNumbersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index) { + if (phoneNumbersBuilder_ == null) { + return phoneNumbers_.get(index); + } else { + return phoneNumbersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List + getPhoneNumbersOrBuilderList() { + if (phoneNumbersBuilder_ != null) { + return phoneNumbersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(phoneNumbers_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone.Builder addPhoneNumbersBuilder() { + return getPhoneNumbersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone.Builder addPhoneNumbersBuilder(int index) { + return getPhoneNumbersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List + getPhoneNumbersBuilderList() { + return getPhoneNumbersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Phone, + com.google.cloud.talent.v4beta1.Phone.Builder, + com.google.cloud.talent.v4beta1.PhoneOrBuilder> + getPhoneNumbersFieldBuilder() { + if (phoneNumbersBuilder_ == null) { + phoneNumbersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Phone, + com.google.cloud.talent.v4beta1.Phone.Builder, + com.google.cloud.talent.v4beta1.PhoneOrBuilder>( + phoneNumbers_, + ((bitField0_ & 0x00001000) == 0x00001000), + getParentForChildren(), + isClean()); + phoneNumbers_ = null; + } + return phoneNumbersBuilder_; + } + + private java.util.List personalUris_ = + java.util.Collections.emptyList(); + + private void ensurePersonalUrisIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = + new java.util.ArrayList(personalUris_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonalUri, + com.google.cloud.talent.v4beta1.PersonalUri.Builder, + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder> + personalUrisBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List getPersonalUrisList() { + if (personalUrisBuilder_ == null) { + return java.util.Collections.unmodifiableList(personalUris_); + } else { + return personalUrisBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public int getPersonalUrisCount() { + if (personalUrisBuilder_ == null) { + return personalUris_.size(); + } else { + return personalUrisBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index) { + if (personalUrisBuilder_ == null) { + return personalUris_.get(index); + } else { + return personalUrisBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder setPersonalUris(int index, com.google.cloud.talent.v4beta1.PersonalUri value) { + if (personalUrisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonalUrisIsMutable(); + personalUris_.set(index, value); + onChanged(); + } else { + personalUrisBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder setPersonalUris( + int index, com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.set(index, builderForValue.build()); + onChanged(); + } else { + personalUrisBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris(com.google.cloud.talent.v4beta1.PersonalUri value) { + if (personalUrisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonalUrisIsMutable(); + personalUris_.add(value); + onChanged(); + } else { + personalUrisBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris(int index, com.google.cloud.talent.v4beta1.PersonalUri value) { + if (personalUrisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonalUrisIsMutable(); + personalUris_.add(index, value); + onChanged(); + } else { + personalUrisBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris( + com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.add(builderForValue.build()); + onChanged(); + } else { + personalUrisBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris( + int index, com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.add(index, builderForValue.build()); + onChanged(); + } else { + personalUrisBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addAllPersonalUris( + java.lang.Iterable values) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, personalUris_); + onChanged(); + } else { + personalUrisBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder clearPersonalUris() { + if (personalUrisBuilder_ == null) { + personalUris_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + personalUrisBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder removePersonalUris(int index) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.remove(index); + onChanged(); + } else { + personalUrisBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri.Builder getPersonalUrisBuilder(int index) { + return getPersonalUrisFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder( + int index) { + if (personalUrisBuilder_ == null) { + return personalUris_.get(index); + } else { + return personalUrisBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List + getPersonalUrisOrBuilderList() { + if (personalUrisBuilder_ != null) { + return personalUrisBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(personalUris_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri.Builder addPersonalUrisBuilder() { + return getPersonalUrisFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri.Builder addPersonalUrisBuilder(int index) { + return getPersonalUrisFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List + getPersonalUrisBuilderList() { + return getPersonalUrisFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonalUri, + com.google.cloud.talent.v4beta1.PersonalUri.Builder, + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder> + getPersonalUrisFieldBuilder() { + if (personalUrisBuilder_ == null) { + personalUrisBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonalUri, + com.google.cloud.talent.v4beta1.PersonalUri.Builder, + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder>( + personalUris_, + ((bitField0_ & 0x00002000) == 0x00002000), + getParentForChildren(), + isClean()); + personalUris_ = null; + } + return personalUrisBuilder_; + } + + private java.util.List + additionalContactInfo_ = java.util.Collections.emptyList(); + + private void ensureAdditionalContactInfoIsMutable() { + if (!((bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = + new java.util.ArrayList( + additionalContactInfo_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.AdditionalContactInfo, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder> + additionalContactInfoBuilder_; + + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoList() { + if (additionalContactInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalContactInfo_); + } else { + return additionalContactInfoBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public int getAdditionalContactInfoCount() { + if (additionalContactInfoBuilder_ == null) { + return additionalContactInfo_.size(); + } else { + return additionalContactInfoBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo( + int index) { + if (additionalContactInfoBuilder_ == null) { + return additionalContactInfo_.get(index); + } else { + return additionalContactInfoBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder setAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { + if (additionalContactInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.set(index, value); + onChanged(); + } else { + additionalContactInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder setAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalContactInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { + if (additionalContactInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(value); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { + if (additionalContactInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(index, value); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(builderForValue.build()); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAllAdditionalContactInfo( + java.lang.Iterable + values) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalContactInfo_); + onChanged(); + } else { + additionalContactInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder clearAdditionalContactInfo() { + if (additionalContactInfoBuilder_ == null) { + additionalContactInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + additionalContactInfoBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder removeAdditionalContactInfo(int index) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.remove(index); + onChanged(); + } else { + additionalContactInfoBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder + getAdditionalContactInfoBuilder(int index) { + return getAdditionalContactInfoFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder + getAdditionalContactInfoOrBuilder(int index) { + if (additionalContactInfoBuilder_ == null) { + return additionalContactInfo_.get(index); + } else { + return additionalContactInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoOrBuilderList() { + if (additionalContactInfoBuilder_ != null) { + return additionalContactInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalContactInfo_); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder + addAdditionalContactInfoBuilder() { + return getAdditionalContactInfoFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder + addAdditionalContactInfoBuilder(int index) { + return getAdditionalContactInfoFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoBuilderList() { + return getAdditionalContactInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.AdditionalContactInfo, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder> + getAdditionalContactInfoFieldBuilder() { + if (additionalContactInfoBuilder_ == null) { + additionalContactInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.AdditionalContactInfo, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder>( + additionalContactInfo_, + ((bitField0_ & 0x00004000) == 0x00004000), + getParentForChildren(), + isClean()); + additionalContactInfo_ = null; + } + return additionalContactInfoBuilder_; + } + + private java.util.List employmentRecords_ = + java.util.Collections.emptyList(); + + private void ensureEmploymentRecordsIsMutable() { + if (!((bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = + new java.util.ArrayList( + employmentRecords_); + bitField0_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmploymentRecord, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder> + employmentRecordsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsList() { + if (employmentRecordsBuilder_ == null) { + return java.util.Collections.unmodifiableList(employmentRecords_); + } else { + return employmentRecordsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public int getEmploymentRecordsCount() { + if (employmentRecordsBuilder_ == null) { + return employmentRecords_.size(); + } else { + return employmentRecordsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index) { + if (employmentRecordsBuilder_ == null) { + return employmentRecords_.get(index); + } else { + return employmentRecordsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder setEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord value) { + if (employmentRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentRecordsIsMutable(); + employmentRecords_.set(index, value); + onChanged(); + } else { + employmentRecordsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder setEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.set(index, builderForValue.build()); + onChanged(); + } else { + employmentRecordsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords(com.google.cloud.talent.v4beta1.EmploymentRecord value) { + if (employmentRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(value); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord value) { + if (employmentRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(index, value); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords( + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(builderForValue.build()); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(index, builderForValue.build()); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addAllEmploymentRecords( + java.lang.Iterable values) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, employmentRecords_); + onChanged(); + } else { + employmentRecordsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder clearEmploymentRecords() { + if (employmentRecordsBuilder_ == null) { + employmentRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + } else { + employmentRecordsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder removeEmploymentRecords(int index) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.remove(index); + onChanged(); + } else { + employmentRecordsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder getEmploymentRecordsBuilder( + int index) { + return getEmploymentRecordsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( + int index) { + if (employmentRecordsBuilder_ == null) { + return employmentRecords_.get(index); + } else { + return employmentRecordsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsOrBuilderList() { + if (employmentRecordsBuilder_ != null) { + return employmentRecordsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(employmentRecords_); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder addEmploymentRecordsBuilder() { + return getEmploymentRecordsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder addEmploymentRecordsBuilder( + int index) { + return getEmploymentRecordsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsBuilderList() { + return getEmploymentRecordsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmploymentRecord, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder> + getEmploymentRecordsFieldBuilder() { + if (employmentRecordsBuilder_ == null) { + employmentRecordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmploymentRecord, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder>( + employmentRecords_, + ((bitField0_ & 0x00008000) == 0x00008000), + getParentForChildren(), + isClean()); + employmentRecords_ = null; + } + return employmentRecordsBuilder_; + } + + private java.util.List educationRecords_ = + java.util.Collections.emptyList(); + + private void ensureEducationRecordsIsMutable() { + if (!((bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = + new java.util.ArrayList( + educationRecords_); + bitField0_ |= 0x00010000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationRecord, + com.google.cloud.talent.v4beta1.EducationRecord.Builder, + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder> + educationRecordsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsList() { + if (educationRecordsBuilder_ == null) { + return java.util.Collections.unmodifiableList(educationRecords_); + } else { + return educationRecordsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public int getEducationRecordsCount() { + if (educationRecordsBuilder_ == null) { + return educationRecords_.size(); + } else { + return educationRecordsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index) { + if (educationRecordsBuilder_ == null) { + return educationRecords_.get(index); + } else { + return educationRecordsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder setEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord value) { + if (educationRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationRecordsIsMutable(); + educationRecords_.set(index, value); + onChanged(); + } else { + educationRecordsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder setEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.set(index, builderForValue.build()); + onChanged(); + } else { + educationRecordsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords(com.google.cloud.talent.v4beta1.EducationRecord value) { + if (educationRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationRecordsIsMutable(); + educationRecords_.add(value); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord value) { + if (educationRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationRecordsIsMutable(); + educationRecords_.add(index, value); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords( + com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.add(builderForValue.build()); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.add(index, builderForValue.build()); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addAllEducationRecords( + java.lang.Iterable values) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, educationRecords_); + onChanged(); + } else { + educationRecordsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder clearEducationRecords() { + if (educationRecordsBuilder_ == null) { + educationRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + } else { + educationRecordsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder removeEducationRecords(int index) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.remove(index); + onChanged(); + } else { + educationRecordsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord.Builder getEducationRecordsBuilder( + int index) { + return getEducationRecordsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder( + int index) { + if (educationRecordsBuilder_ == null) { + return educationRecords_.get(index); + } else { + return educationRecordsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsOrBuilderList() { + if (educationRecordsBuilder_ != null) { + return educationRecordsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(educationRecords_); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord.Builder addEducationRecordsBuilder() { + return getEducationRecordsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord.Builder addEducationRecordsBuilder( + int index) { + return getEducationRecordsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsBuilderList() { + return getEducationRecordsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationRecord, + com.google.cloud.talent.v4beta1.EducationRecord.Builder, + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder> + getEducationRecordsFieldBuilder() { + if (educationRecordsBuilder_ == null) { + educationRecordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationRecord, + com.google.cloud.talent.v4beta1.EducationRecord.Builder, + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder>( + educationRecords_, + ((bitField0_ & 0x00010000) == 0x00010000), + getParentForChildren(), + isClean()); + educationRecords_ = null; + } + return educationRecordsBuilder_; + } + + private java.util.List skills_ = + java.util.Collections.emptyList(); + + private void ensureSkillsIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = new java.util.ArrayList(skills_); + bitField0_ |= 0x00020000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + skillsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List getSkillsList() { + if (skillsBuilder_ == null) { + return java.util.Collections.unmodifiableList(skills_); + } else { + return skillsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public int getSkillsCount() { + if (skillsBuilder_ == null) { + return skills_.size(); + } else { + return skillsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill getSkills(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder setSkills(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.set(index, value); + onChanged(); + } else { + skillsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder setSkills( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills(com.google.cloud.talent.v4beta1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(value); + onChanged(); + } else { + skillsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(index, value); + onChanged(); + } else { + skillsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addAllSkills( + java.lang.Iterable values) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skills_); + onChanged(); + } else { + skillsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder clearSkills() { + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + skillsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder removeSkills(int index) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.remove(index); + onChanged(); + } else { + skillsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsBuilder(int index) { + return getSkillsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List + getSkillsOrBuilderList() { + if (skillsBuilder_ != null) { + return skillsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skills_); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsBuilder() { + return getSkillsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsBuilder(int index) { + return getSkillsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List getSkillsBuilderList() { + return getSkillsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + getSkillsFieldBuilder() { + if (skillsBuilder_ == null) { + skillsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder>( + skills_, + ((bitField0_ & 0x00020000) == 0x00020000), + getParentForChildren(), + isClean()); + skills_ = null; + } + return skillsBuilder_; + } + + private java.util.List activities_ = + java.util.Collections.emptyList(); + + private void ensureActivitiesIsMutable() { + if (!((bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = + new java.util.ArrayList(activities_); + bitField0_ |= 0x00040000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Activity, + com.google.cloud.talent.v4beta1.Activity.Builder, + com.google.cloud.talent.v4beta1.ActivityOrBuilder> + activitiesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List getActivitiesList() { + if (activitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(activities_); + } else { + return activitiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public int getActivitiesCount() { + if (activitiesBuilder_ == null) { + return activities_.size(); + } else { + return activitiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity getActivities(int index) { + if (activitiesBuilder_ == null) { + return activities_.get(index); + } else { + return activitiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder setActivities(int index, com.google.cloud.talent.v4beta1.Activity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.set(index, value); + onChanged(); + } else { + activitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder setActivities( + int index, com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.set(index, builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities(com.google.cloud.talent.v4beta1.Activity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.add(value); + onChanged(); + } else { + activitiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities(int index, com.google.cloud.talent.v4beta1.Activity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.add(index, value); + onChanged(); + } else { + activitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities(com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities( + int index, com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(index, builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addAllActivities( + java.lang.Iterable values) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activities_); + onChanged(); + } else { + activitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder clearActivities() { + if (activitiesBuilder_ == null) { + activities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + } else { + activitiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder removeActivities(int index) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.remove(index); + onChanged(); + } else { + activitiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity.Builder getActivitiesBuilder(int index) { + return getActivitiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index) { + if (activitiesBuilder_ == null) { + return activities_.get(index); + } else { + return activitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List + getActivitiesOrBuilderList() { + if (activitiesBuilder_ != null) { + return activitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activities_); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity.Builder addActivitiesBuilder() { + return getActivitiesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity.Builder addActivitiesBuilder(int index) { + return getActivitiesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List + getActivitiesBuilderList() { + return getActivitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Activity, + com.google.cloud.talent.v4beta1.Activity.Builder, + com.google.cloud.talent.v4beta1.ActivityOrBuilder> + getActivitiesFieldBuilder() { + if (activitiesBuilder_ == null) { + activitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Activity, + com.google.cloud.talent.v4beta1.Activity.Builder, + com.google.cloud.talent.v4beta1.ActivityOrBuilder>( + activities_, + ((bitField0_ & 0x00040000) == 0x00040000), + getParentForChildren(), + isClean()); + activities_ = null; + } + return activitiesBuilder_; + } + + private java.util.List publications_ = + java.util.Collections.emptyList(); + + private void ensurePublicationsIsMutable() { + if (!((bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = + new java.util.ArrayList(publications_); + bitField0_ |= 0x00080000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Publication, + com.google.cloud.talent.v4beta1.Publication.Builder, + com.google.cloud.talent.v4beta1.PublicationOrBuilder> + publicationsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List getPublicationsList() { + if (publicationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(publications_); + } else { + return publicationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public int getPublicationsCount() { + if (publicationsBuilder_ == null) { + return publications_.size(); + } else { + return publicationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication getPublications(int index) { + if (publicationsBuilder_ == null) { + return publications_.get(index); + } else { + return publicationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder setPublications(int index, com.google.cloud.talent.v4beta1.Publication value) { + if (publicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicationsIsMutable(); + publications_.set(index, value); + onChanged(); + } else { + publicationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder setPublications( + int index, com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.set(index, builderForValue.build()); + onChanged(); + } else { + publicationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications(com.google.cloud.talent.v4beta1.Publication value) { + if (publicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicationsIsMutable(); + publications_.add(value); + onChanged(); + } else { + publicationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications(int index, com.google.cloud.talent.v4beta1.Publication value) { + if (publicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicationsIsMutable(); + publications_.add(index, value); + onChanged(); + } else { + publicationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications( + com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.add(builderForValue.build()); + onChanged(); + } else { + publicationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications( + int index, com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.add(index, builderForValue.build()); + onChanged(); + } else { + publicationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addAllPublications( + java.lang.Iterable values) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publications_); + onChanged(); + } else { + publicationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder clearPublications() { + if (publicationsBuilder_ == null) { + publications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + } else { + publicationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder removePublications(int index) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.remove(index); + onChanged(); + } else { + publicationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication.Builder getPublicationsBuilder(int index) { + return getPublicationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder( + int index) { + if (publicationsBuilder_ == null) { + return publications_.get(index); + } else { + return publicationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List + getPublicationsOrBuilderList() { + if (publicationsBuilder_ != null) { + return publicationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(publications_); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication.Builder addPublicationsBuilder() { + return getPublicationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication.Builder addPublicationsBuilder(int index) { + return getPublicationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List + getPublicationsBuilderList() { + return getPublicationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Publication, + com.google.cloud.talent.v4beta1.Publication.Builder, + com.google.cloud.talent.v4beta1.PublicationOrBuilder> + getPublicationsFieldBuilder() { + if (publicationsBuilder_ == null) { + publicationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Publication, + com.google.cloud.talent.v4beta1.Publication.Builder, + com.google.cloud.talent.v4beta1.PublicationOrBuilder>( + publications_, + ((bitField0_ & 0x00080000) == 0x00080000), + getParentForChildren(), + isClean()); + publications_ = null; + } + return publicationsBuilder_; + } + + private java.util.List patents_ = + java.util.Collections.emptyList(); + + private void ensurePatentsIsMutable() { + if (!((bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = new java.util.ArrayList(patents_); + bitField0_ |= 0x00100000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Patent, + com.google.cloud.talent.v4beta1.Patent.Builder, + com.google.cloud.talent.v4beta1.PatentOrBuilder> + patentsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List getPatentsList() { + if (patentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(patents_); + } else { + return patentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public int getPatentsCount() { + if (patentsBuilder_ == null) { + return patents_.size(); + } else { + return patentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent getPatents(int index) { + if (patentsBuilder_ == null) { + return patents_.get(index); + } else { + return patentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder setPatents(int index, com.google.cloud.talent.v4beta1.Patent value) { + if (patentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatentsIsMutable(); + patents_.set(index, value); + onChanged(); + } else { + patentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder setPatents( + int index, com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.set(index, builderForValue.build()); + onChanged(); + } else { + patentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents(com.google.cloud.talent.v4beta1.Patent value) { + if (patentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatentsIsMutable(); + patents_.add(value); + onChanged(); + } else { + patentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents(int index, com.google.cloud.talent.v4beta1.Patent value) { + if (patentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatentsIsMutable(); + patents_.add(index, value); + onChanged(); + } else { + patentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents(com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.add(builderForValue.build()); + onChanged(); + } else { + patentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents( + int index, com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.add(index, builderForValue.build()); + onChanged(); + } else { + patentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addAllPatents( + java.lang.Iterable values) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patents_); + onChanged(); + } else { + patentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder clearPatents() { + if (patentsBuilder_ == null) { + patents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + } else { + patentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder removePatents(int index) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.remove(index); + onChanged(); + } else { + patentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent.Builder getPatentsBuilder(int index) { + return getPatentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index) { + if (patentsBuilder_ == null) { + return patents_.get(index); + } else { + return patentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List + getPatentsOrBuilderList() { + if (patentsBuilder_ != null) { + return patentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(patents_); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent.Builder addPatentsBuilder() { + return getPatentsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent.Builder addPatentsBuilder(int index) { + return getPatentsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List getPatentsBuilderList() { + return getPatentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Patent, + com.google.cloud.talent.v4beta1.Patent.Builder, + com.google.cloud.talent.v4beta1.PatentOrBuilder> + getPatentsFieldBuilder() { + if (patentsBuilder_ == null) { + patentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Patent, + com.google.cloud.talent.v4beta1.Patent.Builder, + com.google.cloud.talent.v4beta1.PatentOrBuilder>( + patents_, + ((bitField0_ & 0x00100000) == 0x00100000), + getParentForChildren(), + isClean()); + patents_ = null; + } + return patentsBuilder_; + } + + private java.util.List certifications_ = + java.util.Collections.emptyList(); + + private void ensureCertificationsIsMutable() { + if (!((bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = + new java.util.ArrayList(certifications_); + bitField0_ |= 0x00200000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Certification, + com.google.cloud.talent.v4beta1.Certification.Builder, + com.google.cloud.talent.v4beta1.CertificationOrBuilder> + certificationsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List getCertificationsList() { + if (certificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(certifications_); + } else { + return certificationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public int getCertificationsCount() { + if (certificationsBuilder_ == null) { + return certifications_.size(); + } else { + return certificationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification getCertifications(int index) { + if (certificationsBuilder_ == null) { + return certifications_.get(index); + } else { + return certificationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder setCertifications( + int index, com.google.cloud.talent.v4beta1.Certification value) { + if (certificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificationsIsMutable(); + certifications_.set(index, value); + onChanged(); + } else { + certificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder setCertifications( + int index, com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.set(index, builderForValue.build()); + onChanged(); + } else { + certificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications(com.google.cloud.talent.v4beta1.Certification value) { + if (certificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificationsIsMutable(); + certifications_.add(value); + onChanged(); + } else { + certificationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications( + int index, com.google.cloud.talent.v4beta1.Certification value) { + if (certificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificationsIsMutable(); + certifications_.add(index, value); + onChanged(); + } else { + certificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications( + com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.add(builderForValue.build()); + onChanged(); + } else { + certificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications( + int index, com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.add(index, builderForValue.build()); + onChanged(); + } else { + certificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addAllCertifications( + java.lang.Iterable values) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certifications_); + onChanged(); + } else { + certificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder clearCertifications() { + if (certificationsBuilder_ == null) { + certifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + } else { + certificationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder removeCertifications(int index) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.remove(index); + onChanged(); + } else { + certificationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification.Builder getCertificationsBuilder( + int index) { + return getCertificationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder( + int index) { + if (certificationsBuilder_ == null) { + return certifications_.get(index); + } else { + return certificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List + getCertificationsOrBuilderList() { + if (certificationsBuilder_ != null) { + return certificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(certifications_); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification.Builder addCertificationsBuilder() { + return getCertificationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification.Builder addCertificationsBuilder( + int index) { + return getCertificationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List + getCertificationsBuilderList() { + return getCertificationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Certification, + com.google.cloud.talent.v4beta1.Certification.Builder, + com.google.cloud.talent.v4beta1.CertificationOrBuilder> + getCertificationsFieldBuilder() { + if (certificationsBuilder_ == null) { + certificationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Certification, + com.google.cloud.talent.v4beta1.Certification.Builder, + com.google.cloud.talent.v4beta1.CertificationOrBuilder>( + certifications_, + ((bitField0_ & 0x00200000) == 0x00200000), + getParentForChildren(), + isClean()); + certifications_ = null; + } + return certificationsBuilder_; + } + + private java.util.List jobApplications_ = + java.util.Collections.emptyList(); + + private void ensureJobApplicationsIsMutable() { + if (!((bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = + new java.util.ArrayList( + jobApplications_); + bitField0_ |= 0x00400000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobApplication, + com.google.cloud.talent.v4beta1.JobApplication.Builder, + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder> + jobApplicationsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List getJobApplicationsList() { + if (jobApplicationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobApplications_); + } else { + return jobApplicationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public int getJobApplicationsCount() { + if (jobApplicationsBuilder_ == null) { + return jobApplications_.size(); + } else { + return jobApplicationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index) { + if (jobApplicationsBuilder_ == null) { + return jobApplications_.get(index); + } else { + return jobApplicationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder setJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication value) { + if (jobApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobApplicationsIsMutable(); + jobApplications_.set(index, value); + onChanged(); + } else { + jobApplicationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder setJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.set(index, builderForValue.build()); + onChanged(); + } else { + jobApplicationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications(com.google.cloud.talent.v4beta1.JobApplication value) { + if (jobApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobApplicationsIsMutable(); + jobApplications_.add(value); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication value) { + if (jobApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobApplicationsIsMutable(); + jobApplications_.add(index, value); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications( + com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.add(builderForValue.build()); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.add(index, builderForValue.build()); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addAllJobApplications( + java.lang.Iterable values) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobApplications_); + onChanged(); + } else { + jobApplicationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder clearJobApplications() { + if (jobApplicationsBuilder_ == null) { + jobApplications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + } else { + jobApplicationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder removeJobApplications(int index) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.remove(index); + onChanged(); + } else { + jobApplicationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication.Builder getJobApplicationsBuilder( + int index) { + return getJobApplicationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder( + int index) { + if (jobApplicationsBuilder_ == null) { + return jobApplications_.get(index); + } else { + return jobApplicationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List + getJobApplicationsOrBuilderList() { + if (jobApplicationsBuilder_ != null) { + return jobApplicationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobApplications_); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication.Builder addJobApplicationsBuilder() { + return getJobApplicationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication.Builder addJobApplicationsBuilder( + int index) { + return getJobApplicationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List + getJobApplicationsBuilderList() { + return getJobApplicationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobApplication, + com.google.cloud.talent.v4beta1.JobApplication.Builder, + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder> + getJobApplicationsFieldBuilder() { + if (jobApplicationsBuilder_ == null) { + jobApplicationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobApplication, + com.google.cloud.talent.v4beta1.JobApplication.Builder, + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder>( + jobApplications_, + ((bitField0_ & 0x00400000) == 0x00400000), + getParentForChildren(), + isClean()); + jobApplications_ = null; + } + return jobApplicationsBuilder_; + } + + private java.util.List recruitingNotes_ = + java.util.Collections.emptyList(); + + private void ensureRecruitingNotesIsMutable() { + if (!((bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = + new java.util.ArrayList( + recruitingNotes_); + bitField0_ |= 0x00800000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.RecruitingNote, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder, + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder> + recruitingNotesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List getRecruitingNotesList() { + if (recruitingNotesBuilder_ == null) { + return java.util.Collections.unmodifiableList(recruitingNotes_); + } else { + return recruitingNotesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public int getRecruitingNotesCount() { + if (recruitingNotesBuilder_ == null) { + return recruitingNotes_.size(); + } else { + return recruitingNotesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index) { + if (recruitingNotesBuilder_ == null) { + return recruitingNotes_.get(index); + } else { + return recruitingNotesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder setRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote value) { + if (recruitingNotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecruitingNotesIsMutable(); + recruitingNotes_.set(index, value); + onChanged(); + } else { + recruitingNotesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder setRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.set(index, builderForValue.build()); + onChanged(); + } else { + recruitingNotesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes(com.google.cloud.talent.v4beta1.RecruitingNote value) { + if (recruitingNotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(value); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote value) { + if (recruitingNotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(index, value); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes( + com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(builderForValue.build()); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(index, builderForValue.build()); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addAllRecruitingNotes( + java.lang.Iterable values) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recruitingNotes_); + onChanged(); + } else { + recruitingNotesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder clearRecruitingNotes() { + if (recruitingNotesBuilder_ == null) { + recruitingNotes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + } else { + recruitingNotesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder removeRecruitingNotes(int index) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.remove(index); + onChanged(); + } else { + recruitingNotesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote.Builder getRecruitingNotesBuilder( + int index) { + return getRecruitingNotesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder( + int index) { + if (recruitingNotesBuilder_ == null) { + return recruitingNotes_.get(index); + } else { + return recruitingNotesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List + getRecruitingNotesOrBuilderList() { + if (recruitingNotesBuilder_ != null) { + return recruitingNotesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recruitingNotes_); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote.Builder addRecruitingNotesBuilder() { + return getRecruitingNotesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote.Builder addRecruitingNotesBuilder( + int index) { + return getRecruitingNotesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List + getRecruitingNotesBuilderList() { + return getRecruitingNotesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.RecruitingNote, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder, + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder> + getRecruitingNotesFieldBuilder() { + if (recruitingNotesBuilder_ == null) { + recruitingNotesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.RecruitingNote, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder, + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder>( + recruitingNotes_, + ((bitField0_ & 0x00800000) == 0x00800000), + getParentForChildren(), + isClean()); + recruitingNotes_ = null; + } + return recruitingNotesBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetMutableCustomAttributes() { + onChanged(); + ; + if (customAttributes_ == null) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + if (!customAttributes_.isMutable()) { + customAttributes_ = customAttributes_.copy(); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomAttributes() { + internalGetMutableCustomAttributes().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public Builder removeCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomAttributes() { + return internalGetMutableCustomAttributes().getMutableMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public Builder putCustomAttributes( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public Builder putAllCustomAttributes( + java.util.Map values) { + internalGetMutableCustomAttributes().getMutableMap().putAll(values); + return this; + } + + private boolean processed_; + /** + * + * + *
+     * Output only. Indicates if the profile is fully processed and searchable.
+     * 
+ * + * bool processed = 27; + */ + public boolean getProcessed() { + return processed_; + } + /** + * + * + *
+     * Output only. Indicates if the profile is fully processed and searchable.
+     * 
+ * + * bool processed = 27; + */ + public Builder setProcessed(boolean value) { + + processed_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates if the profile is fully processed and searchable.
+     * 
+ * + * bool processed = 27; + */ + public Builder clearProcessed() { + + processed_ = false; + onChanged(); + return this; + } + + private java.lang.Object keywordSnippet_ = ""; + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public java.lang.String getKeywordSnippet() { + java.lang.Object ref = keywordSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keywordSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public com.google.protobuf.ByteString getKeywordSnippetBytes() { + java.lang.Object ref = keywordSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keywordSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public Builder setKeywordSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + keywordSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public Builder clearKeywordSnippet() { + + keywordSnippet_ = getDefaultInstance().getKeywordSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public Builder setKeywordSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + keywordSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Profile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Profile) + private static final com.google.cloud.talent.v4beta1.Profile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Profile(); + } + + public static com.google.cloud.talent.v4beta1.Profile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Profile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Profile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java new file mode 100644 index 000000000000..4f5135abeb0c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java @@ -0,0 +1,1377 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An event issued when a profile searcher interacts with the application
+ * that implements Cloud Talent Solution.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileEvent} + */ +public final class ProfileEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ProfileEvent) + ProfileEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProfileEvent.newBuilder() to construct. + private ProfileEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProfileEvent() { + type_ = 0; + profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + jobId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ProfileEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + profiles_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobId_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = profiles_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileEvent.class, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder.class); + } + + /** + * + * + *
+   * The enum represents types of client events for a candidate profile.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType} + */ + public enum ProfileEventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * PROFILE_EVENT_TYPE_UNSPECIFIED = 0; + */ + PROFILE_EVENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The profile is displayed.
+     * 
+ * + * IMPRESSION = 1; + */ + IMPRESSION(1), + /** + * + * + *
+     * The profile is viewed.
+     * 
+ * + * VIEW = 2; + */ + VIEW(2), + /** + * + * + *
+     * The profile is bookmarked.
+     * 
+ * + * BOOKMARK = 3; + */ + BOOKMARK(3), + /** + * + * + *
+     * Comment added to the profile.
+     * 
+ * + * COMMENT_ADDED = 4; + */ + COMMENT_ADDED(4), + /** + * + * + *
+     * Email sent regarding the profile.
+     * 
+ * + * EMAIL_SENT = 5; + */ + EMAIL_SENT(5), + /** + * + * + *
+     * The resume of the profile is viewed.
+     * 
+ * + * RESUME_VIEWED = 6; + */ + RESUME_VIEWED(6), + /** + * + * + *
+     * The profile is added to a job.
+     * 
+ * + * ADD_TO_JOB = 7; + */ + ADD_TO_JOB(7), + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is interesting
+     * enough for later review or is a good result for the search.
+     * 
+ * + * POSITIVE_REACTION_TO_PROFILE = 8; + */ + POSITIVE_REACTION_TO_PROFILE(8), + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is not
+     * interesting enough for later review or is not a good result for the
+     * search.
+     * 
+ * + * NEGATIVE_REACTION_TO_PROFILE = 9; + */ + NEGATIVE_REACTION_TO_PROFILE(9), + /** + * + * + *
+     * The candidate is interesting enough to set up an initial screen with the
+     * recruiter. This step may be skipped based on the interview process.
+     * 
+ * + * SCREEN = 10; + */ + SCREEN(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * PROFILE_EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int PROFILE_EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The profile is displayed.
+     * 
+ * + * IMPRESSION = 1; + */ + public static final int IMPRESSION_VALUE = 1; + /** + * + * + *
+     * The profile is viewed.
+     * 
+ * + * VIEW = 2; + */ + public static final int VIEW_VALUE = 2; + /** + * + * + *
+     * The profile is bookmarked.
+     * 
+ * + * BOOKMARK = 3; + */ + public static final int BOOKMARK_VALUE = 3; + /** + * + * + *
+     * Comment added to the profile.
+     * 
+ * + * COMMENT_ADDED = 4; + */ + public static final int COMMENT_ADDED_VALUE = 4; + /** + * + * + *
+     * Email sent regarding the profile.
+     * 
+ * + * EMAIL_SENT = 5; + */ + public static final int EMAIL_SENT_VALUE = 5; + /** + * + * + *
+     * The resume of the profile is viewed.
+     * 
+ * + * RESUME_VIEWED = 6; + */ + public static final int RESUME_VIEWED_VALUE = 6; + /** + * + * + *
+     * The profile is added to a job.
+     * 
+ * + * ADD_TO_JOB = 7; + */ + public static final int ADD_TO_JOB_VALUE = 7; + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is interesting
+     * enough for later review or is a good result for the search.
+     * 
+ * + * POSITIVE_REACTION_TO_PROFILE = 8; + */ + public static final int POSITIVE_REACTION_TO_PROFILE_VALUE = 8; + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is not
+     * interesting enough for later review or is not a good result for the
+     * search.
+     * 
+ * + * NEGATIVE_REACTION_TO_PROFILE = 9; + */ + public static final int NEGATIVE_REACTION_TO_PROFILE_VALUE = 9; + /** + * + * + *
+     * The candidate is interesting enough to set up an initial screen with the
+     * recruiter. This step may be skipped based on the interview process.
+     * 
+ * + * SCREEN = 10; + */ + public static final int SCREEN_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ProfileEventType valueOf(int value) { + return forNumber(value); + } + + public static ProfileEventType forNumber(int value) { + switch (value) { + case 0: + return PROFILE_EVENT_TYPE_UNSPECIFIED; + case 1: + return IMPRESSION; + case 2: + return VIEW; + case 3: + return BOOKMARK; + case 4: + return COMMENT_ADDED; + case 5: + return EMAIL_SENT; + case 6: + return RESUME_VIEWED; + case 7: + return ADD_TO_JOB; + case 8: + return POSITIVE_REACTION_TO_PROFILE; + case 9: + return NEGATIVE_REACTION_TO_PROFILE; + case 10: + return SCREEN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProfileEventType findValueByNumber(int number) { + return ProfileEventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileEvent.getDescriptor().getEnumTypes().get(0); + } + + private static final ProfileEventType[] VALUES = values(); + + public static ProfileEventType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProfileEventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType result = + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.UNRECOGNIZED + : result; + } + + public static final int PROFILES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList profiles_; + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ProtocolStringList getProfilesList() { + return profiles_; + } + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public java.lang.String getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ByteString getProfilesBytes(int index) { + return profiles_.getByteString(index); + } + + public static final int JOB_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object jobId_; + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + public com.google.protobuf.ByteString getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType + .PROFILE_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + for (int i = 0; i < profiles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, profiles_.getRaw(i)); + } + if (!getJobIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType + .PROFILE_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + { + int dataSize = 0; + for (int i = 0; i < profiles_.size(); i++) { + dataSize += computeStringSizeNoTag(profiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getProfilesList().size(); + } + if (!getJobIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ProfileEvent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ProfileEvent other = + (com.google.cloud.talent.v4beta1.ProfileEvent) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getProfilesList().equals(other.getProfilesList()); + result = result && getJobId().equals(other.getJobId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getProfilesCount() > 0) { + hash = (37 * hash) + PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProfilesList().hashCode(); + } + hash = (37 * hash) + JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ProfileEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ProfileEvent) + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileEvent.class, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ProfileEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + jobId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent build() { + com.google.cloud.talent.v4beta1.ProfileEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent buildPartial() { + com.google.cloud.talent.v4beta1.ProfileEvent result = + new com.google.cloud.talent.v4beta1.ProfileEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.type_ = type_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = profiles_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.profiles_ = profiles_; + result.jobId_ = jobId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ProfileEvent) { + return mergeFrom((com.google.cloud.talent.v4beta1.ProfileEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ProfileEvent other) { + if (other == com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.profiles_.isEmpty()) { + if (profiles_.isEmpty()) { + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureProfilesIsMutable(); + profiles_.addAll(other.profiles_); + } + onChanged(); + } + if (!other.getJobId().isEmpty()) { + jobId_ = other.jobId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ProfileEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ProfileEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType result = + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public Builder setType(com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList profiles_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureProfilesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = new com.google.protobuf.LazyStringArrayList(profiles_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ProtocolStringList getProfilesList() { + return profiles_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public java.lang.String getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ByteString getProfilesBytes(int index) { + return profiles_.getByteString(index); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder setProfiles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder addProfiles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder addAllProfiles(java.lang.Iterable values) { + ensureProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder clearProfiles() { + profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder addProfilesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + return this; + } + + private java.lang.Object jobId_ = ""; + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public com.google.protobuf.ByteString getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public Builder setJobId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public Builder clearJobId() { + + jobId_ = getDefaultInstance().getJobId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ProfileEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ProfileEvent) + private static final com.google.cloud.talent.v4beta1.ProfileEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ProfileEvent(); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProfileEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProfileEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java new file mode 100644 index 000000000000..54ca5e7cf1b3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public interface ProfileEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ProfileEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType(); + + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + java.util.List getProfilesList(); + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + int getProfilesCount(); + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + java.lang.String getProfiles(int index); + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + com.google.protobuf.ByteString getProfilesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + java.lang.String getJobId(); + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + com.google.protobuf.ByteString getJobIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java new file mode 100644 index 000000000000..f69991fb37bc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java @@ -0,0 +1,208 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProfileName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/tenants/{tenant}/profiles/{profile}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String tenant; + private final String profile; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public String getProfile() { + return profile; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProfileName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + tenant = Preconditions.checkNotNull(builder.getTenant()); + profile = Preconditions.checkNotNull(builder.getProfile()); + } + + public static ProfileName of(String project, String tenant, String profile) { + return newBuilder().setProject(project).setTenant(tenant).setProfile(profile).build(); + } + + public static String format(String project, String tenant, String profile) { + return newBuilder() + .setProject(project) + .setTenant(tenant) + .setProfile(profile) + .build() + .toString(); + } + + public static ProfileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProfileName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("tenant"), matchMap.get("profile")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProfileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("tenant", tenant); + fieldMapBuilder.put("profile", profile); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "tenant", tenant, "profile", profile); + } + + /** Builder for ProfileName. */ + public static class Builder { + + private String project; + private String tenant; + private String profile; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public String getProfile() { + return profile; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTenant(String tenant) { + this.tenant = tenant; + return this; + } + + public Builder setProfile(String profile) { + this.profile = profile; + return this; + } + + private Builder() {} + + private Builder(ProfileName profileName) { + project = profileName.project; + tenant = profileName.tenant; + profile = profileName.profile; + } + + public ProfileName build() { + return new ProfileName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProfileName) { + ProfileName that = (ProfileName) o; + return (this.project.equals(that.project)) + && (this.tenant.equals(that.tenant)) + && (this.profile.equals(that.profile)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= tenant.hashCode(); + h *= 1000003; + h ^= profile.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java new file mode 100644 index 000000000000..a0e89e668a3c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java @@ -0,0 +1,1528 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface ProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Profile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + java.lang.String getExternalId(); + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + java.lang.String getSource(); + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + java.lang.String getGroupId(); + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + com.google.protobuf.ByteString getGroupIdBytes(); + + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + boolean hasIsHirable(); + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + com.google.protobuf.BoolValue getIsHirable(); + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + java.lang.String getResumeHrxml(); + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + com.google.protobuf.ByteString getResumeHrxmlBytes(); + + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + java.util.List getPersonNamesList(); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + int getPersonNamesCount(); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + java.util.List + getPersonNamesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + java.util.List getAddressesList(); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + com.google.cloud.talent.v4beta1.Address getAddresses(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + int getAddressesCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + java.util.List + getAddressesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + java.util.List getEmailAddressesList(); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + int getEmailAddressesCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + java.util.List + getEmailAddressesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + java.util.List getPhoneNumbersList(); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + int getPhoneNumbersCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + java.util.List + getPhoneNumbersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + java.util.List getPersonalUrisList(); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + int getPersonalUrisCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + java.util.List + getPersonalUrisOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + java.util.List + getAdditionalContactInfoList(); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo(int index); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + int getAdditionalContactInfoCount(); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + java.util.List + getAdditionalContactInfoOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder getAdditionalContactInfoOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + java.util.List getEmploymentRecordsList(); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + int getEmploymentRecordsCount(); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + java.util.List + getEmploymentRecordsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + java.util.List getEducationRecordsList(); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + int getEducationRecordsCount(); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + java.util.List + getEducationRecordsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + java.util.List getSkillsList(); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + com.google.cloud.talent.v4beta1.Skill getSkills(int index); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + int getSkillsCount(); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + java.util.List getSkillsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + java.util.List getActivitiesList(); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + com.google.cloud.talent.v4beta1.Activity getActivities(int index); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + int getActivitiesCount(); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + java.util.List + getActivitiesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + java.util.List getPublicationsList(); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + com.google.cloud.talent.v4beta1.Publication getPublications(int index); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + int getPublicationsCount(); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + java.util.List + getPublicationsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + java.util.List getPatentsList(); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + com.google.cloud.talent.v4beta1.Patent getPatents(int index); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + int getPatentsCount(); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + java.util.List + getPatentsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + java.util.List getCertificationsList(); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + com.google.cloud.talent.v4beta1.Certification getCertifications(int index); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + int getCertificationsCount(); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + java.util.List + getCertificationsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + java.util.List getJobApplicationsList(); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + int getJobApplicationsCount(); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + java.util.List + getJobApplicationsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + java.util.List getRecruitingNotesList(); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + int getRecruitingNotesCount(); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + java.util.List + getRecruitingNotesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + int getCustomAttributesCount(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + boolean containsCustomAttributes(java.lang.String key); + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getCustomAttributes(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + java.util.Map + getCustomAttributesMap(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Indicates if the profile is fully processed and searchable.
+   * 
+ * + * bool processed = 27; + */ + boolean getProcessed(); + + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + java.lang.String getKeywordSnippet(); + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + com.google.protobuf.ByteString getKeywordSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java new file mode 100644 index 000000000000..41055b884d2f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java @@ -0,0 +1,8826 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Filters to apply when performing the search query.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileQuery} + */ +public final class ProfileQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ProfileQuery) + ProfileQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProfileQuery.newBuilder() to construct. + private ProfileQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProfileQuery() { + query_ = ""; + locationFilters_ = java.util.Collections.emptyList(); + jobTitleFilters_ = java.util.Collections.emptyList(); + employerFilters_ = java.util.Collections.emptyList(); + educationFilters_ = java.util.Collections.emptyList(); + skillFilters_ = java.util.Collections.emptyList(); + workExperienceFilter_ = java.util.Collections.emptyList(); + timeFilters_ = java.util.Collections.emptyList(); + applicationDateFilters_ = java.util.Collections.emptyList(); + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + applicationLastStageFilters_ = java.util.Collections.emptyList(); + applicationJobFilters_ = java.util.Collections.emptyList(); + applicationStatusFilters_ = java.util.Collections.emptyList(); + customFieldFilter_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ProfileQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + locationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.LocationFilter.parser(), extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + jobTitleFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.JobTitleFilter.parser(), extensionRegistry)); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + employerFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EmployerFilter.parser(), extensionRegistry)); + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + educationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EducationFilter.parser(), extensionRegistry)); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + skillFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.SkillFilter.parser(), extensionRegistry)); + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + workExperienceFilter_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.parser(), + extensionRegistry)); + break; + } + case 66: + { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + timeFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.TimeFilter.parser(), extensionRegistry)); + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (hirableFilter_ != null) { + subBuilder = hirableFilter_.toBuilder(); + } + hirableFilter_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hirableFilter_); + hirableFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationDateFilter>(); + mutable_bitField0_ |= 0x00000200; + } + applicationDateFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.parser(), + extensionRegistry)); + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter>(); + mutable_bitField0_ |= 0x00000400; + } + applicationOutcomeReasonFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.parser(), + extensionRegistry)); + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter>(); + mutable_bitField0_ |= 0x00000800; + } + applicationLastStageFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.parser(), + extensionRegistry)); + break; + } + case 106: + { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + applicationJobFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.parser(), + extensionRegistry)); + break; + } + case 114: + { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter>(); + mutable_bitField0_ |= 0x00002000; + } + applicationStatusFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.parser(), + extensionRegistry)); + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + customFieldFilter_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = java.util.Collections.unmodifiableList(jobTitleFilters_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = java.util.Collections.unmodifiableList(employerFilters_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = java.util.Collections.unmodifiableList(educationFilters_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = java.util.Collections.unmodifiableList(skillFilters_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = java.util.Collections.unmodifiableList(workExperienceFilter_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = java.util.Collections.unmodifiableList(timeFilters_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = java.util.Collections.unmodifiableList(applicationDateFilters_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + } + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + java.util.Collections.unmodifiableList(applicationLastStageFilters_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = java.util.Collections.unmodifiableList(applicationJobFilters_); + } + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + java.util.Collections.unmodifiableList(applicationStatusFilters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileQuery.class, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder.class); + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FILTERS_FIELD_NUMBER = 2; + private java.util.List locationFilters_; + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List getLocationFiltersList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public int getLocationFiltersCount() { + return locationFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + return locationFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + return locationFilters_.get(index); + } + + public static final int JOB_TITLE_FILTERS_FIELD_NUMBER = 3; + private java.util.List jobTitleFilters_; + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List getJobTitleFiltersList() { + return jobTitleFilters_; + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List + getJobTitleFiltersOrBuilderList() { + return jobTitleFilters_; + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public int getJobTitleFiltersCount() { + return jobTitleFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index) { + return jobTitleFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder( + int index) { + return jobTitleFilters_.get(index); + } + + public static final int EMPLOYER_FILTERS_FIELD_NUMBER = 4; + private java.util.List employerFilters_; + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List getEmployerFiltersList() { + return employerFilters_; + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List + getEmployerFiltersOrBuilderList() { + return employerFilters_; + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public int getEmployerFiltersCount() { + return employerFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index) { + return employerFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder( + int index) { + return employerFilters_.get(index); + } + + public static final int EDUCATION_FILTERS_FIELD_NUMBER = 5; + private java.util.List educationFilters_; + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List getEducationFiltersList() { + return educationFilters_; + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersOrBuilderList() { + return educationFilters_; + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public int getEducationFiltersCount() { + return educationFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index) { + return educationFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder( + int index) { + return educationFilters_.get(index); + } + + public static final int SKILL_FILTERS_FIELD_NUMBER = 6; + private java.util.List skillFilters_; + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List getSkillFiltersList() { + return skillFilters_; + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List + getSkillFiltersOrBuilderList() { + return skillFilters_; + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public int getSkillFiltersCount() { + return skillFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index) { + return skillFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder(int index) { + return skillFilters_.get(index); + } + + public static final int WORK_EXPERIENCE_FILTER_FIELD_NUMBER = 7; + private java.util.List + workExperienceFilter_; + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterList() { + return workExperienceFilter_; + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterOrBuilderList() { + return workExperienceFilter_; + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public int getWorkExperienceFilterCount() { + return workExperienceFilter_.size(); + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index) { + return workExperienceFilter_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder + getWorkExperienceFilterOrBuilder(int index) { + return workExperienceFilter_.get(index); + } + + public static final int TIME_FILTERS_FIELD_NUMBER = 8; + private java.util.List timeFilters_; + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List getTimeFiltersList() { + return timeFilters_; + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List + getTimeFiltersOrBuilderList() { + return timeFilters_; + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public int getTimeFiltersCount() { + return timeFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index) { + return timeFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index) { + return timeFilters_.get(index); + } + + public static final int HIRABLE_FILTER_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue hirableFilter_; + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public boolean hasHirableFilter() { + return hirableFilter_ != null; + } + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValue getHirableFilter() { + return hirableFilter_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : hirableFilter_; + } + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder() { + return getHirableFilter(); + } + + public static final int APPLICATION_DATE_FILTERS_FIELD_NUMBER = 10; + private java.util.List + applicationDateFilters_; + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersList() { + return applicationDateFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersOrBuilderList() { + return applicationDateFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public int getApplicationDateFiltersCount() { + return applicationDateFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters( + int index) { + return applicationDateFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder + getApplicationDateFiltersOrBuilder(int index) { + return applicationDateFilters_.get(index); + } + + public static final int APPLICATION_OUTCOME_REASON_FILTERS_FIELD_NUMBER = 11; + private java.util.List + applicationOutcomeReasonFilters_; + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List + getApplicationOutcomeReasonFiltersList() { + return applicationOutcomeReasonFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + getApplicationOutcomeReasonFiltersOrBuilderList() { + return applicationOutcomeReasonFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public int getApplicationOutcomeReasonFiltersCount() { + return applicationOutcomeReasonFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getApplicationOutcomeReasonFilters(int index) { + return applicationOutcomeReasonFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder + getApplicationOutcomeReasonFiltersOrBuilder(int index) { + return applicationOutcomeReasonFilters_.get(index); + } + + public static final int APPLICATION_LAST_STAGE_FILTERS_FIELD_NUMBER = 12; + private java.util.List + applicationLastStageFilters_; + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List + getApplicationLastStageFiltersList() { + return applicationLastStageFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + getApplicationLastStageFiltersOrBuilderList() { + return applicationLastStageFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public int getApplicationLastStageFiltersCount() { + return applicationLastStageFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getApplicationLastStageFilters( + int index) { + return applicationLastStageFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder + getApplicationLastStageFiltersOrBuilder(int index) { + return applicationLastStageFilters_.get(index); + } + + public static final int APPLICATION_JOB_FILTERS_FIELD_NUMBER = 13; + private java.util.List + applicationJobFilters_; + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersList() { + return applicationJobFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersOrBuilderList() { + return applicationJobFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public int getApplicationJobFiltersCount() { + return applicationJobFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters(int index) { + return applicationJobFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder + getApplicationJobFiltersOrBuilder(int index) { + return applicationJobFilters_.get(index); + } + + public static final int APPLICATION_STATUS_FILTERS_FIELD_NUMBER = 14; + private java.util.List + applicationStatusFilters_; + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersList() { + return applicationStatusFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersOrBuilderList() { + return applicationStatusFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public int getApplicationStatusFiltersCount() { + return applicationStatusFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getApplicationStatusFilters( + int index) { + return applicationStatusFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder + getApplicationStatusFiltersOrBuilder(int index) { + return applicationStatusFilters_.get(index); + } + + public static final int CUSTOM_FIELD_FILTER_FIELD_NUMBER = 15; + private volatile java.lang.Object customFieldFilter_; + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + public java.lang.String getCustomFieldFilter() { + java.lang.Object ref = customFieldFilter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customFieldFilter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + public com.google.protobuf.ByteString getCustomFieldFilterBytes() { + java.lang.Object ref = customFieldFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customFieldFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + output.writeMessage(2, locationFilters_.get(i)); + } + for (int i = 0; i < jobTitleFilters_.size(); i++) { + output.writeMessage(3, jobTitleFilters_.get(i)); + } + for (int i = 0; i < employerFilters_.size(); i++) { + output.writeMessage(4, employerFilters_.get(i)); + } + for (int i = 0; i < educationFilters_.size(); i++) { + output.writeMessage(5, educationFilters_.get(i)); + } + for (int i = 0; i < skillFilters_.size(); i++) { + output.writeMessage(6, skillFilters_.get(i)); + } + for (int i = 0; i < workExperienceFilter_.size(); i++) { + output.writeMessage(7, workExperienceFilter_.get(i)); + } + for (int i = 0; i < timeFilters_.size(); i++) { + output.writeMessage(8, timeFilters_.get(i)); + } + if (hirableFilter_ != null) { + output.writeMessage(9, getHirableFilter()); + } + for (int i = 0; i < applicationDateFilters_.size(); i++) { + output.writeMessage(10, applicationDateFilters_.get(i)); + } + for (int i = 0; i < applicationOutcomeReasonFilters_.size(); i++) { + output.writeMessage(11, applicationOutcomeReasonFilters_.get(i)); + } + for (int i = 0; i < applicationLastStageFilters_.size(); i++) { + output.writeMessage(12, applicationLastStageFilters_.get(i)); + } + for (int i = 0; i < applicationJobFilters_.size(); i++) { + output.writeMessage(13, applicationJobFilters_.get(i)); + } + for (int i = 0; i < applicationStatusFilters_.size(); i++) { + output.writeMessage(14, applicationStatusFilters_.get(i)); + } + if (!getCustomFieldFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, customFieldFilter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, locationFilters_.get(i)); + } + for (int i = 0; i < jobTitleFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, jobTitleFilters_.get(i)); + } + for (int i = 0; i < employerFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, employerFilters_.get(i)); + } + for (int i = 0; i < educationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, educationFilters_.get(i)); + } + for (int i = 0; i < skillFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, skillFilters_.get(i)); + } + for (int i = 0; i < workExperienceFilter_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, workExperienceFilter_.get(i)); + } + for (int i = 0; i < timeFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, timeFilters_.get(i)); + } + if (hirableFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getHirableFilter()); + } + for (int i = 0; i < applicationDateFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, applicationDateFilters_.get(i)); + } + for (int i = 0; i < applicationOutcomeReasonFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, applicationOutcomeReasonFilters_.get(i)); + } + for (int i = 0; i < applicationLastStageFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, applicationLastStageFilters_.get(i)); + } + for (int i = 0; i < applicationJobFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, applicationJobFilters_.get(i)); + } + for (int i = 0; i < applicationStatusFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, applicationStatusFilters_.get(i)); + } + if (!getCustomFieldFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, customFieldFilter_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ProfileQuery)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ProfileQuery other = + (com.google.cloud.talent.v4beta1.ProfileQuery) obj; + + boolean result = true; + result = result && getQuery().equals(other.getQuery()); + result = result && getLocationFiltersList().equals(other.getLocationFiltersList()); + result = result && getJobTitleFiltersList().equals(other.getJobTitleFiltersList()); + result = result && getEmployerFiltersList().equals(other.getEmployerFiltersList()); + result = result && getEducationFiltersList().equals(other.getEducationFiltersList()); + result = result && getSkillFiltersList().equals(other.getSkillFiltersList()); + result = result && getWorkExperienceFilterList().equals(other.getWorkExperienceFilterList()); + result = result && getTimeFiltersList().equals(other.getTimeFiltersList()); + result = result && (hasHirableFilter() == other.hasHirableFilter()); + if (hasHirableFilter()) { + result = result && getHirableFilter().equals(other.getHirableFilter()); + } + result = + result && getApplicationDateFiltersList().equals(other.getApplicationDateFiltersList()); + result = + result + && getApplicationOutcomeReasonFiltersList() + .equals(other.getApplicationOutcomeReasonFiltersList()); + result = + result + && getApplicationLastStageFiltersList() + .equals(other.getApplicationLastStageFiltersList()); + result = result && getApplicationJobFiltersList().equals(other.getApplicationJobFiltersList()); + result = + result && getApplicationStatusFiltersList().equals(other.getApplicationStatusFiltersList()); + result = result && getCustomFieldFilter().equals(other.getCustomFieldFilter()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getLocationFiltersCount() > 0) { + hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getLocationFiltersList().hashCode(); + } + if (getJobTitleFiltersCount() > 0) { + hash = (37 * hash) + JOB_TITLE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleFiltersList().hashCode(); + } + if (getEmployerFiltersCount() > 0) { + hash = (37 * hash) + EMPLOYER_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getEmployerFiltersList().hashCode(); + } + if (getEducationFiltersCount() > 0) { + hash = (37 * hash) + EDUCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getEducationFiltersList().hashCode(); + } + if (getSkillFiltersCount() > 0) { + hash = (37 * hash) + SKILL_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getSkillFiltersList().hashCode(); + } + if (getWorkExperienceFilterCount() > 0) { + hash = (37 * hash) + WORK_EXPERIENCE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getWorkExperienceFilterList().hashCode(); + } + if (getTimeFiltersCount() > 0) { + hash = (37 * hash) + TIME_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getTimeFiltersList().hashCode(); + } + if (hasHirableFilter()) { + hash = (37 * hash) + HIRABLE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getHirableFilter().hashCode(); + } + if (getApplicationDateFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_DATE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationDateFiltersList().hashCode(); + } + if (getApplicationOutcomeReasonFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_OUTCOME_REASON_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationOutcomeReasonFiltersList().hashCode(); + } + if (getApplicationLastStageFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_LAST_STAGE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationLastStageFiltersList().hashCode(); + } + if (getApplicationJobFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_JOB_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationJobFiltersList().hashCode(); + } + if (getApplicationStatusFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_STATUS_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationStatusFiltersList().hashCode(); + } + hash = (37 * hash) + CUSTOM_FIELD_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCustomFieldFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ProfileQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Filters to apply when performing the search query.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ProfileQuery) + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileQuery.class, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ProfileQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationFiltersFieldBuilder(); + getJobTitleFiltersFieldBuilder(); + getEmployerFiltersFieldBuilder(); + getEducationFiltersFieldBuilder(); + getSkillFiltersFieldBuilder(); + getWorkExperienceFilterFieldBuilder(); + getTimeFiltersFieldBuilder(); + getApplicationDateFiltersFieldBuilder(); + getApplicationOutcomeReasonFiltersFieldBuilder(); + getApplicationLastStageFiltersFieldBuilder(); + getApplicationJobFiltersFieldBuilder(); + getApplicationStatusFiltersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + query_ = ""; + + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + locationFiltersBuilder_.clear(); + } + if (jobTitleFiltersBuilder_ == null) { + jobTitleFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + jobTitleFiltersBuilder_.clear(); + } + if (employerFiltersBuilder_ == null) { + employerFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + employerFiltersBuilder_.clear(); + } + if (educationFiltersBuilder_ == null) { + educationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + educationFiltersBuilder_.clear(); + } + if (skillFiltersBuilder_ == null) { + skillFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + skillFiltersBuilder_.clear(); + } + if (workExperienceFilterBuilder_ == null) { + workExperienceFilter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + workExperienceFilterBuilder_.clear(); + } + if (timeFiltersBuilder_ == null) { + timeFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + timeFiltersBuilder_.clear(); + } + if (hirableFilterBuilder_ == null) { + hirableFilter_ = null; + } else { + hirableFilter_ = null; + hirableFilterBuilder_ = null; + } + if (applicationDateFiltersBuilder_ == null) { + applicationDateFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + applicationDateFiltersBuilder_.clear(); + } + if (applicationOutcomeReasonFiltersBuilder_ == null) { + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + applicationOutcomeReasonFiltersBuilder_.clear(); + } + if (applicationLastStageFiltersBuilder_ == null) { + applicationLastStageFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + applicationLastStageFiltersBuilder_.clear(); + } + if (applicationJobFiltersBuilder_ == null) { + applicationJobFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + } else { + applicationJobFiltersBuilder_.clear(); + } + if (applicationStatusFiltersBuilder_ == null) { + applicationStatusFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + } else { + applicationStatusFiltersBuilder_.clear(); + } + customFieldFilter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery build() { + com.google.cloud.talent.v4beta1.ProfileQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery buildPartial() { + com.google.cloud.talent.v4beta1.ProfileQuery result = + new com.google.cloud.talent.v4beta1.ProfileQuery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.query_ = query_; + if (locationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.locationFilters_ = locationFilters_; + } else { + result.locationFilters_ = locationFiltersBuilder_.build(); + } + if (jobTitleFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = java.util.Collections.unmodifiableList(jobTitleFilters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.jobTitleFilters_ = jobTitleFilters_; + } else { + result.jobTitleFilters_ = jobTitleFiltersBuilder_.build(); + } + if (employerFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = java.util.Collections.unmodifiableList(employerFilters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.employerFilters_ = employerFilters_; + } else { + result.employerFilters_ = employerFiltersBuilder_.build(); + } + if (educationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = java.util.Collections.unmodifiableList(educationFilters_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.educationFilters_ = educationFilters_; + } else { + result.educationFilters_ = educationFiltersBuilder_.build(); + } + if (skillFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = java.util.Collections.unmodifiableList(skillFilters_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.skillFilters_ = skillFilters_; + } else { + result.skillFilters_ = skillFiltersBuilder_.build(); + } + if (workExperienceFilterBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = java.util.Collections.unmodifiableList(workExperienceFilter_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.workExperienceFilter_ = workExperienceFilter_; + } else { + result.workExperienceFilter_ = workExperienceFilterBuilder_.build(); + } + if (timeFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = java.util.Collections.unmodifiableList(timeFilters_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.timeFilters_ = timeFilters_; + } else { + result.timeFilters_ = timeFiltersBuilder_.build(); + } + if (hirableFilterBuilder_ == null) { + result.hirableFilter_ = hirableFilter_; + } else { + result.hirableFilter_ = hirableFilterBuilder_.build(); + } + if (applicationDateFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = java.util.Collections.unmodifiableList(applicationDateFilters_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.applicationDateFilters_ = applicationDateFilters_; + } else { + result.applicationDateFilters_ = applicationDateFiltersBuilder_.build(); + } + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.applicationOutcomeReasonFilters_ = applicationOutcomeReasonFilters_; + } else { + result.applicationOutcomeReasonFilters_ = applicationOutcomeReasonFiltersBuilder_.build(); + } + if (applicationLastStageFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + java.util.Collections.unmodifiableList(applicationLastStageFilters_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.applicationLastStageFilters_ = applicationLastStageFilters_; + } else { + result.applicationLastStageFilters_ = applicationLastStageFiltersBuilder_.build(); + } + if (applicationJobFiltersBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = java.util.Collections.unmodifiableList(applicationJobFilters_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.applicationJobFilters_ = applicationJobFilters_; + } else { + result.applicationJobFilters_ = applicationJobFiltersBuilder_.build(); + } + if (applicationStatusFiltersBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + java.util.Collections.unmodifiableList(applicationStatusFilters_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.applicationStatusFilters_ = applicationStatusFilters_; + } else { + result.applicationStatusFilters_ = applicationStatusFiltersBuilder_.build(); + } + result.customFieldFilter_ = customFieldFilter_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ProfileQuery) { + return mergeFrom((com.google.cloud.talent.v4beta1.ProfileQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ProfileQuery other) { + if (other == com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (locationFiltersBuilder_ == null) { + if (!other.locationFilters_.isEmpty()) { + if (locationFilters_.isEmpty()) { + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLocationFiltersIsMutable(); + locationFilters_.addAll(other.locationFilters_); + } + onChanged(); + } + } else { + if (!other.locationFilters_.isEmpty()) { + if (locationFiltersBuilder_.isEmpty()) { + locationFiltersBuilder_.dispose(); + locationFiltersBuilder_ = null; + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000002); + locationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationFiltersFieldBuilder() + : null; + } else { + locationFiltersBuilder_.addAllMessages(other.locationFilters_); + } + } + } + if (jobTitleFiltersBuilder_ == null) { + if (!other.jobTitleFilters_.isEmpty()) { + if (jobTitleFilters_.isEmpty()) { + jobTitleFilters_ = other.jobTitleFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.addAll(other.jobTitleFilters_); + } + onChanged(); + } + } else { + if (!other.jobTitleFilters_.isEmpty()) { + if (jobTitleFiltersBuilder_.isEmpty()) { + jobTitleFiltersBuilder_.dispose(); + jobTitleFiltersBuilder_ = null; + jobTitleFilters_ = other.jobTitleFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + jobTitleFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobTitleFiltersFieldBuilder() + : null; + } else { + jobTitleFiltersBuilder_.addAllMessages(other.jobTitleFilters_); + } + } + } + if (employerFiltersBuilder_ == null) { + if (!other.employerFilters_.isEmpty()) { + if (employerFilters_.isEmpty()) { + employerFilters_ = other.employerFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureEmployerFiltersIsMutable(); + employerFilters_.addAll(other.employerFilters_); + } + onChanged(); + } + } else { + if (!other.employerFilters_.isEmpty()) { + if (employerFiltersBuilder_.isEmpty()) { + employerFiltersBuilder_.dispose(); + employerFiltersBuilder_ = null; + employerFilters_ = other.employerFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + employerFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEmployerFiltersFieldBuilder() + : null; + } else { + employerFiltersBuilder_.addAllMessages(other.employerFilters_); + } + } + } + if (educationFiltersBuilder_ == null) { + if (!other.educationFilters_.isEmpty()) { + if (educationFilters_.isEmpty()) { + educationFilters_ = other.educationFilters_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureEducationFiltersIsMutable(); + educationFilters_.addAll(other.educationFilters_); + } + onChanged(); + } + } else { + if (!other.educationFilters_.isEmpty()) { + if (educationFiltersBuilder_.isEmpty()) { + educationFiltersBuilder_.dispose(); + educationFiltersBuilder_ = null; + educationFilters_ = other.educationFilters_; + bitField0_ = (bitField0_ & ~0x00000010); + educationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEducationFiltersFieldBuilder() + : null; + } else { + educationFiltersBuilder_.addAllMessages(other.educationFilters_); + } + } + } + if (skillFiltersBuilder_ == null) { + if (!other.skillFilters_.isEmpty()) { + if (skillFilters_.isEmpty()) { + skillFilters_ = other.skillFilters_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSkillFiltersIsMutable(); + skillFilters_.addAll(other.skillFilters_); + } + onChanged(); + } + } else { + if (!other.skillFilters_.isEmpty()) { + if (skillFiltersBuilder_.isEmpty()) { + skillFiltersBuilder_.dispose(); + skillFiltersBuilder_ = null; + skillFilters_ = other.skillFilters_; + bitField0_ = (bitField0_ & ~0x00000020); + skillFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillFiltersFieldBuilder() + : null; + } else { + skillFiltersBuilder_.addAllMessages(other.skillFilters_); + } + } + } + if (workExperienceFilterBuilder_ == null) { + if (!other.workExperienceFilter_.isEmpty()) { + if (workExperienceFilter_.isEmpty()) { + workExperienceFilter_ = other.workExperienceFilter_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.addAll(other.workExperienceFilter_); + } + onChanged(); + } + } else { + if (!other.workExperienceFilter_.isEmpty()) { + if (workExperienceFilterBuilder_.isEmpty()) { + workExperienceFilterBuilder_.dispose(); + workExperienceFilterBuilder_ = null; + workExperienceFilter_ = other.workExperienceFilter_; + bitField0_ = (bitField0_ & ~0x00000040); + workExperienceFilterBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkExperienceFilterFieldBuilder() + : null; + } else { + workExperienceFilterBuilder_.addAllMessages(other.workExperienceFilter_); + } + } + } + if (timeFiltersBuilder_ == null) { + if (!other.timeFilters_.isEmpty()) { + if (timeFilters_.isEmpty()) { + timeFilters_ = other.timeFilters_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureTimeFiltersIsMutable(); + timeFilters_.addAll(other.timeFilters_); + } + onChanged(); + } + } else { + if (!other.timeFilters_.isEmpty()) { + if (timeFiltersBuilder_.isEmpty()) { + timeFiltersBuilder_.dispose(); + timeFiltersBuilder_ = null; + timeFilters_ = other.timeFilters_; + bitField0_ = (bitField0_ & ~0x00000080); + timeFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimeFiltersFieldBuilder() + : null; + } else { + timeFiltersBuilder_.addAllMessages(other.timeFilters_); + } + } + } + if (other.hasHirableFilter()) { + mergeHirableFilter(other.getHirableFilter()); + } + if (applicationDateFiltersBuilder_ == null) { + if (!other.applicationDateFilters_.isEmpty()) { + if (applicationDateFilters_.isEmpty()) { + applicationDateFilters_ = other.applicationDateFilters_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.addAll(other.applicationDateFilters_); + } + onChanged(); + } + } else { + if (!other.applicationDateFilters_.isEmpty()) { + if (applicationDateFiltersBuilder_.isEmpty()) { + applicationDateFiltersBuilder_.dispose(); + applicationDateFiltersBuilder_ = null; + applicationDateFilters_ = other.applicationDateFilters_; + bitField0_ = (bitField0_ & ~0x00000200); + applicationDateFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationDateFiltersFieldBuilder() + : null; + } else { + applicationDateFiltersBuilder_.addAllMessages(other.applicationDateFilters_); + } + } + } + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (!other.applicationOutcomeReasonFilters_.isEmpty()) { + if (applicationOutcomeReasonFilters_.isEmpty()) { + applicationOutcomeReasonFilters_ = other.applicationOutcomeReasonFilters_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.addAll(other.applicationOutcomeReasonFilters_); + } + onChanged(); + } + } else { + if (!other.applicationOutcomeReasonFilters_.isEmpty()) { + if (applicationOutcomeReasonFiltersBuilder_.isEmpty()) { + applicationOutcomeReasonFiltersBuilder_.dispose(); + applicationOutcomeReasonFiltersBuilder_ = null; + applicationOutcomeReasonFilters_ = other.applicationOutcomeReasonFilters_; + bitField0_ = (bitField0_ & ~0x00000400); + applicationOutcomeReasonFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationOutcomeReasonFiltersFieldBuilder() + : null; + } else { + applicationOutcomeReasonFiltersBuilder_.addAllMessages( + other.applicationOutcomeReasonFilters_); + } + } + } + if (applicationLastStageFiltersBuilder_ == null) { + if (!other.applicationLastStageFilters_.isEmpty()) { + if (applicationLastStageFilters_.isEmpty()) { + applicationLastStageFilters_ = other.applicationLastStageFilters_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.addAll(other.applicationLastStageFilters_); + } + onChanged(); + } + } else { + if (!other.applicationLastStageFilters_.isEmpty()) { + if (applicationLastStageFiltersBuilder_.isEmpty()) { + applicationLastStageFiltersBuilder_.dispose(); + applicationLastStageFiltersBuilder_ = null; + applicationLastStageFilters_ = other.applicationLastStageFilters_; + bitField0_ = (bitField0_ & ~0x00000800); + applicationLastStageFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationLastStageFiltersFieldBuilder() + : null; + } else { + applicationLastStageFiltersBuilder_.addAllMessages(other.applicationLastStageFilters_); + } + } + } + if (applicationJobFiltersBuilder_ == null) { + if (!other.applicationJobFilters_.isEmpty()) { + if (applicationJobFilters_.isEmpty()) { + applicationJobFilters_ = other.applicationJobFilters_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.addAll(other.applicationJobFilters_); + } + onChanged(); + } + } else { + if (!other.applicationJobFilters_.isEmpty()) { + if (applicationJobFiltersBuilder_.isEmpty()) { + applicationJobFiltersBuilder_.dispose(); + applicationJobFiltersBuilder_ = null; + applicationJobFilters_ = other.applicationJobFilters_; + bitField0_ = (bitField0_ & ~0x00001000); + applicationJobFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationJobFiltersFieldBuilder() + : null; + } else { + applicationJobFiltersBuilder_.addAllMessages(other.applicationJobFilters_); + } + } + } + if (applicationStatusFiltersBuilder_ == null) { + if (!other.applicationStatusFilters_.isEmpty()) { + if (applicationStatusFilters_.isEmpty()) { + applicationStatusFilters_ = other.applicationStatusFilters_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.addAll(other.applicationStatusFilters_); + } + onChanged(); + } + } else { + if (!other.applicationStatusFilters_.isEmpty()) { + if (applicationStatusFiltersBuilder_.isEmpty()) { + applicationStatusFiltersBuilder_.dispose(); + applicationStatusFiltersBuilder_ = null; + applicationStatusFilters_ = other.applicationStatusFilters_; + bitField0_ = (bitField0_ & ~0x00002000); + applicationStatusFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationStatusFiltersFieldBuilder() + : null; + } else { + applicationStatusFiltersBuilder_.addAllMessages(other.applicationStatusFilters_); + } + } + } + if (!other.getCustomFieldFilter().isEmpty()) { + customFieldFilter_ = other.customFieldFilter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ProfileQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ProfileQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object query_ = ""; + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private java.util.List locationFilters_ = + java.util.Collections.emptyList(); + + private void ensureLocationFiltersIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = + new java.util.ArrayList( + locationFilters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + locationFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List getLocationFiltersList() { + if (locationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationFilters_); + } else { + return locationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public int getLocationFiltersCount() { + if (locationFiltersBuilder_ == null) { + return locationFilters_.size(); + } else { + return locationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, value); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters(com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters( + com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addAllLocationFilters( + java.lang.Iterable values) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_); + onChanged(); + } else { + locationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder clearLocationFilters() { + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + locationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder removeLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.remove(index); + onChanged(); + } else { + locationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder getLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + if (locationFiltersBuilder_ != null) { + return locationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder() { + return getLocationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List + getLocationFiltersBuilderList() { + return getLocationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + getLocationFiltersFieldBuilder() { + if (locationFiltersBuilder_ == null) { + locationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>( + locationFilters_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + locationFilters_ = null; + } + return locationFiltersBuilder_; + } + + private java.util.List jobTitleFilters_ = + java.util.Collections.emptyList(); + + private void ensureJobTitleFiltersIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = + new java.util.ArrayList( + jobTitleFilters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobTitleFilter, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder> + jobTitleFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List getJobTitleFiltersList() { + if (jobTitleFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobTitleFilters_); + } else { + return jobTitleFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public int getJobTitleFiltersCount() { + if (jobTitleFiltersBuilder_ == null) { + return jobTitleFilters_.size(); + } else { + return jobTitleFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index) { + if (jobTitleFiltersBuilder_ == null) { + return jobTitleFilters_.get(index); + } else { + return jobTitleFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder setJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter value) { + if (jobTitleFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.set(index, value); + onChanged(); + } else { + jobTitleFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder setJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + jobTitleFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters(com.google.cloud.talent.v4beta1.JobTitleFilter value) { + if (jobTitleFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(value); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter value) { + if (jobTitleFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(index, value); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters( + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(builderForValue.build()); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addAllJobTitleFilters( + java.lang.Iterable values) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobTitleFilters_); + onChanged(); + } else { + jobTitleFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder clearJobTitleFilters() { + if (jobTitleFiltersBuilder_ == null) { + jobTitleFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + jobTitleFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder removeJobTitleFilters(int index) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.remove(index); + onChanged(); + } else { + jobTitleFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder getJobTitleFiltersBuilder( + int index) { + return getJobTitleFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder( + int index) { + if (jobTitleFiltersBuilder_ == null) { + return jobTitleFilters_.get(index); + } else { + return jobTitleFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List + getJobTitleFiltersOrBuilderList() { + if (jobTitleFiltersBuilder_ != null) { + return jobTitleFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobTitleFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder addJobTitleFiltersBuilder() { + return getJobTitleFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder addJobTitleFiltersBuilder( + int index) { + return getJobTitleFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List + getJobTitleFiltersBuilderList() { + return getJobTitleFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobTitleFilter, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder> + getJobTitleFiltersFieldBuilder() { + if (jobTitleFiltersBuilder_ == null) { + jobTitleFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobTitleFilter, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder>( + jobTitleFilters_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + jobTitleFilters_ = null; + } + return jobTitleFiltersBuilder_; + } + + private java.util.List employerFilters_ = + java.util.Collections.emptyList(); + + private void ensureEmployerFiltersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = + new java.util.ArrayList( + employerFilters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmployerFilter, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder, + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder> + employerFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List getEmployerFiltersList() { + if (employerFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(employerFilters_); + } else { + return employerFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public int getEmployerFiltersCount() { + if (employerFiltersBuilder_ == null) { + return employerFilters_.size(); + } else { + return employerFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index) { + if (employerFiltersBuilder_ == null) { + return employerFilters_.get(index); + } else { + return employerFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder setEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter value) { + if (employerFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmployerFiltersIsMutable(); + employerFilters_.set(index, value); + onChanged(); + } else { + employerFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder setEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + employerFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters(com.google.cloud.talent.v4beta1.EmployerFilter value) { + if (employerFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmployerFiltersIsMutable(); + employerFilters_.add(value); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter value) { + if (employerFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmployerFiltersIsMutable(); + employerFilters_.add(index, value); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters( + com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.add(builderForValue.build()); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addAllEmployerFilters( + java.lang.Iterable values) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, employerFilters_); + onChanged(); + } else { + employerFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder clearEmployerFilters() { + if (employerFiltersBuilder_ == null) { + employerFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + employerFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder removeEmployerFilters(int index) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.remove(index); + onChanged(); + } else { + employerFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.Builder getEmployerFiltersBuilder( + int index) { + return getEmployerFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder( + int index) { + if (employerFiltersBuilder_ == null) { + return employerFilters_.get(index); + } else { + return employerFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List + getEmployerFiltersOrBuilderList() { + if (employerFiltersBuilder_ != null) { + return employerFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(employerFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.Builder addEmployerFiltersBuilder() { + return getEmployerFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.Builder addEmployerFiltersBuilder( + int index) { + return getEmployerFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List + getEmployerFiltersBuilderList() { + return getEmployerFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmployerFilter, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder, + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder> + getEmployerFiltersFieldBuilder() { + if (employerFiltersBuilder_ == null) { + employerFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmployerFilter, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder, + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder>( + employerFilters_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + employerFilters_ = null; + } + return employerFiltersBuilder_; + } + + private java.util.List educationFilters_ = + java.util.Collections.emptyList(); + + private void ensureEducationFiltersIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = + new java.util.ArrayList( + educationFilters_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationFilter, + com.google.cloud.talent.v4beta1.EducationFilter.Builder, + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder> + educationFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersList() { + if (educationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(educationFilters_); + } else { + return educationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public int getEducationFiltersCount() { + if (educationFiltersBuilder_ == null) { + return educationFilters_.size(); + } else { + return educationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index) { + if (educationFiltersBuilder_ == null) { + return educationFilters_.get(index); + } else { + return educationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder setEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter value) { + if (educationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationFiltersIsMutable(); + educationFilters_.set(index, value); + onChanged(); + } else { + educationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder setEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + educationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters(com.google.cloud.talent.v4beta1.EducationFilter value) { + if (educationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationFiltersIsMutable(); + educationFilters_.add(value); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter value) { + if (educationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationFiltersIsMutable(); + educationFilters_.add(index, value); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters( + com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.add(builderForValue.build()); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addAllEducationFilters( + java.lang.Iterable values) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, educationFilters_); + onChanged(); + } else { + educationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder clearEducationFilters() { + if (educationFiltersBuilder_ == null) { + educationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + educationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder removeEducationFilters(int index) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.remove(index); + onChanged(); + } else { + educationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter.Builder getEducationFiltersBuilder( + int index) { + return getEducationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder( + int index) { + if (educationFiltersBuilder_ == null) { + return educationFilters_.get(index); + } else { + return educationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersOrBuilderList() { + if (educationFiltersBuilder_ != null) { + return educationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(educationFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter.Builder addEducationFiltersBuilder() { + return getEducationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter.Builder addEducationFiltersBuilder( + int index) { + return getEducationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersBuilderList() { + return getEducationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationFilter, + com.google.cloud.talent.v4beta1.EducationFilter.Builder, + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder> + getEducationFiltersFieldBuilder() { + if (educationFiltersBuilder_ == null) { + educationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationFilter, + com.google.cloud.talent.v4beta1.EducationFilter.Builder, + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder>( + educationFilters_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + educationFilters_ = null; + } + return educationFiltersBuilder_; + } + + private java.util.List skillFilters_ = + java.util.Collections.emptyList(); + + private void ensureSkillFiltersIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = + new java.util.ArrayList(skillFilters_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SkillFilter, + com.google.cloud.talent.v4beta1.SkillFilter.Builder, + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder> + skillFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List getSkillFiltersList() { + if (skillFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(skillFilters_); + } else { + return skillFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public int getSkillFiltersCount() { + if (skillFiltersBuilder_ == null) { + return skillFilters_.size(); + } else { + return skillFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index) { + if (skillFiltersBuilder_ == null) { + return skillFilters_.get(index); + } else { + return skillFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder setSkillFilters(int index, com.google.cloud.talent.v4beta1.SkillFilter value) { + if (skillFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillFiltersIsMutable(); + skillFilters_.set(index, value); + onChanged(); + } else { + skillFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder setSkillFilters( + int index, com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + skillFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters(com.google.cloud.talent.v4beta1.SkillFilter value) { + if (skillFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillFiltersIsMutable(); + skillFilters_.add(value); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters(int index, com.google.cloud.talent.v4beta1.SkillFilter value) { + if (skillFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillFiltersIsMutable(); + skillFilters_.add(index, value); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters( + com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.add(builderForValue.build()); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters( + int index, com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addAllSkillFilters( + java.lang.Iterable values) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillFilters_); + onChanged(); + } else { + skillFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder clearSkillFilters() { + if (skillFiltersBuilder_ == null) { + skillFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + skillFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder removeSkillFilters(int index) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.remove(index); + onChanged(); + } else { + skillFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter.Builder getSkillFiltersBuilder(int index) { + return getSkillFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder( + int index) { + if (skillFiltersBuilder_ == null) { + return skillFilters_.get(index); + } else { + return skillFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List + getSkillFiltersOrBuilderList() { + if (skillFiltersBuilder_ != null) { + return skillFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skillFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter.Builder addSkillFiltersBuilder() { + return getSkillFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter.Builder addSkillFiltersBuilder(int index) { + return getSkillFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List + getSkillFiltersBuilderList() { + return getSkillFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SkillFilter, + com.google.cloud.talent.v4beta1.SkillFilter.Builder, + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder> + getSkillFiltersFieldBuilder() { + if (skillFiltersBuilder_ == null) { + skillFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SkillFilter, + com.google.cloud.talent.v4beta1.SkillFilter.Builder, + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder>( + skillFilters_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + skillFilters_ = null; + } + return skillFiltersBuilder_; + } + + private java.util.List + workExperienceFilter_ = java.util.Collections.emptyList(); + + private void ensureWorkExperienceFilterIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = + new java.util.ArrayList( + workExperienceFilter_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.WorkExperienceFilter, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder> + workExperienceFilterBuilder_; + + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterList() { + if (workExperienceFilterBuilder_ == null) { + return java.util.Collections.unmodifiableList(workExperienceFilter_); + } else { + return workExperienceFilterBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public int getWorkExperienceFilterCount() { + if (workExperienceFilterBuilder_ == null) { + return workExperienceFilter_.size(); + } else { + return workExperienceFilterBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index) { + if (workExperienceFilterBuilder_ == null) { + return workExperienceFilter_.get(index); + } else { + return workExperienceFilterBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder setWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { + if (workExperienceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.set(index, value); + onChanged(); + } else { + workExperienceFilterBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder setWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.set(index, builderForValue.build()); + onChanged(); + } else { + workExperienceFilterBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { + if (workExperienceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(value); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { + if (workExperienceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(index, value); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(builderForValue.build()); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(index, builderForValue.build()); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addAllWorkExperienceFilter( + java.lang.Iterable values) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workExperienceFilter_); + onChanged(); + } else { + workExperienceFilterBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder clearWorkExperienceFilter() { + if (workExperienceFilterBuilder_ == null) { + workExperienceFilter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + workExperienceFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder removeWorkExperienceFilter(int index) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.remove(index); + onChanged(); + } else { + workExperienceFilterBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder + getWorkExperienceFilterBuilder(int index) { + return getWorkExperienceFilterFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder + getWorkExperienceFilterOrBuilder(int index) { + if (workExperienceFilterBuilder_ == null) { + return workExperienceFilter_.get(index); + } else { + return workExperienceFilterBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterOrBuilderList() { + if (workExperienceFilterBuilder_ != null) { + return workExperienceFilterBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workExperienceFilter_); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder + addWorkExperienceFilterBuilder() { + return getWorkExperienceFilterFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder + addWorkExperienceFilterBuilder(int index) { + return getWorkExperienceFilterFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterBuilderList() { + return getWorkExperienceFilterFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.WorkExperienceFilter, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder> + getWorkExperienceFilterFieldBuilder() { + if (workExperienceFilterBuilder_ == null) { + workExperienceFilterBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.WorkExperienceFilter, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder>( + workExperienceFilter_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + workExperienceFilter_ = null; + } + return workExperienceFilterBuilder_; + } + + private java.util.List timeFilters_ = + java.util.Collections.emptyList(); + + private void ensureTimeFiltersIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = + new java.util.ArrayList(timeFilters_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimeFilter, + com.google.cloud.talent.v4beta1.TimeFilter.Builder, + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder> + timeFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List getTimeFiltersList() { + if (timeFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(timeFilters_); + } else { + return timeFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public int getTimeFiltersCount() { + if (timeFiltersBuilder_ == null) { + return timeFilters_.size(); + } else { + return timeFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index) { + if (timeFiltersBuilder_ == null) { + return timeFilters_.get(index); + } else { + return timeFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder setTimeFilters(int index, com.google.cloud.talent.v4beta1.TimeFilter value) { + if (timeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeFiltersIsMutable(); + timeFilters_.set(index, value); + onChanged(); + } else { + timeFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder setTimeFilters( + int index, com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + timeFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters(com.google.cloud.talent.v4beta1.TimeFilter value) { + if (timeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeFiltersIsMutable(); + timeFilters_.add(value); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters(int index, com.google.cloud.talent.v4beta1.TimeFilter value) { + if (timeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeFiltersIsMutable(); + timeFilters_.add(index, value); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters( + com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.add(builderForValue.build()); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters( + int index, com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addAllTimeFilters( + java.lang.Iterable values) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeFilters_); + onChanged(); + } else { + timeFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder clearTimeFilters() { + if (timeFiltersBuilder_ == null) { + timeFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + timeFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder removeTimeFilters(int index) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.remove(index); + onChanged(); + } else { + timeFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.Builder getTimeFiltersBuilder(int index) { + return getTimeFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index) { + if (timeFiltersBuilder_ == null) { + return timeFilters_.get(index); + } else { + return timeFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List + getTimeFiltersOrBuilderList() { + if (timeFiltersBuilder_ != null) { + return timeFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(timeFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.Builder addTimeFiltersBuilder() { + return getTimeFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.Builder addTimeFiltersBuilder(int index) { + return getTimeFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List + getTimeFiltersBuilderList() { + return getTimeFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimeFilter, + com.google.cloud.talent.v4beta1.TimeFilter.Builder, + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder> + getTimeFiltersFieldBuilder() { + if (timeFiltersBuilder_ == null) { + timeFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimeFilter, + com.google.cloud.talent.v4beta1.TimeFilter.Builder, + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder>( + timeFilters_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + timeFilters_ = null; + } + return timeFiltersBuilder_; + } + + private com.google.protobuf.BoolValue hirableFilter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + hirableFilterBuilder_; + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public boolean hasHirableFilter() { + return hirableFilterBuilder_ != null || hirableFilter_ != null; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValue getHirableFilter() { + if (hirableFilterBuilder_ == null) { + return hirableFilter_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : hirableFilter_; + } else { + return hirableFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder setHirableFilter(com.google.protobuf.BoolValue value) { + if (hirableFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hirableFilter_ = value; + onChanged(); + } else { + hirableFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder setHirableFilter(com.google.protobuf.BoolValue.Builder builderForValue) { + if (hirableFilterBuilder_ == null) { + hirableFilter_ = builderForValue.build(); + onChanged(); + } else { + hirableFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder mergeHirableFilter(com.google.protobuf.BoolValue value) { + if (hirableFilterBuilder_ == null) { + if (hirableFilter_ != null) { + hirableFilter_ = + com.google.protobuf.BoolValue.newBuilder(hirableFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + hirableFilter_ = value; + } + onChanged(); + } else { + hirableFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder clearHirableFilter() { + if (hirableFilterBuilder_ == null) { + hirableFilter_ = null; + onChanged(); + } else { + hirableFilter_ = null; + hirableFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValue.Builder getHirableFilterBuilder() { + + onChanged(); + return getHirableFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder() { + if (hirableFilterBuilder_ != null) { + return hirableFilterBuilder_.getMessageOrBuilder(); + } else { + return hirableFilter_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : hirableFilter_; + } + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getHirableFilterFieldBuilder() { + if (hirableFilterBuilder_ == null) { + hirableFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getHirableFilter(), getParentForChildren(), isClean()); + hirableFilter_ = null; + } + return hirableFilterBuilder_; + } + + private java.util.List + applicationDateFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationDateFiltersIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = + new java.util.ArrayList( + applicationDateFilters_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationDateFilter, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder> + applicationDateFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersList() { + if (applicationDateFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationDateFilters_); + } else { + return applicationDateFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public int getApplicationDateFiltersCount() { + if (applicationDateFiltersBuilder_ == null) { + return applicationDateFilters_.size(); + } else { + return applicationDateFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters( + int index) { + if (applicationDateFiltersBuilder_ == null) { + return applicationDateFilters_.get(index); + } else { + return applicationDateFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder setApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { + if (applicationDateFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.set(index, value); + onChanged(); + } else { + applicationDateFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder setApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationDateFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { + if (applicationDateFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(value); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { + if (applicationDateFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(index, value); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addAllApplicationDateFilters( + java.lang.Iterable + values) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationDateFilters_); + onChanged(); + } else { + applicationDateFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder clearApplicationDateFilters() { + if (applicationDateFiltersBuilder_ == null) { + applicationDateFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + applicationDateFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder removeApplicationDateFilters(int index) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.remove(index); + onChanged(); + } else { + applicationDateFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder + getApplicationDateFiltersBuilder(int index) { + return getApplicationDateFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder + getApplicationDateFiltersOrBuilder(int index) { + if (applicationDateFiltersBuilder_ == null) { + return applicationDateFilters_.get(index); + } else { + return applicationDateFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersOrBuilderList() { + if (applicationDateFiltersBuilder_ != null) { + return applicationDateFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationDateFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder + addApplicationDateFiltersBuilder() { + return getApplicationDateFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder + addApplicationDateFiltersBuilder(int index) { + return getApplicationDateFiltersFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersBuilderList() { + return getApplicationDateFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationDateFilter, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder> + getApplicationDateFiltersFieldBuilder() { + if (applicationDateFiltersBuilder_ == null) { + applicationDateFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationDateFilter, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder>( + applicationDateFilters_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + applicationDateFilters_ = null; + } + return applicationDateFiltersBuilder_; + } + + private java.util.List + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationOutcomeReasonFiltersIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + new java.util.ArrayList( + applicationOutcomeReasonFilters_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + applicationOutcomeReasonFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List + getApplicationOutcomeReasonFiltersList() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + } else { + return applicationOutcomeReasonFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public int getApplicationOutcomeReasonFiltersCount() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return applicationOutcomeReasonFilters_.size(); + } else { + return applicationOutcomeReasonFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getApplicationOutcomeReasonFilters(int index) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return applicationOutcomeReasonFilters_.get(index); + } else { + return applicationOutcomeReasonFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder setApplicationOutcomeReasonFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.set(index, value); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder setApplicationOutcomeReasonFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(value); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(index, value); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addAllApplicationOutcomeReasonFilters( + java.lang.Iterable + values) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicationOutcomeReasonFilters_); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder clearApplicationOutcomeReasonFilters() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder removeApplicationOutcomeReasonFilters(int index) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.remove(index); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder + getApplicationOutcomeReasonFiltersBuilder(int index) { + return getApplicationOutcomeReasonFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder + getApplicationOutcomeReasonFiltersOrBuilder(int index) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return applicationOutcomeReasonFilters_.get(index); + } else { + return applicationOutcomeReasonFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + getApplicationOutcomeReasonFiltersOrBuilderList() { + if (applicationOutcomeReasonFiltersBuilder_ != null) { + return applicationOutcomeReasonFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder + addApplicationOutcomeReasonFiltersBuilder() { + return getApplicationOutcomeReasonFiltersFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder + addApplicationOutcomeReasonFiltersBuilder(int index) { + return getApplicationOutcomeReasonFiltersFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List + getApplicationOutcomeReasonFiltersBuilderList() { + return getApplicationOutcomeReasonFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + getApplicationOutcomeReasonFiltersFieldBuilder() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + applicationOutcomeReasonFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder>( + applicationOutcomeReasonFilters_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + applicationOutcomeReasonFilters_ = null; + } + return applicationOutcomeReasonFiltersBuilder_; + } + + private java.util.List + applicationLastStageFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationLastStageFiltersIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + new java.util.ArrayList( + applicationLastStageFilters_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + applicationLastStageFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List + getApplicationLastStageFiltersList() { + if (applicationLastStageFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationLastStageFilters_); + } else { + return applicationLastStageFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public int getApplicationLastStageFiltersCount() { + if (applicationLastStageFiltersBuilder_ == null) { + return applicationLastStageFilters_.size(); + } else { + return applicationLastStageFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter + getApplicationLastStageFilters(int index) { + if (applicationLastStageFiltersBuilder_ == null) { + return applicationLastStageFilters_.get(index); + } else { + return applicationLastStageFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder setApplicationLastStageFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationLastStageFilter value) { + if (applicationLastStageFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.set(index, value); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder setApplicationLastStageFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder builderForValue) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter value) { + if (applicationLastStageFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(value); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationLastStageFilter value) { + if (applicationLastStageFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(index, value); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder builderForValue) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder builderForValue) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addAllApplicationLastStageFilters( + java.lang.Iterable + values) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicationLastStageFilters_); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder clearApplicationLastStageFilters() { + if (applicationLastStageFiltersBuilder_ == null) { + applicationLastStageFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder removeApplicationLastStageFilters(int index) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.remove(index); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder + getApplicationLastStageFiltersBuilder(int index) { + return getApplicationLastStageFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder + getApplicationLastStageFiltersOrBuilder(int index) { + if (applicationLastStageFiltersBuilder_ == null) { + return applicationLastStageFilters_.get(index); + } else { + return applicationLastStageFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + getApplicationLastStageFiltersOrBuilderList() { + if (applicationLastStageFiltersBuilder_ != null) { + return applicationLastStageFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationLastStageFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder + addApplicationLastStageFiltersBuilder() { + return getApplicationLastStageFiltersFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder + addApplicationLastStageFiltersBuilder(int index) { + return getApplicationLastStageFiltersFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List + getApplicationLastStageFiltersBuilderList() { + return getApplicationLastStageFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + getApplicationLastStageFiltersFieldBuilder() { + if (applicationLastStageFiltersBuilder_ == null) { + applicationLastStageFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder>( + applicationLastStageFilters_, + ((bitField0_ & 0x00000800) == 0x00000800), + getParentForChildren(), + isClean()); + applicationLastStageFilters_ = null; + } + return applicationLastStageFiltersBuilder_; + } + + private java.util.List + applicationJobFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationJobFiltersIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = + new java.util.ArrayList( + applicationJobFilters_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationJobFilter, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder> + applicationJobFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersList() { + if (applicationJobFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationJobFilters_); + } else { + return applicationJobFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public int getApplicationJobFiltersCount() { + if (applicationJobFiltersBuilder_ == null) { + return applicationJobFilters_.size(); + } else { + return applicationJobFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters( + int index) { + if (applicationJobFiltersBuilder_ == null) { + return applicationJobFilters_.get(index); + } else { + return applicationJobFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder setApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { + if (applicationJobFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.set(index, value); + onChanged(); + } else { + applicationJobFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder setApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationJobFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { + if (applicationJobFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(value); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { + if (applicationJobFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(index, value); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addAllApplicationJobFilters( + java.lang.Iterable values) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationJobFilters_); + onChanged(); + } else { + applicationJobFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder clearApplicationJobFilters() { + if (applicationJobFiltersBuilder_ == null) { + applicationJobFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + applicationJobFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder removeApplicationJobFilters(int index) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.remove(index); + onChanged(); + } else { + applicationJobFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder + getApplicationJobFiltersBuilder(int index) { + return getApplicationJobFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder + getApplicationJobFiltersOrBuilder(int index) { + if (applicationJobFiltersBuilder_ == null) { + return applicationJobFilters_.get(index); + } else { + return applicationJobFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersOrBuilderList() { + if (applicationJobFiltersBuilder_ != null) { + return applicationJobFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationJobFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder + addApplicationJobFiltersBuilder() { + return getApplicationJobFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder + addApplicationJobFiltersBuilder(int index) { + return getApplicationJobFiltersFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersBuilderList() { + return getApplicationJobFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationJobFilter, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder> + getApplicationJobFiltersFieldBuilder() { + if (applicationJobFiltersBuilder_ == null) { + applicationJobFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationJobFilter, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder>( + applicationJobFilters_, + ((bitField0_ & 0x00001000) == 0x00001000), + getParentForChildren(), + isClean()); + applicationJobFilters_ = null; + } + return applicationJobFiltersBuilder_; + } + + private java.util.List + applicationStatusFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationStatusFiltersIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + new java.util.ArrayList( + applicationStatusFilters_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder> + applicationStatusFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersList() { + if (applicationStatusFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationStatusFilters_); + } else { + return applicationStatusFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public int getApplicationStatusFiltersCount() { + if (applicationStatusFiltersBuilder_ == null) { + return applicationStatusFilters_.size(); + } else { + return applicationStatusFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getApplicationStatusFilters( + int index) { + if (applicationStatusFiltersBuilder_ == null) { + return applicationStatusFilters_.get(index); + } else { + return applicationStatusFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder setApplicationStatusFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationStatusFilter value) { + if (applicationStatusFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.set(index, value); + onChanged(); + } else { + applicationStatusFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder setApplicationStatusFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder builderForValue) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationStatusFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter value) { + if (applicationStatusFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(value); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationStatusFilter value) { + if (applicationStatusFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(index, value); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder builderForValue) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder builderForValue) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addAllApplicationStatusFilters( + java.lang.Iterable + values) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationStatusFilters_); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder clearApplicationStatusFilters() { + if (applicationStatusFiltersBuilder_ == null) { + applicationStatusFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + applicationStatusFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder removeApplicationStatusFilters(int index) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.remove(index); + onChanged(); + } else { + applicationStatusFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder + getApplicationStatusFiltersBuilder(int index) { + return getApplicationStatusFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder + getApplicationStatusFiltersOrBuilder(int index) { + if (applicationStatusFiltersBuilder_ == null) { + return applicationStatusFilters_.get(index); + } else { + return applicationStatusFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder> + getApplicationStatusFiltersOrBuilderList() { + if (applicationStatusFiltersBuilder_ != null) { + return applicationStatusFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationStatusFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder + addApplicationStatusFiltersBuilder() { + return getApplicationStatusFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder + addApplicationStatusFiltersBuilder(int index) { + return getApplicationStatusFiltersFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersBuilderList() { + return getApplicationStatusFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder> + getApplicationStatusFiltersFieldBuilder() { + if (applicationStatusFiltersBuilder_ == null) { + applicationStatusFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder>( + applicationStatusFilters_, + ((bitField0_ & 0x00002000) == 0x00002000), + getParentForChildren(), + isClean()); + applicationStatusFilters_ = null; + } + return applicationStatusFiltersBuilder_; + } + + private java.lang.Object customFieldFilter_ = ""; + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public java.lang.String getCustomFieldFilter() { + java.lang.Object ref = customFieldFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customFieldFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public com.google.protobuf.ByteString getCustomFieldFilterBytes() { + java.lang.Object ref = customFieldFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customFieldFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public Builder setCustomFieldFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customFieldFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public Builder clearCustomFieldFilter() { + + customFieldFilter_ = getDefaultInstance().getCustomFieldFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public Builder setCustomFieldFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customFieldFilter_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ProfileQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ProfileQuery) + private static final com.google.cloud.talent.v4beta1.ProfileQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ProfileQuery(); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProfileQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProfileQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java new file mode 100644 index 000000000000..caff2452efe9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java @@ -0,0 +1,1110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ProfileQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ProfileQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + java.util.List getLocationFiltersList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + int getLocationFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + java.util.List + getLocationFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + java.util.List getJobTitleFiltersList(); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + int getJobTitleFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + java.util.List + getJobTitleFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + java.util.List getEmployerFiltersList(); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + int getEmployerFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + java.util.List + getEmployerFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + java.util.List getEducationFiltersList(); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + int getEducationFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + java.util.List + getEducationFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + java.util.List getSkillFiltersList(); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + int getSkillFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + java.util.List + getSkillFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + java.util.List + getWorkExperienceFilterList(); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + int getWorkExperienceFilterCount(); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + java.util.List + getWorkExperienceFilterOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder getWorkExperienceFilterOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + java.util.List getTimeFiltersList(); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + int getTimeFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + java.util.List + getTimeFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + boolean hasHirableFilter(); + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + com.google.protobuf.BoolValue getHirableFilter(); + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + java.util.List + getApplicationDateFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters(int index); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + int getApplicationDateFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + java.util.List + getApplicationDateFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder getApplicationDateFiltersOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + java.util.List + getApplicationOutcomeReasonFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter getApplicationOutcomeReasonFilters( + int index); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + int getApplicationOutcomeReasonFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + java.util.List + getApplicationOutcomeReasonFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder + getApplicationOutcomeReasonFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + java.util.List + getApplicationLastStageFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getApplicationLastStageFilters( + int index); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + int getApplicationLastStageFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + java.util.List + getApplicationLastStageFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder + getApplicationLastStageFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + java.util.List + getApplicationJobFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters(int index); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + int getApplicationJobFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + java.util.List + getApplicationJobFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder getApplicationJobFiltersOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + java.util.List + getApplicationStatusFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + com.google.cloud.talent.v4beta1.ApplicationStatusFilter getApplicationStatusFilters(int index); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + int getApplicationStatusFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + java.util.List + getApplicationStatusFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder + getApplicationStatusFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + java.lang.String getCustomFieldFilter(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + com.google.protobuf.ByteString getCustomFieldFilterBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java new file mode 100644 index 000000000000..32ef535b4be8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java @@ -0,0 +1,528 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public final class ProfileResourceProto { + private ProfileResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Address_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Email_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/talent/v4beta1/profile.pr" + + "oto\022\033google.cloud.talent.v4beta1\032\034google" + + "/api/annotations.proto\032(google/cloud/tal" + + "ent/v4beta1/common.proto\032%google/cloud/t" + + "alent/v4beta1/job.proto\032\037google/protobuf" + + "/timestamp.proto\032\036google/protobuf/wrappe" + + "rs.proto\032\026google/type/date.proto\032 google" + + "/type/postal_address.proto\"\276\013\n\007Profile\022\014" + + "\n\004name\030\001 \001(\t\022\023\n\013external_id\030\002 \001(\t\022\016\n\006sou" + + "rce\030\003 \001(\t\022\013\n\003uri\030\004 \001(\t\022\020\n\010group_id\030\005 \001(\t" + + "\022.\n\nis_hirable\030\006 \001(\0132\032.google.protobuf.B" + + "oolValue\022/\n\013create_time\030\007 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013update_time\030\010 \001(\0132\032" + + ".google.protobuf.Timestamp\022\024\n\014resume_hrx" + + "ml\030\n \001(\t\022=\n\014person_names\030\013 \003(\0132\'.google." + + "cloud.talent.v4beta1.PersonName\0227\n\taddre" + + "sses\030\014 \003(\0132$.google.cloud.talent.v4beta1" + + ".Address\022;\n\017email_addresses\030\r \003(\0132\".goog" + + "le.cloud.talent.v4beta1.Email\0229\n\rphone_n" + + "umbers\030\016 \003(\0132\".google.cloud.talent.v4bet" + + "a1.Phone\022?\n\rpersonal_uris\030\017 \003(\0132(.google" + + ".cloud.talent.v4beta1.PersonalUri\022S\n\027add" + + "itional_contact_info\030\020 \003(\01322.google.clou" + + "d.talent.v4beta1.AdditionalContactInfo\022I" + + "\n\022employment_records\030\021 \003(\0132-.google.clou" + + "d.talent.v4beta1.EmploymentRecord\022G\n\021edu" + + "cation_records\030\022 \003(\0132,.google.cloud.tale" + + "nt.v4beta1.EducationRecord\0222\n\006skills\030\023 \003" + + "(\0132\".google.cloud.talent.v4beta1.Skill\0229" + + "\n\nactivities\030\024 \003(\0132%.google.cloud.talent" + + ".v4beta1.Activity\022>\n\014publications\030\025 \003(\0132" + + "(.google.cloud.talent.v4beta1.Publicatio" + + "n\0224\n\007patents\030\026 \003(\0132#.google.cloud.talent" + + ".v4beta1.Patent\022B\n\016certifications\030\027 \003(\0132" + + "*.google.cloud.talent.v4beta1.Certificat" + + "ion\022E\n\020job_applications\030\030 \003(\0132+.google.c" + + "loud.talent.v4beta1.JobApplication\022E\n\020re" + + "cruiting_notes\030\031 \003(\0132+.google.cloud.tale" + + "nt.v4beta1.RecruitingNote\022U\n\021custom_attr" + + "ibutes\030\032 \003(\0132:.google.cloud.talent.v4bet" + + "a1.Profile.CustomAttributesEntry\022\021\n\tproc" + + "essed\030\033 \001(\010\022\027\n\017keyword_snippet\030\034 \001(\t\032e\n\025" + + "CustomAttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005va" + + "lue\030\002 \001(\0132,.google.cloud.talent.v4beta1." + + "CustomAttribute:\0028\001\"\243\002\n\nPersonName\022\030\n\016fo" + + "rmatted_name\030\001 \001(\tH\000\022W\n\017structured_name\030" + + "\002 \001(\0132<.google.cloud.talent.v4beta1.Pers" + + "onName.PersonStructuredNameH\000\022\026\n\016preferr" + + "ed_name\030\003 \001(\t\032{\n\024PersonStructuredName\022\022\n" + + "\ngiven_name\030\001 \001(\t\022\026\n\016middle_initial\030\002 \001(" + + "\t\022\023\n\013family_name\030\003 \001(\t\022\020\n\010suffixes\030\004 \003(\t" + + "\022\020\n\010prefixes\030\005 \003(\tB\r\n\013person_name\"\334\001\n\007Ad" + + "dress\022<\n\005usage\030\001 \001(\0162-.google.cloud.tale" + + "nt.v4beta1.ContactInfoUsage\022\036\n\024unstructu" + + "red_address\030\002 \001(\tH\000\0228\n\022structured_addres" + + "s\030\003 \001(\0132\032.google.type.PostalAddressH\000\022.\n" + + "\nis_current\030\004 \001(\0132\032.google.protobuf.Bool" + + "ValueB\t\n\007address\"\\\n\005Email\022<\n\005usage\030\001 \001(\016" + + "2-.google.cloud.talent.v4beta1.ContactIn" + + "foUsage\022\025\n\remail_address\030\002 \001(\t\"\317\002\n\005Phone" + + "\022<\n\005usage\030\001 \001(\0162-.google.cloud.talent.v4" + + "beta1.ContactInfoUsage\022:\n\004type\030\002 \001(\0162,.g" + + "oogle.cloud.talent.v4beta1.Phone.PhoneTy" + + "pe\022\016\n\006number\030\003 \001(\t\022\026\n\016when_available\030\004 \001" + + "(\t\"\243\001\n\tPhoneType\022\032\n\026PHONE_TYPE_UNSPECIFI" + + "ED\020\000\022\014\n\010LANDLINE\020\001\022\n\n\006MOBILE\020\002\022\007\n\003FAX\020\003\022" + + "\t\n\005PAGER\020\004\022\016\n\nTTY_OR_TDD\020\005\022\r\n\tVOICEMAIL\020" + + "\006\022\013\n\007VIRTUAL\020\007\022\010\n\004VOIP\020\010\022\026\n\022MOBILE_OR_LA" + + "NDLINE\020\t\"\032\n\013PersonalUri\022\013\n\003uri\030\001 \001(\t\"w\n\025" + + "AdditionalContactInfo\022<\n\005usage\030\001 \001(\0162-.g" + + "oogle.cloud.talent.v4beta1.ContactInfoUs" + + "age\022\014\n\004name\030\002 \001(\t\022\022\n\ncontact_id\030\003 \001(\t\"\354\003" + + "\n\020EmploymentRecord\022%\n\nstart_date\030\001 \001(\0132\021" + + ".google.type.Date\022#\n\010end_date\030\002 \001(\0132\021.go" + + "ogle.type.Date\022\025\n\remployer_name\030\003 \001(\t\022\025\n" + + "\rdivision_name\030\004 \001(\t\0225\n\007address\030\005 \001(\0132$." + + "google.cloud.talent.v4beta1.Address\022\021\n\tj" + + "ob_title\030\006 \001(\t\022\027\n\017job_description\030\007 \001(\t\022" + + ":\n\026is_supervised_position\030\010 \001(\0132\032.google" + + ".protobuf.BoolValue\0224\n\020is_self_employed\030" + + "\t \001(\0132\032.google.protobuf.BoolValue\022.\n\nis_" + + "current\030\n \001(\0132\032.google.protobuf.BoolValu" + + "e\022\031\n\021job_title_snippet\030\013 \001(\t\022\037\n\027job_desc" + + "ription_snippet\030\014 \001(\t\022\035\n\025employer_name_s" + + "nippet\030\r \001(\t\"\302\003\n\017EducationRecord\022%\n\nstar" + + "t_date\030\001 \001(\0132\021.google.type.Date\022#\n\010end_d" + + "ate\030\002 \001(\0132\021.google.type.Date\0223\n\030expected" + + "_graduation_date\030\003 \001(\0132\021.google.type.Dat" + + "e\022\023\n\013school_name\030\004 \001(\t\0225\n\007address\030\005 \001(\0132" + + "$.google.cloud.talent.v4beta1.Address\022\034\n" + + "\022degree_description\030\006 \001(\tH\000\022@\n\021structure" + + "d_degree\030\007 \001(\0132#.google.cloud.talent.v4b" + + "eta1.DegreeH\000\022\023\n\013description\030\010 \001(\t\022.\n\nis" + + "_current\030\t \001(\0132\032.google.protobuf.BoolVal" + + "ue\022\033\n\023school_name_snippet\030\n \001(\t\022\026\n\016degre" + + "e_snippet\030\013 \001(\tB\010\n\006degree\"t\n\006Degree\022<\n\013d" + + "egree_type\030\001 \001(\0162\'.google.cloud.talent.v" + + "4beta1.DegreeType\022\023\n\013degree_name\030\002 \001(\t\022\027" + + "\n\017fields_of_study\030\003 \003(\t\"\324\002\n\005Skill\022\024\n\014dis" + + "play_name\030\001 \001(\t\022)\n\016last_used_date\030\002 \001(\0132" + + "\021.google.type.Date\022G\n\005level\030\003 \001(\01628.goog" + + "le.cloud.talent.v4beta1.Skill.SkillProfi" + + "ciencyLevel\022\017\n\007context\030\004 \001(\t\022\032\n\022skill_na" + + "me_snippet\030\005 \001(\t\"\223\001\n\025SkillProficiencyLev" + + "el\022\'\n#SKILL_PROFICIENCY_LEVEL_UNSPECIFIE" + + "D\020\000\022\031\n\025FUNDAMENTAL_AWARENESS\020\001\022\n\n\006NOVICE" + + "\020\002\022\020\n\014INTERMEDIATE\020\003\022\014\n\010ADVANCED\020\004\022\n\n\006EX" + + "PERT\020\005\"\303\002\n\010Activity\022\024\n\014display_name\030\001 \001(" + + "\t\022\023\n\013description\030\002 \001(\t\022\013\n\003uri\030\003 \001(\t\022&\n\013c" + + "reate_date\030\004 \001(\0132\021.google.type.Date\022&\n\013u" + + "pdate_date\030\005 \001(\0132\021.google.type.Date\022\024\n\014t" + + "eam_members\030\006 \003(\t\0227\n\013skills_used\030\007 \003(\0132\"" + + ".google.cloud.talent.v4beta1.Skill\022\035\n\025ac" + + "tivity_name_snippet\030\010 \001(\t\022$\n\034activity_de" + + "scription_snippet\030\t \001(\t\022\033\n\023skills_used_s" + + "nippet\030\n \003(\t\"\313\001\n\013Publication\022\017\n\007authors\030" + + "\001 \003(\t\022\r\n\005title\030\002 \001(\t\022\023\n\013description\030\003 \001(" + + "\t\022\017\n\007journal\030\004 \001(\t\022\016\n\006volume\030\005 \001(\t\022\021\n\tpu" + + "blisher\030\006 \001(\t\022+\n\020publication_date\030\007 \001(\0132" + + "\021.google.type.Date\022\030\n\020publication_type\030\010" + + " \001(\t\022\014\n\004isbn\030\t \001(\t\"\251\002\n\006Patent\022\024\n\014display" + + "_name\030\001 \001(\t\022\021\n\tinventors\030\002 \003(\t\022\025\n\rpatent" + + "_status\030\003 \001(\t\022-\n\022patent_status_date\030\004 \001(" + + "\0132\021.google.type.Date\022-\n\022patent_filing_da" + + "te\030\005 \001(\0132\021.google.type.Date\022\025\n\rpatent_of" + + "fice\030\006 \001(\t\022\025\n\rpatent_number\030\007 \001(\t\022\032\n\022pat" + + "ent_description\030\010 \001(\t\0227\n\013skills_used\030\t \003" + + "(\0132\".google.cloud.talent.v4beta1.Skill\"\373" + + "\005\n\016JobApplication\022-\n\003job\030\001 \001(\0132 .google." + + "cloud.talent.v4beta1.Job\022\026\n\016application_" + + "id\030\002 \001(\t\022+\n\020application_date\030\003 \001(\0132\021.goo" + + "gle.type.Date\022\022\n\nlast_stage\030\004 \001(\t\022L\n\005sta" + + "te\030\005 \001(\0162=.google.cloud.talent.v4beta1.J" + + "obApplication.ApplicationStatus\022\037\n\027avera" + + "ge_interview_score\030\006 \001(\001\022 \n\030interview_sc" + + "ore_scale_id\030\007 \001(\t\022\034\n\024number_of_intervie" + + "ws\030\010 \001(\005\0228\n\024is_employee_referred\030\t \001(\0132\032" + + ".google.protobuf.BoolValue\022/\n\013update_tim" + + "e\030\n \001(\0132\032.google.protobuf.Timestamp\022\026\n\016o" + + "utcome_reason\030\013 \001(\t\022\034\n\024outcome_positiven" + + "ess\030\014 \001(\001\022,\n\010is_match\030\r \001(\0132\032.google.pro" + + "tobuf.BoolValue\022\031\n\021job_title_snippet\030\016 \001" + + "(\t\"\307\001\n\021ApplicationStatus\022\"\n\036APPLICATION_" + + "STATUS_UNSPECIFIED\020\000\022\022\n\016OFFER_EXTENDED\020\001" + + "\022\031\n\025REJECTED_BY_CANDIDATE\020\002\022\n\n\006ACTIVE\020\003\022" + + "\030\n\024REJECTED_BY_EMPLOYER\020\004\022\026\n\022HIRED_PENDI" + + "NG_DATE\020\005\022\021\n\rHIRED_STARTED\020\006\022\016\n\nPROSPECT" + + "ED\020\007\"\236\001\n\rCertification\022\024\n\014display_name\030\001" + + " \001(\t\022\'\n\014acquire_date\030\002 \001(\0132\021.google.type" + + ".Date\022&\n\013expire_date\030\003 \001(\0132\021.google.type" + + ".Date\022\021\n\tauthority\030\004 \001(\t\022\023\n\013description\030" + + "\005 \001(\t\"g\n\016RecruitingNote\022\014\n\004note\030\001 \001(\t\022\021\n" + + "\tcommenter\030\002 \001(\t\022&\n\013create_date\030\003 \001(\0132\021." + + "google.type.Date\022\014\n\004type\030\004 \001(\tB\202\001\n\037com.g" + + "oogle.cloud.talent.v4beta1B\024ProfileResou" + + "rceProtoP\001ZAgoogle.golang.org/genproto/g" + + "oogleapis/cloud/talent/v4beta1;talent\242\002\003" + + "CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.type.PostalAddressProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Profile_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Profile_descriptor, + new java.lang.String[] { + "Name", + "ExternalId", + "Source", + "Uri", + "GroupId", + "IsHirable", + "CreateTime", + "UpdateTime", + "ResumeHrxml", + "PersonNames", + "Addresses", + "EmailAddresses", + "PhoneNumbers", + "PersonalUris", + "AdditionalContactInfo", + "EmploymentRecords", + "EducationRecords", + "Skills", + "Activities", + "Publications", + "Patents", + "Certifications", + "JobApplications", + "RecruitingNotes", + "CustomAttributes", + "Processed", + "KeywordSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_Profile_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor, + new java.lang.String[] { + "FormattedName", "StructuredName", "PreferredName", "PersonName", + }); + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor = + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor, + new java.lang.String[] { + "GivenName", "MiddleInitial", "FamilyName", "Suffixes", "Prefixes", + }); + internal_static_google_cloud_talent_v4beta1_Address_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Address_descriptor, + new java.lang.String[] { + "Usage", "UnstructuredAddress", "StructuredAddress", "IsCurrent", "Address", + }); + internal_static_google_cloud_talent_v4beta1_Email_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Email_descriptor, + new java.lang.String[] { + "Usage", "EmailAddress", + }); + internal_static_google_cloud_talent_v4beta1_Phone_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Phone_descriptor, + new java.lang.String[] { + "Usage", "Type", "Number", "WhenAvailable", + }); + internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor, + new java.lang.String[] { + "Usage", "Name", "ContactId", + }); + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor, + new java.lang.String[] { + "StartDate", + "EndDate", + "EmployerName", + "DivisionName", + "Address", + "JobTitle", + "JobDescription", + "IsSupervisedPosition", + "IsSelfEmployed", + "IsCurrent", + "JobTitleSnippet", + "JobDescriptionSnippet", + "EmployerNameSnippet", + }); + internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor, + new java.lang.String[] { + "StartDate", + "EndDate", + "ExpectedGraduationDate", + "SchoolName", + "Address", + "DegreeDescription", + "StructuredDegree", + "Description", + "IsCurrent", + "SchoolNameSnippet", + "DegreeSnippet", + "Degree", + }); + internal_static_google_cloud_talent_v4beta1_Degree_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Degree_descriptor, + new java.lang.String[] { + "DegreeType", "DegreeName", "FieldsOfStudy", + }); + internal_static_google_cloud_talent_v4beta1_Skill_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Skill_descriptor, + new java.lang.String[] { + "DisplayName", "LastUsedDate", "Level", "Context", "SkillNameSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Activity_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Activity_descriptor, + new java.lang.String[] { + "DisplayName", + "Description", + "Uri", + "CreateDate", + "UpdateDate", + "TeamMembers", + "SkillsUsed", + "ActivityNameSnippet", + "ActivityDescriptionSnippet", + "SkillsUsedSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Publication_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Publication_descriptor, + new java.lang.String[] { + "Authors", + "Title", + "Description", + "Journal", + "Volume", + "Publisher", + "PublicationDate", + "PublicationType", + "Isbn", + }); + internal_static_google_cloud_talent_v4beta1_Patent_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Patent_descriptor, + new java.lang.String[] { + "DisplayName", + "Inventors", + "PatentStatus", + "PatentStatusDate", + "PatentFilingDate", + "PatentOffice", + "PatentNumber", + "PatentDescription", + "SkillsUsed", + }); + internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor, + new java.lang.String[] { + "Job", + "ApplicationId", + "ApplicationDate", + "LastStage", + "State", + "AverageInterviewScore", + "InterviewScoreScaleId", + "NumberOfInterviews", + "IsEmployeeReferred", + "UpdateTime", + "OutcomeReason", + "OutcomePositiveness", + "IsMatch", + "JobTitleSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Certification_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Certification_descriptor, + new java.lang.String[] { + "DisplayName", "AcquireDate", "ExpireDate", "Authority", "Description", + }); + internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor, + new java.lang.String[] { + "Note", "Commenter", "CreateDate", "Type", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.type.PostalAddressProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java new file mode 100644 index 000000000000..81756400465c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java @@ -0,0 +1,256 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class ProfileServiceProto { + private ProfileServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/talent/v4beta1/profile_se" + + "rvice.proto\022\033google.cloud.talent.v4beta1" + + "\032\034google/api/annotations.proto\032(google/c" + + "loud/talent/v4beta1/common.proto\032)google" + + "/cloud/talent/v4beta1/filters.proto\032+goo" + + "gle/cloud/talent/v4beta1/histogram.proto" + + "\032)google/cloud/talent/v4beta1/profile.pr" + + "oto\032\033google/protobuf/empty.proto\032 google" + + "/protobuf/field_mask.proto\"|\n\023ListProfil" + + "esRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030" + + "\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022.\n\nfield_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMask\"g\n\024List" + + "ProfilesResponse\0226\n\010profiles\030\001 \003(\0132$.goo" + + "gle.cloud.talent.v4beta1.Profile\022\027\n\017next" + + "_page_token\030\002 \001(\t\"]\n\024CreateProfileReques" + + "t\022\016\n\006parent\030\001 \001(\t\0225\n\007profile\030\002 \001(\0132$.goo" + + "gle.cloud.talent.v4beta1.Profile\"!\n\021GetP" + + "rofileRequest\022\014\n\004name\030\001 \001(\t\"~\n\024UpdatePro" + + "fileRequest\0225\n\007profile\030\001 \001(\0132$.google.cl" + + "oud.talent.v4beta1.Profile\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"$\n\024D" + + "eleteProfileRequest\022\014\n\004name\030\001 \001(\t\"\374\002\n\025Se" + + "archProfilesRequest\022\016\n\006parent\030\001 \001(\t\022F\n\020r" + + "equest_metadata\030\002 \001(\0132,.google.cloud.tal" + + "ent.v4beta1.RequestMetadata\022@\n\rprofile_q" + + "uery\030\003 \001(\0132).google.cloud.talent.v4beta1" + + ".ProfileQuery\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage" + + "_token\030\005 \001(\t\022\016\n\006offset\030\006 \001(\005\022\033\n\023disable_" + + "spell_check\030\007 \001(\010\022\020\n\010order_by\030\010 \001(\t\022\033\n\023c" + + "ase_sensitive_sort\030\t \001(\010\022F\n\021histogram_qu" + + "eries\030\n \003(\0132+.google.cloud.talent.v4beta" + + "1.HistogramQuery\"\374\002\n\026SearchProfilesRespo" + + "nse\022\034\n\024estimated_total_size\030\001 \001(\003\022I\n\020spe" + + "ll_correction\030\002 \001(\0132/.google.cloud.talen" + + "t.v4beta1.SpellingCorrection\022?\n\010metadata" + + "\030\003 \001(\0132-.google.cloud.talent.v4beta1.Res" + + "ponseMetadata\022\027\n\017next_page_token\030\004 \001(\t\022R" + + "\n\027histogram_query_results\030\005 \003(\01321.google" + + ".cloud.talent.v4beta1.HistogramQueryResu" + + "lt\022K\n\023summarized_profiles\030\006 \003(\0132..google" + + ".cloud.talent.v4beta1.SummarizedProfile\"" + + "\202\001\n\021SummarizedProfile\0226\n\010profiles\030\001 \003(\0132" + + "$.google.cloud.talent.v4beta1.Profile\0225\n" + + "\007summary\030\002 \001(\0132$.google.cloud.talent.v4b" + + "eta1.Profile2\377\007\n\016ProfileService\022\254\001\n\014List" + + "Profiles\0220.google.cloud.talent.v4beta1.L" + + "istProfilesRequest\0321.google.cloud.talent" + + ".v4beta1.ListProfilesResponse\"7\202\323\344\223\0021\022//" + + "v4beta1/{parent=projects/*/tenants/*}/pr" + + "ofiles\022\244\001\n\rCreateProfile\0221.google.cloud." + + "talent.v4beta1.CreateProfileRequest\032$.go" + + "ogle.cloud.talent.v4beta1.Profile\":\202\323\344\223\002" + + "4\"//v4beta1/{parent=projects/*/tenants/*" + + "}/profiles:\001*\022\233\001\n\nGetProfile\022..google.cl" + + "oud.talent.v4beta1.GetProfileRequest\032$.g" + + "oogle.cloud.talent.v4beta1.Profile\"7\202\323\344\223" + + "\0021\022//v4beta1/{name=projects/*/tenants/*/" + + "profiles/*}\022\254\001\n\rUpdateProfile\0221.google.c" + + "loud.talent.v4beta1.UpdateProfileRequest" + + "\032$.google.cloud.talent.v4beta1.Profile\"B" + + "\202\323\344\223\002<27/v4beta1/{profile.name=projects/" + + "*/tenants/*/profiles/*}:\001*\022\223\001\n\rDeletePro" + + "file\0221.google.cloud.talent.v4beta1.Delet" + + "eProfileRequest\032\026.google.protobuf.Empty\"" + + "7\202\323\344\223\0021*//v4beta1/{name=projects/*/tenan" + + "ts/*/profiles/*}\022\263\001\n\016SearchProfiles\0222.go" + + "ogle.cloud.talent.v4beta1.SearchProfiles" + + "Request\0323.google.cloud.talent.v4beta1.Se" + + "archProfilesResponse\"8\202\323\344\223\0022\"-/v4beta1/{" + + "parent=projects/*/tenants/*}:search:\001*B\201" + + "\001\n\037com.google.cloud.talent.v4beta1B\023Prof" + + "ileServiceProtoP\001ZAgoogle.golang.org/gen" + + "proto/googleapis/cloud/talent/v4beta1;ta" + + "lent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(), + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(), + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "FieldMask", + }); + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor, + new java.lang.String[] { + "Profiles", "NextPageToken", + }); + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor, + new java.lang.String[] { + "Parent", "Profile", + }); + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor, + new java.lang.String[] { + "Profile", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", + "RequestMetadata", + "ProfileQuery", + "PageSize", + "PageToken", + "Offset", + "DisableSpellCheck", + "OrderBy", + "CaseSensitiveSort", + "HistogramQueries", + }); + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor, + new java.lang.String[] { + "EstimatedTotalSize", + "SpellCorrection", + "Metadata", + "NextPageToken", + "HistogramQueryResults", + "SummarizedProfiles", + }); + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor, + new java.lang.String[] { + "Profiles", "Summary", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(); + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(); + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java new file mode 100644 index 000000000000..92004bb624cf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java @@ -0,0 +1,160 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + + private volatile Map fieldValuesMap; + + private final String project; + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project); + } + + /** Builder for ProjectName. */ + public static class Builder { + + private String project; + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder() {} + + private Builder(ProjectName projectName) { + project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectName) { + ProjectName that = (ProjectName) o; + return (this.project.equals(that.project)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java new file mode 100644 index 000000000000..b19d07d0a5ec --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java @@ -0,0 +1,2201 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a publication resource of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Publication} + */ +public final class Publication extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Publication) + PublicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Publication.newBuilder() to construct. + private Publication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Publication() { + authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + title_ = ""; + description_ = ""; + journal_ = ""; + volume_ = ""; + publisher_ = ""; + publicationType_ = ""; + isbn_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Publication( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + authors_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + journal_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + volume_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + publisher_ = s; + break; + } + case 58: + { + com.google.type.Date.Builder subBuilder = null; + if (publicationDate_ != null) { + subBuilder = publicationDate_.toBuilder(); + } + publicationDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(publicationDate_); + publicationDate_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + publicationType_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + isbn_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = authors_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Publication.class, + com.google.cloud.talent.v4beta1.Publication.Builder.class); + } + + private int bitField0_; + public static final int AUTHORS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList authors_; + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ProtocolStringList getAuthorsList() { + return authors_; + } + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public int getAuthorsCount() { + return authors_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public java.lang.String getAuthors(int index) { + return authors_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ByteString getAuthorsBytes(int index) { + return authors_.getByteString(index); + } + + public static final int TITLE_FIELD_NUMBER = 2; + private volatile java.lang.Object title_; + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOURNAL_FIELD_NUMBER = 4; + private volatile java.lang.Object journal_; + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + public java.lang.String getJournal() { + java.lang.Object ref = journal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + journal_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + public com.google.protobuf.ByteString getJournalBytes() { + java.lang.Object ref = journal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + journal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_FIELD_NUMBER = 5; + private volatile java.lang.Object volume_; + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + public java.lang.String getVolume() { + java.lang.Object ref = volume_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volume_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + public com.google.protobuf.ByteString getVolumeBytes() { + java.lang.Object ref = volume_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLISHER_FIELD_NUMBER = 6; + private volatile java.lang.Object publisher_; + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLICATION_DATE_FIELD_NUMBER = 7; + private com.google.type.Date publicationDate_; + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + public boolean hasPublicationDate() { + return publicationDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.Date getPublicationDate() { + return publicationDate_ == null ? com.google.type.Date.getDefaultInstance() : publicationDate_; + } + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { + return getPublicationDate(); + } + + public static final int PUBLICATION_TYPE_FIELD_NUMBER = 8; + private volatile java.lang.Object publicationType_; + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + public java.lang.String getPublicationType() { + java.lang.Object ref = publicationType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicationType_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + public com.google.protobuf.ByteString getPublicationTypeBytes() { + java.lang.Object ref = publicationType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ISBN_FIELD_NUMBER = 9; + private volatile java.lang.Object isbn_; + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + public java.lang.String getIsbn() { + java.lang.Object ref = isbn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + isbn_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + public com.google.protobuf.ByteString getIsbnBytes() { + java.lang.Object ref = isbn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + isbn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < authors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authors_.getRaw(i)); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (!getJournalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, journal_); + } + if (!getVolumeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, volume_); + } + if (!getPublisherBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, publisher_); + } + if (publicationDate_ != null) { + output.writeMessage(7, getPublicationDate()); + } + if (!getPublicationTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, publicationType_); + } + if (!getIsbnBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, isbn_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < authors_.size(); i++) { + dataSize += computeStringSizeNoTag(authors_.getRaw(i)); + } + size += dataSize; + size += 1 * getAuthorsList().size(); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (!getJournalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, journal_); + } + if (!getVolumeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, volume_); + } + if (!getPublisherBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, publisher_); + } + if (publicationDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPublicationDate()); + } + if (!getPublicationTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, publicationType_); + } + if (!getIsbnBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, isbn_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Publication)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Publication other = + (com.google.cloud.talent.v4beta1.Publication) obj; + + boolean result = true; + result = result && getAuthorsList().equals(other.getAuthorsList()); + result = result && getTitle().equals(other.getTitle()); + result = result && getDescription().equals(other.getDescription()); + result = result && getJournal().equals(other.getJournal()); + result = result && getVolume().equals(other.getVolume()); + result = result && getPublisher().equals(other.getPublisher()); + result = result && (hasPublicationDate() == other.hasPublicationDate()); + if (hasPublicationDate()) { + result = result && getPublicationDate().equals(other.getPublicationDate()); + } + result = result && getPublicationType().equals(other.getPublicationType()); + result = result && getIsbn().equals(other.getIsbn()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthorsCount() > 0) { + hash = (37 * hash) + AUTHORS_FIELD_NUMBER; + hash = (53 * hash) + getAuthorsList().hashCode(); + } + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + JOURNAL_FIELD_NUMBER; + hash = (53 * hash) + getJournal().hashCode(); + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + getVolume().hashCode(); + hash = (37 * hash) + PUBLISHER_FIELD_NUMBER; + hash = (53 * hash) + getPublisher().hashCode(); + if (hasPublicationDate()) { + hash = (37 * hash) + PUBLICATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPublicationDate().hashCode(); + } + hash = (37 * hash) + PUBLICATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getPublicationType().hashCode(); + hash = (37 * hash) + ISBN_FIELD_NUMBER; + hash = (53 * hash) + getIsbn().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Publication parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Publication prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a publication resource of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Publication} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Publication) + com.google.cloud.talent.v4beta1.PublicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Publication.class, + com.google.cloud.talent.v4beta1.Publication.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Publication.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + title_ = ""; + + description_ = ""; + + journal_ = ""; + + volume_ = ""; + + publisher_ = ""; + + if (publicationDateBuilder_ == null) { + publicationDate_ = null; + } else { + publicationDate_ = null; + publicationDateBuilder_ = null; + } + publicationType_ = ""; + + isbn_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Publication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication build() { + com.google.cloud.talent.v4beta1.Publication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication buildPartial() { + com.google.cloud.talent.v4beta1.Publication result = + new com.google.cloud.talent.v4beta1.Publication(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = authors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authors_ = authors_; + result.title_ = title_; + result.description_ = description_; + result.journal_ = journal_; + result.volume_ = volume_; + result.publisher_ = publisher_; + if (publicationDateBuilder_ == null) { + result.publicationDate_ = publicationDate_; + } else { + result.publicationDate_ = publicationDateBuilder_.build(); + } + result.publicationType_ = publicationType_; + result.isbn_ = isbn_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Publication) { + return mergeFrom((com.google.cloud.talent.v4beta1.Publication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Publication other) { + if (other == com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()) return this; + if (!other.authors_.isEmpty()) { + if (authors_.isEmpty()) { + authors_ = other.authors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthorsIsMutable(); + authors_.addAll(other.authors_); + } + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getJournal().isEmpty()) { + journal_ = other.journal_; + onChanged(); + } + if (!other.getVolume().isEmpty()) { + volume_ = other.volume_; + onChanged(); + } + if (!other.getPublisher().isEmpty()) { + publisher_ = other.publisher_; + onChanged(); + } + if (other.hasPublicationDate()) { + mergePublicationDate(other.getPublicationDate()); + } + if (!other.getPublicationType().isEmpty()) { + publicationType_ = other.publicationType_; + onChanged(); + } + if (!other.getIsbn().isEmpty()) { + isbn_ = other.isbn_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Publication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Publication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList authors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAuthorsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = new com.google.protobuf.LazyStringArrayList(authors_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ProtocolStringList getAuthorsList() { + return authors_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public int getAuthorsCount() { + return authors_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public java.lang.String getAuthors(int index) { + return authors_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ByteString getAuthorsBytes(int index) { + return authors_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder setAuthors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorsIsMutable(); + authors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder addAuthors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorsIsMutable(); + authors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder addAllAuthors(java.lang.Iterable values) { + ensureAuthorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authors_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder clearAuthors() { + authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder addAuthorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAuthorsIsMutable(); + authors_.add(value); + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object journal_ = ""; + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public java.lang.String getJournal() { + java.lang.Object ref = journal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + journal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public com.google.protobuf.ByteString getJournalBytes() { + java.lang.Object ref = journal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + journal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public Builder setJournal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + journal_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public Builder clearJournal() { + + journal_ = getDefaultInstance().getJournal(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public Builder setJournalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + journal_ = value; + onChanged(); + return this; + } + + private java.lang.Object volume_ = ""; + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public java.lang.String getVolume() { + java.lang.Object ref = volume_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volume_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public com.google.protobuf.ByteString getVolumeBytes() { + java.lang.Object ref = volume_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public Builder setVolume(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + volume_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public Builder clearVolume() { + + volume_ = getDefaultInstance().getVolume(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public Builder setVolumeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + volume_ = value; + onChanged(); + return this; + } + + private java.lang.Object publisher_ = ""; + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public Builder setPublisher(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publisher_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public Builder clearPublisher() { + + publisher_ = getDefaultInstance().getPublisher(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public Builder setPublisherBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publisher_ = value; + onChanged(); + return this; + } + + private com.google.type.Date publicationDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + publicationDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public boolean hasPublicationDate() { + return publicationDateBuilder_ != null || publicationDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.Date getPublicationDate() { + if (publicationDateBuilder_ == null) { + return publicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : publicationDate_; + } else { + return publicationDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder setPublicationDate(com.google.type.Date value) { + if (publicationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publicationDate_ = value; + onChanged(); + } else { + publicationDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder setPublicationDate(com.google.type.Date.Builder builderForValue) { + if (publicationDateBuilder_ == null) { + publicationDate_ = builderForValue.build(); + onChanged(); + } else { + publicationDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder mergePublicationDate(com.google.type.Date value) { + if (publicationDateBuilder_ == null) { + if (publicationDate_ != null) { + publicationDate_ = + com.google.type.Date.newBuilder(publicationDate_).mergeFrom(value).buildPartial(); + } else { + publicationDate_ = value; + } + onChanged(); + } else { + publicationDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder clearPublicationDate() { + if (publicationDateBuilder_ == null) { + publicationDate_ = null; + onChanged(); + } else { + publicationDate_ = null; + publicationDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.Date.Builder getPublicationDateBuilder() { + + onChanged(); + return getPublicationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { + if (publicationDateBuilder_ != null) { + return publicationDateBuilder_.getMessageOrBuilder(); + } else { + return publicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : publicationDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getPublicationDateFieldBuilder() { + if (publicationDateBuilder_ == null) { + publicationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPublicationDate(), getParentForChildren(), isClean()); + publicationDate_ = null; + } + return publicationDateBuilder_; + } + + private java.lang.Object publicationType_ = ""; + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public java.lang.String getPublicationType() { + java.lang.Object ref = publicationType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicationType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public com.google.protobuf.ByteString getPublicationTypeBytes() { + java.lang.Object ref = publicationType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public Builder setPublicationType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publicationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public Builder clearPublicationType() { + + publicationType_ = getDefaultInstance().getPublicationType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public Builder setPublicationTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicationType_ = value; + onChanged(); + return this; + } + + private java.lang.Object isbn_ = ""; + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public java.lang.String getIsbn() { + java.lang.Object ref = isbn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + isbn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public com.google.protobuf.ByteString getIsbnBytes() { + java.lang.Object ref = isbn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + isbn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public Builder setIsbn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + isbn_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public Builder clearIsbn() { + + isbn_ = getDefaultInstance().getIsbn(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public Builder setIsbnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + isbn_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Publication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Publication) + private static final com.google.cloud.talent.v4beta1.Publication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Publication(); + } + + public static com.google.cloud.talent.v4beta1.Publication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Publication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Publication(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java new file mode 100644 index 000000000000..3a697b2afe8f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java @@ -0,0 +1,268 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PublicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Publication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + java.util.List getAuthorsList(); + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + int getAuthorsCount(); + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + java.lang.String getAuthors(int index); + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + com.google.protobuf.ByteString getAuthorsBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + java.lang.String getTitle(); + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + java.lang.String getJournal(); + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + com.google.protobuf.ByteString getJournalBytes(); + + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + java.lang.String getVolume(); + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + com.google.protobuf.ByteString getVolumeBytes(); + + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + java.lang.String getPublisher(); + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + com.google.protobuf.ByteString getPublisherBytes(); + + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + boolean hasPublicationDate(); + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + com.google.type.Date getPublicationDate(); + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + com.google.type.DateOrBuilder getPublicationDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + java.lang.String getPublicationType(); + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + com.google.protobuf.ByteString getPublicationTypeBytes(); + + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + java.lang.String getIsbn(); + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + com.google.protobuf.ByteString getIsbnBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java new file mode 100644 index 000000000000..45dacc09b82a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java @@ -0,0 +1,1227 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * RecruitingNote represents a note/comment regarding the recruiting for a
+ * candidate. For example, "This candidate is a potential match for a frontend
+ * engineer at SF".
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RecruitingNote} + */ +public final class RecruitingNote extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.RecruitingNote) + RecruitingNoteOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecruitingNote.newBuilder() to construct. + private RecruitingNote(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RecruitingNote() { + note_ = ""; + commenter_ = ""; + type_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RecruitingNote( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + note_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + commenter_ = s; + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (createDate_ != null) { + subBuilder = createDate_.toBuilder(); + } + createDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createDate_); + createDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RecruitingNote.class, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder.class); + } + + public static final int NOTE_FIELD_NUMBER = 1; + private volatile java.lang.Object note_; + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMENTER_FIELD_NUMBER = 2; + private volatile java.lang.Object commenter_; + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + public java.lang.String getCommenter() { + java.lang.Object ref = commenter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commenter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + public com.google.protobuf.ByteString getCommenterBytes() { + java.lang.Object ref = commenter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commenter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_DATE_FIELD_NUMBER = 3; + private com.google.type.Date createDate_; + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + public boolean hasCreateDate() { + return createDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.Date getCreateDate() { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + return getCreateDate(); + } + + public static final int TYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object type_; + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNoteBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, note_); + } + if (!getCommenterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commenter_); + } + if (createDate_ != null) { + output.writeMessage(3, getCreateDate()); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNoteBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, note_); + } + if (!getCommenterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commenter_); + } + if (createDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateDate()); + } + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.RecruitingNote)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.RecruitingNote other = + (com.google.cloud.talent.v4beta1.RecruitingNote) obj; + + boolean result = true; + result = result && getNote().equals(other.getNote()); + result = result && getCommenter().equals(other.getCommenter()); + result = result && (hasCreateDate() == other.hasCreateDate()); + if (hasCreateDate()) { + result = result && getCreateDate().equals(other.getCreateDate()); + } + result = result && getType().equals(other.getType()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + COMMENTER_FIELD_NUMBER; + hash = (53 * hash) + getCommenter().hashCode(); + if (hasCreateDate()) { + hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getCreateDate().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.RecruitingNote prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * RecruitingNote represents a note/comment regarding the recruiting for a
+   * candidate. For example, "This candidate is a potential match for a frontend
+   * engineer at SF".
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RecruitingNote} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.RecruitingNote) + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RecruitingNote.class, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.RecruitingNote.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + note_ = ""; + + commenter_ = ""; + + if (createDateBuilder_ == null) { + createDate_ = null; + } else { + createDate_ = null; + createDateBuilder_ = null; + } + type_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote build() { + com.google.cloud.talent.v4beta1.RecruitingNote result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote buildPartial() { + com.google.cloud.talent.v4beta1.RecruitingNote result = + new com.google.cloud.talent.v4beta1.RecruitingNote(this); + result.note_ = note_; + result.commenter_ = commenter_; + if (createDateBuilder_ == null) { + result.createDate_ = createDate_; + } else { + result.createDate_ = createDateBuilder_.build(); + } + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.RecruitingNote) { + return mergeFrom((com.google.cloud.talent.v4beta1.RecruitingNote) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.RecruitingNote other) { + if (other == com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()) return this; + if (!other.getNote().isEmpty()) { + note_ = other.note_; + onChanged(); + } + if (!other.getCommenter().isEmpty()) { + commenter_ = other.commenter_; + onChanged(); + } + if (other.hasCreateDate()) { + mergeCreateDate(other.getCreateDate()); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.RecruitingNote parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.RecruitingNote) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object note_ = ""; + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public Builder setNote(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public Builder clearNote() { + + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public Builder setNoteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + note_ = value; + onChanged(); + return this; + } + + private java.lang.Object commenter_ = ""; + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public java.lang.String getCommenter() { + java.lang.Object ref = commenter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commenter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public com.google.protobuf.ByteString getCommenterBytes() { + java.lang.Object ref = commenter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commenter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public Builder setCommenter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + commenter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public Builder clearCommenter() { + + commenter_ = getDefaultInstance().getCommenter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public Builder setCommenterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + commenter_ = value; + onChanged(); + return this; + } + + private com.google.type.Date createDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + createDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public boolean hasCreateDate() { + return createDateBuilder_ != null || createDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.Date getCreateDate() { + if (createDateBuilder_ == null) { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } else { + return createDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder setCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createDate_ = value; + onChanged(); + } else { + createDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder setCreateDate(com.google.type.Date.Builder builderForValue) { + if (createDateBuilder_ == null) { + createDate_ = builderForValue.build(); + onChanged(); + } else { + createDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder mergeCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (createDate_ != null) { + createDate_ = + com.google.type.Date.newBuilder(createDate_).mergeFrom(value).buildPartial(); + } else { + createDate_ = value; + } + onChanged(); + } else { + createDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder clearCreateDate() { + if (createDateBuilder_ == null) { + createDate_ = null; + onChanged(); + } else { + createDate_ = null; + createDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.Date.Builder getCreateDateBuilder() { + + onChanged(); + return getCreateDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + if (createDateBuilder_ != null) { + return createDateBuilder_.getMessageOrBuilder(); + } else { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getCreateDateFieldBuilder() { + if (createDateBuilder_ == null) { + createDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getCreateDate(), getParentForChildren(), isClean()); + createDate_ = null; + } + return createDateBuilder_; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.RecruitingNote) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.RecruitingNote) + private static final com.google.cloud.talent.v4beta1.RecruitingNote DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.RecruitingNote(); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecruitingNote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecruitingNote(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java new file mode 100644 index 000000000000..02ea20bb9824 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface RecruitingNoteOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.RecruitingNote) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + java.lang.String getNote(); + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + com.google.protobuf.ByteString getNoteBytes(); + + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + java.lang.String getCommenter(); + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + com.google.protobuf.ByteString getCommenterBytes(); + + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + boolean hasCreateDate(); + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + com.google.type.Date getCreateDate(); + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + com.google.type.DateOrBuilder getCreateDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + java.lang.String getType(); + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + com.google.protobuf.ByteString getTypeBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java new file mode 100644 index 000000000000..1b4ca53cb817 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java @@ -0,0 +1,1561 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Meta information related to the job searcher or entity
+ * conducting the job search. This information is used to improve the
+ * performance of the service.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RequestMetadata} + */ +public final class RequestMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.RequestMetadata) + RequestMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RequestMetadata.newBuilder() to construct. + private RequestMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RequestMetadata() { + domain_ = ""; + sessionId_ = ""; + userId_ = ""; + allowMissingIds_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RequestMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + sessionId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + userId_ = s; + break; + } + case 32: + { + allowMissingIds_ = input.readBool(); + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.DeviceInfo.Builder subBuilder = null; + if (deviceInfo_ != null) { + subBuilder = deviceInfo_.toBuilder(); + } + deviceInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.DeviceInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceInfo_); + deviceInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RequestMetadata.class, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder.class); + } + + public static final int DOMAIN_FIELD_NUMBER = 1; + private volatile java.lang.Object domain_; + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SESSION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object sessionId_; + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } + } + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object userId_; + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } + } + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_MISSING_IDS_FIELD_NUMBER = 4; + private boolean allowMissingIds_; + /** + * + * + *
+   * Optional.
+   * If set to `true`,
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+   * optional. Only set when any of these fields isn't available for some
+   * reason. It is highly recommended not to set this field and provide accurate
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+   * service experience.
+   * 
+ * + * bool allow_missing_ids = 4; + */ + public boolean getAllowMissingIds() { + return allowMissingIds_; + } + + public static final int DEVICE_INFO_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.DeviceInfo deviceInfo_; + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public boolean hasDeviceInfo() { + return deviceInfo_ != null; + } + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo() { + return deviceInfo_ == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { + return getDeviceInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domain_); + } + if (!getSessionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sessionId_); + } + if (!getUserIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userId_); + } + if (allowMissingIds_ != false) { + output.writeBool(4, allowMissingIds_); + } + if (deviceInfo_ != null) { + output.writeMessage(5, getDeviceInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domain_); + } + if (!getSessionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sessionId_); + } + if (!getUserIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userId_); + } + if (allowMissingIds_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissingIds_); + } + if (deviceInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeviceInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.RequestMetadata)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.RequestMetadata other = + (com.google.cloud.talent.v4beta1.RequestMetadata) obj; + + boolean result = true; + result = result && getDomain().equals(other.getDomain()); + result = result && getSessionId().equals(other.getSessionId()); + result = result && getUserId().equals(other.getUserId()); + result = result && (getAllowMissingIds() == other.getAllowMissingIds()); + result = result && (hasDeviceInfo() == other.hasDeviceInfo()); + if (hasDeviceInfo()) { + result = result && getDeviceInfo().equals(other.getDeviceInfo()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSessionId().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + ALLOW_MISSING_IDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissingIds()); + if (hasDeviceInfo()) { + hash = (37 * hash) + DEVICE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDeviceInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.RequestMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Meta information related to the job searcher or entity
+   * conducting the job search. This information is used to improve the
+   * performance of the service.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RequestMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.RequestMetadata) + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RequestMetadata.class, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.RequestMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + domain_ = ""; + + sessionId_ = ""; + + userId_ = ""; + + allowMissingIds_ = false; + + if (deviceInfoBuilder_ == null) { + deviceInfo_ = null; + } else { + deviceInfo_ = null; + deviceInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata build() { + com.google.cloud.talent.v4beta1.RequestMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata buildPartial() { + com.google.cloud.talent.v4beta1.RequestMetadata result = + new com.google.cloud.talent.v4beta1.RequestMetadata(this); + result.domain_ = domain_; + result.sessionId_ = sessionId_; + result.userId_ = userId_; + result.allowMissingIds_ = allowMissingIds_; + if (deviceInfoBuilder_ == null) { + result.deviceInfo_ = deviceInfo_; + } else { + result.deviceInfo_ = deviceInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.RequestMetadata) { + return mergeFrom((com.google.cloud.talent.v4beta1.RequestMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.RequestMetadata other) { + if (other == com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance()) + return this; + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getSessionId().isEmpty()) { + sessionId_ = other.sessionId_; + onChanged(); + } + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + onChanged(); + } + if (other.getAllowMissingIds() != false) { + setAllowMissingIds(other.getAllowMissingIds()); + } + if (other.hasDeviceInfo()) { + mergeDeviceInfo(other.getDeviceInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.RequestMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.RequestMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object domain_ = ""; + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object sessionId_ = ""; + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public Builder setSessionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sessionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public Builder clearSessionId() { + + sessionId_ = getDefaultInstance().getSessionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sessionId_ = value; + onChanged(); + return this; + } + + private java.lang.Object userId_ = ""; + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public Builder setUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public Builder clearUserId() { + + userId_ = getDefaultInstance().getUserId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userId_ = value; + onChanged(); + return this; + } + + private boolean allowMissingIds_; + /** + * + * + *
+     * Optional.
+     * If set to `true`,
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+     * optional. Only set when any of these fields isn't available for some
+     * reason. It is highly recommended not to set this field and provide accurate
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+     * service experience.
+     * 
+ * + * bool allow_missing_ids = 4; + */ + public boolean getAllowMissingIds() { + return allowMissingIds_; + } + /** + * + * + *
+     * Optional.
+     * If set to `true`,
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+     * optional. Only set when any of these fields isn't available for some
+     * reason. It is highly recommended not to set this field and provide accurate
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+     * service experience.
+     * 
+ * + * bool allow_missing_ids = 4; + */ + public Builder setAllowMissingIds(boolean value) { + + allowMissingIds_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If set to `true`,
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+     * optional. Only set when any of these fields isn't available for some
+     * reason. It is highly recommended not to set this field and provide accurate
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+     * service experience.
+     * 
+ * + * bool allow_missing_ids = 4; + */ + public Builder clearAllowMissingIds() { + + allowMissingIds_ = false; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.DeviceInfo deviceInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.DeviceInfo, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder, + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder> + deviceInfoBuilder_; + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public boolean hasDeviceInfo() { + return deviceInfoBuilder_ != null || deviceInfo_ != null; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo() { + if (deviceInfoBuilder_ == null) { + return deviceInfo_ == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } else { + return deviceInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder setDeviceInfo(com.google.cloud.talent.v4beta1.DeviceInfo value) { + if (deviceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceInfo_ = value; + onChanged(); + } else { + deviceInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder setDeviceInfo( + com.google.cloud.talent.v4beta1.DeviceInfo.Builder builderForValue) { + if (deviceInfoBuilder_ == null) { + deviceInfo_ = builderForValue.build(); + onChanged(); + } else { + deviceInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder mergeDeviceInfo(com.google.cloud.talent.v4beta1.DeviceInfo value) { + if (deviceInfoBuilder_ == null) { + if (deviceInfo_ != null) { + deviceInfo_ = + com.google.cloud.talent.v4beta1.DeviceInfo.newBuilder(deviceInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + deviceInfo_ = value; + } + onChanged(); + } else { + deviceInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder clearDeviceInfo() { + if (deviceInfoBuilder_ == null) { + deviceInfo_ = null; + onChanged(); + } else { + deviceInfo_ = null; + deviceInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo.Builder getDeviceInfoBuilder() { + + onChanged(); + return getDeviceInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { + if (deviceInfoBuilder_ != null) { + return deviceInfoBuilder_.getMessageOrBuilder(); + } else { + return deviceInfo_ == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.DeviceInfo, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder, + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder> + getDeviceInfoFieldBuilder() { + if (deviceInfoBuilder_ == null) { + deviceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.DeviceInfo, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder, + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder>( + getDeviceInfo(), getParentForChildren(), isClean()); + deviceInfo_ = null; + } + return deviceInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.RequestMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.RequestMetadata) + private static final com.google.cloud.talent.v4beta1.RequestMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.RequestMetadata(); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RequestMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java new file mode 100644 index 000000000000..cf63ae281cc2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java @@ -0,0 +1,195 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface RequestMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.RequestMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + java.lang.String getDomain(); + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + java.lang.String getSessionId(); + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + com.google.protobuf.ByteString getSessionIdBytes(); + + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + java.lang.String getUserId(); + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + com.google.protobuf.ByteString getUserIdBytes(); + + /** + * + * + *
+   * Optional.
+   * If set to `true`,
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+   * optional. Only set when any of these fields isn't available for some
+   * reason. It is highly recommended not to set this field and provide accurate
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+   * service experience.
+   * 
+ * + * bool allow_missing_ids = 4; + */ + boolean getAllowMissingIds(); + + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + boolean hasDeviceInfo(); + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo(); + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java new file mode 100644 index 000000000000..34e358a38300 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Additional information returned to client, such as debugging information.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ResponseMetadata} + */ +public final class ResponseMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ResponseMetadata) + ResponseMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResponseMetadata.newBuilder() to construct. + private ResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResponseMetadata() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResponseMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ResponseMetadata.class, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.ResponseMetadata)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ResponseMetadata other = + (com.google.cloud.talent.v4beta1.ResponseMetadata) obj; + + boolean result = true; + result = result && getRequestId().equals(other.getRequestId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.ResponseMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Additional information returned to client, such as debugging information.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ResponseMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ResponseMetadata) + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ResponseMetadata.class, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata build() { + com.google.cloud.talent.v4beta1.ResponseMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata buildPartial() { + com.google.cloud.talent.v4beta1.ResponseMetadata result = + new com.google.cloud.talent.v4beta1.ResponseMetadata(this); + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ResponseMetadata) { + return mergeFrom((com.google.cloud.talent.v4beta1.ResponseMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ResponseMetadata other) { + if (other == com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance()) + return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.ResponseMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ResponseMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ResponseMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ResponseMetadata) + private static final com.google.cloud.talent.v4beta1.ResponseMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ResponseMetadata(); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResponseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResponseMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java new file mode 100644 index 000000000000..57e7d0d0e06d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface ResponseMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ResponseMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java new file mode 100644 index 000000000000..754986a7458e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java @@ -0,0 +1,107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class ResumeServiceProto { + private ResumeServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/talent/v4beta1/resume_ser" + + "vice.proto\022\033google.cloud.talent.v4beta1\032" + + "\034google/api/annotations.proto\032)google/cl" + + "oud/talent/v4beta1/profile.proto\"\242\001\n\022Par" + + "seResumeRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006resum" + + "e\030\002 \001(\014\022\023\n\013region_code\030\003 \001(\t\022\025\n\rlanguage" + + "_code\030\004 \001(\t\022@\n\007options\030\005 \001(\0132/.google.cl" + + "oud.talent.v4beta1.ParseResumeOptions\"M\n" + + "\022ParseResumeOptions\022\022\n\nenable_ocr\030\001 \001(\010\022" + + "#\n\033enable_full_skill_detection\030\002 \001(\010\"^\n\023" + + "ParseResumeResponse\0225\n\007profile\030\001 \001(\0132$.g" + + "oogle.cloud.talent.v4beta1.Profile\022\020\n\010ra" + + "w_text\030\002 \001(\t2\271\001\n\rResumeService\022\247\001\n\013Parse" + + "Resume\022/.google.cloud.talent.v4beta1.Par" + + "seResumeRequest\0320.google.cloud.talent.v4" + + "beta1.ParseResumeResponse\"5\202\323\344\223\002/\"*/v4be" + + "ta1/{parent=projects/*}/resumes:parse:\001*" + + "B\200\001\n\037com.google.cloud.talent.v4beta1B\022Re" + + "sumeServiceProtoP\001ZAgoogle.golang.org/ge" + + "nproto/googleapis/cloud/talent/v4beta1;t" + + "alent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor, + new java.lang.String[] { + "Parent", "Resume", "RegionCode", "LanguageCode", "Options", + }); + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor, + new java.lang.String[] { + "EnableOcr", "EnableFullSkillDetection", + }); + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor, + new java.lang.String[] { + "Profile", "RawText", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java new file mode 100644 index 000000000000..ebca35da3298 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java @@ -0,0 +1,7364 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * The Request body of the `SearchJobs` call.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest} + */ +public final class SearchJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsRequest) + SearchJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchJobsRequest.newBuilder() to construct. + private SearchJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchJobsRequest() { + parent_ = ""; + searchMode_ = 0; + enableBroadening_ = false; + requirePreciseResultSize_ = false; + histogramQueries_ = java.util.Collections.emptyList(); + jobView_ = 0; + offset_ = 0; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + diversificationLevel_ = 0; + disableKeywordMatch_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + searchMode_ = rawValue; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.RequestMetadata.Builder subBuilder = null; + if (requestMetadata_ != null) { + subBuilder = requestMetadata_.toBuilder(); + } + requestMetadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.RequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestMetadata_); + requestMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.cloud.talent.v4beta1.JobQuery.Builder subBuilder = null; + if (jobQuery_ != null) { + subBuilder = jobQuery_.toBuilder(); + } + jobQuery_ = + input.readMessage( + com.google.cloud.talent.v4beta1.JobQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobQuery_); + jobQuery_ = subBuilder.buildPartial(); + } + + break; + } + case 40: + { + enableBroadening_ = input.readBool(); + break; + } + case 48: + { + requirePreciseResultSize_ = input.readBool(); + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + histogramQueries_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQuery.parser(), extensionRegistry)); + break; + } + case 64: + { + int rawValue = input.readEnum(); + + jobView_ = rawValue; + break; + } + case 72: + { + offset_ = input.readInt32(); + break; + } + case 80: + { + pageSize_ = input.readInt32(); + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 104: + { + int rawValue = input.readEnum(); + + diversificationLevel_ = rawValue; + break; + } + case 114: + { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder + subBuilder = null; + if (customRankingInfo_ != null) { + subBuilder = customRankingInfo_.toBuilder(); + } + customRankingInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customRankingInfo_); + customRankingInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 128: + { + disableKeywordMatch_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.Builder.class); + } + + /** + * + * + *
+   * A string-represented enumeration of the job search mode. The service
+   * operate differently for different modes of service.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode} + */ + public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The mode of the search method isn't specified.
+     * 
+ * + * SEARCH_MODE_UNSPECIFIED = 0; + */ + SEARCH_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * The job search matches against all jobs, and featured jobs
+     * (jobs with promotionValue > 0) are not specially handled.
+     * 
+ * + * JOB_SEARCH = 1; + */ + JOB_SEARCH(1), + /** + * + * + *
+     * The job search matches only against featured jobs (jobs with a
+     * promotionValue > 0). This method doesn't return any jobs having a
+     * promotionValue <= 0. The search results order is determined by the
+     * promotionValue (jobs with a higher promotionValue are returned higher up
+     * in the search results), with relevance being used as a tiebreaker.
+     * 
+ * + * FEATURED_JOB_SEARCH = 2; + */ + FEATURED_JOB_SEARCH(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The mode of the search method isn't specified.
+     * 
+ * + * SEARCH_MODE_UNSPECIFIED = 0; + */ + public static final int SEARCH_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The job search matches against all jobs, and featured jobs
+     * (jobs with promotionValue > 0) are not specially handled.
+     * 
+ * + * JOB_SEARCH = 1; + */ + public static final int JOB_SEARCH_VALUE = 1; + /** + * + * + *
+     * The job search matches only against featured jobs (jobs with a
+     * promotionValue > 0). This method doesn't return any jobs having a
+     * promotionValue <= 0. The search results order is determined by the
+     * promotionValue (jobs with a higher promotionValue are returned higher up
+     * in the search results), with relevance being used as a tiebreaker.
+     * 
+ * + * FEATURED_JOB_SEARCH = 2; + */ + public static final int FEATURED_JOB_SEARCH_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static SearchMode valueOf(int value) { + return forNumber(value); + } + + public static SearchMode forNumber(int value) { + switch (value) { + case 0: + return SEARCH_MODE_UNSPECIFIED; + case 1: + return JOB_SEARCH; + case 2: + return FEATURED_JOB_SEARCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SearchMode findValueByNumber(int number) { + return SearchMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SearchMode[] VALUES = values(); + + public static SearchMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SearchMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode) + } + + /** + * + * + *
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel} + */ + public enum DiversificationLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The diversification level isn't specified.
+     * 
+ * + * DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; + */ + DIVERSIFICATION_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Disables diversification. Jobs that would normally be pushed to the last
+     * page would not have their positions altered. This may result in highly
+     * similar jobs appearing in sequence in the search results.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * Default diversifying behavior. The result list is ordered so that
+     * highly similar results are pushed to the end of the last page of search
+     * results.
+     * 
+ * + * SIMPLE = 2; + */ + SIMPLE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The diversification level isn't specified.
+     * 
+ * + * DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; + */ + public static final int DIVERSIFICATION_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Disables diversification. Jobs that would normally be pushed to the last
+     * page would not have their positions altered. This may result in highly
+     * similar jobs appearing in sequence in the search results.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
+     * Default diversifying behavior. The result list is ordered so that
+     * highly similar results are pushed to the end of the last page of search
+     * results.
+     * 
+ * + * SIMPLE = 2; + */ + public static final int SIMPLE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DiversificationLevel valueOf(int value) { + return forNumber(value); + } + + public static DiversificationLevel forNumber(int value) { + switch (value) { + case 0: + return DIVERSIFICATION_LEVEL_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return SIMPLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DiversificationLevel findValueByNumber(int number) { + return DiversificationLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final DiversificationLevel[] VALUES = values(); + + public static DiversificationLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DiversificationLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel) + } + + public interface CustomRankingInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + int getImportanceLevelValue(); + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + getImportanceLevel(); + + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + java.lang.String getRankingExpression(); + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + com.google.protobuf.ByteString getRankingExpressionBytes(); + } + /** + * + * + *
+   * Input only.
+   * Custom ranking information for
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo} + */ + public static final class CustomRankingInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + CustomRankingInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomRankingInfo.newBuilder() to construct. + private CustomRankingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomRankingInfo() { + importanceLevel_ = 0; + rankingExpression_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomRankingInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + importanceLevel_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + rankingExpression_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder.class); + } + + /** + * + * + *
+     * The importance level for
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression].
+     * 
+ * + * Protobuf enum {@code + * google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel} + */ + public enum ImportanceLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value if the importance level isn't specified.
+       * 
+ * + * IMPORTANCE_LEVEL_UNSPECIFIED = 0; + */ + IMPORTANCE_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+       * The given ranking expression is of None importance, existing relevance
+       * score (determined by API algorithm) dominates job's final ranking
+       * position.
+       * 
+ * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
+       * The given ranking expression is of Low importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * LOW = 2; + */ + LOW(2), + /** + * + * + *
+       * The given ranking expression is of Mild importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MILD = 3; + */ + MILD(3), + /** + * + * + *
+       * The given ranking expression is of Medium importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MEDIUM = 4; + */ + MEDIUM(4), + /** + * + * + *
+       * The given ranking expression is of High importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * HIGH = 5; + */ + HIGH(5), + /** + * + * + *
+       * The given ranking expression is of Extreme importance, and dominates
+       * job's final ranking position with existing relevance
+       * score (determined by API algorithm) ignored.
+       * 
+ * + * EXTREME = 6; + */ + EXTREME(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value if the importance level isn't specified.
+       * 
+ * + * IMPORTANCE_LEVEL_UNSPECIFIED = 0; + */ + public static final int IMPORTANCE_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The given ranking expression is of None importance, existing relevance
+       * score (determined by API algorithm) dominates job's final ranking
+       * position.
+       * 
+ * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + /** + * + * + *
+       * The given ranking expression is of Low importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * LOW = 2; + */ + public static final int LOW_VALUE = 2; + /** + * + * + *
+       * The given ranking expression is of Mild importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MILD = 3; + */ + public static final int MILD_VALUE = 3; + /** + * + * + *
+       * The given ranking expression is of Medium importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MEDIUM = 4; + */ + public static final int MEDIUM_VALUE = 4; + /** + * + * + *
+       * The given ranking expression is of High importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * HIGH = 5; + */ + public static final int HIGH_VALUE = 5; + /** + * + * + *
+       * The given ranking expression is of Extreme importance, and dominates
+       * job's final ranking position with existing relevance
+       * score (determined by API algorithm) ignored.
+       * 
+ * + * EXTREME = 6; + */ + public static final int EXTREME_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ImportanceLevel valueOf(int value) { + return forNumber(value); + } + + public static ImportanceLevel forNumber(int value) { + switch (value) { + case 0: + return IMPORTANCE_LEVEL_UNSPECIFIED; + case 1: + return NONE; + case 2: + return LOW; + case 3: + return MILD; + case 4: + return MEDIUM; + case 5: + return HIGH; + case 6: + return EXTREME; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ImportanceLevel findValueByNumber(int number) { + return ImportanceLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ImportanceLevel[] VALUES = values(); + + public static ImportanceLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ImportanceLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel) + } + + public static final int IMPORTANCE_LEVEL_FIELD_NUMBER = 1; + private int importanceLevel_; + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public int getImportanceLevelValue() { + return importanceLevel_; + } + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + getImportanceLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .valueOf(importanceLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .UNRECOGNIZED + : result; + } + + public static final int RANKING_EXPRESSION_FIELD_NUMBER = 2; + private volatile java.lang.Object rankingExpression_; + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rankingExpression_ = s; + return s; + } + } + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (importanceLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .IMPORTANCE_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, importanceLevel_); + } + if (!getRankingExpressionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rankingExpression_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (importanceLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .IMPORTANCE_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importanceLevel_); + } + if (!getRankingExpressionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rankingExpression_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo other = + (com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) obj; + + boolean result = true; + result = result && importanceLevel_ == other.importanceLevel_; + result = result && getRankingExpression().equals(other.getRankingExpression()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IMPORTANCE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + importanceLevel_; + hash = (37 * hash) + RANKING_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRankingExpression().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Input only.
+     * Custom ranking information for
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + importanceLevel_ = 0; + + rankingExpression_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo build() { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo result = + new com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo(this); + result.importanceLevel_ = importanceLevel_; + result.rankingExpression_ = rankingExpression_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo other) { + if (other + == com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance()) return this; + if (other.importanceLevel_ != 0) { + setImportanceLevelValue(other.getImportanceLevelValue()); + } + if (!other.getRankingExpression().isEmpty()) { + rankingExpression_ = other.rankingExpression_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int importanceLevel_ = 0; + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public int getImportanceLevelValue() { + return importanceLevel_; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public Builder setImportanceLevelValue(int value) { + importanceLevel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + getImportanceLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .valueOf(importanceLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public Builder setImportanceLevel( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + value) { + if (value == null) { + throw new NullPointerException(); + } + + importanceLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public Builder clearImportanceLevel() { + + importanceLevel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object rankingExpression_ = ""; + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rankingExpression_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public Builder setRankingExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rankingExpression_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public Builder clearRankingExpression() { + + rankingExpression_ = getDefaultInstance().getRankingExpression(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rankingExpression_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + private static final com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomRankingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomRankingInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_MODE_FIELD_NUMBER = 2; + private int searchMode_; + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public int getSearchModeValue() { + return searchMode_; + } + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode getSearchMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.valueOf(searchMode_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.UNRECOGNIZED + : result; + } + + public static final int REQUEST_METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_; + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public boolean hasRequestMetadata() { + return requestMetadata_ != null; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + return getRequestMetadata(); + } + + public static final int JOB_QUERY_FIELD_NUMBER = 4; + private com.google.cloud.talent.v4beta1.JobQuery jobQuery_; + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public boolean hasJobQuery() { + return jobQuery_ != null; + } + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQuery getJobQuery() { + return jobQuery_ == null + ? com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance() + : jobQuery_; + } + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQueryOrBuilder getJobQueryOrBuilder() { + return getJobQuery(); + } + + public static final int ENABLE_BROADENING_FIELD_NUMBER = 5; + private boolean enableBroadening_; + /** + * + * + *
+   * Optional.
+   * Controls whether to broaden the search when it produces sparse results.
+   * Broadened queries append results to the end of the matching results
+   * list.
+   * Defaults to false.
+   * 
+ * + * bool enable_broadening = 5; + */ + public boolean getEnableBroadening() { + return enableBroadening_; + } + + public static final int REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER = 6; + private boolean requirePreciseResultSize_; + /** + * + * + *
+   * Optional.
+   * Controls if the search job request requires the return of a precise
+   * count of the first 300 results. Setting this to `true` ensures
+   * consistency in the number of results per page. Best practice is to set this
+   * value to true if a client allows users to jump directly to a
+   * non-sequential search results page.
+   * Enabling this flag may adversely impact performance.
+   * Defaults to false.
+   * 
+ * + * bool require_precise_result_size = 6; + */ + public boolean getRequirePreciseResultSize() { + return requirePreciseResultSize_; + } + + public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 7; + private java.util.List histogramQueries_; + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List getHistogramQueriesList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public int getHistogramQueriesCount() { + return histogramQueries_.size(); + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + return histogramQueries_.get(index); + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + return histogramQueries_.get(index); + } + + public static final int JOB_VIEW_FIELD_NUMBER = 8; + private int jobView_; + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + + public static final int OFFSET_FIELD_NUMBER = 9; + private int offset_; + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result
+   * location, amongst the jobs deemed by the API as relevant) in search
+   * results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+   * unset.
+   * For example, 0 means to  return results starting from the first matching
+   * job, and 10 means to return from the 11th job. This can be used for
+   * pagination, (for example, pageSize = 10 and offset = 10 means to return
+   * from the second page).
+   * 
+ * + * int32 offset = 9; + */ + public int getOffset() { + return offset_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 10; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * A limit on the number of jobs returned in the search results.
+   * Increasing this value above the default value of 10 can increase search
+   * response time. The value can be between 1 and 100.
+   * 
+ * + * int32 page_size = 10; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 11; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 12; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIVERSIFICATION_LEVEL_FIELD_NUMBER = 13; + private int diversificationLevel_; + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public int getDiversificationLevelValue() { + return diversificationLevel_; + } + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + getDiversificationLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.valueOf( + diversificationLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.UNRECOGNIZED + : result; + } + + public static final int CUSTOM_RANKING_INFO_FIELD_NUMBER = 14; + private com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo customRankingInfo_; + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public boolean hasCustomRankingInfo() { + return customRankingInfo_ != null; + } + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getCustomRankingInfo() { + return customRankingInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.getDefaultInstance() + : customRankingInfo_; + } + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder + getCustomRankingInfoOrBuilder() { + return getCustomRankingInfo(); + } + + public static final int DISABLE_KEYWORD_MATCH_FIELD_NUMBER = 16; + private boolean disableKeywordMatch_; + /** + * + * + *
+   * Optional.
+   * Controls whether to disable exact keyword match on [Job.job_title][],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description],
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+   * [Job.locations][0],
+   * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+   * disable keyword match is turned off, a keyword match returns jobs that do
+   * not match given category filters when there are matching keywords. For
+   * example, for the query "program manager," a result is returned even if the
+   * job posting has the title "software developer," which doesn't fall into
+   * "program manager" ontology, but does have "program manager" appearing in
+   * its description.
+   * For queries like "cloud" that don't contain title or
+   * location specific ontology, jobs with "cloud" keyword matches are returned
+   * regardless of this flag's value.
+   * Please use [Company.keyword_searchable_custom_fields][] or
+   * [Company.keyword_searchable_custom_attributes][] if company specific
+   * globally matched custom field/attribute string values is needed. Enabling
+   * keyword match improves recall of subsequent search requests.
+   * Defaults to false.
+   * 
+ * + * bool disable_keyword_match = 16; + */ + public boolean getDisableKeywordMatch() { + return disableKeywordMatch_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (searchMode_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.SEARCH_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, searchMode_); + } + if (requestMetadata_ != null) { + output.writeMessage(3, getRequestMetadata()); + } + if (jobQuery_ != null) { + output.writeMessage(4, getJobQuery()); + } + if (enableBroadening_ != false) { + output.writeBool(5, enableBroadening_); + } + if (requirePreciseResultSize_ != false) { + output.writeBool(6, requirePreciseResultSize_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + output.writeMessage(7, histogramQueries_.get(i)); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(8, jobView_); + } + if (offset_ != 0) { + output.writeInt32(9, offset_); + } + if (pageSize_ != 0) { + output.writeInt32(10, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, pageToken_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, orderBy_); + } + if (diversificationLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + .DIVERSIFICATION_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, diversificationLevel_); + } + if (customRankingInfo_ != null) { + output.writeMessage(14, getCustomRankingInfo()); + } + if (disableKeywordMatch_ != false) { + output.writeBool(16, disableKeywordMatch_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (searchMode_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.SEARCH_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, searchMode_); + } + if (requestMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata()); + } + if (jobQuery_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getJobQuery()); + } + if (enableBroadening_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableBroadening_); + } + if (requirePreciseResultSize_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requirePreciseResultSize_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, histogramQueries_.get(i)); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, jobView_); + } + if (offset_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, offset_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, pageToken_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, orderBy_); + } + if (diversificationLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + .DIVERSIFICATION_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, diversificationLevel_); + } + if (customRankingInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCustomRankingInfo()); + } + if (disableKeywordMatch_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, disableKeywordMatch_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsRequest other = + (com.google.cloud.talent.v4beta1.SearchJobsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && searchMode_ == other.searchMode_; + result = result && (hasRequestMetadata() == other.hasRequestMetadata()); + if (hasRequestMetadata()) { + result = result && getRequestMetadata().equals(other.getRequestMetadata()); + } + result = result && (hasJobQuery() == other.hasJobQuery()); + if (hasJobQuery()) { + result = result && getJobQuery().equals(other.getJobQuery()); + } + result = result && (getEnableBroadening() == other.getEnableBroadening()); + result = result && (getRequirePreciseResultSize() == other.getRequirePreciseResultSize()); + result = result && getHistogramQueriesList().equals(other.getHistogramQueriesList()); + result = result && jobView_ == other.jobView_; + result = result && (getOffset() == other.getOffset()); + result = result && (getPageSize() == other.getPageSize()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && getOrderBy().equals(other.getOrderBy()); + result = result && diversificationLevel_ == other.diversificationLevel_; + result = result && (hasCustomRankingInfo() == other.hasCustomRankingInfo()); + if (hasCustomRankingInfo()) { + result = result && getCustomRankingInfo().equals(other.getCustomRankingInfo()); + } + result = result && (getDisableKeywordMatch() == other.getDisableKeywordMatch()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SEARCH_MODE_FIELD_NUMBER; + hash = (53 * hash) + searchMode_; + if (hasRequestMetadata()) { + hash = (37 * hash) + REQUEST_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRequestMetadata().hashCode(); + } + if (hasJobQuery()) { + hash = (37 * hash) + JOB_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getJobQuery().hashCode(); + } + hash = (37 * hash) + ENABLE_BROADENING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableBroadening()); + hash = (37 * hash) + REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequirePreciseResultSize()); + if (getHistogramQueriesCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueriesList().hashCode(); + } + hash = (37 * hash) + JOB_VIEW_FIELD_NUMBER; + hash = (53 * hash) + jobView_; + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + DIVERSIFICATION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + diversificationLevel_; + if (hasCustomRankingInfo()) { + hash = (37 * hash) + CUSTOM_RANKING_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomRankingInfo().hashCode(); + } + hash = (37 * hash) + DISABLE_KEYWORD_MATCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableKeywordMatch()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.SearchJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * The Request body of the `SearchJobs` call.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsRequest) + com.google.cloud.talent.v4beta1.SearchJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHistogramQueriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + searchMode_ = 0; + + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + if (jobQueryBuilder_ == null) { + jobQuery_ = null; + } else { + jobQuery_ = null; + jobQueryBuilder_ = null; + } + enableBroadening_ = false; + + requirePreciseResultSize_ = false; + + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + histogramQueriesBuilder_.clear(); + } + jobView_ = 0; + + offset_ = 0; + + pageSize_ = 0; + + pageToken_ = ""; + + orderBy_ = ""; + + diversificationLevel_ = 0; + + if (customRankingInfoBuilder_ == null) { + customRankingInfo_ = null; + } else { + customRankingInfo_ = null; + customRankingInfoBuilder_ = null; + } + disableKeywordMatch_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest build() { + com.google.cloud.talent.v4beta1.SearchJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsRequest result = + new com.google.cloud.talent.v4beta1.SearchJobsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.parent_ = parent_; + result.searchMode_ = searchMode_; + if (requestMetadataBuilder_ == null) { + result.requestMetadata_ = requestMetadata_; + } else { + result.requestMetadata_ = requestMetadataBuilder_.build(); + } + if (jobQueryBuilder_ == null) { + result.jobQuery_ = jobQuery_; + } else { + result.jobQuery_ = jobQueryBuilder_.build(); + } + result.enableBroadening_ = enableBroadening_; + result.requirePreciseResultSize_ = requirePreciseResultSize_; + if (histogramQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.histogramQueries_ = histogramQueries_; + } else { + result.histogramQueries_ = histogramQueriesBuilder_.build(); + } + result.jobView_ = jobView_; + result.offset_ = offset_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + result.diversificationLevel_ = diversificationLevel_; + if (customRankingInfoBuilder_ == null) { + result.customRankingInfo_ = customRankingInfo_; + } else { + result.customRankingInfo_ = customRankingInfoBuilder_.build(); + } + result.disableKeywordMatch_ = disableKeywordMatch_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchJobsRequest other) { + if (other == com.google.cloud.talent.v4beta1.SearchJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.searchMode_ != 0) { + setSearchModeValue(other.getSearchModeValue()); + } + if (other.hasRequestMetadata()) { + mergeRequestMetadata(other.getRequestMetadata()); + } + if (other.hasJobQuery()) { + mergeJobQuery(other.getJobQuery()); + } + if (other.getEnableBroadening() != false) { + setEnableBroadening(other.getEnableBroadening()); + } + if (other.getRequirePreciseResultSize() != false) { + setRequirePreciseResultSize(other.getRequirePreciseResultSize()); + } + if (histogramQueriesBuilder_ == null) { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueries_.isEmpty()) { + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureHistogramQueriesIsMutable(); + histogramQueries_.addAll(other.histogramQueries_); + } + onChanged(); + } + } else { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueriesBuilder_.isEmpty()) { + histogramQueriesBuilder_.dispose(); + histogramQueriesBuilder_ = null; + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000040); + histogramQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueriesFieldBuilder() + : null; + } else { + histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); + } + } + } + if (other.jobView_ != 0) { + setJobViewValue(other.getJobViewValue()); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.diversificationLevel_ != 0) { + setDiversificationLevelValue(other.getDiversificationLevelValue()); + } + if (other.hasCustomRankingInfo()) { + mergeCustomRankingInfo(other.getCustomRankingInfo()); + } + if (other.getDisableKeywordMatch() != false) { + setDisableKeywordMatch(other.getDisableKeywordMatch()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int searchMode_ = 0; + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public int getSearchModeValue() { + return searchMode_; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public Builder setSearchModeValue(int value) { + searchMode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode getSearchMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.valueOf(searchMode_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public Builder setSearchMode( + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode value) { + if (value == null) { + throw new NullPointerException(); + } + + searchMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public Builder clearSearchMode() { + + searchMode_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + requestMetadataBuilder_; + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public boolean hasRequestMetadata() { + return requestMetadataBuilder_ != null || requestMetadata_ != null; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + if (requestMetadataBuilder_ == null) { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } else { + return requestMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder setRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestMetadata_ = value; + onChanged(); + } else { + requestMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder setRequestMetadata( + com.google.cloud.talent.v4beta1.RequestMetadata.Builder builderForValue) { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = builderForValue.build(); + onChanged(); + } else { + requestMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder mergeRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (requestMetadata_ != null) { + requestMetadata_ = + com.google.cloud.talent.v4beta1.RequestMetadata.newBuilder(requestMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + requestMetadata_ = value; + } + onChanged(); + } else { + requestMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder clearRequestMetadata() { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + onChanged(); + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata.Builder getRequestMetadataBuilder() { + + onChanged(); + return getRequestMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + if (requestMetadataBuilder_ != null) { + return requestMetadataBuilder_.getMessageOrBuilder(); + } else { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + getRequestMetadataFieldBuilder() { + if (requestMetadataBuilder_ == null) { + requestMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder>( + getRequestMetadata(), getParentForChildren(), isClean()); + requestMetadata_ = null; + } + return requestMetadataBuilder_; + } + + private com.google.cloud.talent.v4beta1.JobQuery jobQuery_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobQuery, + com.google.cloud.talent.v4beta1.JobQuery.Builder, + com.google.cloud.talent.v4beta1.JobQueryOrBuilder> + jobQueryBuilder_; + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public boolean hasJobQuery() { + return jobQueryBuilder_ != null || jobQuery_ != null; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQuery getJobQuery() { + if (jobQueryBuilder_ == null) { + return jobQuery_ == null + ? com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance() + : jobQuery_; + } else { + return jobQueryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder setJobQuery(com.google.cloud.talent.v4beta1.JobQuery value) { + if (jobQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobQuery_ = value; + onChanged(); + } else { + jobQueryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder setJobQuery(com.google.cloud.talent.v4beta1.JobQuery.Builder builderForValue) { + if (jobQueryBuilder_ == null) { + jobQuery_ = builderForValue.build(); + onChanged(); + } else { + jobQueryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder mergeJobQuery(com.google.cloud.talent.v4beta1.JobQuery value) { + if (jobQueryBuilder_ == null) { + if (jobQuery_ != null) { + jobQuery_ = + com.google.cloud.talent.v4beta1.JobQuery.newBuilder(jobQuery_) + .mergeFrom(value) + .buildPartial(); + } else { + jobQuery_ = value; + } + onChanged(); + } else { + jobQueryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder clearJobQuery() { + if (jobQueryBuilder_ == null) { + jobQuery_ = null; + onChanged(); + } else { + jobQuery_ = null; + jobQueryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQuery.Builder getJobQueryBuilder() { + + onChanged(); + return getJobQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQueryOrBuilder getJobQueryOrBuilder() { + if (jobQueryBuilder_ != null) { + return jobQueryBuilder_.getMessageOrBuilder(); + } else { + return jobQuery_ == null + ? com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance() + : jobQuery_; + } + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobQuery, + com.google.cloud.talent.v4beta1.JobQuery.Builder, + com.google.cloud.talent.v4beta1.JobQueryOrBuilder> + getJobQueryFieldBuilder() { + if (jobQueryBuilder_ == null) { + jobQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobQuery, + com.google.cloud.talent.v4beta1.JobQuery.Builder, + com.google.cloud.talent.v4beta1.JobQueryOrBuilder>( + getJobQuery(), getParentForChildren(), isClean()); + jobQuery_ = null; + } + return jobQueryBuilder_; + } + + private boolean enableBroadening_; + /** + * + * + *
+     * Optional.
+     * Controls whether to broaden the search when it produces sparse results.
+     * Broadened queries append results to the end of the matching results
+     * list.
+     * Defaults to false.
+     * 
+ * + * bool enable_broadening = 5; + */ + public boolean getEnableBroadening() { + return enableBroadening_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to broaden the search when it produces sparse results.
+     * Broadened queries append results to the end of the matching results
+     * list.
+     * Defaults to false.
+     * 
+ * + * bool enable_broadening = 5; + */ + public Builder setEnableBroadening(boolean value) { + + enableBroadening_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to broaden the search when it produces sparse results.
+     * Broadened queries append results to the end of the matching results
+     * list.
+     * Defaults to false.
+     * 
+ * + * bool enable_broadening = 5; + */ + public Builder clearEnableBroadening() { + + enableBroadening_ = false; + onChanged(); + return this; + } + + private boolean requirePreciseResultSize_; + /** + * + * + *
+     * Optional.
+     * Controls if the search job request requires the return of a precise
+     * count of the first 300 results. Setting this to `true` ensures
+     * consistency in the number of results per page. Best practice is to set this
+     * value to true if a client allows users to jump directly to a
+     * non-sequential search results page.
+     * Enabling this flag may adversely impact performance.
+     * Defaults to false.
+     * 
+ * + * bool require_precise_result_size = 6; + */ + public boolean getRequirePreciseResultSize() { + return requirePreciseResultSize_; + } + /** + * + * + *
+     * Optional.
+     * Controls if the search job request requires the return of a precise
+     * count of the first 300 results. Setting this to `true` ensures
+     * consistency in the number of results per page. Best practice is to set this
+     * value to true if a client allows users to jump directly to a
+     * non-sequential search results page.
+     * Enabling this flag may adversely impact performance.
+     * Defaults to false.
+     * 
+ * + * bool require_precise_result_size = 6; + */ + public Builder setRequirePreciseResultSize(boolean value) { + + requirePreciseResultSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls if the search job request requires the return of a precise
+     * count of the first 300 results. Setting this to `true` ensures
+     * consistency in the number of results per page. Best practice is to set this
+     * value to true if a client allows users to jump directly to a
+     * non-sequential search results page.
+     * Enabling this flag may adversely impact performance.
+     * Defaults to false.
+     * 
+ * + * bool require_precise_result_size = 6; + */ + public Builder clearRequirePreciseResultSize() { + + requirePreciseResultSize_ = false; + onChanged(); + return this; + } + + private java.util.List histogramQueries_ = + java.util.Collections.emptyList(); + + private void ensureHistogramQueriesIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = + new java.util.ArrayList( + histogramQueries_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + histogramQueriesBuilder_; + + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesList() { + if (histogramQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueries_); + } else { + return histogramQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public int getHistogramQueriesCount() { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.size(); + } else { + return histogramQueriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries( + com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addAllHistogramQueries( + java.lang.Iterable values) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueries_); + onChanged(); + } else { + histogramQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder clearHistogramQueries() { + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + histogramQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder removeHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.remove(index); + onChanged(); + } else { + histogramQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + if (histogramQueriesBuilder_ != null) { + return histogramQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueries_); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder() { + return getHistogramQueriesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesBuilderList() { + return getHistogramQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + getHistogramQueriesFieldBuilder() { + if (histogramQueriesBuilder_ == null) { + histogramQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder>( + histogramQueries_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + histogramQueries_ = null; + } + return histogramQueriesBuilder_; + } + + private int jobView_ = 0; + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public Builder setJobViewValue(int value) { + jobView_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public Builder setJobView(com.google.cloud.talent.v4beta1.JobView value) { + if (value == null) { + throw new NullPointerException(); + } + + jobView_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public Builder clearJobView() { + + jobView_ = 0; + onChanged(); + return this; + } + + private int offset_; + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result
+     * location, amongst the jobs deemed by the API as relevant) in search
+     * results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+     * unset.
+     * For example, 0 means to  return results starting from the first matching
+     * job, and 10 means to return from the 11th job. This can be used for
+     * pagination, (for example, pageSize = 10 and offset = 10 means to return
+     * from the second page).
+     * 
+ * + * int32 offset = 9; + */ + public int getOffset() { + return offset_; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result
+     * location, amongst the jobs deemed by the API as relevant) in search
+     * results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+     * unset.
+     * For example, 0 means to  return results starting from the first matching
+     * job, and 10 means to return from the 11th job. This can be used for
+     * pagination, (for example, pageSize = 10 and offset = 10 means to return
+     * from the second page).
+     * 
+ * + * int32 offset = 9; + */ + public Builder setOffset(int value) { + + offset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result
+     * location, amongst the jobs deemed by the API as relevant) in search
+     * results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+     * unset.
+     * For example, 0 means to  return results starting from the first matching
+     * job, and 10 means to return from the 11th job. This can be used for
+     * pagination, (for example, pageSize = 10 and offset = 10 means to return
+     * from the second page).
+     * 
+ * + * int32 offset = 9; + */ + public Builder clearOffset() { + + offset_ = 0; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * A limit on the number of jobs returned in the search results.
+     * Increasing this value above the default value of 10 can increase search
+     * response time. The value can be between 1 and 100.
+     * 
+ * + * int32 page_size = 10; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of jobs returned in the search results.
+     * Increasing this value above the default value of 10 can increase search
+     * response time. The value can be between 1 and 100.
+     * 
+ * + * int32 page_size = 10; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of jobs returned in the search results.
+     * Increasing this value above the default value of 10 can increase search
+     * response time. The value can be between 1 and 100.
+     * 
+ * + * int32 page_size = 10; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private int diversificationLevel_ = 0; + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public int getDiversificationLevelValue() { + return diversificationLevel_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public Builder setDiversificationLevelValue(int value) { + diversificationLevel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + getDiversificationLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.valueOf( + diversificationLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public Builder setDiversificationLevel( + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + diversificationLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public Builder clearDiversificationLevel() { + + diversificationLevel_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo customRankingInfo_ = + null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder> + customRankingInfoBuilder_; + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public boolean hasCustomRankingInfo() { + return customRankingInfoBuilder_ != null || customRankingInfo_ != null; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getCustomRankingInfo() { + if (customRankingInfoBuilder_ == null) { + return customRankingInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance() + : customRankingInfo_; + } else { + return customRankingInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder setCustomRankingInfo( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo value) { + if (customRankingInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customRankingInfo_ = value; + onChanged(); + } else { + customRankingInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder setCustomRankingInfo( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder + builderForValue) { + if (customRankingInfoBuilder_ == null) { + customRankingInfo_ = builderForValue.build(); + onChanged(); + } else { + customRankingInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder mergeCustomRankingInfo( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo value) { + if (customRankingInfoBuilder_ == null) { + if (customRankingInfo_ != null) { + customRankingInfo_ = + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.newBuilder( + customRankingInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + customRankingInfo_ = value; + } + onChanged(); + } else { + customRankingInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder clearCustomRankingInfo() { + if (customRankingInfoBuilder_ == null) { + customRankingInfo_ = null; + onChanged(); + } else { + customRankingInfo_ = null; + customRankingInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder + getCustomRankingInfoBuilder() { + + onChanged(); + return getCustomRankingInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder + getCustomRankingInfoOrBuilder() { + if (customRankingInfoBuilder_ != null) { + return customRankingInfoBuilder_.getMessageOrBuilder(); + } else { + return customRankingInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance() + : customRankingInfo_; + } + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder> + getCustomRankingInfoFieldBuilder() { + if (customRankingInfoBuilder_ == null) { + customRankingInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder>( + getCustomRankingInfo(), getParentForChildren(), isClean()); + customRankingInfo_ = null; + } + return customRankingInfoBuilder_; + } + + private boolean disableKeywordMatch_; + /** + * + * + *
+     * Optional.
+     * Controls whether to disable exact keyword match on [Job.job_title][],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description],
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+     * [Job.locations][0],
+     * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+     * disable keyword match is turned off, a keyword match returns jobs that do
+     * not match given category filters when there are matching keywords. For
+     * example, for the query "program manager," a result is returned even if the
+     * job posting has the title "software developer," which doesn't fall into
+     * "program manager" ontology, but does have "program manager" appearing in
+     * its description.
+     * For queries like "cloud" that don't contain title or
+     * location specific ontology, jobs with "cloud" keyword matches are returned
+     * regardless of this flag's value.
+     * Please use [Company.keyword_searchable_custom_fields][] or
+     * [Company.keyword_searchable_custom_attributes][] if company specific
+     * globally matched custom field/attribute string values is needed. Enabling
+     * keyword match improves recall of subsequent search requests.
+     * Defaults to false.
+     * 
+ * + * bool disable_keyword_match = 16; + */ + public boolean getDisableKeywordMatch() { + return disableKeywordMatch_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to disable exact keyword match on [Job.job_title][],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description],
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+     * [Job.locations][0],
+     * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+     * disable keyword match is turned off, a keyword match returns jobs that do
+     * not match given category filters when there are matching keywords. For
+     * example, for the query "program manager," a result is returned even if the
+     * job posting has the title "software developer," which doesn't fall into
+     * "program manager" ontology, but does have "program manager" appearing in
+     * its description.
+     * For queries like "cloud" that don't contain title or
+     * location specific ontology, jobs with "cloud" keyword matches are returned
+     * regardless of this flag's value.
+     * Please use [Company.keyword_searchable_custom_fields][] or
+     * [Company.keyword_searchable_custom_attributes][] if company specific
+     * globally matched custom field/attribute string values is needed. Enabling
+     * keyword match improves recall of subsequent search requests.
+     * Defaults to false.
+     * 
+ * + * bool disable_keyword_match = 16; + */ + public Builder setDisableKeywordMatch(boolean value) { + + disableKeywordMatch_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to disable exact keyword match on [Job.job_title][],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description],
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+     * [Job.locations][0],
+     * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+     * disable keyword match is turned off, a keyword match returns jobs that do
+     * not match given category filters when there are matching keywords. For
+     * example, for the query "program manager," a result is returned even if the
+     * job posting has the title "software developer," which doesn't fall into
+     * "program manager" ontology, but does have "program manager" appearing in
+     * its description.
+     * For queries like "cloud" that don't contain title or
+     * location specific ontology, jobs with "cloud" keyword matches are returned
+     * regardless of this flag's value.
+     * Please use [Company.keyword_searchable_custom_fields][] or
+     * [Company.keyword_searchable_custom_attributes][] if company specific
+     * globally matched custom field/attribute string values is needed. Enabling
+     * keyword match improves recall of subsequent search requests.
+     * Defaults to false.
+     * 
+ * + * bool disable_keyword_match = 16; + */ + public Builder clearDisableKeywordMatch() { + + disableKeywordMatch_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsRequest) + private static final com.google.cloud.talent.v4beta1.SearchJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsRequest(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchJobsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java new file mode 100644 index 000000000000..b87b6f341593 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java @@ -0,0 +1,977 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + int getSearchModeValue(); + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode getSearchMode(); + + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + boolean hasRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + boolean hasJobQuery(); + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + com.google.cloud.talent.v4beta1.JobQuery getJobQuery(); + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + com.google.cloud.talent.v4beta1.JobQueryOrBuilder getJobQueryOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Controls whether to broaden the search when it produces sparse results.
+   * Broadened queries append results to the end of the matching results
+   * list.
+   * Defaults to false.
+   * 
+ * + * bool enable_broadening = 5; + */ + boolean getEnableBroadening(); + + /** + * + * + *
+   * Optional.
+   * Controls if the search job request requires the return of a precise
+   * count of the first 300 results. Setting this to `true` ensures
+   * consistency in the number of results per page. Best practice is to set this
+   * value to true if a client allows users to jump directly to a
+   * non-sequential search results page.
+   * Enabling this flag may adversely impact performance.
+   * Defaults to false.
+   * 
+ * + * bool require_precise_result_size = 6; + */ + boolean getRequirePreciseResultSize(); + + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + java.util.List getHistogramQueriesList(); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + int getHistogramQueriesCount(); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + java.util.List + getHistogramQueriesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + int getJobViewValue(); + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + com.google.cloud.talent.v4beta1.JobView getJobView(); + + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result
+   * location, amongst the jobs deemed by the API as relevant) in search
+   * results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+   * unset.
+   * For example, 0 means to  return results starting from the first matching
+   * job, and 10 means to return from the 11th job. This can be used for
+   * pagination, (for example, pageSize = 10 and offset = 10 means to return
+   * from the second page).
+   * 
+ * + * int32 offset = 9; + */ + int getOffset(); + + /** + * + * + *
+   * Optional.
+   * A limit on the number of jobs returned in the search results.
+   * Increasing this value above the default value of 10 can increase search
+   * response time. The value can be between 1 and 100.
+   * 
+ * + * int32 page_size = 10; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + int getDiversificationLevelValue(); + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel getDiversificationLevel(); + + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + boolean hasCustomRankingInfo(); + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo getCustomRankingInfo(); + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder + getCustomRankingInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Controls whether to disable exact keyword match on [Job.job_title][],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description],
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+   * [Job.locations][0],
+   * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+   * disable keyword match is turned off, a keyword match returns jobs that do
+   * not match given category filters when there are matching keywords. For
+   * example, for the query "program manager," a result is returned even if the
+   * job posting has the title "software developer," which doesn't fall into
+   * "program manager" ontology, but does have "program manager" appearing in
+   * its description.
+   * For queries like "cloud" that don't contain title or
+   * location specific ontology, jobs with "cloud" keyword matches are returned
+   * regardless of this flag's value.
+   * Please use [Company.keyword_searchable_custom_fields][] or
+   * [Company.keyword_searchable_custom_attributes][] if company specific
+   * globally matched custom field/attribute string values is needed. Enabling
+   * keyword match improves recall of subsequent search requests.
+   * Defaults to false.
+   * 
+ * + * bool disable_keyword_match = 16; + */ + boolean getDisableKeywordMatch(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java new file mode 100644 index 000000000000..fcbc5f970298 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java @@ -0,0 +1,5880 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Response for SearchJob method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse} + */ +public final class SearchJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsResponse) + SearchJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchJobsResponse.newBuilder() to construct. + private SearchJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchJobsResponse() { + matchingJobs_ = java.util.Collections.emptyList(); + histogramQueryResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + locationFilters_ = java.util.Collections.emptyList(); + estimatedTotalSize_ = 0; + totalSize_ = 0; + broadenedQueryJobsCount_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchJobsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob>(); + mutable_bitField0_ |= 0x00000001; + } + matchingJobs_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.parser(), + extensionRegistry)); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + histogramQueryResults_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQueryResult.parser(), + extensionRegistry)); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + locationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry)); + break; + } + case 40: + { + estimatedTotalSize_ = input.readInt32(); + break; + } + case 48: + { + totalSize_ = input.readInt32(); + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + broadenedQueryJobsCount_ = input.readInt32(); + break; + } + case 74: + { + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder subBuilder = null; + if (spellCorrection_ != null) { + subBuilder = spellCorrection_.toBuilder(); + } + spellCorrection_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SpellingCorrection.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spellCorrection_); + spellCorrection_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = java.util.Collections.unmodifiableList(matchingJobs_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.Builder.class); + } + + public interface MatchingJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + boolean hasJob(); + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); + + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + java.lang.String getJobSummary(); + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + com.google.protobuf.ByteString getJobSummaryBytes(); + + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + java.lang.String getJobTitleSnippet(); + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + com.google.protobuf.ByteString getJobTitleSnippetBytes(); + + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + java.lang.String getSearchTextSnippet(); + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + com.google.protobuf.ByteString getSearchTextSnippetBytes(); + + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + boolean hasCommuteInfo(); + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo getCommuteInfo(); + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder + getCommuteInfoOrBuilder(); + } + /** + * + * + *
+   * Output only.
+   * Job entry with metadata inside
+   * [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob} + */ + public static final class MatchingJob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + MatchingJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchingJob.newBuilder() to construct. + private MatchingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MatchingJob() { + jobSummary_ = ""; + jobTitleSnippet_ = ""; + searchTextSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MatchingJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobSummary_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitleSnippet_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + searchTextSnippet_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder subBuilder = + null; + if (commuteInfo_ != null) { + subBuilder = commuteInfo_.toBuilder(); + } + commuteInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(commuteInfo_); + commuteInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int JOB_SUMMARY_FIELD_NUMBER = 2; + private volatile java.lang.Object jobSummary_; + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + public java.lang.String getJobSummary() { + java.lang.Object ref = jobSummary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobSummary_ = s; + return s; + } + } + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + public com.google.protobuf.ByteString getJobSummaryBytes() { + java.lang.Object ref = jobSummary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 3; + private volatile java.lang.Object jobTitleSnippet_; + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } + } + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_TEXT_SNIPPET_FIELD_NUMBER = 4; + private volatile java.lang.Object searchTextSnippet_; + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + public java.lang.String getSearchTextSnippet() { + java.lang.Object ref = searchTextSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTextSnippet_ = s; + return s; + } + } + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + public com.google.protobuf.ByteString getSearchTextSnippetBytes() { + java.lang.Object ref = searchTextSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchTextSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMUTE_INFO_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commuteInfo_; + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public boolean hasCommuteInfo() { + return commuteInfo_ != null; + } + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo getCommuteInfo() { + return commuteInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance() + : commuteInfo_; + } + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder + getCommuteInfoOrBuilder() { + return getCommuteInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (job_ != null) { + output.writeMessage(1, getJob()); + } + if (!getJobSummaryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobSummary_); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobTitleSnippet_); + } + if (!getSearchTextSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, searchTextSnippet_); + } + if (commuteInfo_ != null) { + output.writeMessage(5, getCommuteInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + if (!getJobSummaryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobSummary_); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobTitleSnippet_); + } + if (!getSearchTextSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, searchTextSnippet_); + } + if (commuteInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommuteInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob other = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) obj; + + boolean result = true; + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && getJobSummary().equals(other.getJobSummary()); + result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); + result = result && getSearchTextSnippet().equals(other.getSearchTextSnippet()); + result = result && (hasCommuteInfo() == other.hasCommuteInfo()); + if (hasCommuteInfo()) { + result = result && getCommuteInfo().equals(other.getCommuteInfo()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (37 * hash) + JOB_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getJobSummary().hashCode(); + hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleSnippet().hashCode(); + hash = (37 * hash) + SEARCH_TEXT_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSearchTextSnippet().hashCode(); + if (hasCommuteInfo()) { + hash = (37 * hash) + COMMUTE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCommuteInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Output only.
+     * Job entry with metadata inside
+     * [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse].
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + jobSummary_ = ""; + + jobTitleSnippet_ = ""; + + searchTextSnippet_ = ""; + + if (commuteInfoBuilder_ == null) { + commuteInfo_ = null; + } else { + commuteInfo_ = null; + commuteInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob build() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob result = + new com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + result.jobSummary_ = jobSummary_; + result.jobTitleSnippet_ = jobTitleSnippet_; + result.searchTextSnippet_ = searchTextSnippet_; + if (commuteInfoBuilder_ == null) { + result.commuteInfo_ = commuteInfo_; + } else { + result.commuteInfo_ = commuteInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob other) { + if (other + == com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance()) + return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (!other.getJobSummary().isEmpty()) { + jobSummary_ = other.jobSummary_; + onChanged(); + } + if (!other.getJobTitleSnippet().isEmpty()) { + jobTitleSnippet_ = other.jobTitleSnippet_; + onChanged(); + } + if (!other.getSearchTextSnippet().isEmpty()) { + searchTextSnippet_ = other.searchTextSnippet_; + onChanged(); + } + if (other.hasCommuteInfo()) { + mergeCommuteInfo(other.getCommuteInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_) + .mergeFrom(value) + .buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + private java.lang.Object jobSummary_ = ""; + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public java.lang.String getJobSummary() { + java.lang.Object ref = jobSummary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobSummary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public com.google.protobuf.ByteString getJobSummaryBytes() { + java.lang.Object ref = jobSummary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public Builder setJobSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobSummary_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public Builder clearJobSummary() { + + jobSummary_ = getDefaultInstance().getJobSummary(); + onChanged(); + return this; + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public Builder setJobSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobSummary_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobTitleSnippet_ = ""; + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public Builder setJobTitleSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public Builder clearJobTitleSnippet() { + + jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object searchTextSnippet_ = ""; + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public java.lang.String getSearchTextSnippet() { + java.lang.Object ref = searchTextSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTextSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public com.google.protobuf.ByteString getSearchTextSnippetBytes() { + java.lang.Object ref = searchTextSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchTextSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public Builder setSearchTextSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + searchTextSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public Builder clearSearchTextSnippet() { + + searchTextSnippet_ = getDefaultInstance().getSearchTextSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public Builder setSearchTextSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + searchTextSnippet_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commuteInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder> + commuteInfoBuilder_; + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public boolean hasCommuteInfo() { + return commuteInfoBuilder_ != null || commuteInfo_ != null; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo getCommuteInfo() { + if (commuteInfoBuilder_ == null) { + return commuteInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance() + : commuteInfo_; + } else { + return commuteInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder setCommuteInfo( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo value) { + if (commuteInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commuteInfo_ = value; + onChanged(); + } else { + commuteInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder setCommuteInfo( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder builderForValue) { + if (commuteInfoBuilder_ == null) { + commuteInfo_ = builderForValue.build(); + onChanged(); + } else { + commuteInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder mergeCommuteInfo( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo value) { + if (commuteInfoBuilder_ == null) { + if (commuteInfo_ != null) { + commuteInfo_ = + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.newBuilder( + commuteInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + commuteInfo_ = value; + } + onChanged(); + } else { + commuteInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder clearCommuteInfo() { + if (commuteInfoBuilder_ == null) { + commuteInfo_ = null; + onChanged(); + } else { + commuteInfo_ = null; + commuteInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder + getCommuteInfoBuilder() { + + onChanged(); + return getCommuteInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder + getCommuteInfoOrBuilder() { + if (commuteInfoBuilder_ != null) { + return commuteInfoBuilder_.getMessageOrBuilder(); + } else { + return commuteInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance() + : commuteInfo_; + } + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder> + getCommuteInfoFieldBuilder() { + if (commuteInfoBuilder_ == null) { + commuteInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder>( + getCommuteInfo(), getParentForChildren(), isClean()); + commuteInfo_ = null; + } + return commuteInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + private static final com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchingJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchingJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CommuteInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + boolean hasJobLocation(); + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + com.google.cloud.talent.v4beta1.Location getJobLocation(); + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getJobLocationOrBuilder(); + + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + boolean hasTravelDuration(); + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + com.google.protobuf.Duration getTravelDuration(); + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder(); + } + /** + * + * + *
+   * Output only.
+   * Commute details related to this job.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo} + */ + public static final class CommuteInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + CommuteInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommuteInfo.newBuilder() to construct. + private CommuteInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommuteInfo() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CommuteInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Location.Builder subBuilder = null; + if (jobLocation_ != null) { + subBuilder = jobLocation_.toBuilder(); + } + jobLocation_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobLocation_); + jobLocation_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (travelDuration_ != null) { + subBuilder = travelDuration_.toBuilder(); + } + travelDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(travelDuration_); + travelDuration_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder.class); + } + + public static final int JOB_LOCATION_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Location jobLocation_; + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public boolean hasJobLocation() { + return jobLocation_ != null; + } + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getJobLocation() { + return jobLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : jobLocation_; + } + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getJobLocationOrBuilder() { + return getJobLocation(); + } + + public static final int TRAVEL_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration travelDuration_; + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public boolean hasTravelDuration() { + return travelDuration_ != null; + } + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.Duration getTravelDuration() { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + return getTravelDuration(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (jobLocation_ != null) { + output.writeMessage(1, getJobLocation()); + } + if (travelDuration_ != null) { + output.writeMessage(2, getTravelDuration()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (jobLocation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJobLocation()); + } + if (travelDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTravelDuration()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo other = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) obj; + + boolean result = true; + result = result && (hasJobLocation() == other.hasJobLocation()); + if (hasJobLocation()) { + result = result && getJobLocation().equals(other.getJobLocation()); + } + result = result && (hasTravelDuration() == other.hasTravelDuration()); + if (hasTravelDuration()) { + result = result && getTravelDuration().equals(other.getTravelDuration()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJobLocation()) { + hash = (37 * hash) + JOB_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getJobLocation().hashCode(); + } + if (hasTravelDuration()) { + hash = (37 * hash) + TRAVEL_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getTravelDuration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Output only.
+     * Commute details related to this job.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobLocationBuilder_ == null) { + jobLocation_ = null; + } else { + jobLocation_ = null; + jobLocationBuilder_ = null; + } + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo build() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo result = + new com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo(this); + if (jobLocationBuilder_ == null) { + result.jobLocation_ = jobLocation_; + } else { + result.jobLocation_ = jobLocationBuilder_.build(); + } + if (travelDurationBuilder_ == null) { + result.travelDuration_ = travelDuration_; + } else { + result.travelDuration_ = travelDurationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo other) { + if (other + == com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance()) + return this; + if (other.hasJobLocation()) { + mergeJobLocation(other.getJobLocation()); + } + if (other.hasTravelDuration()) { + mergeTravelDuration(other.getTravelDuration()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Location jobLocation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + jobLocationBuilder_; + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public boolean hasJobLocation() { + return jobLocationBuilder_ != null || jobLocation_ != null; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getJobLocation() { + if (jobLocationBuilder_ == null) { + return jobLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : jobLocation_; + } else { + return jobLocationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder setJobLocation(com.google.cloud.talent.v4beta1.Location value) { + if (jobLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobLocation_ = value; + onChanged(); + } else { + jobLocationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder setJobLocation( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (jobLocationBuilder_ == null) { + jobLocation_ = builderForValue.build(); + onChanged(); + } else { + jobLocationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder mergeJobLocation(com.google.cloud.talent.v4beta1.Location value) { + if (jobLocationBuilder_ == null) { + if (jobLocation_ != null) { + jobLocation_ = + com.google.cloud.talent.v4beta1.Location.newBuilder(jobLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + jobLocation_ = value; + } + onChanged(); + } else { + jobLocationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder clearJobLocation() { + if (jobLocationBuilder_ == null) { + jobLocation_ = null; + onChanged(); + } else { + jobLocation_ = null; + jobLocationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getJobLocationBuilder() { + + onChanged(); + return getJobLocationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getJobLocationOrBuilder() { + if (jobLocationBuilder_ != null) { + return jobLocationBuilder_.getMessageOrBuilder(); + } else { + return jobLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : jobLocation_; + } + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getJobLocationFieldBuilder() { + if (jobLocationBuilder_ == null) { + jobLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + getJobLocation(), getParentForChildren(), isClean()); + jobLocation_ = null; + } + return jobLocationBuilder_; + } + + private com.google.protobuf.Duration travelDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + travelDurationBuilder_; + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public boolean hasTravelDuration() { + return travelDurationBuilder_ != null || travelDuration_ != null; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.Duration getTravelDuration() { + if (travelDurationBuilder_ == null) { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } else { + return travelDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder setTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + travelDuration_ = value; + onChanged(); + } else { + travelDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (travelDurationBuilder_ == null) { + travelDuration_ = builderForValue.build(); + onChanged(); + } else { + travelDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder mergeTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (travelDuration_ != null) { + travelDuration_ = + com.google.protobuf.Duration.newBuilder(travelDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + travelDuration_ = value; + } + onChanged(); + } else { + travelDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder clearTravelDuration() { + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + onChanged(); + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.Duration.Builder getTravelDurationBuilder() { + + onChanged(); + return getTravelDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + if (travelDurationBuilder_ != null) { + return travelDurationBuilder_.getMessageOrBuilder(); + } else { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTravelDurationFieldBuilder() { + if (travelDurationBuilder_ == null) { + travelDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTravelDuration(), getParentForChildren(), isClean()); + travelDuration_ = null; + } + return travelDurationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + private static final com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommuteInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommuteInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MATCHING_JOBS_FIELD_NUMBER = 1; + private java.util.List + matchingJobs_; + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List + getMatchingJobsList() { + return matchingJobs_; + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + getMatchingJobsOrBuilderList() { + return matchingJobs_; + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public int getMatchingJobsCount() { + return matchingJobs_.size(); + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob getMatchingJobs(int index) { + return matchingJobs_.get(index); + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder + getMatchingJobsOrBuilder(int index) { + return matchingJobs_.get(index); + } + + public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 2; + private java.util.List + histogramQueryResults_; + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public int getHistogramQueryResultsCount() { + return histogramQueryResults_.size(); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index) { + return histogramQueryResults_.get(index); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + return histogramQueryResults_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FILTERS_FIELD_NUMBER = 4; + private java.util.List locationFilters_; + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List getLocationFiltersList() { + return locationFilters_; + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + return locationFilters_; + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public int getLocationFiltersCount() { + return locationFilters_.size(); + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location getLocationFilters(int index) { + return locationFilters_.get(index); + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationFiltersOrBuilder(int index) { + return locationFilters_.get(index); + } + + public static final int ESTIMATED_TOTAL_SIZE_FIELD_NUMBER = 5; + private int estimatedTotalSize_; + /** + * + * + *
+   * An estimation of the number of jobs that match the specified query.
+   * This number isn't guaranteed to be accurate. For accurate results,
+   * see [enable_precise_result_size][].
+   * 
+ * + * int32 estimated_total_size = 5; + */ + public int getEstimatedTotalSize() { + return estimatedTotalSize_; + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 6; + private int totalSize_; + /** + * + * + *
+   * The precise result count, which is available only if the client set
+   * [enable_precise_result_size][] to `true`, or if the response
+   * is the last page of results. Otherwise, the value is `-1`.
+   * 
+ * + * int32 total_size = 6; + */ + public int getTotalSize() { + return totalSize_; + } + + public static final int METADATA_FIELD_NUMBER = 7; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int BROADENED_QUERY_JOBS_COUNT_FIELD_NUMBER = 8; + private int broadenedQueryJobsCount_; + /** + * + * + *
+   * If query broadening is enabled, we may append additional results from the
+   * broadened query. This number indicates how many of the jobs returned in the
+   * jobs field are from the broadened query. These results are always at the
+   * end of the jobs list. In particular, a value of 0, or if the field isn't
+   * set, all the jobs in the jobs list are from the original
+   * (without broadening) query. If this field is non-zero, subsequent requests
+   * with offset after this result set should contain all broadened results.
+   * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public int getBroadenedQueryJobsCount() { + return broadenedQueryJobsCount_; + } + + public static final int SPELL_CORRECTION_FIELD_NUMBER = 9; + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_; + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public boolean hasSpellCorrection() { + return spellCorrection_ != null; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder() { + return getSpellCorrection(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < matchingJobs_.size(); i++) { + output.writeMessage(1, matchingJobs_.get(i)); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + output.writeMessage(2, histogramQueryResults_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + output.writeMessage(4, locationFilters_.get(i)); + } + if (estimatedTotalSize_ != 0) { + output.writeInt32(5, estimatedTotalSize_); + } + if (totalSize_ != 0) { + output.writeInt32(6, totalSize_); + } + if (metadata_ != null) { + output.writeMessage(7, getMetadata()); + } + if (broadenedQueryJobsCount_ != 0) { + output.writeInt32(8, broadenedQueryJobsCount_); + } + if (spellCorrection_ != null) { + output.writeMessage(9, getSpellCorrection()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < matchingJobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchingJobs_.get(i)); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, histogramQueryResults_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, locationFilters_.get(i)); + } + if (estimatedTotalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, estimatedTotalSize_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, totalSize_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetadata()); + } + if (broadenedQueryJobsCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, broadenedQueryJobsCount_); + } + if (spellCorrection_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpellCorrection()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsResponse other = + (com.google.cloud.talent.v4beta1.SearchJobsResponse) obj; + + boolean result = true; + result = result && getMatchingJobsList().equals(other.getMatchingJobsList()); + result = result && getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && getLocationFiltersList().equals(other.getLocationFiltersList()); + result = result && (getEstimatedTotalSize() == other.getEstimatedTotalSize()); + result = result && (getTotalSize() == other.getTotalSize()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && (getBroadenedQueryJobsCount() == other.getBroadenedQueryJobsCount()); + result = result && (hasSpellCorrection() == other.hasSpellCorrection()); + if (hasSpellCorrection()) { + result = result && getSpellCorrection().equals(other.getSpellCorrection()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMatchingJobsCount() > 0) { + hash = (37 * hash) + MATCHING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getMatchingJobsList().hashCode(); + } + if (getHistogramQueryResultsCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueryResultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getLocationFiltersCount() > 0) { + hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getLocationFiltersList().hashCode(); + } + hash = (37 * hash) + ESTIMATED_TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedTotalSize(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + BROADENED_QUERY_JOBS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getBroadenedQueryJobsCount(); + if (hasSpellCorrection()) { + hash = (37 * hash) + SPELL_CORRECTION_FIELD_NUMBER; + hash = (53 * hash) + getSpellCorrection().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.SearchJobsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Response for SearchJob method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsResponse) + com.google.cloud.talent.v4beta1.SearchJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMatchingJobsFieldBuilder(); + getHistogramQueryResultsFieldBuilder(); + getLocationFiltersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (matchingJobsBuilder_ == null) { + matchingJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + matchingJobsBuilder_.clear(); + } + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + histogramQueryResultsBuilder_.clear(); + } + nextPageToken_ = ""; + + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + locationFiltersBuilder_.clear(); + } + estimatedTotalSize_ = 0; + + totalSize_ = 0; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + broadenedQueryJobsCount_ = 0; + + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse build() { + com.google.cloud.talent.v4beta1.SearchJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsResponse result = + new com.google.cloud.talent.v4beta1.SearchJobsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (matchingJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = java.util.Collections.unmodifiableList(matchingJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.matchingJobs_ = matchingJobs_; + } else { + result.matchingJobs_ = matchingJobsBuilder_.build(); + } + if (histogramQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.histogramQueryResults_ = histogramQueryResults_; + } else { + result.histogramQueryResults_ = histogramQueryResultsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (locationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.locationFilters_ = locationFilters_; + } else { + result.locationFilters_ = locationFiltersBuilder_.build(); + } + result.estimatedTotalSize_ = estimatedTotalSize_; + result.totalSize_ = totalSize_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.broadenedQueryJobsCount_ = broadenedQueryJobsCount_; + if (spellCorrectionBuilder_ == null) { + result.spellCorrection_ = spellCorrection_; + } else { + result.spellCorrection_ = spellCorrectionBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchJobsResponse other) { + if (other == com.google.cloud.talent.v4beta1.SearchJobsResponse.getDefaultInstance()) + return this; + if (matchingJobsBuilder_ == null) { + if (!other.matchingJobs_.isEmpty()) { + if (matchingJobs_.isEmpty()) { + matchingJobs_ = other.matchingJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMatchingJobsIsMutable(); + matchingJobs_.addAll(other.matchingJobs_); + } + onChanged(); + } + } else { + if (!other.matchingJobs_.isEmpty()) { + if (matchingJobsBuilder_.isEmpty()) { + matchingJobsBuilder_.dispose(); + matchingJobsBuilder_ = null; + matchingJobs_ = other.matchingJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + matchingJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMatchingJobsFieldBuilder() + : null; + } else { + matchingJobsBuilder_.addAllMessages(other.matchingJobs_); + } + } + } + if (histogramQueryResultsBuilder_ == null) { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResults_.isEmpty()) { + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.addAll(other.histogramQueryResults_); + } + onChanged(); + } + } else { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResultsBuilder_.isEmpty()) { + histogramQueryResultsBuilder_.dispose(); + histogramQueryResultsBuilder_ = null; + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000002); + histogramQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueryResultsFieldBuilder() + : null; + } else { + histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (locationFiltersBuilder_ == null) { + if (!other.locationFilters_.isEmpty()) { + if (locationFilters_.isEmpty()) { + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLocationFiltersIsMutable(); + locationFilters_.addAll(other.locationFilters_); + } + onChanged(); + } + } else { + if (!other.locationFilters_.isEmpty()) { + if (locationFiltersBuilder_.isEmpty()) { + locationFiltersBuilder_.dispose(); + locationFiltersBuilder_ = null; + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + locationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationFiltersFieldBuilder() + : null; + } else { + locationFiltersBuilder_.addAllMessages(other.locationFilters_); + } + } + } + if (other.getEstimatedTotalSize() != 0) { + setEstimatedTotalSize(other.getEstimatedTotalSize()); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.getBroadenedQueryJobsCount() != 0) { + setBroadenedQueryJobsCount(other.getBroadenedQueryJobsCount()); + } + if (other.hasSpellCorrection()) { + mergeSpellCorrection(other.getSpellCorrection()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchJobsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + matchingJobs_ = java.util.Collections.emptyList(); + + private void ensureMatchingJobsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = + new java.util.ArrayList( + matchingJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + matchingJobsBuilder_; + + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List + getMatchingJobsList() { + if (matchingJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchingJobs_); + } else { + return matchingJobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public int getMatchingJobsCount() { + if (matchingJobsBuilder_ == null) { + return matchingJobs_.size(); + } else { + return matchingJobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob getMatchingJobs( + int index) { + if (matchingJobsBuilder_ == null) { + return matchingJobs_.get(index); + } else { + return matchingJobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder setMatchingJobs( + int index, com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob value) { + if (matchingJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingJobsIsMutable(); + matchingJobs_.set(index, value); + onChanged(); + } else { + matchingJobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder setMatchingJobs( + int index, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder builderForValue) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + matchingJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob value) { + if (matchingJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingJobsIsMutable(); + matchingJobs_.add(value); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + int index, com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob value) { + if (matchingJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingJobsIsMutable(); + matchingJobs_.add(index, value); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder builderForValue) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.add(builderForValue.build()); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + int index, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder builderForValue) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addAllMatchingJobs( + java.lang.Iterable + values) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchingJobs_); + onChanged(); + } else { + matchingJobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder clearMatchingJobs() { + if (matchingJobsBuilder_ == null) { + matchingJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + matchingJobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder removeMatchingJobs(int index) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.remove(index); + onChanged(); + } else { + matchingJobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder + getMatchingJobsBuilder(int index) { + return getMatchingJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder + getMatchingJobsOrBuilder(int index) { + if (matchingJobsBuilder_ == null) { + return matchingJobs_.get(index); + } else { + return matchingJobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + getMatchingJobsOrBuilderList() { + if (matchingJobsBuilder_ != null) { + return matchingJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(matchingJobs_); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder + addMatchingJobsBuilder() { + return getMatchingJobsFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance()); + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder + addMatchingJobsBuilder(int index) { + return getMatchingJobsFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance()); + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List + getMatchingJobsBuilderList() { + return getMatchingJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + getMatchingJobsFieldBuilder() { + if (matchingJobsBuilder_ == null) { + matchingJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder>( + matchingJobs_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + matchingJobs_ = null; + } + return matchingJobsBuilder_; + } + + private java.util.List + histogramQueryResults_ = java.util.Collections.emptyList(); + + private void ensureHistogramQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = + new java.util.ArrayList( + histogramQueryResults_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + histogramQueryResultsBuilder_; + + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsList() { + if (histogramQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } else { + return histogramQueryResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public int getHistogramQueryResultsCount() { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.size(); + } else { + return histogramQueryResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults( + int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addAllHistogramQueryResults( + java.lang.Iterable values) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueryResults_); + onChanged(); + } else { + histogramQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder clearHistogramQueryResults() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + histogramQueryResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder removeHistogramQueryResults(int index) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.remove(index); + onChanged(); + } else { + histogramQueryResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + getHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + if (histogramQueryResultsBuilder_ != null) { + return histogramQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder() { + return getHistogramQueryResultsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsBuilderList() { + return getHistogramQueryResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + getHistogramQueryResultsFieldBuilder() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder>( + histogramQueryResults_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + histogramQueryResults_ = null; + } + return histogramQueryResultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private java.util.List locationFilters_ = + java.util.Collections.emptyList(); + + private void ensureLocationFiltersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = + new java.util.ArrayList(locationFilters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + locationFiltersBuilder_; + + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List getLocationFiltersList() { + if (locationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationFilters_); + } else { + return locationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public int getLocationFiltersCount() { + if (locationFiltersBuilder_ == null) { + return locationFilters_.size(); + } else { + return locationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location getLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder setLocationFilters(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, value); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters(com.google.cloud.talent.v4beta1.Location value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addAllLocationFilters( + java.lang.Iterable values) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_); + onChanged(); + } else { + locationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder clearLocationFilters() { + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + locationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder removeLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.remove(index); + onChanged(); + } else { + locationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getLocationFiltersBuilder(int index) { + return getLocationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationFiltersOrBuilder( + int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + if (locationFiltersBuilder_ != null) { + return locationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationFilters_); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationFiltersBuilder() { + return getLocationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationFiltersBuilder(int index) { + return getLocationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List + getLocationFiltersBuilderList() { + return getLocationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getLocationFiltersFieldBuilder() { + if (locationFiltersBuilder_ == null) { + locationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + locationFilters_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + locationFilters_ = null; + } + return locationFiltersBuilder_; + } + + private int estimatedTotalSize_; + /** + * + * + *
+     * An estimation of the number of jobs that match the specified query.
+     * This number isn't guaranteed to be accurate. For accurate results,
+     * see [enable_precise_result_size][].
+     * 
+ * + * int32 estimated_total_size = 5; + */ + public int getEstimatedTotalSize() { + return estimatedTotalSize_; + } + /** + * + * + *
+     * An estimation of the number of jobs that match the specified query.
+     * This number isn't guaranteed to be accurate. For accurate results,
+     * see [enable_precise_result_size][].
+     * 
+ * + * int32 estimated_total_size = 5; + */ + public Builder setEstimatedTotalSize(int value) { + + estimatedTotalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An estimation of the number of jobs that match the specified query.
+     * This number isn't guaranteed to be accurate. For accurate results,
+     * see [enable_precise_result_size][].
+     * 
+ * + * int32 estimated_total_size = 5; + */ + public Builder clearEstimatedTotalSize() { + + estimatedTotalSize_ = 0; + onChanged(); + return this; + } + + private int totalSize_; + /** + * + * + *
+     * The precise result count, which is available only if the client set
+     * [enable_precise_result_size][] to `true`, or if the response
+     * is the last page of results. Otherwise, the value is `-1`.
+     * 
+ * + * int32 total_size = 6; + */ + public int getTotalSize() { + return totalSize_; + } + /** + * + * + *
+     * The precise result count, which is available only if the client set
+     * [enable_precise_result_size][] to `true`, or if the response
+     * is the last page of results. Otherwise, the value is `-1`.
+     * 
+ * + * int32 total_size = 6; + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The precise result count, which is available only if the client set
+     * [enable_precise_result_size][] to `true`, or if the response
+     * is the last page of results. Otherwise, the value is `-1`.
+     * 
+ * + * int32 total_size = 6; + */ + public Builder clearTotalSize() { + + totalSize_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private int broadenedQueryJobsCount_; + /** + * + * + *
+     * If query broadening is enabled, we may append additional results from the
+     * broadened query. This number indicates how many of the jobs returned in the
+     * jobs field are from the broadened query. These results are always at the
+     * end of the jobs list. In particular, a value of 0, or if the field isn't
+     * set, all the jobs in the jobs list are from the original
+     * (without broadening) query. If this field is non-zero, subsequent requests
+     * with offset after this result set should contain all broadened results.
+     * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public int getBroadenedQueryJobsCount() { + return broadenedQueryJobsCount_; + } + /** + * + * + *
+     * If query broadening is enabled, we may append additional results from the
+     * broadened query. This number indicates how many of the jobs returned in the
+     * jobs field are from the broadened query. These results are always at the
+     * end of the jobs list. In particular, a value of 0, or if the field isn't
+     * set, all the jobs in the jobs list are from the original
+     * (without broadening) query. If this field is non-zero, subsequent requests
+     * with offset after this result set should contain all broadened results.
+     * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public Builder setBroadenedQueryJobsCount(int value) { + + broadenedQueryJobsCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If query broadening is enabled, we may append additional results from the
+     * broadened query. This number indicates how many of the jobs returned in the
+     * jobs field are from the broadened query. These results are always at the
+     * end of the jobs list. In particular, a value of 0, or if the field isn't
+     * set, all the jobs in the jobs list are from the original
+     * (without broadening) query. If this field is non-zero, subsequent requests
+     * with offset after this result set should contain all broadened results.
+     * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public Builder clearBroadenedQueryJobsCount() { + + broadenedQueryJobsCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + spellCorrectionBuilder_; + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public boolean hasSpellCorrection() { + return spellCorrectionBuilder_ != null || spellCorrection_ != null; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } else { + return spellCorrectionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder setSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spellCorrection_ = value; + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder setSpellCorrection( + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder builderForValue) { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = builderForValue.build(); + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder mergeSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (spellCorrection_ != null) { + spellCorrection_ = + com.google.cloud.talent.v4beta1.SpellingCorrection.newBuilder(spellCorrection_) + .mergeFrom(value) + .buildPartial(); + } else { + spellCorrection_ = value; + } + onChanged(); + } else { + spellCorrectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder clearSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + onChanged(); + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection.Builder getSpellCorrectionBuilder() { + + onChanged(); + return getSpellCorrectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder + getSpellCorrectionOrBuilder() { + if (spellCorrectionBuilder_ != null) { + return spellCorrectionBuilder_.getMessageOrBuilder(); + } else { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + getSpellCorrectionFieldBuilder() { + if (spellCorrectionBuilder_ == null) { + spellCorrectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder>( + getSpellCorrection(), getParentForChildren(), isClean()); + spellCorrection_ = null; + } + return spellCorrectionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse) + private static final com.google.cloud.talent.v4beta1.SearchJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsResponse(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchJobsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java new file mode 100644 index 000000000000..2265b8891c29 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java @@ -0,0 +1,331 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + java.util.List + getMatchingJobsList(); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob getMatchingJobs(int index); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + int getMatchingJobsCount(); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + java.util.List + getMatchingJobsOrBuilderList(); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder getMatchingJobsOrBuilder( + int index); + + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + java.util.List + getHistogramQueryResultsList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + int getHistogramQueryResultsCount(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + java.util.List + getHistogramQueryResultsOrBuilderList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( + int index); + + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + java.util.List getLocationFiltersList(); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + com.google.cloud.talent.v4beta1.Location getLocationFilters(int index); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + int getLocationFiltersCount(); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + java.util.List + getLocationFiltersOrBuilderList(); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationFiltersOrBuilder(int index); + + /** + * + * + *
+   * An estimation of the number of jobs that match the specified query.
+   * This number isn't guaranteed to be accurate. For accurate results,
+   * see [enable_precise_result_size][].
+   * 
+ * + * int32 estimated_total_size = 5; + */ + int getEstimatedTotalSize(); + + /** + * + * + *
+   * The precise result count, which is available only if the client set
+   * [enable_precise_result_size][] to `true`, or if the response
+   * is the last page of results. Otherwise, the value is `-1`.
+   * 
+ * + * int32 total_size = 6; + */ + int getTotalSize(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * If query broadening is enabled, we may append additional results from the
+   * broadened query. This number indicates how many of the jobs returned in the
+   * jobs field are from the broadened query. These results are always at the
+   * end of the jobs list. In particular, a value of 0, or if the field isn't
+   * set, all the jobs in the jobs list are from the original
+   * (without broadening) query. If this field is non-zero, subsequent requests
+   * with offset after this result set should contain all broadened results.
+   * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + int getBroadenedQueryJobsCount(); + + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + boolean hasSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java new file mode 100644 index 000000000000..f61d28144193 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java @@ -0,0 +1,4437 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The request body of the `SearchProfiles` call.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesRequest} + */ +public final class SearchProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchProfilesRequest) + SearchProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchProfilesRequest.newBuilder() to construct. + private SearchProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchProfilesRequest() { + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + offset_ = 0; + disableSpellCheck_ = false; + orderBy_ = ""; + caseSensitiveSort_ = false; + histogramQueries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchProfilesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.RequestMetadata.Builder subBuilder = null; + if (requestMetadata_ != null) { + subBuilder = requestMetadata_.toBuilder(); + } + requestMetadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.RequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestMetadata_); + requestMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ProfileQuery.Builder subBuilder = null; + if (profileQuery_ != null) { + subBuilder = profileQuery_.toBuilder(); + } + profileQuery_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ProfileQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profileQuery_); + profileQuery_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 48: + { + offset_ = input.readInt32(); + break; + } + case 56: + { + disableSpellCheck_ = input.readBool(); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 72: + { + caseSensitiveSort_ = input.readBool(); + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + histogramQueries_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQuery.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesRequest.class, + com.google.cloud.talent.v4beta1.SearchProfilesRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_; + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public boolean hasRequestMetadata() { + return requestMetadata_ != null; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + return getRequestMetadata(); + } + + public static final int PROFILE_QUERY_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ProfileQuery profileQuery_; + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public boolean hasProfileQuery() { + return profileQuery_ != null; + } + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery() { + return profileQuery_ == null + ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() + : profileQuery_; + } + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder() { + return getProfileQuery(); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * A limit on the number of profiles returned in the search results.
+   * A value above the default value 10 can increase search response time.
+   * The maximum value allowed is 100. Otherwise an error is thrown.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFSET_FIELD_NUMBER = 6; + private int offset_; + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result) in
+   * search results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+   * is unset.
+   * The maximum allowed value is 5000. Otherwise an error is thrown.
+   * For example, 0 means to search from the first profile, and 10 means to
+   * search from the 11th profile. This can be used for pagination, for example
+   * pageSize = 10 and offset = 10 means to search from the second page.
+   * 
+ * + * int32 offset = 6; + */ + public int getOffset() { + return offset_; + } + + public static final int DISABLE_SPELL_CHECK_FIELD_NUMBER = 7; + private boolean disableSpellCheck_; + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If `false`, the
+   * service attempts to correct a misspelled query.
+   * For example, "enginee" is corrected to "engineer".
+   * 
+ * + * bool disable_spell_check = 7; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 8; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_SORT_FIELD_NUMBER = 9; + private boolean caseSensitiveSort_; + /** + * + * + *
+   * Optional.
+   * When sort by field is based on alphabetical order, sort values case
+   * sensitively (based on ASCII) when the value is set to true. Default value
+   * is case in-sensitive sort (false).
+   * 
+ * + * bool case_sensitive_sort = 9; + */ + public boolean getCaseSensitiveSort() { + return caseSensitiveSort_; + } + + public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 10; + private java.util.List histogramQueries_; + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List getHistogramQueriesList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public int getHistogramQueriesCount() { + return histogramQueries_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + return histogramQueries_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + return histogramQueries_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (requestMetadata_ != null) { + output.writeMessage(2, getRequestMetadata()); + } + if (profileQuery_ != null) { + output.writeMessage(3, getProfileQuery()); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); + } + if (offset_ != 0) { + output.writeInt32(6, offset_); + } + if (disableSpellCheck_ != false) { + output.writeBool(7, disableSpellCheck_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, orderBy_); + } + if (caseSensitiveSort_ != false) { + output.writeBool(9, caseSensitiveSort_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + output.writeMessage(10, histogramQueries_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (requestMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata()); + } + if (profileQuery_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProfileQuery()); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); + } + if (offset_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, offset_); + } + if (disableSpellCheck_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, disableSpellCheck_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, orderBy_); + } + if (caseSensitiveSort_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, caseSensitiveSort_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, histogramQueries_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchProfilesRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchProfilesRequest other = + (com.google.cloud.talent.v4beta1.SearchProfilesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasRequestMetadata() == other.hasRequestMetadata()); + if (hasRequestMetadata()) { + result = result && getRequestMetadata().equals(other.getRequestMetadata()); + } + result = result && (hasProfileQuery() == other.hasProfileQuery()); + if (hasProfileQuery()) { + result = result && getProfileQuery().equals(other.getProfileQuery()); + } + result = result && (getPageSize() == other.getPageSize()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getOffset() == other.getOffset()); + result = result && (getDisableSpellCheck() == other.getDisableSpellCheck()); + result = result && getOrderBy().equals(other.getOrderBy()); + result = result && (getCaseSensitiveSort() == other.getCaseSensitiveSort()); + result = result && getHistogramQueriesList().equals(other.getHistogramQueriesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasRequestMetadata()) { + hash = (37 * hash) + REQUEST_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRequestMetadata().hashCode(); + } + if (hasProfileQuery()) { + hash = (37 * hash) + PROFILE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getProfileQuery().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + DISABLE_SPELL_CHECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSpellCheck()); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_SORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitiveSort()); + if (getHistogramQueriesCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.SearchProfilesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request body of the `SearchProfiles` call.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchProfilesRequest) + com.google.cloud.talent.v4beta1.SearchProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesRequest.class, + com.google.cloud.talent.v4beta1.SearchProfilesRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchProfilesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHistogramQueriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + if (profileQueryBuilder_ == null) { + profileQuery_ = null; + } else { + profileQuery_ = null; + profileQueryBuilder_ = null; + } + pageSize_ = 0; + + pageToken_ = ""; + + offset_ = 0; + + disableSpellCheck_ = false; + + orderBy_ = ""; + + caseSensitiveSort_ = false; + + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + histogramQueriesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest build() { + com.google.cloud.talent.v4beta1.SearchProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest buildPartial() { + com.google.cloud.talent.v4beta1.SearchProfilesRequest result = + new com.google.cloud.talent.v4beta1.SearchProfilesRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.parent_ = parent_; + if (requestMetadataBuilder_ == null) { + result.requestMetadata_ = requestMetadata_; + } else { + result.requestMetadata_ = requestMetadataBuilder_.build(); + } + if (profileQueryBuilder_ == null) { + result.profileQuery_ = profileQuery_; + } else { + result.profileQuery_ = profileQueryBuilder_.build(); + } + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.offset_ = offset_; + result.disableSpellCheck_ = disableSpellCheck_; + result.orderBy_ = orderBy_; + result.caseSensitiveSort_ = caseSensitiveSort_; + if (histogramQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.histogramQueries_ = histogramQueries_; + } else { + result.histogramQueries_ = histogramQueriesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchProfilesRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchProfilesRequest other) { + if (other == com.google.cloud.talent.v4beta1.SearchProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasRequestMetadata()) { + mergeRequestMetadata(other.getRequestMetadata()); + } + if (other.hasProfileQuery()) { + mergeProfileQuery(other.getProfileQuery()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (other.getDisableSpellCheck() != false) { + setDisableSpellCheck(other.getDisableSpellCheck()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.getCaseSensitiveSort() != false) { + setCaseSensitiveSort(other.getCaseSensitiveSort()); + } + if (histogramQueriesBuilder_ == null) { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueries_.isEmpty()) { + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureHistogramQueriesIsMutable(); + histogramQueries_.addAll(other.histogramQueries_); + } + onChanged(); + } + } else { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueriesBuilder_.isEmpty()) { + histogramQueriesBuilder_.dispose(); + histogramQueriesBuilder_ = null; + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000200); + histogramQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueriesFieldBuilder() + : null; + } else { + histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchProfilesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchProfilesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + requestMetadataBuilder_; + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public boolean hasRequestMetadata() { + return requestMetadataBuilder_ != null || requestMetadata_ != null; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + if (requestMetadataBuilder_ == null) { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } else { + return requestMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder setRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestMetadata_ = value; + onChanged(); + } else { + requestMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder setRequestMetadata( + com.google.cloud.talent.v4beta1.RequestMetadata.Builder builderForValue) { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = builderForValue.build(); + onChanged(); + } else { + requestMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder mergeRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (requestMetadata_ != null) { + requestMetadata_ = + com.google.cloud.talent.v4beta1.RequestMetadata.newBuilder(requestMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + requestMetadata_ = value; + } + onChanged(); + } else { + requestMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder clearRequestMetadata() { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + onChanged(); + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata.Builder getRequestMetadataBuilder() { + + onChanged(); + return getRequestMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + if (requestMetadataBuilder_ != null) { + return requestMetadataBuilder_.getMessageOrBuilder(); + } else { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + getRequestMetadataFieldBuilder() { + if (requestMetadataBuilder_ == null) { + requestMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder>( + getRequestMetadata(), getParentForChildren(), isClean()); + requestMetadata_ = null; + } + return requestMetadataBuilder_; + } + + private com.google.cloud.talent.v4beta1.ProfileQuery profileQuery_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileQuery, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder, + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder> + profileQueryBuilder_; + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public boolean hasProfileQuery() { + return profileQueryBuilder_ != null || profileQuery_ != null; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery() { + if (profileQueryBuilder_ == null) { + return profileQuery_ == null + ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() + : profileQuery_; + } else { + return profileQueryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder setProfileQuery(com.google.cloud.talent.v4beta1.ProfileQuery value) { + if (profileQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profileQuery_ = value; + onChanged(); + } else { + profileQueryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder setProfileQuery( + com.google.cloud.talent.v4beta1.ProfileQuery.Builder builderForValue) { + if (profileQueryBuilder_ == null) { + profileQuery_ = builderForValue.build(); + onChanged(); + } else { + profileQueryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder mergeProfileQuery(com.google.cloud.talent.v4beta1.ProfileQuery value) { + if (profileQueryBuilder_ == null) { + if (profileQuery_ != null) { + profileQuery_ = + com.google.cloud.talent.v4beta1.ProfileQuery.newBuilder(profileQuery_) + .mergeFrom(value) + .buildPartial(); + } else { + profileQuery_ = value; + } + onChanged(); + } else { + profileQueryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder clearProfileQuery() { + if (profileQueryBuilder_ == null) { + profileQuery_ = null; + onChanged(); + } else { + profileQuery_ = null; + profileQueryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQuery.Builder getProfileQueryBuilder() { + + onChanged(); + return getProfileQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder() { + if (profileQueryBuilder_ != null) { + return profileQueryBuilder_.getMessageOrBuilder(); + } else { + return profileQuery_ == null + ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() + : profileQuery_; + } + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileQuery, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder, + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder> + getProfileQueryFieldBuilder() { + if (profileQueryBuilder_ == null) { + profileQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileQuery, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder, + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder>( + getProfileQuery(), getParentForChildren(), isClean()); + profileQuery_ = null; + } + return profileQueryBuilder_; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * A limit on the number of profiles returned in the search results.
+     * A value above the default value 10 can increase search response time.
+     * The maximum value allowed is 100. Otherwise an error is thrown.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of profiles returned in the search results.
+     * A value above the default value 10 can increase search response time.
+     * The maximum value allowed is 100. Otherwise an error is thrown.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of profiles returned in the search results.
+     * A value above the default value 10 can increase search response time.
+     * The maximum value allowed is 100. Otherwise an error is thrown.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int offset_; + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result) in
+     * search results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+     * is unset.
+     * The maximum allowed value is 5000. Otherwise an error is thrown.
+     * For example, 0 means to search from the first profile, and 10 means to
+     * search from the 11th profile. This can be used for pagination, for example
+     * pageSize = 10 and offset = 10 means to search from the second page.
+     * 
+ * + * int32 offset = 6; + */ + public int getOffset() { + return offset_; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result) in
+     * search results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+     * is unset.
+     * The maximum allowed value is 5000. Otherwise an error is thrown.
+     * For example, 0 means to search from the first profile, and 10 means to
+     * search from the 11th profile. This can be used for pagination, for example
+     * pageSize = 10 and offset = 10 means to search from the second page.
+     * 
+ * + * int32 offset = 6; + */ + public Builder setOffset(int value) { + + offset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result) in
+     * search results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+     * is unset.
+     * The maximum allowed value is 5000. Otherwise an error is thrown.
+     * For example, 0 means to search from the first profile, and 10 means to
+     * search from the 11th profile. This can be used for pagination, for example
+     * pageSize = 10 and offset = 10 means to search from the second page.
+     * 
+ * + * int32 offset = 6; + */ + public Builder clearOffset() { + + offset_ = 0; + onChanged(); + return this; + } + + private boolean disableSpellCheck_; + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If `false`, the
+     * service attempts to correct a misspelled query.
+     * For example, "enginee" is corrected to "engineer".
+     * 
+ * + * bool disable_spell_check = 7; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If `false`, the
+     * service attempts to correct a misspelled query.
+     * For example, "enginee" is corrected to "engineer".
+     * 
+ * + * bool disable_spell_check = 7; + */ + public Builder setDisableSpellCheck(boolean value) { + + disableSpellCheck_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If `false`, the
+     * service attempts to correct a misspelled query.
+     * For example, "enginee" is corrected to "engineer".
+     * 
+ * + * bool disable_spell_check = 7; + */ + public Builder clearDisableSpellCheck() { + + disableSpellCheck_ = false; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private boolean caseSensitiveSort_; + /** + * + * + *
+     * Optional.
+     * When sort by field is based on alphabetical order, sort values case
+     * sensitively (based on ASCII) when the value is set to true. Default value
+     * is case in-sensitive sort (false).
+     * 
+ * + * bool case_sensitive_sort = 9; + */ + public boolean getCaseSensitiveSort() { + return caseSensitiveSort_; + } + /** + * + * + *
+     * Optional.
+     * When sort by field is based on alphabetical order, sort values case
+     * sensitively (based on ASCII) when the value is set to true. Default value
+     * is case in-sensitive sort (false).
+     * 
+ * + * bool case_sensitive_sort = 9; + */ + public Builder setCaseSensitiveSort(boolean value) { + + caseSensitiveSort_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * When sort by field is based on alphabetical order, sort values case
+     * sensitively (based on ASCII) when the value is set to true. Default value
+     * is case in-sensitive sort (false).
+     * 
+ * + * bool case_sensitive_sort = 9; + */ + public Builder clearCaseSensitiveSort() { + + caseSensitiveSort_ = false; + onChanged(); + return this; + } + + private java.util.List histogramQueries_ = + java.util.Collections.emptyList(); + + private void ensureHistogramQueriesIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = + new java.util.ArrayList( + histogramQueries_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + histogramQueriesBuilder_; + + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesList() { + if (histogramQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueries_); + } else { + return histogramQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public int getHistogramQueriesCount() { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.size(); + } else { + return histogramQueriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries( + com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addAllHistogramQueries( + java.lang.Iterable values) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueries_); + onChanged(); + } else { + histogramQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder clearHistogramQueries() { + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + histogramQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder removeHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.remove(index); + onChanged(); + } else { + histogramQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + if (histogramQueriesBuilder_ != null) { + return histogramQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueries_); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder() { + return getHistogramQueriesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesBuilderList() { + return getHistogramQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + getHistogramQueriesFieldBuilder() { + if (histogramQueriesBuilder_ == null) { + histogramQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder>( + histogramQueries_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + histogramQueries_ = null; + } + return histogramQueriesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchProfilesRequest) + private static final com.google.cloud.talent.v4beta1.SearchProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchProfilesRequest(); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchProfilesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..4a6216e74b90 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java @@ -0,0 +1,717 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + boolean hasRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + boolean hasProfileQuery(); + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery(); + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A limit on the number of profiles returned in the search results.
+   * A value above the default value 10 can increase search response time.
+   * The maximum value allowed is 100. Otherwise an error is thrown.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result) in
+   * search results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+   * is unset.
+   * The maximum allowed value is 5000. Otherwise an error is thrown.
+   * For example, 0 means to search from the first profile, and 10 means to
+   * search from the 11th profile. This can be used for pagination, for example
+   * pageSize = 10 and offset = 10 means to search from the second page.
+   * 
+ * + * int32 offset = 6; + */ + int getOffset(); + + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If `false`, the
+   * service attempts to correct a misspelled query.
+   * For example, "enginee" is corrected to "engineer".
+   * 
+ * + * bool disable_spell_check = 7; + */ + boolean getDisableSpellCheck(); + + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional.
+   * When sort by field is based on alphabetical order, sort values case
+   * sensitively (based on ASCII) when the value is set to true. Default value
+   * is case in-sensitive sort (false).
+   * 
+ * + * bool case_sensitive_sort = 9; + */ + boolean getCaseSensitiveSort(); + + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + java.util.List getHistogramQueriesList(); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + int getHistogramQueriesCount(); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + java.util.List + getHistogramQueriesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java new file mode 100644 index 000000000000..ccd7f336e1b5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java @@ -0,0 +1,2321 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Response of SearchProfiles method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesResponse} + */ +public final class SearchProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchProfilesResponse) + SearchProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchProfilesResponse.newBuilder() to construct. + private SearchProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchProfilesResponse() { + estimatedTotalSize_ = 0L; + nextPageToken_ = ""; + histogramQueryResults_ = java.util.Collections.emptyList(); + summarizedProfiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchProfilesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + estimatedTotalSize_ = input.readInt64(); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder subBuilder = null; + if (spellCorrection_ != null) { + subBuilder = spellCorrection_.toBuilder(); + } + spellCorrection_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SpellingCorrection.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spellCorrection_); + spellCorrection_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + histogramQueryResults_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQueryResult.parser(), + extensionRegistry)); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + summarizedProfiles_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.SummarizedProfile.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = java.util.Collections.unmodifiableList(summarizedProfiles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesResponse.class, + com.google.cloud.talent.v4beta1.SearchProfilesResponse.Builder.class); + } + + private int bitField0_; + public static final int ESTIMATED_TOTAL_SIZE_FIELD_NUMBER = 1; + private long estimatedTotalSize_; + /** + * + * + *
+   * An estimation of the number of profiles that match the specified query.
+   * This number isn't guaranteed to be accurate.
+   * 
+ * + * int64 estimated_total_size = 1; + */ + public long getEstimatedTotalSize() { + return estimatedTotalSize_; + } + + public static final int SPELL_CORRECTION_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_; + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public boolean hasSpellCorrection() { + return spellCorrection_ != null; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder() { + return getSpellCorrection(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 5; + private java.util.List + histogramQueryResults_; + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public int getHistogramQueryResultsCount() { + return histogramQueryResults_.size(); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index) { + return histogramQueryResults_.get(index); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + return histogramQueryResults_.get(index); + } + + public static final int SUMMARIZED_PROFILES_FIELD_NUMBER = 6; + private java.util.List summarizedProfiles_; + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesList() { + return summarizedProfiles_; + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesOrBuilderList() { + return summarizedProfiles_; + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public int getSummarizedProfilesCount() { + return summarizedProfiles_.size(); + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index) { + return summarizedProfiles_.get(index); + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder getSummarizedProfilesOrBuilder( + int index) { + return summarizedProfiles_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (estimatedTotalSize_ != 0L) { + output.writeInt64(1, estimatedTotalSize_); + } + if (spellCorrection_ != null) { + output.writeMessage(2, getSpellCorrection()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nextPageToken_); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + output.writeMessage(5, histogramQueryResults_.get(i)); + } + for (int i = 0; i < summarizedProfiles_.size(); i++) { + output.writeMessage(6, summarizedProfiles_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (estimatedTotalSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, estimatedTotalSize_); + } + if (spellCorrection_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpellCorrection()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nextPageToken_); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, histogramQueryResults_.get(i)); + } + for (int i = 0; i < summarizedProfiles_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, summarizedProfiles_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchProfilesResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchProfilesResponse other = + (com.google.cloud.talent.v4beta1.SearchProfilesResponse) obj; + + boolean result = true; + result = result && (getEstimatedTotalSize() == other.getEstimatedTotalSize()); + result = result && (hasSpellCorrection() == other.hasSpellCorrection()); + if (hasSpellCorrection()) { + result = result && getSpellCorrection().equals(other.getSpellCorrection()); + } + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList()); + result = result && getSummarizedProfilesList().equals(other.getSummarizedProfilesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ESTIMATED_TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedTotalSize()); + if (hasSpellCorrection()) { + hash = (37 * hash) + SPELL_CORRECTION_FIELD_NUMBER; + hash = (53 * hash) + getSpellCorrection().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getHistogramQueryResultsCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueryResultsList().hashCode(); + } + if (getSummarizedProfilesCount() > 0) { + hash = (37 * hash) + SUMMARIZED_PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getSummarizedProfilesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.SearchProfilesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response of SearchProfiles method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchProfilesResponse) + com.google.cloud.talent.v4beta1.SearchProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesResponse.class, + com.google.cloud.talent.v4beta1.SearchProfilesResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchProfilesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHistogramQueryResultsFieldBuilder(); + getSummarizedProfilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + estimatedTotalSize_ = 0L; + + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + nextPageToken_ = ""; + + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + histogramQueryResultsBuilder_.clear(); + } + if (summarizedProfilesBuilder_ == null) { + summarizedProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + summarizedProfilesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse build() { + com.google.cloud.talent.v4beta1.SearchProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse buildPartial() { + com.google.cloud.talent.v4beta1.SearchProfilesResponse result = + new com.google.cloud.talent.v4beta1.SearchProfilesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.estimatedTotalSize_ = estimatedTotalSize_; + if (spellCorrectionBuilder_ == null) { + result.spellCorrection_ = spellCorrection_; + } else { + result.spellCorrection_ = spellCorrectionBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (histogramQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.histogramQueryResults_ = histogramQueryResults_; + } else { + result.histogramQueryResults_ = histogramQueryResultsBuilder_.build(); + } + if (summarizedProfilesBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = java.util.Collections.unmodifiableList(summarizedProfiles_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.summarizedProfiles_ = summarizedProfiles_; + } else { + result.summarizedProfiles_ = summarizedProfilesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchProfilesResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchProfilesResponse other) { + if (other == com.google.cloud.talent.v4beta1.SearchProfilesResponse.getDefaultInstance()) + return this; + if (other.getEstimatedTotalSize() != 0L) { + setEstimatedTotalSize(other.getEstimatedTotalSize()); + } + if (other.hasSpellCorrection()) { + mergeSpellCorrection(other.getSpellCorrection()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (histogramQueryResultsBuilder_ == null) { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResults_.isEmpty()) { + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.addAll(other.histogramQueryResults_); + } + onChanged(); + } + } else { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResultsBuilder_.isEmpty()) { + histogramQueryResultsBuilder_.dispose(); + histogramQueryResultsBuilder_ = null; + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000010); + histogramQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueryResultsFieldBuilder() + : null; + } else { + histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); + } + } + } + if (summarizedProfilesBuilder_ == null) { + if (!other.summarizedProfiles_.isEmpty()) { + if (summarizedProfiles_.isEmpty()) { + summarizedProfiles_ = other.summarizedProfiles_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.addAll(other.summarizedProfiles_); + } + onChanged(); + } + } else { + if (!other.summarizedProfiles_.isEmpty()) { + if (summarizedProfilesBuilder_.isEmpty()) { + summarizedProfilesBuilder_.dispose(); + summarizedProfilesBuilder_ = null; + summarizedProfiles_ = other.summarizedProfiles_; + bitField0_ = (bitField0_ & ~0x00000020); + summarizedProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSummarizedProfilesFieldBuilder() + : null; + } else { + summarizedProfilesBuilder_.addAllMessages(other.summarizedProfiles_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SearchProfilesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchProfilesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long estimatedTotalSize_; + /** + * + * + *
+     * An estimation of the number of profiles that match the specified query.
+     * This number isn't guaranteed to be accurate.
+     * 
+ * + * int64 estimated_total_size = 1; + */ + public long getEstimatedTotalSize() { + return estimatedTotalSize_; + } + /** + * + * + *
+     * An estimation of the number of profiles that match the specified query.
+     * This number isn't guaranteed to be accurate.
+     * 
+ * + * int64 estimated_total_size = 1; + */ + public Builder setEstimatedTotalSize(long value) { + + estimatedTotalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An estimation of the number of profiles that match the specified query.
+     * This number isn't guaranteed to be accurate.
+     * 
+ * + * int64 estimated_total_size = 1; + */ + public Builder clearEstimatedTotalSize() { + + estimatedTotalSize_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + spellCorrectionBuilder_; + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public boolean hasSpellCorrection() { + return spellCorrectionBuilder_ != null || spellCorrection_ != null; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } else { + return spellCorrectionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder setSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spellCorrection_ = value; + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder setSpellCorrection( + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder builderForValue) { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = builderForValue.build(); + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder mergeSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (spellCorrection_ != null) { + spellCorrection_ = + com.google.cloud.talent.v4beta1.SpellingCorrection.newBuilder(spellCorrection_) + .mergeFrom(value) + .buildPartial(); + } else { + spellCorrection_ = value; + } + onChanged(); + } else { + spellCorrectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder clearSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + onChanged(); + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection.Builder getSpellCorrectionBuilder() { + + onChanged(); + return getSpellCorrectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder + getSpellCorrectionOrBuilder() { + if (spellCorrectionBuilder_ != null) { + return spellCorrectionBuilder_.getMessageOrBuilder(); + } else { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + getSpellCorrectionFieldBuilder() { + if (spellCorrectionBuilder_ == null) { + spellCorrectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder>( + getSpellCorrection(), getParentForChildren(), isClean()); + spellCorrection_ = null; + } + return spellCorrectionBuilder_; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private java.util.List + histogramQueryResults_ = java.util.Collections.emptyList(); + + private void ensureHistogramQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = + new java.util.ArrayList( + histogramQueryResults_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + histogramQueryResultsBuilder_; + + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsList() { + if (histogramQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } else { + return histogramQueryResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public int getHistogramQueryResultsCount() { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.size(); + } else { + return histogramQueryResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults( + int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addAllHistogramQueryResults( + java.lang.Iterable values) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueryResults_); + onChanged(); + } else { + histogramQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder clearHistogramQueryResults() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + histogramQueryResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder removeHistogramQueryResults(int index) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.remove(index); + onChanged(); + } else { + histogramQueryResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + getHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + if (histogramQueryResultsBuilder_ != null) { + return histogramQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder() { + return getHistogramQueryResultsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsBuilderList() { + return getHistogramQueryResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + getHistogramQueryResultsFieldBuilder() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder>( + histogramQueryResults_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + histogramQueryResults_ = null; + } + return histogramQueryResultsBuilder_; + } + + private java.util.List summarizedProfiles_ = + java.util.Collections.emptyList(); + + private void ensureSummarizedProfilesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = + new java.util.ArrayList( + summarizedProfiles_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SummarizedProfile, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder> + summarizedProfilesBuilder_; + + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesList() { + if (summarizedProfilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(summarizedProfiles_); + } else { + return summarizedProfilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public int getSummarizedProfilesCount() { + if (summarizedProfilesBuilder_ == null) { + return summarizedProfiles_.size(); + } else { + return summarizedProfilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index) { + if (summarizedProfilesBuilder_ == null) { + return summarizedProfiles_.get(index); + } else { + return summarizedProfilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder setSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile value) { + if (summarizedProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.set(index, value); + onChanged(); + } else { + summarizedProfilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder setSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.set(index, builderForValue.build()); + onChanged(); + } else { + summarizedProfilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles(com.google.cloud.talent.v4beta1.SummarizedProfile value) { + if (summarizedProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(value); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile value) { + if (summarizedProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(index, value); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles( + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(builderForValue.build()); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(index, builderForValue.build()); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addAllSummarizedProfiles( + java.lang.Iterable values) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, summarizedProfiles_); + onChanged(); + } else { + summarizedProfilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder clearSummarizedProfiles() { + if (summarizedProfilesBuilder_ == null) { + summarizedProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + summarizedProfilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder removeSummarizedProfiles(int index) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.remove(index); + onChanged(); + } else { + summarizedProfilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder getSummarizedProfilesBuilder( + int index) { + return getSummarizedProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder + getSummarizedProfilesOrBuilder(int index) { + if (summarizedProfilesBuilder_ == null) { + return summarizedProfiles_.get(index); + } else { + return summarizedProfilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesOrBuilderList() { + if (summarizedProfilesBuilder_ != null) { + return summarizedProfilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(summarizedProfiles_); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder + addSummarizedProfilesBuilder() { + return getSummarizedProfilesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()); + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder addSummarizedProfilesBuilder( + int index) { + return getSummarizedProfilesFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()); + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesBuilderList() { + return getSummarizedProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SummarizedProfile, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder> + getSummarizedProfilesFieldBuilder() { + if (summarizedProfilesBuilder_ == null) { + summarizedProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SummarizedProfile, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder>( + summarizedProfiles_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + summarizedProfiles_ = null; + } + return summarizedProfilesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchProfilesResponse) + private static final com.google.cloud.talent.v4beta1.SearchProfilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchProfilesResponse(); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchProfilesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..1997cd946d11 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java @@ -0,0 +1,232 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An estimation of the number of profiles that match the specified query.
+   * This number isn't guaranteed to be accurate.
+   * 
+ * + * int64 estimated_total_size = 1; + */ + long getEstimatedTotalSize(); + + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + boolean hasSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + java.util.List + getHistogramQueryResultsList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + int getHistogramQueryResultsCount(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + java.util.List + getHistogramQueryResultsOrBuilderList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( + int index); + + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + java.util.List getSummarizedProfilesList(); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + int getSummarizedProfilesCount(); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + java.util.List + getSummarizedProfilesOrBuilderList(); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder getSummarizedProfilesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java new file mode 100644 index 000000000000..bd92391b43db --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java @@ -0,0 +1,1617 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a skill of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Skill} + */ +public final class Skill extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Skill) + SkillOrBuilder { + private static final long serialVersionUID = 0L; + // Use Skill.newBuilder() to construct. + private Skill(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Skill() { + displayName_ = ""; + level_ = 0; + context_ = ""; + skillNameSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Skill( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (lastUsedDate_ != null) { + subBuilder = lastUsedDate_.toBuilder(); + } + lastUsedDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastUsedDate_); + lastUsedDate_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + level_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + context_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + skillNameSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Skill.class, + com.google.cloud.talent.v4beta1.Skill.Builder.class); + } + + /** + * + * + *
+   * Enum that represents the skill proficiency level.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel} + */ + public enum SkillProficiencyLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + */ + SKILL_PROFICIENCY_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Have a common knowledge or an understanding of basic techniques and
+     * concepts.
+     * 
+ * + * FUNDAMENTAL_AWARENESS = 1; + */ + FUNDAMENTAL_AWARENESS(1), + /** + * + * + *
+     * Have the level of experience gained in a classroom and/or experimental
+     * scenarios or as a trainee on-the-job.
+     * 
+ * + * NOVICE = 2; + */ + NOVICE(2), + /** + * + * + *
+     * Be able to successfully complete tasks in this skill as requested. Help
+     * from an expert may be required from time to time, but can usually perform
+     * skill independently.
+     * 
+ * + * INTERMEDIATE = 3; + */ + INTERMEDIATE(3), + /** + * + * + *
+     * Can perform the actions associated with this skill without assistance.
+     * 
+ * + * ADVANCED = 4; + */ + ADVANCED(4), + /** + * + * + *
+     * Known as an expert in this area.
+     * 
+ * + * EXPERT = 5; + */ + EXPERT(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + */ + public static final int SKILL_PROFICIENCY_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Have a common knowledge or an understanding of basic techniques and
+     * concepts.
+     * 
+ * + * FUNDAMENTAL_AWARENESS = 1; + */ + public static final int FUNDAMENTAL_AWARENESS_VALUE = 1; + /** + * + * + *
+     * Have the level of experience gained in a classroom and/or experimental
+     * scenarios or as a trainee on-the-job.
+     * 
+ * + * NOVICE = 2; + */ + public static final int NOVICE_VALUE = 2; + /** + * + * + *
+     * Be able to successfully complete tasks in this skill as requested. Help
+     * from an expert may be required from time to time, but can usually perform
+     * skill independently.
+     * 
+ * + * INTERMEDIATE = 3; + */ + public static final int INTERMEDIATE_VALUE = 3; + /** + * + * + *
+     * Can perform the actions associated with this skill without assistance.
+     * 
+ * + * ADVANCED = 4; + */ + public static final int ADVANCED_VALUE = 4; + /** + * + * + *
+     * Known as an expert in this area.
+     * 
+ * + * EXPERT = 5; + */ + public static final int EXPERT_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static SkillProficiencyLevel valueOf(int value) { + return forNumber(value); + } + + public static SkillProficiencyLevel forNumber(int value) { + switch (value) { + case 0: + return SKILL_PROFICIENCY_LEVEL_UNSPECIFIED; + case 1: + return FUNDAMENTAL_AWARENESS; + case 2: + return NOVICE; + case 3: + return INTERMEDIATE; + case 4: + return ADVANCED; + case 5: + return EXPERT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SkillProficiencyLevel findValueByNumber(int number) { + return SkillProficiencyLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Skill.getDescriptor().getEnumTypes().get(0); + } + + private static final SkillProficiencyLevel[] VALUES = values(); + + public static SkillProficiencyLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SkillProficiencyLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel) + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAST_USED_DATE_FIELD_NUMBER = 2; + private com.google.type.Date lastUsedDate_; + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + public boolean hasLastUsedDate() { + return lastUsedDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.Date getLastUsedDate() { + return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; + } + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.DateOrBuilder getLastUsedDateOrBuilder() { + return getLastUsedDate(); + } + + public static final int LEVEL_FIELD_NUMBER = 3; + private int level_; + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public int getLevelValue() { + return level_; + } + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel result = + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.valueOf(level_); + return result == null + ? com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.UNRECOGNIZED + : result; + } + + public static final int CONTEXT_FIELD_NUMBER = 4; + private volatile java.lang.Object context_; + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILL_NAME_SNIPPET_FIELD_NUMBER = 5; + private volatile java.lang.Object skillNameSnippet_; + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + public java.lang.String getSkillNameSnippet() { + java.lang.Object ref = skillNameSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skillNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + public com.google.protobuf.ByteString getSkillNameSnippetBytes() { + java.lang.Object ref = skillNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (lastUsedDate_ != null) { + output.writeMessage(2, getLastUsedDate()); + } + if (level_ + != com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel + .SKILL_PROFICIENCY_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, level_); + } + if (!getContextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, context_); + } + if (!getSkillNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, skillNameSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (lastUsedDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUsedDate()); + } + if (level_ + != com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel + .SKILL_PROFICIENCY_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, level_); + } + if (!getContextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, context_); + } + if (!getSkillNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, skillNameSnippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Skill)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Skill other = (com.google.cloud.talent.v4beta1.Skill) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && (hasLastUsedDate() == other.hasLastUsedDate()); + if (hasLastUsedDate()) { + result = result && getLastUsedDate().equals(other.getLastUsedDate()); + } + result = result && level_ == other.level_; + result = result && getContext().equals(other.getContext()); + result = result && getSkillNameSnippet().equals(other.getSkillNameSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasLastUsedDate()) { + hash = (37 * hash) + LAST_USED_DATE_FIELD_NUMBER; + hash = (53 * hash) + getLastUsedDate().hashCode(); + } + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + level_; + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + hash = (37 * hash) + SKILL_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSkillNameSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Skill parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Skill prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Resource that represents a skill of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Skill} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Skill) + com.google.cloud.talent.v4beta1.SkillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Skill.class, + com.google.cloud.talent.v4beta1.Skill.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Skill.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + if (lastUsedDateBuilder_ == null) { + lastUsedDate_ = null; + } else { + lastUsedDate_ = null; + lastUsedDateBuilder_ = null; + } + level_ = 0; + + context_ = ""; + + skillNameSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Skill.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill build() { + com.google.cloud.talent.v4beta1.Skill result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill buildPartial() { + com.google.cloud.talent.v4beta1.Skill result = + new com.google.cloud.talent.v4beta1.Skill(this); + result.displayName_ = displayName_; + if (lastUsedDateBuilder_ == null) { + result.lastUsedDate_ = lastUsedDate_; + } else { + result.lastUsedDate_ = lastUsedDateBuilder_.build(); + } + result.level_ = level_; + result.context_ = context_; + result.skillNameSnippet_ = skillNameSnippet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Skill) { + return mergeFrom((com.google.cloud.talent.v4beta1.Skill) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Skill other) { + if (other == com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasLastUsedDate()) { + mergeLastUsedDate(other.getLastUsedDate()); + } + if (other.level_ != 0) { + setLevelValue(other.getLevelValue()); + } + if (!other.getContext().isEmpty()) { + context_ = other.context_; + onChanged(); + } + if (!other.getSkillNameSnippet().isEmpty()) { + skillNameSnippet_ = other.skillNameSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Skill parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Skill) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.type.Date lastUsedDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + lastUsedDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public boolean hasLastUsedDate() { + return lastUsedDateBuilder_ != null || lastUsedDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.Date getLastUsedDate() { + if (lastUsedDateBuilder_ == null) { + return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; + } else { + return lastUsedDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder setLastUsedDate(com.google.type.Date value) { + if (lastUsedDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastUsedDate_ = value; + onChanged(); + } else { + lastUsedDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder setLastUsedDate(com.google.type.Date.Builder builderForValue) { + if (lastUsedDateBuilder_ == null) { + lastUsedDate_ = builderForValue.build(); + onChanged(); + } else { + lastUsedDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder mergeLastUsedDate(com.google.type.Date value) { + if (lastUsedDateBuilder_ == null) { + if (lastUsedDate_ != null) { + lastUsedDate_ = + com.google.type.Date.newBuilder(lastUsedDate_).mergeFrom(value).buildPartial(); + } else { + lastUsedDate_ = value; + } + onChanged(); + } else { + lastUsedDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder clearLastUsedDate() { + if (lastUsedDateBuilder_ == null) { + lastUsedDate_ = null; + onChanged(); + } else { + lastUsedDate_ = null; + lastUsedDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.Date.Builder getLastUsedDateBuilder() { + + onChanged(); + return getLastUsedDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.DateOrBuilder getLastUsedDateOrBuilder() { + if (lastUsedDateBuilder_ != null) { + return lastUsedDateBuilder_.getMessageOrBuilder(); + } else { + return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getLastUsedDateFieldBuilder() { + if (lastUsedDateBuilder_ == null) { + lastUsedDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getLastUsedDate(), getParentForChildren(), isClean()); + lastUsedDate_ = null; + } + return lastUsedDateBuilder_; + } + + private int level_ = 0; + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public int getLevelValue() { + return level_; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public Builder setLevelValue(int value) { + level_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel result = + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.valueOf(level_); + return result == null + ? com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public Builder setLevel(com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + level_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private java.lang.Object context_ = ""; + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public Builder setContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + context_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public Builder clearContext() { + + context_ = getDefaultInstance().getContext(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public Builder setContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + context_ = value; + onChanged(); + return this; + } + + private java.lang.Object skillNameSnippet_ = ""; + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public java.lang.String getSkillNameSnippet() { + java.lang.Object ref = skillNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skillNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public com.google.protobuf.ByteString getSkillNameSnippetBytes() { + java.lang.Object ref = skillNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public Builder setSkillNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + skillNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public Builder clearSkillNameSnippet() { + + skillNameSnippet_ = getDefaultInstance().getSkillNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public Builder setSkillNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + skillNameSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Skill) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Skill) + private static final com.google.cloud.talent.v4beta1.Skill DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Skill(); + } + + public static com.google.cloud.talent.v4beta1.Skill getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Skill parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Skill(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java new file mode 100644 index 000000000000..0111c872372c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java @@ -0,0 +1,694 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Skill filter of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SkillFilter} + */ +public final class SkillFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SkillFilter) + SkillFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SkillFilter.newBuilder() to construct. + private SkillFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SkillFilter() { + skill_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SkillFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + skill_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SkillFilter.class, + com.google.cloud.talent.v4beta1.SkillFilter.Builder.class); + } + + public static final int SKILL_FIELD_NUMBER = 1; + private volatile java.lang.Object skill_; + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + public java.lang.String getSkill() { + java.lang.Object ref = skill_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skill_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + public com.google.protobuf.ByteString getSkillBytes() { + java.lang.Object ref = skill_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skill_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSkillBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, skill_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSkillBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, skill_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SkillFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SkillFilter other = + (com.google.cloud.talent.v4beta1.SkillFilter) obj; + + boolean result = true; + result = result && getSkill().equals(other.getSkill()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SKILL_FIELD_NUMBER; + hash = (53 * hash) + getSkill().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.SkillFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Skill filter of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SkillFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SkillFilter) + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SkillFilter.class, + com.google.cloud.talent.v4beta1.SkillFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SkillFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + skill_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter build() { + com.google.cloud.talent.v4beta1.SkillFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter buildPartial() { + com.google.cloud.talent.v4beta1.SkillFilter result = + new com.google.cloud.talent.v4beta1.SkillFilter(this); + result.skill_ = skill_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SkillFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.SkillFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SkillFilter other) { + if (other == com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()) return this; + if (!other.getSkill().isEmpty()) { + skill_ = other.skill_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SkillFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.SkillFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object skill_ = ""; + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public java.lang.String getSkill() { + java.lang.Object ref = skill_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skill_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public com.google.protobuf.ByteString getSkillBytes() { + java.lang.Object ref = skill_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skill_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public Builder setSkill(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + skill_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public Builder clearSkill() { + + skill_ = getDefaultInstance().getSkill(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public Builder setSkillBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + skill_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SkillFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SkillFilter) + private static final com.google.cloud.talent.v4beta1.SkillFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SkillFilter(); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkillFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SkillFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java new file mode 100644 index 000000000000..db64683417e9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface SkillFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SkillFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + java.lang.String getSkill(); + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + com.google.protobuf.ByteString getSkillBytes(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java new file mode 100644 index 000000000000..c3be9c393e3c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface SkillOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Skill) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + boolean hasLastUsedDate(); + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + com.google.type.Date getLastUsedDate(); + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + com.google.type.DateOrBuilder getLastUsedDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + int getLevelValue(); + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel(); + + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + java.lang.String getContext(); + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + com.google.protobuf.ByteString getContextBytes(); + + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + java.lang.String getSkillNameSnippet(); + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + com.google.protobuf.ByteString getSkillNameSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java new file mode 100644 index 000000000000..295174ff8603 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java @@ -0,0 +1,877 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Spell check result.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SpellingCorrection} + */ +public final class SpellingCorrection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SpellingCorrection) + SpellingCorrectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpellingCorrection.newBuilder() to construct. + private SpellingCorrection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpellingCorrection() { + corrected_ = false; + correctedText_ = ""; + correctedHtml_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SpellingCorrection( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + corrected_ = input.readBool(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + correctedText_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + correctedHtml_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SpellingCorrection.class, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder.class); + } + + public static final int CORRECTED_FIELD_NUMBER = 1; + private boolean corrected_; + /** + * + * + *
+   * Indicates if the query was corrected by the spell checker.
+   * 
+ * + * bool corrected = 1; + */ + public boolean getCorrected() { + return corrected_; + } + + public static final int CORRECTED_TEXT_FIELD_NUMBER = 2; + private volatile java.lang.Object correctedText_; + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + public java.lang.String getCorrectedText() { + java.lang.Object ref = correctedText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedText_ = s; + return s; + } + } + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + public com.google.protobuf.ByteString getCorrectedTextBytes() { + java.lang.Object ref = correctedText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CORRECTED_HTML_FIELD_NUMBER = 3; + private volatile java.lang.Object correctedHtml_; + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + public java.lang.String getCorrectedHtml() { + java.lang.Object ref = correctedHtml_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedHtml_ = s; + return s; + } + } + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + public com.google.protobuf.ByteString getCorrectedHtmlBytes() { + java.lang.Object ref = correctedHtml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedHtml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (corrected_ != false) { + output.writeBool(1, corrected_); + } + if (!getCorrectedTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, correctedText_); + } + if (!getCorrectedHtmlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, correctedHtml_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (corrected_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, corrected_); + } + if (!getCorrectedTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, correctedText_); + } + if (!getCorrectedHtmlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, correctedHtml_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SpellingCorrection)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SpellingCorrection other = + (com.google.cloud.talent.v4beta1.SpellingCorrection) obj; + + boolean result = true; + result = result && (getCorrected() == other.getCorrected()); + result = result && getCorrectedText().equals(other.getCorrectedText()); + result = result && getCorrectedHtml().equals(other.getCorrectedHtml()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CORRECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCorrected()); + hash = (37 * hash) + CORRECTED_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getCorrectedText().hashCode(); + hash = (37 * hash) + CORRECTED_HTML_FIELD_NUMBER; + hash = (53 * hash) + getCorrectedHtml().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.SpellingCorrection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Spell check result.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SpellingCorrection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SpellingCorrection) + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SpellingCorrection.class, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SpellingCorrection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + corrected_ = false; + + correctedText_ = ""; + + correctedHtml_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection build() { + com.google.cloud.talent.v4beta1.SpellingCorrection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection buildPartial() { + com.google.cloud.talent.v4beta1.SpellingCorrection result = + new com.google.cloud.talent.v4beta1.SpellingCorrection(this); + result.corrected_ = corrected_; + result.correctedText_ = correctedText_; + result.correctedHtml_ = correctedHtml_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SpellingCorrection) { + return mergeFrom((com.google.cloud.talent.v4beta1.SpellingCorrection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SpellingCorrection other) { + if (other == com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance()) + return this; + if (other.getCorrected() != false) { + setCorrected(other.getCorrected()); + } + if (!other.getCorrectedText().isEmpty()) { + correctedText_ = other.correctedText_; + onChanged(); + } + if (!other.getCorrectedHtml().isEmpty()) { + correctedHtml_ = other.correctedHtml_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SpellingCorrection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SpellingCorrection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean corrected_; + /** + * + * + *
+     * Indicates if the query was corrected by the spell checker.
+     * 
+ * + * bool corrected = 1; + */ + public boolean getCorrected() { + return corrected_; + } + /** + * + * + *
+     * Indicates if the query was corrected by the spell checker.
+     * 
+ * + * bool corrected = 1; + */ + public Builder setCorrected(boolean value) { + + corrected_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates if the query was corrected by the spell checker.
+     * 
+ * + * bool corrected = 1; + */ + public Builder clearCorrected() { + + corrected_ = false; + onChanged(); + return this; + } + + private java.lang.Object correctedText_ = ""; + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public java.lang.String getCorrectedText() { + java.lang.Object ref = correctedText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public com.google.protobuf.ByteString getCorrectedTextBytes() { + java.lang.Object ref = correctedText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public Builder setCorrectedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + correctedText_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public Builder clearCorrectedText() { + + correctedText_ = getDefaultInstance().getCorrectedText(); + onChanged(); + return this; + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public Builder setCorrectedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + correctedText_ = value; + onChanged(); + return this; + } + + private java.lang.Object correctedHtml_ = ""; + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public java.lang.String getCorrectedHtml() { + java.lang.Object ref = correctedHtml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedHtml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public com.google.protobuf.ByteString getCorrectedHtmlBytes() { + java.lang.Object ref = correctedHtml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedHtml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public Builder setCorrectedHtml(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + correctedHtml_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public Builder clearCorrectedHtml() { + + correctedHtml_ = getDefaultInstance().getCorrectedHtml(); + onChanged(); + return this; + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public Builder setCorrectedHtmlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + correctedHtml_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SpellingCorrection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SpellingCorrection) + private static final com.google.cloud.talent.v4beta1.SpellingCorrection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SpellingCorrection(); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpellingCorrection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpellingCorrection(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java new file mode 100644 index 000000000000..849748d13d06 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface SpellingCorrectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SpellingCorrection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Indicates if the query was corrected by the spell checker.
+   * 
+ * + * bool corrected = 1; + */ + boolean getCorrected(); + + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + java.lang.String getCorrectedText(); + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + com.google.protobuf.ByteString getCorrectedTextBytes(); + + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + java.lang.String getCorrectedHtml(); + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + com.google.protobuf.ByteString getCorrectedHtmlBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java new file mode 100644 index 000000000000..8b9abde10575 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java @@ -0,0 +1,1320 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Profile entry with metadata inside
+ * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse].
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SummarizedProfile} + */ +public final class SummarizedProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SummarizedProfile) + SummarizedProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use SummarizedProfile.newBuilder() to construct. + private SummarizedProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SummarizedProfile() { + profiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SummarizedProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + profiles_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry)); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (summary_ != null) { + subBuilder = summary_.toBuilder(); + } + summary_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(summary_); + summary_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SummarizedProfile.class, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder.class); + } + + private int bitField0_; + public static final int PROFILES_FIELD_NUMBER = 1; + private java.util.List profiles_; + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + return profiles_; + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + return profiles_; + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + return profiles_.get(index); + } + + public static final int SUMMARY_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Profile summary_; + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public boolean hasSummary() { + return summary_ != null; + } + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getSummary() { + return summary_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : summary_; + } + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder() { + return getSummary(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < profiles_.size(); i++) { + output.writeMessage(1, profiles_.get(i)); + } + if (summary_ != null) { + output.writeMessage(2, getSummary()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < profiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, profiles_.get(i)); + } + if (summary_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummary()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.SummarizedProfile)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SummarizedProfile other = + (com.google.cloud.talent.v4beta1.SummarizedProfile) obj; + + boolean result = true; + result = result && getProfilesList().equals(other.getProfilesList()); + result = result && (hasSummary() == other.hasSummary()); + if (hasSummary()) { + result = result && getSummary().equals(other.getSummary()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProfilesCount() > 0) { + hash = (37 * hash) + PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProfilesList().hashCode(); + } + if (hasSummary()) { + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.SummarizedProfile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output only.
+   * Profile entry with metadata inside
+   * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SummarizedProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SummarizedProfile) + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SummarizedProfile.class, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SummarizedProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProfilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + profilesBuilder_.clear(); + } + if (summaryBuilder_ == null) { + summary_ = null; + } else { + summary_ = null; + summaryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile build() { + com.google.cloud.talent.v4beta1.SummarizedProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile buildPartial() { + com.google.cloud.talent.v4beta1.SummarizedProfile result = + new com.google.cloud.talent.v4beta1.SummarizedProfile(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (profilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.profiles_ = profiles_; + } else { + result.profiles_ = profilesBuilder_.build(); + } + if (summaryBuilder_ == null) { + result.summary_ = summary_; + } else { + result.summary_ = summaryBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SummarizedProfile) { + return mergeFrom((com.google.cloud.talent.v4beta1.SummarizedProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SummarizedProfile other) { + if (other == com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()) + return this; + if (profilesBuilder_ == null) { + if (!other.profiles_.isEmpty()) { + if (profiles_.isEmpty()) { + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProfilesIsMutable(); + profiles_.addAll(other.profiles_); + } + onChanged(); + } + } else { + if (!other.profiles_.isEmpty()) { + if (profilesBuilder_.isEmpty()) { + profilesBuilder_.dispose(); + profilesBuilder_ = null; + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + profilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProfilesFieldBuilder() + : null; + } else { + profilesBuilder_.addAllMessages(other.profiles_); + } + } + } + if (other.hasSummary()) { + mergeSummary(other.getSummary()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.SummarizedProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SummarizedProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List profiles_ = + java.util.Collections.emptyList(); + + private void ensureProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(profiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profilesBuilder_; + + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + if (profilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(profiles_); + } else { + return profilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + if (profilesBuilder_ == null) { + return profiles_.size(); + } else { + return profilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.set(index, value); + onChanged(); + } else { + profilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.set(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + } else { + profilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(index, value); + onChanged(); + } else { + profilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addAllProfiles( + java.lang.Iterable values) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); + onChanged(); + } else { + profilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder clearProfiles() { + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + profilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder removeProfiles(int index) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.remove(index); + onChanged(); + } else { + profilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfilesBuilder(int index) { + return getProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + if (profilesBuilder_ != null) { + return profilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(profiles_); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder() { + return getProfilesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder(int index) { + return getProfilesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesBuilderList() { + return getProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfilesFieldBuilder() { + if (profilesBuilder_ == null) { + profilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + profiles_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + profiles_ = null; + } + return profilesBuilder_; + } + + private com.google.cloud.talent.v4beta1.Profile summary_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + summaryBuilder_; + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public boolean hasSummary() { + return summaryBuilder_ != null || summary_ != null; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getSummary() { + if (summaryBuilder_ == null) { + return summary_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : summary_; + } else { + return summaryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder setSummary(com.google.cloud.talent.v4beta1.Profile value) { + if (summaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + onChanged(); + } else { + summaryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder setSummary(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (summaryBuilder_ == null) { + summary_ = builderForValue.build(); + onChanged(); + } else { + summaryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder mergeSummary(com.google.cloud.talent.v4beta1.Profile value) { + if (summaryBuilder_ == null) { + if (summary_ != null) { + summary_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(summary_) + .mergeFrom(value) + .buildPartial(); + } else { + summary_ = value; + } + onChanged(); + } else { + summaryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder clearSummary() { + if (summaryBuilder_ == null) { + summary_ = null; + onChanged(); + } else { + summary_ = null; + summaryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getSummaryBuilder() { + + onChanged(); + return getSummaryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder() { + if (summaryBuilder_ != null) { + return summaryBuilder_.getMessageOrBuilder(); + } else { + return summary_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : summary_; + } + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getSummaryFieldBuilder() { + if (summaryBuilder_ == null) { + summaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getSummary(), getParentForChildren(), isClean()); + summary_ = null; + } + return summaryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SummarizedProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SummarizedProfile) + private static final com.google.cloud.talent.v4beta1.SummarizedProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SummarizedProfile(); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarizedProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SummarizedProfile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java new file mode 100644 index 000000000000..9d32f0691e8b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SummarizedProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SummarizedProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List getProfilesList(); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfiles(int index); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + int getProfilesCount(); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List + getProfilesOrBuilderList(); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index); + + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + boolean hasSummary(); + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + com.google.cloud.talent.v4beta1.Profile getSummary(); + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java new file mode 100644 index 000000000000..6d0cb89c1256 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java @@ -0,0 +1,1126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A Tenant resource represents a tenant in the service. A tenant is a group or
+ * entity that shares common access with specific privileges for resources like
+ * profiles. Customer may create multiple tenants to provide data isolation for
+ * different groups.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Tenant} + */ +public final class Tenant extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Tenant) + TenantOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tenant.newBuilder() to construct. + private Tenant(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Tenant() { + name_ = ""; + externalId_ = ""; + usageType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Tenant( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + usageType_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Tenant.class, + com.google.cloud.talent.v4beta1.Tenant.Builder.class); + } + + /** + * + * + *
+   * Enum that represents how user data owned by the tenant is used.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Tenant.DataUsageType} + */ + public enum DataUsageType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * DATA_USAGE_TYPE_UNSPECIFIED = 0; + */ + DATA_USAGE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality across tenants.
+     * 
+ * + * AGGREGATED = 1; + */ + AGGREGATED(1), + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality for this tenant only.
+     * 
+ * + * ISOLATED = 2; + */ + ISOLATED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * DATA_USAGE_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_USAGE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality across tenants.
+     * 
+ * + * AGGREGATED = 1; + */ + public static final int AGGREGATED_VALUE = 1; + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality for this tenant only.
+     * 
+ * + * ISOLATED = 2; + */ + public static final int ISOLATED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DataUsageType valueOf(int value) { + return forNumber(value); + } + + public static DataUsageType forNumber(int value) { + switch (value) { + case 0: + return DATA_USAGE_TYPE_UNSPECIFIED; + case 1: + return AGGREGATED; + case 2: + return ISOLATED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataUsageType findValueByNumber(int number) { + return DataUsageType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Tenant.getDescriptor().getEnumTypes().get(0); + } + + private static final DataUsageType[] VALUES = values(); + + public static DataUsageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataUsageType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Tenant.DataUsageType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object externalId_; + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USAGE_TYPE_FIELD_NUMBER = 3; + private int usageType_; + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public int getUsageTypeValue() { + return usageType_; + } + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public com.google.cloud.talent.v4beta1.Tenant.DataUsageType getUsageType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Tenant.DataUsageType result = + com.google.cloud.talent.v4beta1.Tenant.DataUsageType.valueOf(usageType_); + return result == null + ? com.google.cloud.talent.v4beta1.Tenant.DataUsageType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalId_); + } + if (usageType_ + != com.google.cloud.talent.v4beta1.Tenant.DataUsageType.DATA_USAGE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, usageType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalId_); + } + if (usageType_ + != com.google.cloud.talent.v4beta1.Tenant.DataUsageType.DATA_USAGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, usageType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.Tenant)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Tenant other = (com.google.cloud.talent.v4beta1.Tenant) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getExternalId().equals(other.getExternalId()); + result = result && usageType_ == other.usageType_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + USAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + usageType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.Tenant prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Tenant resource represents a tenant in the service. A tenant is a group or
+   * entity that shares common access with specific privileges for resources like
+   * profiles. Customer may create multiple tenants to provide data isolation for
+   * different groups.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Tenant} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Tenant) + com.google.cloud.talent.v4beta1.TenantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Tenant.class, + com.google.cloud.talent.v4beta1.Tenant.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Tenant.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + externalId_ = ""; + + usageType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant build() { + com.google.cloud.talent.v4beta1.Tenant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant buildPartial() { + com.google.cloud.talent.v4beta1.Tenant result = + new com.google.cloud.talent.v4beta1.Tenant(this); + result.name_ = name_; + result.externalId_ = externalId_; + result.usageType_ = usageType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Tenant) { + return mergeFrom((com.google.cloud.talent.v4beta1.Tenant) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Tenant other) { + if (other == com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getExternalId().isEmpty()) { + externalId_ = other.externalId_; + onChanged(); + } + if (other.usageType_ != 0) { + setUsageTypeValue(other.getUsageTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.Tenant parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Tenant) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalId_ = ""; + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalId_ = value; + onChanged(); + return this; + } + + private int usageType_ = 0; + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public int getUsageTypeValue() { + return usageType_; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public Builder setUsageTypeValue(int value) { + usageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public com.google.cloud.talent.v4beta1.Tenant.DataUsageType getUsageType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Tenant.DataUsageType result = + com.google.cloud.talent.v4beta1.Tenant.DataUsageType.valueOf(usageType_); + return result == null + ? com.google.cloud.talent.v4beta1.Tenant.DataUsageType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public Builder setUsageType(com.google.cloud.talent.v4beta1.Tenant.DataUsageType value) { + if (value == null) { + throw new NullPointerException(); + } + + usageType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public Builder clearUsageType() { + + usageType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Tenant) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Tenant) + private static final com.google.cloud.talent.v4beta1.Tenant DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Tenant(); + } + + public static com.google.cloud.talent.v4beta1.Tenant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tenant parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Tenant(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java new file mode 100644 index 000000000000..30e378a8e100 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class TenantName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/tenants/{tenant}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String tenant; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private TenantName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + tenant = Preconditions.checkNotNull(builder.getTenant()); + } + + public static TenantName of(String project, String tenant) { + return newBuilder().setProject(project).setTenant(tenant).build(); + } + + public static String format(String project, String tenant) { + return newBuilder().setProject(project).setTenant(tenant).build().toString(); + } + + public static TenantName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "TenantName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("tenant")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (TenantName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("tenant", tenant); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "tenant", tenant); + } + + /** Builder for TenantName. */ + public static class Builder { + + private String project; + private String tenant; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTenant(String tenant) { + this.tenant = tenant; + return this; + } + + private Builder() {} + + private Builder(TenantName tenantName) { + project = tenantName.project; + tenant = tenantName.tenant; + } + + public TenantName build() { + return new TenantName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof TenantName) { + TenantName that = (TenantName) o; + return (this.project.equals(that.project)) && (this.tenant.equals(that.tenant)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= tenant.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java new file mode 100644 index 000000000000..1ae4690636c4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant.proto + +package com.google.cloud.talent.v4beta1; + +public interface TenantOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Tenant) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + java.lang.String getExternalId(); + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + int getUsageTypeValue(); + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + com.google.cloud.talent.v4beta1.Tenant.DataUsageType getUsageType(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java new file mode 100644 index 000000000000..6bc1236511a0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant.proto + +package com.google.cloud.talent.v4beta1; + +public final class TenantResourceProto { + private TenantResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/talent/v4beta1/tenant.pro" + + "to\022\033google.cloud.talent.v4beta1\032\034google/" + + "api/annotations.proto\032(google/cloud/tale" + + "nt/v4beta1/common.proto\"\302\001\n\006Tenant\022\014\n\004na" + + "me\030\001 \001(\t\022\023\n\013external_id\030\002 \001(\t\022E\n\nusage_t" + + "ype\030\003 \001(\01621.google.cloud.talent.v4beta1." + + "Tenant.DataUsageType\"N\n\rDataUsageType\022\037\n" + + "\033DATA_USAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nAGGREG" + + "ATED\020\001\022\014\n\010ISOLATED\020\002B\201\001\n\037com.google.clou" + + "d.talent.v4beta1B\023TenantResourceProtoP\001Z" + + "Agoogle.golang.org/genproto/googleapis/c" + + "loud/talent/v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Tenant_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Tenant_descriptor, + new java.lang.String[] { + "Name", "ExternalId", "UsageType", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java new file mode 100644 index 000000000000..d35e7cddcd15 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class TenantServiceProto { + private TenantServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/talent/v4beta1/tenant_ser" + + "vice.proto\022\033google.cloud.talent.v4beta1\032" + + "\034google/api/annotations.proto\032(google/cl" + + "oud/talent/v4beta1/common.proto\032(google/" + + "cloud/talent/v4beta1/tenant.proto\032\033googl" + + "e/protobuf/empty.proto\032 google/protobuf/" + + "field_mask.proto\"Z\n\023CreateTenantRequest\022" + + "\016\n\006parent\030\001 \001(\t\0223\n\006tenant\030\002 \001(\0132#.google" + + ".cloud.talent.v4beta1.Tenant\" \n\020GetTenan" + + "tRequest\022\014\n\004name\030\001 \001(\t\"{\n\023UpdateTenantRe" + + "quest\0223\n\006tenant\030\001 \001(\0132#.google.cloud.tal" + + "ent.v4beta1.Tenant\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"#\n\023DeleteTen" + + "antRequest\022\014\n\004name\030\001 \001(\t\"K\n\022ListTenantsR" + + "equest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001" + + "(\t\022\021\n\tpage_size\030\003 \001(\005\"\245\001\n\023ListTenantsRes" + + "ponse\0224\n\007tenants\030\001 \003(\0132#.google.cloud.ta" + + "lent.v4beta1.Tenant\022\027\n\017next_page_token\030\002" + + " \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.cloud.ta" + + "lent.v4beta1.ResponseMetadata2\202\006\n\rTenant" + + "Service\022\226\001\n\014CreateTenant\0220.google.cloud." + + "talent.v4beta1.CreateTenantRequest\032#.goo" + + "gle.cloud.talent.v4beta1.Tenant\"/\202\323\344\223\002)\"" + + "$/v4beta1/{parent=projects/*}/tenants:\001*" + + "\022\215\001\n\tGetTenant\022-.google.cloud.talent.v4b" + + "eta1.GetTenantRequest\032#.google.cloud.tal" + + "ent.v4beta1.Tenant\",\202\323\344\223\002&\022$/v4beta1/{na" + + "me=projects/*/tenants/*}\022\235\001\n\014UpdateTenan" + + "t\0220.google.cloud.talent.v4beta1.UpdateTe" + + "nantRequest\032#.google.cloud.talent.v4beta" + + "1.Tenant\"6\202\323\344\223\00202+/v4beta1/{tenant.name=" + + "projects/*/tenants/*}:\001*\022\206\001\n\014DeleteTenan" + + "t\0220.google.cloud.talent.v4beta1.DeleteTe" + + "nantRequest\032\026.google.protobuf.Empty\",\202\323\344" + + "\223\002&*$/v4beta1/{name=projects/*/tenants/*" + + "}\022\236\001\n\013ListTenants\022/.google.cloud.talent." + + "v4beta1.ListTenantsRequest\0320.google.clou" + + "d.talent.v4beta1.ListTenantsResponse\",\202\323" + + "\344\223\002&\022$/v4beta1/{parent=projects/*}/tenan" + + "tsB\200\001\n\037com.google.cloud.talent.v4beta1B\022" + + "TenantServiceProtoP\001ZAgoogle.golang.org/" + + "genproto/googleapis/cloud/talent/v4beta1" + + ";talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.TenantResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor, + new java.lang.String[] { + "Parent", "Tenant", + }); + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor, + new java.lang.String[] { + "Tenant", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor, + new java.lang.String[] { + "Tenants", "NextPageToken", "Metadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.TenantResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java new file mode 100644 index 000000000000..c71c81eb9b2e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java @@ -0,0 +1,1327 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on create timestamp or update timestamp of profiles.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimeFilter} + */ +public final class TimeFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.TimeFilter) + TimeFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeFilter.newBuilder() to construct. + private TimeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeFilter() { + timeField_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimeFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + timeField_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimeFilter.class, + com.google.cloud.talent.v4beta1.TimeFilter.Builder.class); + } + + /** + * + * + *
+   * Time fields can be used in TimeFilter.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.TimeFilter.TimeField} + */ + public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * TIME_FIELD_UNSPECIFIED = 0; + */ + TIME_FIELD_UNSPECIFIED(0), + /** + * + * + *
+     * Earliest profile create time.
+     * 
+ * + * CREATE_TIME = 1; + */ + CREATE_TIME(1), + /** + * + * + *
+     * Latest profile update time.
+     * 
+ * + * UPDATE_TIME = 2; + */ + UPDATE_TIME(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * TIME_FIELD_UNSPECIFIED = 0; + */ + public static final int TIME_FIELD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Earliest profile create time.
+     * 
+ * + * CREATE_TIME = 1; + */ + public static final int CREATE_TIME_VALUE = 1; + /** + * + * + *
+     * Latest profile update time.
+     * 
+ * + * UPDATE_TIME = 2; + */ + public static final int UPDATE_TIME_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TimeField valueOf(int value) { + return forNumber(value); + } + + public static TimeField forNumber(int value) { + switch (value) { + case 0: + return TIME_FIELD_UNSPECIFIED; + case 1: + return CREATE_TIME; + case 2: + return UPDATE_TIME; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TimeField findValueByNumber(int number) { + return TimeField.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TimeFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final TimeField[] VALUES = values(); + + public static TimeField valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TimeField(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.TimeFilter.TimeField) + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int TIME_FIELD_FIELD_NUMBER = 3; + private int timeField_; + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public int getTimeFieldValue() { + return timeField_; + } + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.TimeFilter.TimeField result = + com.google.cloud.talent.v4beta1.TimeFilter.TimeField.valueOf(timeField_); + return result == null + ? com.google.cloud.talent.v4beta1.TimeFilter.TimeField.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (timeField_ + != com.google.cloud.talent.v4beta1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, timeField_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (timeField_ + != com.google.cloud.talent.v4beta1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, timeField_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.TimeFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.TimeFilter other = + (com.google.cloud.talent.v4beta1.TimeFilter) obj; + + boolean result = true; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime().equals(other.getEndTime()); + } + result = result && timeField_ == other.timeField_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TIME_FIELD_FIELD_NUMBER; + hash = (53 * hash) + timeField_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.TimeFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Filter on create timestamp or update timestamp of profiles.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimeFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.TimeFilter) + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimeFilter.class, + com.google.cloud.talent.v4beta1.TimeFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.TimeFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + timeField_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter build() { + com.google.cloud.talent.v4beta1.TimeFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter buildPartial() { + com.google.cloud.talent.v4beta1.TimeFilter result = + new com.google.cloud.talent.v4beta1.TimeFilter(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.timeField_ = timeField_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.TimeFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.TimeFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.TimeFilter other) { + if (other == com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.timeField_ != 0) { + setTimeFieldValue(other.getTimeFieldValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.TimeFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.TimeFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int timeField_ = 0; + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public int getTimeFieldValue() { + return timeField_; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public Builder setTimeFieldValue(int value) { + timeField_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.TimeFilter.TimeField result = + com.google.cloud.talent.v4beta1.TimeFilter.TimeField.valueOf(timeField_); + return result == null + ? com.google.cloud.talent.v4beta1.TimeFilter.TimeField.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public Builder setTimeField(com.google.cloud.talent.v4beta1.TimeFilter.TimeField value) { + if (value == null) { + throw new NullPointerException(); + } + + timeField_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public Builder clearTimeField() { + + timeField_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.TimeFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.TimeFilter) + private static final com.google.cloud.talent.v4beta1.TimeFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.TimeFilter(); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java new file mode 100644 index 000000000000..676b7e48763c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface TimeFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.TimeFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + int getTimeFieldValue(); + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java new file mode 100644 index 000000000000..b6eccef24ff6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java @@ -0,0 +1,949 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Message representing a period of time between two timestamps.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimestampRange} + */ +public final class TimestampRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.TimestampRange) + TimestampRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimestampRange.newBuilder() to construct. + private TimestampRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimestampRange() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimestampRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimestampRange.class, + com.google.cloud.talent.v4beta1.TimestampRange.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.TimestampRange)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.TimestampRange other = + (com.google.cloud.talent.v4beta1.TimestampRange) obj; + + boolean result = true; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime().equals(other.getEndTime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.TimestampRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message representing a period of time between two timestamps.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimestampRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.TimestampRange) + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimestampRange.class, + com.google.cloud.talent.v4beta1.TimestampRange.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.TimestampRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange build() { + com.google.cloud.talent.v4beta1.TimestampRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange buildPartial() { + com.google.cloud.talent.v4beta1.TimestampRange result = + new com.google.cloud.talent.v4beta1.TimestampRange(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.TimestampRange) { + return mergeFrom((com.google.cloud.talent.v4beta1.TimestampRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.TimestampRange other) { + if (other == com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.TimestampRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.TimestampRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.TimestampRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.TimestampRange) + private static final com.google.cloud.talent.v4beta1.TimestampRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.TimestampRange(); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimestampRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimestampRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java new file mode 100644 index 000000000000..cbce38979c1d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface TimestampRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.TimestampRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java new file mode 100644 index 000000000000..7e3f8239c7cc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java @@ -0,0 +1,1084 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for updating a specified company.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateCompanyRequest} + */ +public final class UpdateCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateCompanyRequest) + UpdateCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCompanyRequest.newBuilder() to construct. + private UpdateCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCompanyRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Company.Builder subBuilder = null; + if (company_ != null) { + subBuilder = company_.toBuilder(); + } + company_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Company.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(company_); + company_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.class, + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.Builder.class); + } + + public static final int COMPANY_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Company company_; + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public boolean hasCompany() { + return company_ != null; + } + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + return getCompany(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (company_ != null) { + output.writeMessage(1, getCompany()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (company_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCompany()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.UpdateCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateCompanyRequest other = + (com.google.cloud.talent.v4beta1.UpdateCompanyRequest) obj; + + boolean result = true; + result = result && (hasCompany() == other.hasCompany()); + if (hasCompany()) { + result = result && getCompany().equals(other.getCompany()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCompany()) { + hash = (37 * hash) + COMPANY_FIELD_NUMBER; + hash = (53 * hash) + getCompany().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.UpdateCompanyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for updating a specified company.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateCompanyRequest) + com.google.cloud.talent.v4beta1.UpdateCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.class, + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (companyBuilder_ == null) { + company_ = null; + } else { + company_ = null; + companyBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest build() { + com.google.cloud.talent.v4beta1.UpdateCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateCompanyRequest result = + new com.google.cloud.talent.v4beta1.UpdateCompanyRequest(this); + if (companyBuilder_ == null) { + result.company_ = company_; + } else { + result.company_ = companyBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateCompanyRequest.getDefaultInstance()) + return this; + if (other.hasCompany()) { + mergeCompany(other.getCompany()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.UpdateCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.UpdateCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Company company_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + companyBuilder_; + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public boolean hasCompany() { + return companyBuilder_ != null || company_ != null; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + if (companyBuilder_ == null) { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } else { + return companyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + company_ = value; + onChanged(); + } else { + companyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companyBuilder_ == null) { + company_ = builderForValue.build(); + onChanged(); + } else { + companyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder mergeCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (company_ != null) { + company_ = + com.google.cloud.talent.v4beta1.Company.newBuilder(company_) + .mergeFrom(value) + .buildPartial(); + } else { + company_ = value; + } + onChanged(); + } else { + companyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder clearCompany() { + if (companyBuilder_ == null) { + company_ = null; + onChanged(); + } else { + company_ = null; + companyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder getCompanyBuilder() { + + onChanged(); + return getCompanyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + if (companyBuilder_ != null) { + return companyBuilder_.getMessageOrBuilder(); + } else { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + getCompanyFieldBuilder() { + if (companyBuilder_ == null) { + companyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder>( + getCompany(), getParentForChildren(), isClean()); + company_ = null; + } + return companyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateCompanyRequest) + private static final com.google.cloud.talent.v4beta1.UpdateCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCompanyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..21a3fcaa1dc0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java @@ -0,0 +1,102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + boolean hasCompany(); + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + com.google.cloud.talent.v4beta1.Company getCompany(); + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java new file mode 100644 index 000000000000..d86eb75536e7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java @@ -0,0 +1,1053 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Update job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateJobRequest} + */ +public final class UpdateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateJobRequest) + UpdateJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateJobRequest.newBuilder() to construct. + private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateJobRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateJobRequest.class, + com.google.cloud.talent.v4beta1.UpdateJobRequest.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (job_ != null) { + output.writeMessage(1, getJob()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.UpdateJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateJobRequest other = + (com.google.cloud.talent.v4beta1.UpdateJobRequest) obj; + + boolean result = true; + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.UpdateJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Update job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateJobRequest) + com.google.cloud.talent.v4beta1.UpdateJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateJobRequest.class, + com.google.cloud.talent.v4beta1.UpdateJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest build() { + com.google.cloud.talent.v4beta1.UpdateJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateJobRequest result = + new com.google.cloud.talent.v4beta1.UpdateJobRequest(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateJobRequest.getDefaultInstance()) + return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.UpdateJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.UpdateJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateJobRequest) + private static final com.google.cloud.talent.v4beta1.UpdateJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java new file mode 100644 index 000000000000..dc28ba2a0d01 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + boolean hasJob(); + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java new file mode 100644 index 000000000000..7275224ce203 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java @@ -0,0 +1,1288 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Update profile request
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateProfileRequest} + */ +public final class UpdateProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateProfileRequest) + UpdateProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateProfileRequest.newBuilder() to construct. + private UpdateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateProfileRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateProfileRequest.class, + com.google.cloud.talent.v4beta1.UpdateProfileRequest.Builder.class); + } + + public static final int PROFILE_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Profile profile_; + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + return getProfile(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (profile_ != null) { + output.writeMessage(1, getProfile()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfile()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.UpdateProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateProfileRequest other = + (com.google.cloud.talent.v4beta1.UpdateProfileRequest) obj; + + boolean result = true; + result = result && (hasProfile() == other.hasProfile()); + if (hasProfile()) { + result = result && getProfile().equals(other.getProfile()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.UpdateProfileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Update profile request
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateProfileRequest) + com.google.cloud.talent.v4beta1.UpdateProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateProfileRequest.class, + com.google.cloud.talent.v4beta1.UpdateProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest build() { + com.google.cloud.talent.v4beta1.UpdateProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateProfileRequest result = + new com.google.cloud.talent.v4beta1.UpdateProfileRequest(this); + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateProfileRequest.getDefaultInstance()) + return this; + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.UpdateProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.UpdateProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Profile profile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profileBuilder_; + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateProfileRequest) + private static final com.google.cloud.talent.v4beta1.UpdateProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateProfileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java new file mode 100644 index 000000000000..90c17d7b42f1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + boolean hasProfile(); + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfile(); + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java new file mode 100644 index 000000000000..ddfe537a588a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java @@ -0,0 +1,1082 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for updating a specified tenant.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateTenantRequest} + */ +public final class UpdateTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateTenantRequest) + UpdateTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTenantRequest.newBuilder() to construct. + private UpdateTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTenantRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Tenant.Builder subBuilder = null; + if (tenant_ != null) { + subBuilder = tenant_.toBuilder(); + } + tenant_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Tenant.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tenant_); + tenant_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateTenantRequest.class, + com.google.cloud.talent.v4beta1.UpdateTenantRequest.Builder.class); + } + + public static final int TENANT_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Tenant tenant_; + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public boolean hasTenant() { + return tenant_ != null; + } + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + return tenant_ == null ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() : tenant_; + } + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + return getTenant(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tenant_ != null) { + output.writeMessage(1, getTenant()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tenant_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTenant()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.UpdateTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateTenantRequest other = + (com.google.cloud.talent.v4beta1.UpdateTenantRequest) obj; + + boolean result = true; + result = result && (hasTenant() == other.hasTenant()); + if (hasTenant()) { + result = result && getTenant().equals(other.getTenant()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTenant()) { + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.UpdateTenantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for updating a specified tenant.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateTenantRequest) + com.google.cloud.talent.v4beta1.UpdateTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateTenantRequest.class, + com.google.cloud.talent.v4beta1.UpdateTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tenantBuilder_ == null) { + tenant_ = null; + } else { + tenant_ = null; + tenantBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest build() { + com.google.cloud.talent.v4beta1.UpdateTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateTenantRequest result = + new com.google.cloud.talent.v4beta1.UpdateTenantRequest(this); + if (tenantBuilder_ == null) { + result.tenant_ = tenant_; + } else { + result.tenant_ = tenantBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateTenantRequest.getDefaultInstance()) + return this; + if (other.hasTenant()) { + mergeTenant(other.getTenant()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.UpdateTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.UpdateTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Tenant tenant_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + tenantBuilder_; + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public boolean hasTenant() { + return tenantBuilder_ != null || tenant_ != null; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + if (tenantBuilder_ == null) { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } else { + return tenantBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + onChanged(); + } else { + tenantBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantBuilder_ == null) { + tenant_ = builderForValue.build(); + onChanged(); + } else { + tenantBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder mergeTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (tenant_ != null) { + tenant_ = + com.google.cloud.talent.v4beta1.Tenant.newBuilder(tenant_) + .mergeFrom(value) + .buildPartial(); + } else { + tenant_ = value; + } + onChanged(); + } else { + tenantBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder clearTenant() { + if (tenantBuilder_ == null) { + tenant_ = null; + onChanged(); + } else { + tenant_ = null; + tenantBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder getTenantBuilder() { + + onChanged(); + return getTenantFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + if (tenantBuilder_ != null) { + return tenantBuilder_.getMessageOrBuilder(); + } else { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + getTenantFieldBuilder() { + if (tenantBuilder_ == null) { + tenantBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder>( + getTenant(), getParentForChildren(), isClean()); + tenant_ = null; + } + return tenantBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateTenantRequest) + private static final com.google.cloud.talent.v4beta1.UpdateTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateTenantRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java new file mode 100644 index 000000000000..c3abcbb7b37d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java @@ -0,0 +1,102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + boolean hasTenant(); + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + com.google.cloud.talent.v4beta1.Tenant getTenant(); + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java new file mode 100644 index 000000000000..b33820b92094 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java @@ -0,0 +1,175 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents who has view access to the resource.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Visibility} + */ +public enum Visibility implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * VISIBILITY_UNSPECIFIED = 0; + */ + VISIBILITY_UNSPECIFIED(0), + /** + * + * + *
+   * The resource is only visible to the GCP account who owns it.
+   * 
+ * + * ACCOUNT_ONLY = 1; + */ + ACCOUNT_ONLY(1), + /** + * + * + *
+   * The resource is visible to the owner and may be visible to other
+   * applications and processes at Google.
+   * 
+ * + * SHARED_WITH_GOOGLE = 2; + */ + SHARED_WITH_GOOGLE(2), + /** + * + * + *
+   * The resource is visible to the owner and may be visible to all other API
+   * clients.
+   * 
+ * + * SHARED_WITH_PUBLIC = 3; + */ + SHARED_WITH_PUBLIC(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * VISIBILITY_UNSPECIFIED = 0; + */ + public static final int VISIBILITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The resource is only visible to the GCP account who owns it.
+   * 
+ * + * ACCOUNT_ONLY = 1; + */ + public static final int ACCOUNT_ONLY_VALUE = 1; + /** + * + * + *
+   * The resource is visible to the owner and may be visible to other
+   * applications and processes at Google.
+   * 
+ * + * SHARED_WITH_GOOGLE = 2; + */ + public static final int SHARED_WITH_GOOGLE_VALUE = 2; + /** + * + * + *
+   * The resource is visible to the owner and may be visible to all other API
+   * clients.
+   * 
+ * + * SHARED_WITH_PUBLIC = 3; + */ + public static final int SHARED_WITH_PUBLIC_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Visibility valueOf(int value) { + return forNumber(value); + } + + public static Visibility forNumber(int value) { + switch (value) { + case 0: + return VISIBILITY_UNSPECIFIED; + case 1: + return ACCOUNT_ONLY; + case 2: + return SHARED_WITH_GOOGLE; + case 3: + return SHARED_WITH_PUBLIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Visibility findValueByNumber(int number) { + return Visibility.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(7); + } + + private static final Visibility[] VALUES = values(); + + public static Visibility valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Visibility(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Visibility) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java new file mode 100644 index 000000000000..cf77e43fbb6b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java @@ -0,0 +1,1003 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Work experience filter.
+ * This filter is used to search for profiles with working experience length
+ * between
+ * [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience]
+ * and
+ * [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience].
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.WorkExperienceFilter} + */ +public final class WorkExperienceFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.WorkExperienceFilter) + WorkExperienceFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkExperienceFilter.newBuilder() to construct. + private WorkExperienceFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkExperienceFilter() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WorkExperienceFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (minExperience_ != null) { + subBuilder = minExperience_.toBuilder(); + } + minExperience_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minExperience_); + minExperience_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maxExperience_ != null) { + subBuilder = maxExperience_.toBuilder(); + } + maxExperience_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxExperience_); + maxExperience_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.class, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder.class); + } + + public static final int MIN_EXPERIENCE_FIELD_NUMBER = 1; + private com.google.protobuf.Duration minExperience_; + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public boolean hasMinExperience() { + return minExperience_ != null; + } + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.Duration getMinExperience() { + return minExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minExperience_; + } + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder() { + return getMinExperience(); + } + + public static final int MAX_EXPERIENCE_FIELD_NUMBER = 2; + private com.google.protobuf.Duration maxExperience_; + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public boolean hasMaxExperience() { + return maxExperience_ != null; + } + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.Duration getMaxExperience() { + return maxExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxExperience_; + } + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder() { + return getMaxExperience(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (minExperience_ != null) { + output.writeMessage(1, getMinExperience()); + } + if (maxExperience_ != null) { + output.writeMessage(2, getMaxExperience()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minExperience_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinExperience()); + } + if (maxExperience_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxExperience()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.talent.v4beta1.WorkExperienceFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.WorkExperienceFilter other = + (com.google.cloud.talent.v4beta1.WorkExperienceFilter) obj; + + boolean result = true; + result = result && (hasMinExperience() == other.hasMinExperience()); + if (hasMinExperience()) { + result = result && getMinExperience().equals(other.getMinExperience()); + } + result = result && (hasMaxExperience() == other.hasMaxExperience()); + if (hasMaxExperience()) { + result = result && getMaxExperience().equals(other.getMaxExperience()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMinExperience()) { + hash = (37 * hash) + MIN_EXPERIENCE_FIELD_NUMBER; + hash = (53 * hash) + getMinExperience().hashCode(); + } + if (hasMaxExperience()) { + hash = (37 * hash) + MAX_EXPERIENCE_FIELD_NUMBER; + hash = (53 * hash) + getMaxExperience().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.talent.v4beta1.WorkExperienceFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input only.
+   * Work experience filter.
+   * This filter is used to search for profiles with working experience length
+   * between
+   * [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience]
+   * and
+   * [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.WorkExperienceFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.WorkExperienceFilter) + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.class, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.WorkExperienceFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (minExperienceBuilder_ == null) { + minExperience_ = null; + } else { + minExperience_ = null; + minExperienceBuilder_ = null; + } + if (maxExperienceBuilder_ == null) { + maxExperience_ = null; + } else { + maxExperience_ = null; + maxExperienceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter build() { + com.google.cloud.talent.v4beta1.WorkExperienceFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter buildPartial() { + com.google.cloud.talent.v4beta1.WorkExperienceFilter result = + new com.google.cloud.talent.v4beta1.WorkExperienceFilter(this); + if (minExperienceBuilder_ == null) { + result.minExperience_ = minExperience_; + } else { + result.minExperience_ = minExperienceBuilder_.build(); + } + if (maxExperienceBuilder_ == null) { + result.maxExperience_ = maxExperience_; + } else { + result.maxExperience_ = maxExperienceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.WorkExperienceFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.WorkExperienceFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.WorkExperienceFilter other) { + if (other == com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()) + return this; + if (other.hasMinExperience()) { + mergeMinExperience(other.getMinExperience()); + } + if (other.hasMaxExperience()) { + mergeMaxExperience(other.getMaxExperience()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.talent.v4beta1.WorkExperienceFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.WorkExperienceFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration minExperience_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minExperienceBuilder_; + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public boolean hasMinExperience() { + return minExperienceBuilder_ != null || minExperience_ != null; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.Duration getMinExperience() { + if (minExperienceBuilder_ == null) { + return minExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minExperience_; + } else { + return minExperienceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder setMinExperience(com.google.protobuf.Duration value) { + if (minExperienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minExperience_ = value; + onChanged(); + } else { + minExperienceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder setMinExperience(com.google.protobuf.Duration.Builder builderForValue) { + if (minExperienceBuilder_ == null) { + minExperience_ = builderForValue.build(); + onChanged(); + } else { + minExperienceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder mergeMinExperience(com.google.protobuf.Duration value) { + if (minExperienceBuilder_ == null) { + if (minExperience_ != null) { + minExperience_ = + com.google.protobuf.Duration.newBuilder(minExperience_) + .mergeFrom(value) + .buildPartial(); + } else { + minExperience_ = value; + } + onChanged(); + } else { + minExperienceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder clearMinExperience() { + if (minExperienceBuilder_ == null) { + minExperience_ = null; + onChanged(); + } else { + minExperience_ = null; + minExperienceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.Duration.Builder getMinExperienceBuilder() { + + onChanged(); + return getMinExperienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder() { + if (minExperienceBuilder_ != null) { + return minExperienceBuilder_.getMessageOrBuilder(); + } else { + return minExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minExperience_; + } + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMinExperienceFieldBuilder() { + if (minExperienceBuilder_ == null) { + minExperienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinExperience(), getParentForChildren(), isClean()); + minExperience_ = null; + } + return minExperienceBuilder_; + } + + private com.google.protobuf.Duration maxExperience_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxExperienceBuilder_; + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public boolean hasMaxExperience() { + return maxExperienceBuilder_ != null || maxExperience_ != null; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.Duration getMaxExperience() { + if (maxExperienceBuilder_ == null) { + return maxExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxExperience_; + } else { + return maxExperienceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder setMaxExperience(com.google.protobuf.Duration value) { + if (maxExperienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxExperience_ = value; + onChanged(); + } else { + maxExperienceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder setMaxExperience(com.google.protobuf.Duration.Builder builderForValue) { + if (maxExperienceBuilder_ == null) { + maxExperience_ = builderForValue.build(); + onChanged(); + } else { + maxExperienceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder mergeMaxExperience(com.google.protobuf.Duration value) { + if (maxExperienceBuilder_ == null) { + if (maxExperience_ != null) { + maxExperience_ = + com.google.protobuf.Duration.newBuilder(maxExperience_) + .mergeFrom(value) + .buildPartial(); + } else { + maxExperience_ = value; + } + onChanged(); + } else { + maxExperienceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder clearMaxExperience() { + if (maxExperienceBuilder_ == null) { + maxExperience_ = null; + onChanged(); + } else { + maxExperience_ = null; + maxExperienceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.Duration.Builder getMaxExperienceBuilder() { + + onChanged(); + return getMaxExperienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder() { + if (maxExperienceBuilder_ != null) { + return maxExperienceBuilder_.getMessageOrBuilder(); + } else { + return maxExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxExperience_; + } + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMaxExperienceFieldBuilder() { + if (maxExperienceBuilder_ == null) { + maxExperienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxExperience(), getParentForChildren(), isClean()); + maxExperience_ = null; + } + return maxExperienceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.WorkExperienceFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.WorkExperienceFilter) + private static final com.google.cloud.talent.v4beta1.WorkExperienceFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.WorkExperienceFilter(); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkExperienceFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkExperienceFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java new file mode 100644 index 000000000000..7efd450e342b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface WorkExperienceFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.WorkExperienceFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + boolean hasMinExperience(); + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + com.google.protobuf.Duration getMinExperience(); + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + boolean hasMaxExperience(); + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + com.google.protobuf.Duration getMaxExperience(); + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto new file mode 100644 index 000000000000..fcfe2bed0e45 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto @@ -0,0 +1,29 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "BatchProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto new file mode 100644 index 000000000000..acba0e76d1fa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto @@ -0,0 +1,904 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/latlng.proto"; +import "google/type/money.proto"; +import "google/type/postal_address.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CommonProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Message representing a period of time between two timestamps. +message TimestampRange { + // Begin of the period. + google.protobuf.Timestamp start_time = 1; + + // End of the period. + google.protobuf.Timestamp end_time = 2; +} + +// An enum that represents the size of the company. +enum CompanySize { + // Default value if the size isn't specified. + COMPANY_SIZE_UNSPECIFIED = 0; + + // The company has less than 50 employees. + MINI = 1; + + // The company has between 50 and 99 employees. + SMALL = 2; + + // The company has between 100 and 499 employees. + SMEDIUM = 3; + + // The company has between 500 and 999 employees. + MEDIUM = 4; + + // The company has between 1,000 and 4,999 employees. + BIG = 5; + + // The company has between 5,000 and 9,999 employees. + BIGGER = 6; + + // The company has 10,000 or more employees. + GIANT = 7; +} + +// An enum that represents employee benefits included with the job. +enum JobBenefit { + // Default value if the type isn't specified. + JOB_BENEFIT_UNSPECIFIED = 0; + + // The job includes access to programs that support child care, such + // as daycare. + CHILD_CARE = 1; + + // The job includes dental services covered by a dental + // insurance plan. + DENTAL = 2; + + // The job offers specific benefits to domestic partners. + DOMESTIC_PARTNER = 3; + + // The job allows for a flexible work schedule. + FLEXIBLE_HOURS = 4; + + // The job includes health services covered by a medical insurance plan. + MEDICAL = 5; + + // The job includes a life insurance plan provided by the employer or + // available for purchase by the employee. + LIFE_INSURANCE = 6; + + // The job allows for a leave of absence to a parent to care for a newborn + // child. + PARENTAL_LEAVE = 7; + + // The job includes a workplace retirement plan provided by the + // employer or available for purchase by the employee. + RETIREMENT_PLAN = 8; + + // The job allows for paid time off due to illness. + SICK_DAYS = 9; + + // The job includes paid time off for vacation. + VACATION = 10; + + // The job includes vision services covered by a vision + // insurance plan. + VISION = 11; +} + +// Educational degree level defined in International Standard Classification +// of Education (ISCED). +enum DegreeType { + // Default value. Represents no degree, or early childhood education. + // Maps to ISCED code 0. + // Ex) Kindergarten + DEGREE_TYPE_UNSPECIFIED = 0; + + // Primary education which is typically the first stage of compulsory + // education. ISCED code 1. + // Ex) Elementary school + PRIMARY_EDUCATION = 1; + + // Lower secondary education; First stage of secondary education building on + // primary education, typically with a more subject-oriented curriculum. + // ISCED code 2. + // Ex) Middle school + LOWER_SECONDARY_EDUCATION = 2; + + // Middle education; Second/final stage of secondary education preparing for + // tertiary education and/or providing skills relevant to employment. + // Usually with an increased range of subject options and streams. ISCED + // code 3. + // Ex) High school + UPPER_SECONDARY_EDUCATION = 3; + + // Adult Remedial Education; Programmes providing learning experiences that + // build on secondary education and prepare for labour market entry and/or + // tertiary education. The content is broader than secondary but not as + // complex as tertiary education. ISCED code 4. + ADULT_REMEDIAL_EDUCATION = 4; + + // Associate's or equivalent; Short first tertiary programmes that are + // typically practically-based, occupationally-specific and prepare for + // labour market entry. These programmes may also provide a pathway to other + // tertiary programmes. ISCED code 5. + ASSOCIATES_OR_EQUIVALENT = 5; + + // Bachelor's or equivalent; Programmes designed to provide intermediate + // academic and/or professional knowledge, skills and competencies leading + // to a first tertiary degree or equivalent qualification. ISCED code 6. + BACHELORS_OR_EQUIVALENT = 6; + + // Master's or equivalent; Programmes designed to provide advanced academic + // and/or professional knowledge, skills and competencies leading to a + // second tertiary degree or equivalent qualification. ISCED code 7. + MASTERS_OR_EQUIVALENT = 7; + + // Doctoral or equivalent; Programmes designed primarily to lead to an + // advanced research qualification, usually concluding with the submission + // and defense of a substantive dissertation of publishable quality based on + // original research. ISCED code 8. + DOCTORAL_OR_EQUIVALENT = 8; +} + +// An enum that represents the employment type of a job. +enum EmploymentType { + // The default value if the employment type isn't specified. + EMPLOYMENT_TYPE_UNSPECIFIED = 0; + + // The job requires working a number of hours that constitute full + // time employment, typically 40 or more hours per week. + FULL_TIME = 1; + + // The job entails working fewer hours than a full time job, + // typically less than 40 hours a week. + PART_TIME = 2; + + // The job is offered as a contracted, as opposed to a salaried employee, + // position. + CONTRACTOR = 3; + + // The job is offered as a contracted position with the understanding + // that it's converted into a full-time position at the end of the + // contract. Jobs of this type are also returned by a search for + // [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR] + // jobs. + CONTRACT_TO_HIRE = 4; + + // The job is offered as a temporary employment opportunity, usually + // a short-term engagement. + TEMPORARY = 5; + + // The job is a fixed-term opportunity for students or entry-level job + // seekers to obtain on-the-job training, typically offered as a summer + // position. + INTERN = 6; + + // The is an opportunity for an individual to volunteer, where there's no + // expectation of compensation for the provided services. + VOLUNTEER = 7; + + // The job requires an employee to work on an as-needed basis with a + // flexible schedule. + PER_DIEM = 8; + + // The job involves employing people in remote areas and flying them + // temporarily to the work site instead of relocating employees and their + // families permanently. + FLY_IN_FLY_OUT = 9; + + // The job does not fit any of the other listed types. + OTHER_EMPLOYMENT_TYPE = 10; +} + +// An enum that represents the required experience level required for the job. +enum JobLevel { + // The default value if the level isn't specified. + JOB_LEVEL_UNSPECIFIED = 0; + + // Entry-level individual contributors, typically with less than 2 years of + // experience in a similar role. Includes interns. + ENTRY_LEVEL = 1; + + // Experienced individual contributors, typically with 2+ years of + // experience in a similar role. + EXPERIENCED = 2; + + // Entry- to mid-level managers responsible for managing a team of people. + MANAGER = 3; + + // Senior-level managers responsible for managing teams of managers. + DIRECTOR = 4; + + // Executive-level managers and above, including C-level positions. + EXECUTIVE = 5; +} + +// An enum that represents the categorization or primary focus of specific +// role. This value is different than the "industry" associated with a role, +// which is related to the categorization of the company listing the job. +enum JobCategory { + // The default value if the category isn't specified. + JOB_CATEGORY_UNSPECIFIED = 0; + + // An accounting and finance job, such as an Accountant. + ACCOUNTING_AND_FINANCE = 1; + + // An administrative and office job, such as an Administrative Assistant. + ADMINISTRATIVE_AND_OFFICE = 2; + + // An advertising and marketing job, such as Marketing Manager. + ADVERTISING_AND_MARKETING = 3; + + // An animal care job, such as Veterinarian. + ANIMAL_CARE = 4; + + // An art, fashion, or design job, such as Designer. + ART_FASHION_AND_DESIGN = 5; + + // A business operations job, such as Business Operations Manager. + BUSINESS_OPERATIONS = 6; + + // A cleaning and facilities job, such as Custodial Staff. + CLEANING_AND_FACILITIES = 7; + + // A computer and IT job, such as Systems Administrator. + COMPUTER_AND_IT = 8; + + // A construction job, such as General Laborer. + CONSTRUCTION = 9; + + // A customer service job, such s Cashier. + CUSTOMER_SERVICE = 10; + + // An education job, such as School Teacher. + EDUCATION = 11; + + // An entertainment and travel job, such as Flight Attendant. + ENTERTAINMENT_AND_TRAVEL = 12; + + // A farming or outdoor job, such as Park Ranger. + FARMING_AND_OUTDOORS = 13; + + // A healthcare job, such as Registered Nurse. + HEALTHCARE = 14; + + // A human resources job, such as Human Resources Director. + HUMAN_RESOURCES = 15; + + // An installation, maintenance, or repair job, such as Electrician. + INSTALLATION_MAINTENANCE_AND_REPAIR = 16; + + // A legal job, such as Law Clerk. + LEGAL = 17; + + // A management job, often used in conjunction with another category, + // such as Store Manager. + MANAGEMENT = 18; + + // A manufacturing or warehouse job, such as Assembly Technician. + MANUFACTURING_AND_WAREHOUSE = 19; + + // A media, communications, or writing job, such as Media Relations. + MEDIA_COMMUNICATIONS_AND_WRITING = 20; + + // An oil, gas or mining job, such as Offshore Driller. + OIL_GAS_AND_MINING = 21; + + // A personal care and services job, such as Hair Stylist. + PERSONAL_CARE_AND_SERVICES = 22; + + // A protective services job, such as Security Guard. + PROTECTIVE_SERVICES = 23; + + // A real estate job, such as Buyer's Agent. + REAL_ESTATE = 24; + + // A restaurant and hospitality job, such as Restaurant Server. + RESTAURANT_AND_HOSPITALITY = 25; + + // A sales and/or retail job, such Sales Associate. + SALES_AND_RETAIL = 26; + + // A science and engineering job, such as Lab Technician. + SCIENCE_AND_ENGINEERING = 27; + + // A social services or non-profit job, such as Case Worker. + SOCIAL_SERVICES_AND_NON_PROFIT = 28; + + // A sports, fitness, or recreation job, such as Personal Trainer. + SPORTS_FITNESS_AND_RECREATION = 29; + + // A transportation or logistics job, such as Truck Driver. + TRANSPORTATION_AND_LOGISTICS = 30; +} + +// An enum that represents the job posting region. In most cases, job postings +// don't need to specify a region. If a region is given, jobs are +// eligible for searches in the specified region. +enum PostingRegion { + // If the region is unspecified, the job is only returned if it + // matches the [LocationFilter][google.cloud.talent.v4beta1.LocationFilter]. + POSTING_REGION_UNSPECIFIED = 0; + + // In addition to exact location matching, job posting is returned when the + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search + // query is in the same administrative area as the returned job posting. For + // example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's + // returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] + // has "Mountain View". + // + // Administrative area refers to top-level administrative subdivision of this + // country. For example, US state, IT region, UK constituent nation and + // JP prefecture. + ADMINISTRATIVE_AREA = 1; + + // In addition to exact location matching, job is returned when + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search + // query is in the same country as this job. For example, if a `NATION_WIDE` + // job is posted in "USA", it's returned if + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain + // View'. + NATION = 2; + + // Job allows employees to work remotely (telecommute). + // If [locations][] are provided with this value, the job is + // considered as having a location, but telecommuting is allowed. + TELECOMMUTE = 3; +} + +// An enum that represents who has view access to the resource. +enum Visibility { + // Default value. + VISIBILITY_UNSPECIFIED = 0; + + // The resource is only visible to the GCP account who owns it. + ACCOUNT_ONLY = 1; + + // The resource is visible to the owner and may be visible to other + // applications and processes at Google. + SHARED_WITH_GOOGLE = 2; + + // The resource is visible to the owner and may be visible to all other API + // clients. + SHARED_WITH_PUBLIC = 3; +} + +// Enum that represents the usage of the contact information. +enum ContactInfoUsage { + // Default value. + CONTACT_INFO_USAGE_UNSPECIFIED = 0; + + // Personal use. + PERSONAL = 1; + + // Work use. + WORK = 2; + + // School use. + SCHOOL = 3; +} + +// Input only. +// +// Option for HTML content sanitization on user input fields, for example, job +// description. By setting this option, user can determine whether and how +// sanitization is performed on these fields. +enum HtmlSanitization { + // Default value. + HTML_SANITIZATION_UNSPECIFIED = 0; + + // Disables sanitization on HTML input. + HTML_SANITIZATION_DISABLED = 1; + + // Sanitizes HTML input, only accepts bold, italic, ordered list, and + // unordered list markup tags. + SIMPLE_FORMATTING_ONLY = 2; +} + +// Method for commute. +enum CommuteMethod { + // Commute method isn't specified. + COMMUTE_METHOD_UNSPECIFIED = 0; + + // Commute time is calculated based on driving time. + DRIVING = 1; + + // Commute time is calculated based on public transit including bus, metro, + // subway, etc. + TRANSIT = 2; + + // Commute time is calculated based on walking time. + WALKING = 3; + + // Commute time is calculated based on biking time. + CYCLING = 4; + + // Commute time is calculated based on public transit that is wheelchair + // accessible. + TRANSIT_ACCESSIBLE = 5; +} + +// Output only. +// +// A resource that represents a location with full geographic information. +message Location { + // An enum which represents the type of a location. + enum LocationType { + // Default value if the type isn't specified. + LOCATION_TYPE_UNSPECIFIED = 0; + + // A country level location. + COUNTRY = 1; + + // A state or equivalent level location. + ADMINISTRATIVE_AREA = 2; + + // A county or equivalent level location. + SUB_ADMINISTRATIVE_AREA = 3; + + // A city or equivalent level location. + LOCALITY = 4; + + // A postal code level location. + POSTAL_CODE = 5; + + // A sublocality is a subdivision of a locality, for example a city borough, + // ward, or arrondissement. Sublocalities are usually recognized by a local + // political authority. For example, Manhattan and Brooklyn are recognized + // as boroughs by the City of New York, and are therefore modeled as + // sublocalities. + SUB_LOCALITY = 6; + + // A district or equivalent level location. + SUB_LOCALITY_1 = 7; + + // A smaller district or equivalent level display. + SUB_LOCALITY_2 = 8; + + // A neighborhood level location. + NEIGHBORHOOD = 9; + + // A street address level location. + STREET_ADDRESS = 10; + } + + // The type of a location, which corresponds to the address lines field of + // [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of + // [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of + // [LocationType#LOCALITY][]. + LocationType location_type = 1; + + // Postal address of the location that includes human readable information, + // such as postal delivery and payments addresses. Given a postal address, + // a postal service can deliver items to a premises, P.O. Box, or other + // delivery location. + google.type.PostalAddress postal_address = 2; + + // An object representing a latitude/longitude pair. + google.type.LatLng lat_lng = 3; + + // Radius in miles of the job location. This value is derived from the + // location bounding box in which a circle with the specified radius + // centered from [LatLng][] covers the area associated with the job location. + // For example, currently, "Mountain View, CA, USA" has a radius of + // 6.17 miles. + double radius_miles = 4; +} + +// Input only. +// +// Meta information related to the job searcher or entity +// conducting the job search. This information is used to improve the +// performance of the service. +message RequestMetadata { + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. + // + // The client-defined scope or source of the service call, which typically + // is the domain on + // which the service has been implemented and is currently being run. + // + // For example, if the service is being run by client Foo, Inc., on + // job board www.foo.com and career site www.bar.com, then this field is + // set to "foo.com" for use on the job board, and "bar.com" for use on the + // career site. + // + // Note that any improvements to the model for a particular tenant site rely + // on this field being set correctly to a unique domain. + // + // The maximum number of allowed characters is 255. + string domain = 1; + + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. + // + // A unique session identification string. A session is defined as the + // duration of an end user's interaction with the service over a certain + // period. + // Obfuscate this field for privacy concerns before + // providing it to the service. + // + // Note that any improvements to the model for a particular tenant site rely + // on this field being set correctly to a unique session ID. + // + // The maximum number of allowed characters is 255. + string session_id = 2; + + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. + // + // A unique user identification string, as determined by the client. + // To have the strongest positive impact on search quality + // make sure the client-level is unique. + // Obfuscate this field for privacy concerns before + // providing it to the service. + // + // Note that any improvements to the model for a particular tenant site rely + // on this field being set correctly to a unique user ID. + // + // The maximum number of allowed characters is 255. + string user_id = 3; + + // Optional. + // + // If set to `true`, + // [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], + // [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and + // [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are + // optional. Only set when any of these fields isn't available for some + // reason. It is highly recommended not to set this field and provide accurate + // [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], + // [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and + // [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best + // service experience. + bool allow_missing_ids = 4; + + // Optional. + // + // The type of device used by the job seeker at the time of the call to the + // service. + DeviceInfo device_info = 5; +} + +// Output only. +// +// Additional information returned to client, such as debugging information. +message ResponseMetadata { + // A unique id associated with this call. + // This id is logged for tracking purposes. + string request_id = 1; +} + +// Device information collected from the job seeker, candidate, or +// other entity conducting the job search. Providing this information improves +// the quality of the search results across devices. +message DeviceInfo { + // An enumeration describing an API access portal and exposure mechanism. + enum DeviceType { + // The device type isn't specified. + DEVICE_TYPE_UNSPECIFIED = 0; + + // A desktop web browser, such as, Chrome, Firefox, Safari, or Internet + // Explorer) + WEB = 1; + + // A mobile device web browser, such as a phone or tablet with a Chrome + // browser. + MOBILE_WEB = 2; + + // An Android device native application. + ANDROID = 3; + + // An iOS device native application. + IOS = 4; + + // A bot, as opposed to a device operated by human beings, such as a web + // crawler. + BOT = 5; + + // Other devices types. + OTHER = 6; + } + + // Optional. + // + // Type of the device. + DeviceType device_type = 1; + + // Optional. + // + // A device-specific ID. The ID must be a unique identifier that + // distinguishes the device from other devices. + string id = 2; +} + +// Custom attribute values that are either filterable or non-filterable. +message CustomAttribute { + // Optional but exactly one of + // [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values] + // or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] + // must be specified. + // + // This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or + // `CASE_INSENSITIVE_MATCH`) search. + // For filterable `string_value`s, a maximum total number of 200 values + // is allowed, with each `string_value` has a byte size of no more than + // 255B. For unfilterable `string_values`, the maximum total byte size of + // unfilterable `string_values` is 50KB. + // + // Empty string isn't allowed. + repeated string string_values = 1; + + // Optional but exactly one of + // [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values] + // or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] + // must be specified. + // + // This field is used to perform number range search. + // (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. + // + // Currently at most 1 + // [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is + // supported. + repeated int64 long_values = 2; + + // Optional. + // + // If the `filterable` flag is true, custom field values are searchable. + // If false, values are not searchable. + // + // Default is false. + bool filterable = 3; +} + +// Output only. +// +// Spell check result. +message SpellingCorrection { + // Indicates if the query was corrected by the spell checker. + bool corrected = 1; + + // Correction output consisting of the corrected keyword string. + string corrected_text = 2; + + // Corrected output with html tags to highlight the corrected words. + // Corrected words are called out with the "..." html tags. + // + // For example, the user input query is "software enginear", where the second + // word, "enginear," is incorrect. It should be "engineer". When spelling + // correction is enabled, this value is + // "software engineer". + string corrected_html = 3; +} + +// Job compensation details. +message CompensationInfo { + // A compensation entry that represents one component of compensation, such + // as base pay, bonus, or other compensation type. + // + // Annualization: One compensation entry can be annualized if + // - it contains valid + // [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. + // - and its + // [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year] + // is set or can be derived. Its annualized range is determined as + // ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]) + // times + // [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. + message CompensationEntry { + // Optional. + // + // Compensation type. + // + // Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][]. + CompensationType type = 1; + + // Optional. + // + // Frequency of the specified amount. + // + // Default is + // [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT]. + CompensationUnit unit = 2; + + // Optional. + // + // Compensation amount. It could be a fixed amount or a floating range. + oneof compensation_amount { + // Optional. + // + // Compensation amount. + google.type.Money amount = 3; + + // Optional. + // + // Compensation range. + CompensationRange range = 4; + } + + // Optional. + // + // Compensation description. For example, could + // indicate equity terms or provide additional context to an estimated + // bonus. + string description = 5; + + // Optional. + // + // Expected number of units paid each year. If not specified, when + // [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] + // is FULLTIME, a default value is inferred based on + // [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. + // Default values: + // - HOURLY: 2080 + // - DAILY: 260 + // - WEEKLY: 52 + // - MONTHLY: 12 + // - ANNUAL: 1 + google.protobuf.DoubleValue expected_units_per_year = 6; + } + + // Compensation range. + message CompensationRange { + // Optional. + // + // The maximum amount of compensation. If left empty, the value is set + // to a maximal compensation value and the currency code is set to + // match the [currency code][google.type.Money.currency_code] of + // min_compensation. + google.type.Money max_compensation = 2; + + // Optional. + // + // The minimum amount of compensation. If left empty, the value is set + // to zero and the currency code is set to match the + // [currency code][google.type.Money.currency_code] of max_compensation. + google.type.Money min_compensation = 1; + } + + // The type of compensation. + // + // For compensation amounts specified in non-monetary amounts, + // describe the compensation scheme in the + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]. + // + // For example, tipping format is described in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // (for example, "expect 15-20% tips based on customer bill.") and an estimate + // of the tips provided in + // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range] + // ($10 per hour). + // + // For example, equity is described in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // (for example, "1% - 2% equity vesting over 4 years, 1 year cliff") and + // value estimated in + // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. + // If no value estimate is possible, units are + // [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED] + // and then further clarified in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // field. + enum CompensationType { + // Default value. + COMPENSATION_TYPE_UNSPECIFIED = 0; + + // Base compensation: Refers to the fixed amount of money paid to an + // employee by an employer in return for work performed. Base compensation + // does not include benefits, bonuses or any other potential compensation + // from an employer. + BASE = 1; + + // Bonus. + BONUS = 2; + + // Signing bonus. + SIGNING_BONUS = 3; + + // Equity. + EQUITY = 4; + + // Profit sharing. + PROFIT_SHARING = 5; + + // Commission. + COMMISSIONS = 6; + + // Tips. + TIPS = 7; + + // Other compensation type. + OTHER_COMPENSATION_TYPE = 8; + } + + // Pay frequency. + enum CompensationUnit { + // Default value. + COMPENSATION_UNIT_UNSPECIFIED = 0; + + // Hourly. + HOURLY = 1; + + // Daily. + DAILY = 2; + + // Weekly + WEEKLY = 3; + + // Monthly. + MONTHLY = 4; + + // Yearly. + YEARLY = 5; + + // One time. + ONE_TIME = 6; + + // Other compensation units. + OTHER_COMPENSATION_UNIT = 7; + } + + // Optional. + // + // Job compensation information. + // + // At most one entry can be of type + // [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], + // which is referred as ** base compensation entry ** for the job. + repeated CompensationEntry entries = 1; + + // Output only. Annualized base compensation range. Computed as + // base compensation entry's [CompensationEntry.compensation][] times + // [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. + // + // See + // [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for explanation on compensation annualization. + CompensationRange annualized_base_compensation_range = 2; + + // Output only. Annualized total compensation range. Computed as + // all compensation entries' [CompensationEntry.compensation][] times + // [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. + // + // See + // [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for explanation on compensation annualization. + CompensationRange annualized_total_compensation_range = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto new file mode 100644 index 000000000000..e6773b08f216 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto @@ -0,0 +1,130 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CompanyResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A Company resource represents a company in the service. A company is the +// entity that owns job postings, that is, the hiring entity responsible for +// employing applicants for the job position. +message Company { + // Derived details about the company. + message DerivedInfo { + // A structured headquarters location of the company, resolved from + // [Company.hq_location][] if provided. + Location headquarters_location = 1; + } + + // Required during company update. + // + // The resource name for a company. This is generated by the service when a + // company is created. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string name = 1; + + // Required. + // + // The display name of the company, for example, "Google, LLC". + string display_name = 2; + + // Required. + // + // Client side company identifier, used to uniquely identify the + // company. + // + // The maximum number of allowed characters is 255. + string external_id = 3; + + // Optional. + // + // The employer's company size. + CompanySize size = 4; + + // Optional. + // + // The street address of the company's main headquarters, which may be + // different from the job location. The service attempts + // to geolocate the provided address, and populates a more specific + // location wherever possible in + // [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location]. + string headquarters_address = 5; + + // Optional. + // + // Set to true if it is the hiring agency that post jobs for other + // employers. + // + // Defaults to false if not provided. + bool hiring_agency = 6; + + // Optional. + // + // Equal Employment Opportunity legal disclaimer text to be + // associated with all jobs, and typically to be displayed in all + // roles. + // + // The maximum number of allowed characters is 500. + string eeo_text = 7; + + // Optional. + // + // The URI representing the company's primary web site or home page, + // for example, "https://www.google.com". + // + // The maximum number of allowed characters is 255. + string website_uri = 8; + + // Optional. + // + // The URI to employer's career site or careers page on the employer's web + // site, for example, "https://careers.google.com". + string career_site_uri = 9; + + // Optional. + // + // A URI that hosts the employer's company logo. + string image_uri = 10; + + // Optional. + // + // A list of keys of filterable + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], + // whose corresponding `string_values` are used in keyword search. Jobs with + // `string_values` under these specified field keys are returned if any + // of the values matches the search keyword. Custom field values with + // parenthesis, brackets and special symbols won't be properly searchable, + // and those keyword queries need to be surrounded by quotes. + repeated string keyword_searchable_job_custom_attributes = 11; + + // Output only. Derived details about the company. + DerivedInfo derived_info = 12; + + // Output only. Indicates whether a company is flagged to be suspended from + // public availability by the service when job content appears suspicious, + // abusive, or spammy. + bool suspended = 13; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto new file mode 100644 index 000000000000..74a01847b14c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto @@ -0,0 +1,179 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/company.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CompanyServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles company management, including CRUD and enumeration. +service CompanyService { + // Creates a new company entity. + rpc CreateCompany(CreateCompanyRequest) returns (Company) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/companies" + body: "*" + }; + } + + // Retrieves specified company. + rpc GetCompany(GetCompanyRequest) returns (Company) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/companies/*}" + }; + } + + // Updates specified company. + rpc UpdateCompany(UpdateCompanyRequest) returns (Company) { + option (google.api.http) = { + patch: "/v4beta1/{company.name=projects/*/companies/*}" + body: "*" + }; + } + + // Deletes specified company. + // Prerequisite: The company has no jobs associated with it. + rpc DeleteCompany(DeleteCompanyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/companies/*}" + }; + } + + // Lists all companies associated with the project. + rpc ListCompanies(ListCompaniesRequest) returns (ListCompaniesResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*}/companies" + }; + } +} + +// The Request of the CreateCompany method. +message CreateCompanyRequest { + // Required. + // + // Resource name of the project under which the company is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The company to be created. + Company company = 2; +} + +// Request for getting a company by name. +message GetCompanyRequest { + // Required. + // + // The resource name of the company to be retrieved. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string name = 1; +} + +// Request for updating a specified company. +message UpdateCompanyRequest { + // Required. + // + // The company resource to replace the current resource in the system. + Company company = 1; + + // Optional but strongly recommended for the best service + // experience. + // + // If + // [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask] + // is provided, only the specified fields in + // [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are + // updated. Otherwise all the fields are updated. + // + // A field mask to specify the company fields to be updated. Only + // top level fields of [Company][google.cloud.talent.v4beta1.Company] are + // supported. + google.protobuf.FieldMask update_mask = 2; +} + +// Request to delete a company. +message DeleteCompanyRequest { + // Required. + // + // The resource name of the company to be deleted. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string name = 1; +} + +// List companies for which the client has ACL visibility. +message ListCompaniesRequest { + // Required. + // + // Resource name of the project under which the company is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Optional. + // + // The starting indicator from which to return results. + string page_token = 2; + + // Optional. + // + // The maximum number of companies to be returned, at most 100. + // Default is 100 if a non-positive number is provided. + int32 page_size = 3; + + // Optional. + // + // Set to true if the companies requested must have open jobs. + // + // Defaults to false. + // + // If true, at most + // [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of + // companies are fetched, among which only those with open jobs are returned. + bool require_open_jobs = 4; +} + +// Output only. +// +// The List companies response object. +message ListCompaniesResponse { + // Companies for the current client. + repeated Company companies = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto new file mode 100644 index 000000000000..d151f8f4bcf9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto @@ -0,0 +1,169 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CompletionServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service handles auto completion. +service Completion { + // Completes the specified prefix with keyword suggestions. + // Intended for use by a job search auto-complete search box. + rpc CompleteQuery(CompleteQueryRequest) returns (CompleteQueryResponse) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*}:complete" + }; + } +} + +// Input only. +// +// Auto-complete parameters. +message CompleteQueryRequest { + // Enum to specify the scope of completion. + enum CompletionScope { + // Default value. + COMPLETION_SCOPE_UNSPECIFIED = 0; + + // Suggestions are based only on the data provided by the client. + TENANT = 1; + + // Suggestions are based on all jobs data in the system that's visible to + // the client + PUBLIC = 2; + } + + // Enum to specify auto-completion topics. + enum CompletionType { + // Default value. + COMPLETION_TYPE_UNSPECIFIED = 0; + + // Only suggest job titles. + JOB_TITLE = 1; + + // Only suggest company names. + COMPANY_NAME = 2; + + // Suggest both job titles and company names. + COMBINED = 3; + } + + // Required. + // + // Resource name of project the completion is performed within. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string name = 1; + + // Required. + // + // The query used to generate suggestions. + // + // The maximum number of allowed characters is 255. + string query = 2; + + // Optional. + // + // The list of languages of the query. This is + // the BCP-47 language code, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). + // + // For + // [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE] + // type, only open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // For + // [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME] + // type, only companies having open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // For + // [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED] + // type, only open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // or companies having open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // The maximum number of allowed characters is 255. + repeated string language_codes = 3; + + // Required. + // + // Completion result count. + // + // The maximum allowed page size is 10. + int32 page_size = 4; + + // Optional. + // + // If provided, restricts completion to specified company. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string company_name = 5; + + // Optional. + // + // The scope of the completion. The defaults is + // [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC]. + CompletionScope scope = 6; + + // Optional. + // + // The completion topic. The default is + // [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]. + CompletionType type = 7; +} + +// Output only. +// +// Response of auto-complete query. +message CompleteQueryResponse { + // Output only. + // + // Resource that represents completion results. + message CompletionResult { + // The suggestion for the query. + string suggestion = 1; + + // The completion topic. + CompleteQueryRequest.CompletionType type = 2; + + // The URI of the company image for [CompletionType.COMPANY_NAME][]. + string image_uri = 3; + } + + // Results of the matching job/company candidates. + repeated CompletionResult completion_results = 1; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto new file mode 100644 index 000000000000..3287d378b33a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto @@ -0,0 +1,262 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "EventProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// An event issued when an end user interacts with the application that +// implements Cloud Talent Solution. Providing this information improves the +// quality of search and recommendation for the API clients, enabling the +// service to perform optimally. The number of events sent must be consistent +// with other calls, such as job searches, issued to the service by the client. +message ClientEvent { + // Required. + // + // A unique ID generated in the API responses. It can be found in + // [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id]. + string request_id = 1; + + // Required. + // + // A unique identifier, generated by the client application. + string event_id = 2; + + // Required. + // + // The timestamp of the event. + google.protobuf.Timestamp create_time = 4; + + // Required. + // + // The detail information of a specific event type. + oneof event { + // An event issued when a job seeker interacts with the application that + // implements Cloud Talent Solution. + JobEvent job_event = 5; + + // An event issued when a profile searcher interacts with the application + // that implements Cloud Talent Solution. + ProfileEvent profile_event = 6; + } + + // Optional. + // + // Extra information about this event. Used for storing information with no + // matching field in [event][google.cloud.talent.v4beta1.event] payload, for + // example, user application specific context or details. + // + // At most 20 keys are supported. The maximum total size of all keys and + // values is 2 KB. + map extra_info = 7; +} + +// An event issued when a job seeker interacts with the application that +// implements Cloud Talent Solution. +message JobEvent { + // An enumeration of an event attributed to the behavior of the end user, + // such as a job seeker. + enum JobEventType { + // The event is unspecified by other provided values. + JOB_EVENT_TYPE_UNSPECIFIED = 0; + + // The job seeker or other entity interacting with the service has + // had a job rendered in their view, such as in a list of search results in + // a compressed or clipped format. This event is typically associated with + // the viewing of a jobs list on a single page by a job seeker. + IMPRESSION = 1; + + // The job seeker, or other entity interacting with the service, has + // viewed the details of a job, including the full description. This + // event doesn't apply to the viewing a snippet of a job appearing as a + // part of the job search results. Viewing a snippet is associated with an + // [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]). + VIEW = 2; + + // The job seeker or other entity interacting with the service + // performed an action to view a job and was redirected to a different + // website for job. + VIEW_REDIRECT = 3; + + // The job seeker or other entity interacting with the service + // began the process or demonstrated the intention of applying for a job. + APPLICATION_START = 4; + + // The job seeker or other entity interacting with the service + // submitted an application for a job. + APPLICATION_FINISH = 5; + + // The job seeker or other entity interacting with the service + // submitted an application for a job with a single click without + // entering information. If a job seeker performs this action, send only + // this event to the service. Do not also send + // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START] + // or + // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] + // events. + APPLICATION_QUICK_SUBMISSION = 6; + + // The job seeker or other entity interacting with the service + // performed an action to apply to a job and was redirected to a different + // website to complete the application. + APPLICATION_REDIRECT = 7; + + // The job seeker or other entity interacting with the service began the + // process or demonstrated the intention of applying for a job from the + // search results page without viewing the details of the job posting. + // If sending this event, JobEventType.VIEW event shouldn't be sent. + APPLICATION_START_FROM_SEARCH = 8; + + // The job seeker, or other entity interacting with the service, performs an + // action with a single click from the search results page to apply to a job + // (without viewing the details of the job posting), and is redirected + // to a different website to complete the application. If a candidate + // performs this action, send only this event to the service. Do not also + // send + // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START], + // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] + // or + // [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] + // events. + APPLICATION_REDIRECT_FROM_SEARCH = 9; + + // This event should be used when a company submits an application + // on behalf of a job seeker. This event is intended for use by staffing + // agencies attempting to place candidates. + APPLICATION_COMPANY_SUBMIT = 10; + + // The job seeker or other entity interacting with the service demonstrated + // an interest in a job by bookmarking or saving it. + BOOKMARK = 11; + + // The job seeker or other entity interacting with the service was + // sent a notification, such as an email alert or device notification, + // containing one or more jobs listings generated by the service. + NOTIFICATION = 12; + + // The job seeker or other entity interacting with the service was + // employed by the hiring entity (employer). Send this event + // only if the job seeker was hired through an application that was + // initiated by a search conducted through the Cloud Talent Solution + // service. + HIRED = 13; + + // A recruiter or staffing agency submitted an application on behalf of the + // candidate after interacting with the service to identify a suitable job + // posting. + SENT_CV = 14; + + // The entity interacting with the service (for example, the job seeker), + // was granted an initial interview by the hiring entity (employer). This + // event should only be sent if the job seeker was granted an interview as + // part of an application that was initiated by a search conducted through / + // recommendation provided by the Cloud Talent Solution service. + INTERVIEW_GRANTED = 15; + + // The job seeker or other entity interacting with the service showed + // no interest in the job. + NOT_INTERESTED = 16; + } + + // Required. + // + // The type of the event (see + // [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]). + JobEventType type = 1; + + // Required. + // + // The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with + // this event. For example, if this is an + // [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION] + // event, this field contains the identifiers of all jobs shown to the job + // seeker. If this was a + // [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this + // field contains the identifier of the viewed job. + repeated string jobs = 2; +} + +// An event issued when a profile searcher interacts with the application +// that implements Cloud Talent Solution. +message ProfileEvent { + // The enum represents types of client events for a candidate profile. + enum ProfileEventType { + // Default value. + PROFILE_EVENT_TYPE_UNSPECIFIED = 0; + + // The profile is displayed. + IMPRESSION = 1; + + // The profile is viewed. + VIEW = 2; + + // The profile is bookmarked. + BOOKMARK = 3; + + // Comment added to the profile. + COMMENT_ADDED = 4; + + // Email sent regarding the profile. + EMAIL_SENT = 5; + + // The resume of the profile is viewed. + RESUME_VIEWED = 6; + + // The profile is added to a job. + ADD_TO_JOB = 7; + + // The recruiter explicitly highlights that a given profile is interesting + // enough for later review or is a good result for the search. + POSITIVE_REACTION_TO_PROFILE = 8; + + // The recruiter explicitly highlights that a given profile is not + // interesting enough for later review or is not a good result for the + // search. + NEGATIVE_REACTION_TO_PROFILE = 9; + + // The candidate is interesting enough to set up an initial screen with the + // recruiter. This step may be skipped based on the interview process. + SCREEN = 10; + } + + // Required. + // + // Type of event. + ProfileEventType type = 1; + + // Required. + // + // The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated + // with this client event. + repeated string profiles = 2; + + // Optional. + // + // The job ID associated with this client event if there is one. Leave it + // empty if the event isn't associated with a job. + // + // The job ID should be consistent with the + // [JobApplication.job.requisition_id][] in the profile. + string job_id = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto new file mode 100644 index 000000000000..fe1606c3a96d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto @@ -0,0 +1,56 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/event.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "EventServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service handles client event report. +service EventService { + // Report events issued when end user interacts with customer's application + // that uses Cloud Talent Solution. You may inspect the created events in + // [self service + // tools](https://console.cloud.google.com/talent-solution/overview). + // [Learn + // more](https://cloud.google.com/talent-solution/docs/management-tools) + // about self service tools. + rpc CreateClientEvent(CreateClientEventRequest) returns (ClientEvent) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/clientEvents" + body: "*" + }; + } +} + +// The report event request. +message CreateClientEventRequest { + // Parent project name. + string parent = 1; + + // Required. + // + // Events issued when end user interacts with customer's application that + // uses Cloud Talent Solution. + ClientEvent client_event = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto new file mode 100644 index 000000000000..9d87c51addff --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto @@ -0,0 +1,872 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/cloud/talent/v4beta1/profile.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/date.proto"; +import "google/type/latlng.proto"; +import "google/type/timeofday.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "FiltersProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Input only. +// +// The query required to perform a search query. +message JobQuery { + // Optional. + // + // The query string that matches against the job title, description, and + // location fields. + // + // The maximum number of allowed characters is 255. + string query = 1; + + // Optional. + // + // This filter specifies the company entities to search against. + // + // If a value isn't specified, jobs are searched for against all + // companies. + // + // If multiple values are specified, jobs are searched against the + // companies specified. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + // + // At most 20 company filters are allowed. + repeated string company_names = 2; + + // Optional. + // + // The location filter specifies geo-regions containing the jobs to + // search against. See + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more + // information. + // + // If a location value isn't specified, jobs fitting the other search + // criteria are retrieved regardless of where they're located. + // + // If multiple values are specified, jobs are retrieved from any of the + // specified locations. If different values are specified for the + // [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] + // parameter, the maximum provided distance is used for all locations. + // + // At most 5 location filters are allowed. + repeated LocationFilter location_filters = 3; + + // Optional. + // + // The category filter specifies the categories of jobs to search against. + // See [Category][] for more information. + // + // If a value isn't specified, jobs from any category are searched against. + // + // If multiple values are specified, jobs from any of the specified + // categories are searched against. + repeated JobCategory job_categories = 4; + + // Optional. + // + // Allows filtering jobs by commute time with different travel methods (for + // example, driving or public transit). Note: This only works with [COMMUTE + // MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is + // ignored. + // + // Currently we don't support sorting by commute time. + CommuteFilter commute_filter = 5; + + // Optional. + // + // This filter specifies the exact [company display + // name][Company.display_name] of the jobs to search against. + // + // If a value isn't specified, jobs within the search results are + // associated with any company. + // + // If multiple values are specified, jobs within the search results may be + // associated with any of the specified companies. + // + // At most 20 company display name filters are allowed. + repeated string company_display_names = 6; + + // Optional. + // + // This search filter is applied only to + // [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info]. + // For example, if the filter is specified as "Hourly job with per-hour + // compensation > $15", only jobs meeting these criteria are searched. If a + // filter isn't defined, all open jobs are searched. + CompensationFilter compensation_filter = 7; + + // Optional. + // + // This filter specifies a structured syntax to match against the + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] + // marked as `filterable`. + // + // The syntax for this expression is a subset of SQL syntax. + // + // Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the + // left of the operator is a custom field key and the right of the operator + // is a number or a quoted string. You must escape backslash (\\) and + // quote (\") characters. + // + // Supported functions are `LOWER([field_name])` to + // perform a case insensitive match and `EMPTY([field_name])` to filter on the + // existence of a key. + // + // Boolean expressions (AND/OR/NOT) are supported up to 3 levels of + // nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 + // comparisons or functions are allowed in the expression. The expression + // must be < 3000 bytes in length. + // + // Sample Query: + // `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND + // driving_years > 10` + string custom_attribute_filter = 8; + + // Optional. + // + // This flag controls the spell-check feature. If false, the + // service attempts to correct a misspelled query, + // for example, "enginee" is corrected to "engineer". + // + // Defaults to false: a spell check is performed. + bool disable_spell_check = 9; + + // Optional. + // + // The employment type filter specifies the employment type of jobs to + // search against, such as + // [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME]. + // + // If a value isn't specified, jobs in the search results includes any + // employment type. + // + // If multiple values are specified, jobs in the search results include + // any of the specified employment types. + repeated EmploymentType employment_types = 10; + + // Optional. + // + // This filter specifies the locale of jobs to search against, + // for example, "en-US". + // + // If a value isn't specified, the search results can contain jobs in any + // locale. + // + // + // Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). + // + // At most 10 language code filters are allowed. + repeated string language_codes = 11; + + // Optional. + // + // Jobs published within a range specified by this filter are searched + // against. + TimestampRange publish_time_range = 12; + + // Optional. + // + // This filter specifies a list of job names to be excluded during search. + // + // At most 200 excluded job names are allowed. + repeated string excluded_jobs = 13; +} + +// Filters to apply when performing the search query. +message ProfileQuery { + // Optional. + // + // Keywords to match any text fields of profiles. + // + // For example, "software engineer in Palo Alto". + string query = 1; + + // Optional. + // + // The location filter specifies geo-regions containing the profiles to + // search against. + // + // If a location filter isn't specified, profiles fitting the other search + // criteria are retrieved regardless of where they're located. + // + // If + // [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated] + // is specified, the result doesn't contain profiles from that location. + // + // For example, search for profiles with addresses in "New York City". + repeated LocationFilter location_filters = 2; + + // Optional. + // + // Job title filter specifies job titles of profiles to match on. + // + // If a job title isn't specified, profiles with any titles are retrieved. + // + // If multiple values are specified, profiles are retrieved with any of the + // specified job titles. + // + // If + // [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated] + // is specified, the result won't contain profiles with the job titles. + // + // For example, search for profiles with a job title "Product Manager". + repeated JobTitleFilter job_title_filters = 3; + + // Optional. + // + // Employer filter specifies employers of profiles to match on. + // + // If an employer filter isn't specified, profiles with any employers are + // retrieved. + // + // If multiple employer filters are specified, profiles with any matching + // employers are retrieved. + // + // If + // [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated] + // is specified, the result won't contain profiles that match the employers. + // + // For example, search for profiles that have working experience at "Google + // LLC". + repeated EmployerFilter employer_filters = 4; + + // Optional. + // + // Education filter specifies education of profiles to match on. + // + // If an education filter isn't specified, profiles with any education are + // retrieved. + // + // If multiple education filters are specified, profiles that match any + // education filters are retrieved. + // + // If + // [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated] + // is specified, the result won't contain profiles that match the educations. + // + // For example, search for profiles with a master degree. + repeated EducationFilter education_filters = 5; + + // Optional. + // + // Skill filter specifies skill of profiles to match on. + // + // If a skill filter isn't specified, profiles with any skills are retrieved. + // + // If multiple skill filters are specified, profiles that match any skill + // filters are retrieved. + // + // If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated] + // is specified, the result won't contain profiles that match the skills. + // + // For example, search for profiles that have "Java" and "Python" in skill + // list. + repeated SkillFilter skill_filters = 6; + + // Optional. + // + // Work experience filter specifies the total working experience of profiles + // to match on. + // + // If a work experience filter isn't specified, profiles with any + // professional experience are retrieved. + // + // If multiple work experience filters are specified, profiles that match any + // work experience filters are retrieved. + // + // For example, search for profiles with 10 years of work experience. + repeated WorkExperienceFilter work_experience_filter = 7; + + // Optional. + // + // Time filter specifies the create/update timestamp of the profiles to match + // on. + // + // For example, search for profiles created since "2018-1-1". + repeated TimeFilter time_filters = 8; + + // Optional. + // + // The hirable filter specifies the profile's hirable status to match on. + google.protobuf.BoolValue hirable_filter = 9; + + // Optional. + // + // The application date filters specify application date ranges to match on. + repeated ApplicationDateFilter application_date_filters = 10; + + // Optional. + // + // The application outcome reason filters specify the reasons for outcome of + // the job application. + repeated ApplicationOutcomeReasonFilter application_outcome_reason_filters = + 11; + + // Optional. + // + // The application last stage filters specify the last stage of job + // application. + repeated ApplicationLastStageFilter application_last_stage_filters = 12; + + // Optional. + // + // The application job filters specify the job applied for in the application. + repeated ApplicationJobFilter application_job_filters = 13; + + // Optional. + // + // The application status filters specify the status of job application. + repeated ApplicationStatusFilter application_status_filters = 14; + + // Optional. + // + // This filter specifies a structured syntax to match against the + // [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes] + // that are marked as `filterable`. + // + // The syntax for this expression is a subset of Google SQL syntax. + // + // Supported operators are: =, != where the left of the operator is a custom + // field key and the right of the operator is a string (surrounded by quotes) + // value. + // + // Supported functions are LOWER() to + // perform case insensitive match and EMPTY() to filter on the + // existence of a key. + // + // Boolean expressions (AND/OR/NOT) are supported up to 3 levels of + // nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be + // a maximum of 50 comparisons/functions in the expression. The expression + // must be < 2000 characters in length. + // + // Sample Query: + // (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) + string custom_field_filter = 15; +} + +// Input only. +// +// Geographic region of the search. +message LocationFilter { + // Specify whether including telecommute jobs. + enum TelecommutePreference { + // Default value if the telecommute preference isn't specified. + TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; + + // Exclude telecommute jobs. + TELECOMMUTE_EXCLUDED = 1; + + // Allow telecommute jobs. + TELECOMMUTE_ALLOWED = 2; + } + + // Optional. + // + // The address name, such as "Mountain View" or "Bay Area". + string address = 1; + + // Optional. + // + // CLDR region code of the country/region of the address. This is used + // to address ambiguity of the user-input location, for example, "Liverpool" + // against "Liverpool, NY, US" or "Liverpool, UK". + // + // Set this field if all the jobs to search against are from a same region, + // or jobs are world-wide, but the job seeker is from a specific region. + // + // See http://cldr.unicode.org/ and + // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + // for details. Example: "CH" for Switzerland. + string region_code = 2; + + // Optional. + // + // The latitude and longitude of the geographic center from which to + // search. This field's ignored if `address` is provided. + google.type.LatLng lat_lng = 3; + + // Optional. + // + // + // The distance_in_miles is applied when the location being searched for is + // identified as a city or smaller. When the location being searched for is a + // state or larger, this field is ignored. + double distance_in_miles = 4; + + // Optional. + // + // Allows the client to return jobs without a + // set location, specifically, telecommuting jobs (telecomuting is considered + // by the service as a special location. + // [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] + // indicates if a job permits telecommuting. If this field is set to + // [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], + // telecommuting jobs are searched, and + // [address][google.cloud.talent.v4beta1.LocationFilter.address] and + // [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored. + // If not set or set to + // [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], + // telecommute job are not searched. + // + // This filter can be used by itself to search exclusively for telecommuting + // jobs, or it can be combined with another location + // filter to search for a combination of job locations, + // such as "Mountain View" or "telecommuting" jobs. However, when used in + // combination with other location filters, telecommuting jobs can be + // treated as less relevant than other jobs in the search response. + TelecommutePreference telecommute_preference = 5; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // are excluded. + // + // Currently only supported in profile search. + bool negated = 6; +} + +// Input only. +// +// Filter on job compensation type and amount. +message CompensationFilter { + // Specify the type of filtering. + enum FilterType { + // Filter type unspecified. Position holder, INVALID, should never be used. + FILTER_TYPE_UNSPECIFIED = 0; + + // Filter by `base compensation entry's` unit. A job is a match if and + // only if the job contains a base CompensationEntry and the base + // CompensationEntry's unit matches provided + // [units][google.cloud.talent.v4beta1.CompensationFilter.units]. Populate + // one or more + // [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + // + // See + // [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for definition of base compensation entry. + UNIT_ONLY = 1; + + // Filter by `base compensation entry's` unit and amount / range. A job + // is a match if and only if the job contains a base CompensationEntry, and + // the base entry's unit matches provided [compensation_units][] and amount + // or range overlaps with provided [compensation_range][]. + // + // See + // [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for definition of base compensation entry. + // + // Set exactly one + // [units][google.cloud.talent.v4beta1.CompensationFilter.units] and + // populate [range][google.cloud.talent.v4beta1.CompensationFilter.range]. + UNIT_AND_AMOUNT = 2; + + // Filter by annualized base compensation amount and `base compensation + // entry's` unit. Populate + // [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or + // more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + ANNUALIZED_BASE_AMOUNT = 3; + + // Filter by annualized total compensation amount and `base compensation + // entry's` unit . Populate + // [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or + // more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + ANNUALIZED_TOTAL_AMOUNT = 4; + } + + // Required. + // + // Type of filter. + FilterType type = 1; + + // Required. + // + // Specify desired `base compensation entry's` + // [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit]. + repeated CompensationInfo.CompensationUnit units = 2; + + // Optional. + // + // Compensation range. + CompensationInfo.CompensationRange range = 3; + + // Optional. + // + // Whether to include jobs whose compensation range is unspecified. + bool include_jobs_with_unspecified_compensation_range = 4; +} + +// Input only. +// +// Parameters needed for commute search. +message CommuteFilter { + // The traffic density to use when calculating commute time. + enum RoadTraffic { + // Road traffic situation isn't specified. + ROAD_TRAFFIC_UNSPECIFIED = 0; + + // Optimal commute time without considering any traffic impact. + TRAFFIC_FREE = 1; + + // Commute time calculation takes in account the peak traffic impact. + BUSY_HOUR = 2; + } + + // Required. + // + // The method of transportation for which to calculate the commute time. + CommuteMethod commute_method = 1; + + // Required. + // + // The latitude and longitude of the location from which to calculate the + // commute time. + google.type.LatLng start_coordinates = 2; + + // Required. + // + // The maximum travel time in seconds. The maximum allowed value is `3600s` + // (one hour). Format is `123s`. + google.protobuf.Duration travel_duration = 3; + + // Optional. + // If `true`, jobs without street level addresses may also be returned. + // For city level addresses, the city center is used. For state and coarser + // level addresses, text matching is used. + // If this field is set to `false` or isn't specified, only jobs that include + // street level addresses will be returned by commute search. + bool allow_imprecise_addresses = 4; + + // Optional. + // + // Traffic factor to take into account while searching by commute. + oneof traffic_option { + // Optional. + // + // Specifies the traffic density to use when calculating commute time. + RoadTraffic road_traffic = 5; + + // Optional. + // + // The departure time used to calculate traffic impact, represented as + // [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone. + // + // Currently traffic model is restricted to hour level resolution. + google.type.TimeOfDay departure_time = 6; + } +} + +// Input only. +// +// Job title of the search. +message JobTitleFilter { + // Required. + // + // The job title, for example, "Software engineer", or "Product manager". + string job_title = 1; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // are excluded. + bool negated = 2; +} + +// Input only. +// +// Skill filter of the search. +message SkillFilter { + // Required. + // + // The skill name. For example, "java", "j2ee", etc. + string skill = 1; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // are excluded. + bool negated = 2; +} + +// Input only. +// +// Employer filter of the search. +message EmployerFilter { + // Enum indicating which set of + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records] + // to search against. + enum EmployerFilterMode { + // Default value. + EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; + + // Apply to all employers in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + ALL_EMPLOYMENT_RECORDS = 1; + + // Apply only to current employer in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; + + // Apply only to past (not current) employers in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + PAST_EMPLOYMENT_RECORDS_ONLY = 3; + } + + // Required. + // + // The name of the employer, for example "Google", "Alphabet". + string employer = 1; + + // Optional. + // + // Define set of + // [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search + // against. + // + // Defaults to + // [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS]. + EmployerFilterMode mode = 2; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // is excluded. + bool negated = 3; +} + +// Input only. +// +// Education filter of the search. +message EducationFilter { + // Optional. + // + // The school name. For example "MIT", "University of California, Berkeley". + string school = 1; + + // Optional. + // + // The field of study. This is to search against value provided in + // [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study]. + // For example "Computer Science", "Mathematics". + string field_of_study = 2; + + // Optional. + // + // Education degree in ISCED code. Each value in degree covers a specific + // level of education, without any expansion to upper nor lower levels of + // education degree. + DegreeType degree_type = 3; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // is excluded. + bool negated = 6; +} + +// Input only. +// +// Work experience filter. +// +// This filter is used to search for profiles with working experience length +// between +// [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience] +// and +// [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience]. +message WorkExperienceFilter { + // Optional. + // + // The minimum duration of the work experience (inclusive). + google.protobuf.Duration min_experience = 1; + + // Optional. + // + // The maximum duration of the work experience (exclusive). + google.protobuf.Duration max_experience = 2; +} + +// Input only. +// +// Application Date Range Filter. +// +// The API matches profiles with +// [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date] +// between start date and end date (both boundaries are inclusive). The filter +// is ignored if both +// [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date] +// and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date] +// are missing. +message ApplicationDateFilter { + // Optional. + // + // Start date. If it's missing, The API matches profiles with application date + // not after the end date. + google.type.Date start_date = 1; + + // Optional. + // + // End date. If it's missing, The API matches profiles with application date + // not before the start date. + google.type.Date end_date = 2; +} + +// Input only. +// +// Outcome Reason Filter. +message ApplicationOutcomeReasonFilter { + // Required. + // + // User entered or selected outcome reason. The API does an exact match on the + // [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] + // in profiles. + string outcome_reason = 1; + + // Optional. + // + // If true, The API excludes all candidates with any + // [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] + // matching the outcome reason specified in the filter. + bool negated = 2; +} + +// Input only. +// +// Filter on Last Stage of Application. +message ApplicationLastStageFilter { + // Required. + // + // User entered or selected last stage the candidate reached in the + // application. The API does an exact match on the + // [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] + // in profiles. + string last_stage = 1; + + // Optional. + // If true, The API excludes all candidates with any + // [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] + // matching the last stage specified in the filter. + bool negated = 2; +} + +// Input only. +// +// Filter on the job information of Application. +message ApplicationJobFilter { + // Optional. + // + // The job resource name in the application. The API does an exact match on + // the [Job.name][google.cloud.talent.v4beta1.Job.name] of + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in + // profiles. + string job_name = 1; + + // Optional. + // + // The job requisition id in the application. The API does an exact match on + // the [Job.requisistion_id][] of + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in + // profiles. + string job_requisition_id = 2; + + // Optional. + // + // The job title in the application. The API does an exact match on the + // [Job.title][google.cloud.talent.v4beta1.Job.title] of + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in + // profiles. + string job_title = 3; + + // Optional. + // + // If true, the API excludes all profiles with any + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] + // matching the filters. + bool negated = 4; +} + +// Input only. +// +// Filter on status of Application. +message ApplicationStatusFilter { + // Required. + // + // User entered or selected application status. The API does an exact match + // between the application status specified in this filter and the + // [JobApplication.status][] in profiles. + JobApplication.ApplicationStatus application_status = 1; + + // Optional. + // + // If true, The API excludes all candidates with any [JobApplication.status][] + // matching the status specified in the filter. + bool negated = 2; +} + +// Input only. +// +// Filter on create timestamp or update timestamp of profiles. +message TimeFilter { + // Time fields can be used in TimeFilter. + enum TimeField { + // Default value. + TIME_FIELD_UNSPECIFIED = 0; + + // Earliest profile create time. + CREATE_TIME = 1; + + // Latest profile update time. + UPDATE_TIME = 2; + } + + // Optional. + // + // Start timestamp, matching profiles with the start time. If this field + // missing, The API matches profiles with create / update timestamp before the + // end timestamp. + google.protobuf.Timestamp start_time = 1; + + // Optional. + // + // End timestamp, matching profiles with the end time. If this field + // missing, The API matches profiles with create / update timestamp after the + // start timestamp. + google.protobuf.Timestamp end_time = 2; + + // Optional. + // + // Specifies which time field to filter profiles. + // + // Defaults to + // [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME]. + TimeField time_field = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto new file mode 100644 index 000000000000..22c4f82df8de --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto @@ -0,0 +1,61 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "HistogramProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Input Only. +// +// The histogram request. +message HistogramQuery { + // An expression specifies a histogram request against matching resources + // (for example, jobs, profiles) for searches. + // + // See + // [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries] + // and + // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries] + // for details about syntax. + string histogram_query = 1; +} + +// Output only. +// +// Histogram result that matches [HistogramSpec][] specified in searches. +message HistogramQueryResult { + // Requested histogram expression. + string histogram_query = 1; + + // A map from the values of the facet associated with distinct values to the + // number of matching entries with corresponding value. + // + // The key format is: + // * (for string histogram) string values stored in the field. + // * (for named numeric bucket) name specified in `bucket()` function, like + // for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`. + // * (for anonymous numeric bucket) range formatted as `-`, for + // example, `0-1000`, `MIN-0`, and `0-MAX`. + map histogram = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto new file mode 100644 index 000000000000..1cf276d2484f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto @@ -0,0 +1,415 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "JobResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A Job resource represents a job posting (also referred to as a "job listing" +// or "job requisition"). A job belongs to a +// [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity +// responsible for the job. +message Job { + // Application related details of a job posting. + message ApplicationInfo { + // Optional but at least one of + // [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris], + // [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or + // [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction] + // must be specified. + // + // Use this field to specify email address(es) to which resumes or + // applications can be sent. + // + // The maximum number of allowed characters for each entry is 255. + repeated string emails = 1; + + // Optional but at least one of + // [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris], + // [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or + // [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction] + // must be specified. + // + // Use this field to provide instructions, such as "Mail your application + // to ...", that a candidate can follow to apply for the job. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 3,000. + string instruction = 2; + + // Optional but at least one of + // [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris], + // [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or + // [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction] + // must be specified. + // + // Use this URI field to direct an applicant to a website, for example to + // link to an online application form. + // + // The maximum number of allowed characters for each entry is 2,000. + repeated string uris = 3; + } + + // Output only. + // + // Derived details about the job posting. + message DerivedInfo { + // Structured locations of the job, resolved from + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses]. + // + // [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are + // exactly matched to + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same + // order. + repeated Location locations = 1; + + // Job categories derived from + // [Job.title][google.cloud.talent.v4beta1.Job.title] and + // [Job.description][google.cloud.talent.v4beta1.Job.description]. + repeated JobCategory job_categories = 3; + } + + // Input only. + // + // Options for job processing. + message ProcessingOptions { + // Optional. + // + // If set to `true`, the service does not attempt to resolve a + // more precise address for the job. + bool disable_street_address_resolution = 1; + + // Optional. + // + // Option for job HTML content sanitization. Applied fields are: + // + // * description + // * applicationInfo.instruction + // * incentives + // * qualifications + // * responsibilities + // + // HTML tags in these fields may be stripped if sanitiazation isn't + // disabled. + // + // Defaults to + // [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY]. + HtmlSanitization html_sanitization = 2; + } + + // Required during job update. + // + // The resource name for the job. This is generated by the service when a + // job is created. + // + // The format is "projects/{project_id}/jobs/{job_id}", + // for example, "projects/api-test-project/jobs/1234". + // + // Use of this field in job queries and API calls is preferred over the use of + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this + // value is unique. + string name = 1; + + // Required. + // + // The resource name of the company listing the job, such as + // "projects/api-test-project/companies/foo". + string company_name = 2; + + // Required. + // + // The requisition ID, also referred to as the posting ID, is assigned by the + // client to identify a job. This field is intended to be used by clients + // for client identification and tracking of postings. A job isn't allowed + // to be created if there is another job with the same + // [company][google.cloud.talent.v4beta1.Job.name], + // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. + // + // The maximum number of allowed characters is 255. + string requisition_id = 3; + + // Required. + // + // The title of the job, such as "Software Engineer" + // + // The maximum number of allowed characters is 500. + string title = 4; + + // Required. + // + // The description of the job, which typically includes a multi-paragraph + // description of the company and related information. Separate fields are + // provided on the job object for + // [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities], + // [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other + // job characteristics. Use of these separate job fields is recommended. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 100,000. + string description = 5; + + // Optional but strongly recommended for the best service experience. + // + // Location(s) where the employer is looking to hire for this job posting. + // + // Specifying the full street address(es) of the hiring location enables + // better API results, especially job searches by commute time. + // + // At most 50 locations are allowed for best search performance. If a job has + // more locations, it is suggested to split it into multiple jobs with unique + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g. + // 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same + // [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not + // allowed. If the original + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be + // preserved, a custom field should be used for storage. It is also suggested + // to group the locations that close to each other in the same job for better + // search experience. + // + // The maximum number of allowed characters is 500. + repeated string addresses = 6; + + // Required. At least one field within + // [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be + // specified. + // + // Job application information. + ApplicationInfo application_info = 7; + + // Optional. + // + // The benefits included with the job. + repeated JobBenefit job_benefits = 8; + + // Optional. + // + // Job compensation information. + CompensationInfo compensation_info = 9; + + // Optional. + // + // A map of fields to hold both filterable and non-filterable custom job + // attributes that are not covered by the provided structured fields. + // + // The keys of the map are strings up to 64 bytes and must match the + // pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or + // KEY_1_LIKE_THIS. + // + // At most 100 filterable and at most 100 unfilterable keys are supported. + // For filterable `string_values`, across all keys at most 200 values are + // allowed, with each string no more than 255 characters. For unfilterable + // `string_values`, the maximum total size of `string_values` across all keys + // is 50KB. + map custom_attributes = 10; + + // Optional. + // + // The desired education degrees for the job, such as Bachelors, Masters. + repeated DegreeType degree_types = 11; + + // Optional. + // + // The department or functional area within the company with the open + // position. + // + // The maximum number of allowed characters is 255. + string department = 12; + + // Optional. + // + // The employment type(s) of a job, for example, + // [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or + // [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME]. + repeated EmploymentType employment_types = 13; + + // Optional. + // + // A description of bonus, commission, and other compensation + // incentives associated with the job not including salary or pay. + // + // The maximum number of allowed characters is 10,000. + string incentives = 14; + + // Optional. + // + // The language of the posting. This field is distinct from + // any requirements for fluency that are associated with the job. + // + // Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: + // class="external" target="_blank" }. + // + // If this field is unspecified and + // [Job.description][google.cloud.talent.v4beta1.Job.description] is present, + // detected language code based on + // [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned, + // otherwise defaults to 'en_US'. + string language_code = 15; + + // Optional. + // + // The experience level associated with the job, such as "Entry Level". + JobLevel job_level = 16; + + // Optional. + // + // A promotion value of the job, as determined by the client. + // The value determines the sort order of the jobs returned when searching for + // jobs using the featured jobs search call, with higher promotional values + // being returned first and ties being resolved by relevance sort. Only the + // jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH. + // + // Default value is 0, and negative values are treated as 0. + int32 promotion_value = 17; + + // Optional. + // + // A description of the qualifications required to perform the + // job. The use of this field is recommended + // as an alternative to using the more general + // [description][google.cloud.talent.v4beta1.Job.description] field. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 10,000. + string qualifications = 18; + + // Optional. + // + // A description of job responsibilities. The use of this field is + // recommended as an alternative to using the more general + // [description][google.cloud.talent.v4beta1.Job.description] field. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 10,000. + string responsibilities = 19; + + // Optional. + // + // The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for + // example, state, country) throughout which the job is available. If this + // field is set, a + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search + // query within the job region finds this job posting if an exact location + // match isn't specified. If this field is set to + // [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or + // [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA], + // setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to + // the same location level as this field is strongly recommended. + PostingRegion posting_region = 20; + + // Optional. + // + // The visibility of the job. + // + // Defaults to + // [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY] + // if not specified. + Visibility visibility = 21; + + // Optional. + // + // The start timestamp of the job in UTC time zone. Typically this field + // is used for contracting engagements. Invalid timestamps are ignored. + google.protobuf.Timestamp job_start_time = 22; + + // Optional. + // + // The end timestamp of the job. Typically this field is used for contracting + // engagements. Invalid timestamps are ignored. + google.protobuf.Timestamp job_end_time = 23; + + // Optional. + // + // The timestamp this job posting was most recently published. The default + // value is the time the request arrives at the server. Invalid timestamps are + // ignored. + google.protobuf.Timestamp posting_publish_time = 24; + + // Optional but strongly recommended for the best service + // experience. + // + // The expiration timestamp of the job. After this timestamp, the + // job is marked as expired, and it no longer appears in search results. The + // expired job can't be deleted or listed by the [DeleteJob][] and + // [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or + // updated with the [UpdateJob][] API. An expired job can be updated and + // opened again by using a future expiration timestamp. Updating an expired + // job fails if there is another existing open job with same + // [company][google.cloud.talent.v4beta1.Job.name][], + // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. + // + // The expired jobs are retained in our system for 90 days. However, the + // overall expired job count cannot exceed 3 times the maximum of open jobs + // count over the past week, otherwise jobs with earlier expire time are + // cleaned first. Expired jobs are no longer accessible after they are cleaned + // out. + // + // Invalid timestamps are ignored, and treated as expire time not provided. + // + // Timestamp before the instant request is made is considered valid, the job + // will be treated as expired immediately. + // + // If this value isn't provided at the time of job creation or is invalid, + // the job posting expires after 30 days from the job's creation time. For + // example, if the job was created on 2017/01/01 13:00AM UTC with an + // unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC. + // + // If this value isn't provided on job update, it depends on the field masks + // set by + // [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]. + // If the field masks include [expiry_time][], or the masks are empty meaning + // that every field is updated, the job posting expires after 30 days from the + // job's last update time. Otherwise the expiration date isn't updated. + google.protobuf.Timestamp posting_expire_time = 25; + + // Output only. The timestamp when this job posting was created. + google.protobuf.Timestamp posting_create_time = 26; + + // Output only. The timestamp when this job posting was last updated. + google.protobuf.Timestamp posting_update_time = 27; + + // Output only. Display name of the company listing the job. + string company_display_name = 28; + + // Output only. Derived details about the job posting. + DerivedInfo derived_info = 29; + + // Optional. + // + // Options for job processing. + ProcessingOptions processing_options = 30; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto new file mode 100644 index 000000000000..6a8b691f267d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto @@ -0,0 +1,836 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/batch.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/filters.proto"; +import "google/cloud/talent/v4beta1/histogram.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "JobServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service handles job management, including job CRUD, enumeration and search. +service JobService { + // Creates a new job. + // + // Typically, the job becomes searchable within 10 seconds, but it may take + // up to 5 minutes. + rpc CreateJob(CreateJobRequest) returns (Job) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs" + body: "*" + }; + } + + // Retrieves the specified job, whose status is OPEN or recently EXPIRED + // within the last 90 days. + rpc GetJob(GetJobRequest) returns (Job) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/jobs/*}" + }; + } + + // Updates specified job. + // + // Typically, updated contents become visible in search results within 10 + // seconds, but it may take up to 5 minutes. + rpc UpdateJob(UpdateJobRequest) returns (Job) { + option (google.api.http) = { + patch: "/v4beta1/{job.name=projects/*/jobs/*}" + body: "*" + }; + } + + // Deletes the specified job. + // + // Typically, the job becomes unsearchable within 10 seconds, but it may take + // up to 5 minutes. + rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/jobs/*}" + }; + } + + // Lists jobs by filter. + rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*}/jobs" + }; + } + + // Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + rpc BatchDeleteJobs(BatchDeleteJobsRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs:batchDelete" + body: "*" + }; + } + + // Searches for jobs using the provided + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // + // This call constrains the + // [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in + // the database, and only returns jobs that the caller has permission to + // search against. + rpc SearchJobs(SearchJobsRequest) returns (SearchJobsResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs:search" + body: "*" + }; + } + + // Searches for jobs using the provided + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // + // This API call is intended for the use case of targeting passive job + // seekers (for example, job seekers who have signed up to receive email + // alerts about potential job opportunities), and has different algorithmic + // adjustments that are targeted to passive job seekers. + // + // This call constrains the + // [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in + // the database, and only returns jobs the caller has permission to search + // against. + rpc SearchJobsForAlert(SearchJobsRequest) returns (SearchJobsResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs:searchForAlert" + body: "*" + }; + } +} + +// Input only. +// +// Create job request. +message CreateJobRequest { + // Required. + // + // The resource name of the project under which the job is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The Job to be created. + Job job = 2; +} + +// Input only. +// +// Get job request. +message GetJobRequest { + // Required. + // + // The resource name of the job to retrieve. + // + // The format is "projects/{project_id}/jobs/{job_id}", + // for example, "projects/api-test-project/jobs/1234". + string name = 1; +} + +// Input only. +// +// Update job request. +message UpdateJobRequest { + // Required. + // + // The Job to be updated. + Job job = 1; + + // Optional but strongly recommended to be provided for the best service + // experience. + // + // If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask] + // is provided, only the specified fields in + // [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated. + // Otherwise all the fields are updated. + // + // A field mask to restrict the fields that are updated. Only + // top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported. + google.protobuf.FieldMask update_mask = 2; +} + +// Input only. +// +// Delete job request. +message DeleteJobRequest { + // Required. + // + // The resource name of the job to be deleted. + // + // The format is "projects/{project_id}/jobs/{job_id}", + // for example, "projects/api-test-project/jobs/1234". + string name = 1; +} + +// Input only. +// +// Batch delete jobs request. +message BatchDeleteJobsRequest { + // Required. + // + // The resource name of the project under which the job is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The filter string specifies the jobs to be deleted. + // + // Supported operator: =, AND + // + // The fields eligible for filtering are: + // + // * `companyName` (Required) + // * `requisitionId` (Required) + // + // Sample Query: companyName = "projects/api-test-project/companies/123" AND + // requisitionId = "req-1" + string filter = 2; +} + +// Input only. +// +// List jobs request. +message ListJobsRequest { + // Required. + // + // The resource name of the project under which the job is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The filter string specifies the jobs to be enumerated. + // + // Supported operator: =, AND + // + // The fields eligible for filtering are: + // + // * `companyName` (Required) + // * `requisitionId` (Optional) + // * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to + // OPEN if no value is specified. + // + // Sample Query: + // + // * companyName = "projects/api-test-project/companies/123" + // * companyName = "projects/api-test-project/companies/123" AND requisitionId + // = "req-1" + // * companyName = "projects/api-test-project/companies/123" AND status = + // "EXPIRED" + string filter = 2; + + // Optional. + // + // The starting point of a query result. + string page_token = 3; + + // Optional. + // + // The maximum number of jobs to be returned per page of results. + // + // If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set + // to + // [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY], + // the maximum allowed page size is 1000. Otherwise, the maximum allowed page + // size is 100. + // + // Default is 100 if empty or a number < 1 is specified. + int32 page_size = 4; + + // Optional. + // + // The desired job attributes returned for jobs in the + // search response. Defaults to + // [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL] + // if no value is specified. + JobView job_view = 5; +} + +// An enum that specifies the job attributes that are returned in the +// [MatchingJob.Job][] in +// [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse] or +// [Job][google.cloud.talent.v4beta1.Job] objects in +// [ListJobsResponse][google.cloud.talent.v4beta1.ListJobsResponse]. +enum JobView { + // Default value. + JOB_VIEW_UNSPECIFIED = 0; + + // A ID only view of job, with following attributes: + // [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. + JOB_VIEW_ID_ONLY = 1; + + // A minimal view of the job, with the following attributes: + // [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.job_title][], + // [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + // [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. + JOB_VIEW_MINIMAL = 2; + + // A small view of the job, with the following attributes in the search + // results: [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.job_title][], + // [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + // [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], + // [Job.visibility][google.cloud.talent.v4beta1.Job.visibility], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], + // [Job.description][google.cloud.talent.v4beta1.Job.description]. + JOB_VIEW_SMALL = 3; + + // All available attributes are included in the search results. + JOB_VIEW_FULL = 4; +} + +// Output only. +// +// List jobs response. +message ListJobsResponse { + // The Jobs for a given company. + // + // The maximum number of items returned is based on the limit field + // provided in the request. + repeated Job jobs = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; +} + +// Input only. +// +// The Request body of the `SearchJobs` call. +message SearchJobsRequest { + // Input only. + // + // Custom ranking information for + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + message CustomRankingInfo { + // The importance level for + // [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]. + enum ImportanceLevel { + // Default value if the importance level isn't specified. + IMPORTANCE_LEVEL_UNSPECIFIED = 0; + + // The given ranking expression is of None importance, existing relevance + // score (determined by API algorithm) dominates job's final ranking + // position. + NONE = 1; + + // The given ranking expression is of Low importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + LOW = 2; + + // The given ranking expression is of Mild importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + MILD = 3; + + // The given ranking expression is of Medium importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + MEDIUM = 4; + + // The given ranking expression is of High importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + HIGH = 5; + + // The given ranking expression is of Extreme importance, and dominates + // job's final ranking position with existing relevance + // score (determined by API algorithm) ignored. + EXTREME = 6; + } + + // Required. + // + // Controls over how important the score of + // [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression] + // gets applied to job's final ranking position. + // + // An error is thrown if not specified. + ImportanceLevel importance_level = 1; + + // Required. + // + // Controls over how job documents get ranked on top of existing relevance + // score (determined by API algorithm). The product of ranking expression + // and relevance score is used to determine job's final ranking position. + // + // The syntax for this expression is a subset of Google SQL syntax. + // + // Supported operators are: +, -, *, /, where the left and right side of + // the operator is either a numeric + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] + // key, integer/double value or an expression that can be evaluated to a + // number. + // + // Parenthesis are supported to adjust calculation precedence. The + // expression must be < 100 characters in length. + // + // Sample ranking expression + // (year + 25) * 0.25 - (freshness / 0.5) + string ranking_expression = 2; + } + + // A string-represented enumeration of the job search mode. The service + // operate differently for different modes of service. + enum SearchMode { + // The mode of the search method isn't specified. + SEARCH_MODE_UNSPECIFIED = 0; + + // The job search matches against all jobs, and featured jobs + // (jobs with promotionValue > 0) are not specially handled. + JOB_SEARCH = 1; + + // The job search matches only against featured jobs (jobs with a + // promotionValue > 0). This method doesn't return any jobs having a + // promotionValue <= 0. The search results order is determined by the + // promotionValue (jobs with a higher promotionValue are returned higher up + // in the search results), with relevance being used as a tiebreaker. + FEATURED_JOB_SEARCH = 2; + } + + // Controls whether highly similar jobs are returned next to each other in + // the search results. Jobs are identified as highly similar based on + // their titles, job categories, and locations. Highly similar results are + // clustered so that only one representative job of the cluster is + // displayed to the job seeker higher up in the results, with the other jobs + // being displayed lower down in the results. + enum DiversificationLevel { + // The diversification level isn't specified. + DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; + + // Disables diversification. Jobs that would normally be pushed to the last + // page would not have their positions altered. This may result in highly + // similar jobs appearing in sequence in the search results. + DISABLED = 1; + + // Default diversifying behavior. The result list is ordered so that + // highly similar results are pushed to the end of the last page of search + // results. + SIMPLE = 2; + } + + // Required. + // + // The resource name of the project to search within. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Optional. + // + // Mode of a search. + // + // Defaults to + // [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH]. + SearchMode search_mode = 2; + + // Required. + // + // The meta information collected about the job searcher, used to improve the + // search quality of the service.. The identifiers, (such as `user_id`) are + // provided by users, and must be unique and consistent. + RequestMetadata request_metadata = 3; + + // Optional. + // + // Query used to search against jobs, such as keyword, location filters, etc. + JobQuery job_query = 4; + + // Optional. + // + // Controls whether to broaden the search when it produces sparse results. + // Broadened queries append results to the end of the matching results + // list. + // + // Defaults to false. + bool enable_broadening = 5; + + // Optional. + // + // Controls if the search job request requires the return of a precise + // count of the first 300 results. Setting this to `true` ensures + // consistency in the number of results per page. Best practice is to set this + // value to true if a client allows users to jump directly to a + // non-sequential search results page. + // + // Enabling this flag may adversely impact performance. + // + // Defaults to false. + bool require_precise_result_size = 6; + + // Optional. + // + // An expression specifies a histogram request against matching jobs. + // + // Expression syntax is an aggregation function call with histogram facets and + // other options. + // + // Available aggregation function calls are: + // * `count(string_histogram_facet)`: Count the number of matching entities, + // for each distinct attribute value. + // * `count(numeric_histogram_facet, list of buckets)`: Count the number of + // matching entities within each bucket. + // + // Data types: + // + // * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+. + // * String: string like "any string with backslash escape for quote(\")." + // * Number: whole number and floating point number like 10, -1 and -0.01. + // * List: list of elements with comma(,) separator surrounded by square + // brackets, for example, [1, 2, 3] and ["one", "two", "three"]. + // + // Built-in constants: + // + // * MIN (minimum number similar to java Double.MIN_VALUE) + // * MAX (maximum number similar to java Double.MAX_VALUE) + // + // Built-in functions: + // + // * bucket(start, end[, label]): bucket built-in function creates a bucket + // with range of [start, end). Note that the end is exclusive, for example, + // bucket(1, MAX, "positive number") or bucket(1, 10). + // + // Job histogram facets: + // + // * company_id: histogram by [Job.distributor_company_id][]. + // * company_display_name: histogram by + // [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name]. + // * employment_type: histogram by + // [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types], + // for example, "FULL_TIME", "PART_TIME". + // * company_size: histogram by + // [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, + // "SMALL", "MEDIUM", "BIG". + // * publish_time_in_month: histogram by the [Job.publish_time][] in months. + // Must specify list of numeric buckets in spec. + // * publish_time_in_year: histogram by the [Job.publish_time][] in years. + // Must specify list of numeric buckets in spec. + // * degree_type: histogram by the [Job.degree_type][], for example, + // "Bachelors", "Masters". + // * job_level: histogram by the + // [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example, + // "Entry Level". + // * country: histogram by the country code of jobs, for example, "US", "FR". + // * admin1: histogram by the admin1 code of jobs, which is a global + // placeholder referring to the state, province, or the particular term a + // country uses to define the geographic structure below the country level, + // for example, "CA", "IL". + // * city: histogram by a combination of the "city name, admin1 code". For + // example, "Mountain View, CA", "New York, NY". + // * admin1_country: histogram by a combination of the "admin1 code, country", + // for example, "CA, US", "IL, US". + // * city_coordinate: histogram by the city center's GPS coordinates (latitude + // and longitude), for example, 37.4038522,-122.0987765. Since the coordinates + // of a city center can change, customers may need to refresh them + // periodically. + // * locale: histogram by the + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for + // example, "en-US", "fr-FR". + // * language: histogram by the language subtag of the + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for + // example, "en", "fr". + // * category: histogram by the + // [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example, + // "COMPUTER_AND_IT", "HEALTHCARE". + // * base_compensation_unit: histogram by the [CompensationUnit][] of base + // salary, for example, "WEEKLY", "MONTHLY". + // * base_compensation: histogram by the base salary. Must specify list of + // numeric buckets to group results by. + // * annualized_base_compensation: histogram by the base annualized salary. + // Must specify list of numeric buckets to group results by. + // * annualized_total_compensation: histogram by the total annualized salary. + // Must specify list of numeric buckets to group results by. + // * string_custom_attribute: histogram by string + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + // Values can be accessed via square bracket notations like + // string_custom_attribute["key1"]. + // * numeric_custom_attribute: histogram by numeric + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + // Values can be accessed via square bracket notations like + // numeric_custom_attribute["key1"]. Must specify list of numeric buckets to + // group results by. + // + // Example expressions: + // * count(admin1) + // * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), + // bucket(100000, MAX)]) + // * count(string_custom_attribute["some-string-custom-attribute"]) + // * count(numeric_custom_attribute["some-numeric-custom-attribute"], + // [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"]) + repeated HistogramQuery histogram_queries = 7; + + // Optional. + // + // The desired job attributes returned for jobs in the + // search response. Defaults to [JobView.SMALL][] if no value is specified. + JobView job_view = 8; + + // Optional. + // + // An integer that specifies the current offset (that is, starting result + // location, amongst the jobs deemed by the API as relevant) in search + // results. This field is only considered if + // [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is + // unset. + // + // For example, 0 means to return results starting from the first matching + // job, and 10 means to return from the 11th job. This can be used for + // pagination, (for example, pageSize = 10 and offset = 10 means to return + // from the second page). + int32 offset = 9; + + // Optional. + // + // A limit on the number of jobs returned in the search results. + // Increasing this value above the default value of 10 can increase search + // response time. The value can be between 1 and 100. + int32 page_size = 10; + + // Optional. + // + // The token specifying the current offset within + // search results. See + // [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token] + // for an explanation of how to obtain the next set of query results. + string page_token = 11; + + // Optional. + // + // The criteria determining how search results are sorted. Default is + // "relevance desc". + // + // Supported options are: + // + // * "relevance desc": By relevance descending, as determined by the API + // algorithms. Relevance thresholding of query results is only available + // with this ordering. + // * "posting`_`publish`_`time desc": By + // [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + // descending. + // * "posting`_`update`_`time desc": By + // [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time] + // descending. + // * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending. + // * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title] + // descending. + // * "annualized`_`base`_`compensation": By job's + // [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] + // ascending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "annualized`_`base`_`compensation desc": By job's + // [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] + // descending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "annualized`_`total`_`compensation": By job's + // [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] + // ascending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "annualized`_`total`_`compensation desc": By job's + // [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] + // descending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "custom`_`ranking desc": By the relevance score adjusted to the + // [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight + // factor assigned by + // [SearchJobsRequest.custom_ranking_info.importance_level][] in descending + // order. + // * "location`_`distance": By the distance between the location on jobs and + // locations specified in the + // [SearchJobsRequest.job_query.location_filters][]. + // When this order is selected, the + // [SearchJobsRequest.job_query.location_filters][] must not be empty. When + // a job has multiple locations, the location closest to one of the locations + // specified in the location filter will be used to calculate location + // distance. Distance is calculated by the distance between two lat/long + // coordinates, with a precision of 10e-4 degrees (11.3 meters). + // Jobs that don't have locations specified will be ranked below jobs having + // locations. + // Diversification strategy is still applied unless explicitly disabled in + // [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level]. + string order_by = 12; + + // Optional. + // + // Controls whether highly similar jobs are returned next to each other in + // the search results. Jobs are identified as highly similar based on + // their titles, job categories, and locations. Highly similar results are + // clustered so that only one representative job of the cluster is + // displayed to the job seeker higher up in the results, with the other jobs + // being displayed lower down in the results. + // + // Defaults to + // [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE] + // if no value is specified. + DiversificationLevel diversification_level = 13; + + // Optional. + // + // Controls over how job documents get ranked on top of existing relevance + // score (determined by API algorithm). + CustomRankingInfo custom_ranking_info = 14; + + // Optional. + // + // Controls whether to disable exact keyword match on [Job.job_title][], + // [Job.description][google.cloud.talent.v4beta1.Job.description], + // [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], + // [Job.locations][0], + // [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When + // disable keyword match is turned off, a keyword match returns jobs that do + // not match given category filters when there are matching keywords. For + // example, for the query "program manager," a result is returned even if the + // job posting has the title "software developer," which doesn't fall into + // "program manager" ontology, but does have "program manager" appearing in + // its description. + // + // For queries like "cloud" that don't contain title or + // location specific ontology, jobs with "cloud" keyword matches are returned + // regardless of this flag's value. + // + // Please use [Company.keyword_searchable_custom_fields][] or + // [Company.keyword_searchable_custom_attributes][] if company specific + // globally matched custom field/attribute string values is needed. Enabling + // keyword match improves recall of subsequent search requests. + // + // Defaults to false. + bool disable_keyword_match = 16; +} + +// Output only. +// +// Response for SearchJob method. +message SearchJobsResponse { + // Output only. + // + // Job entry with metadata inside + // [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse]. + message MatchingJob { + // Job resource that matches the specified + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + Job job = 1; + + // A summary of the job with core information that's displayed on the search + // results listing page. + string job_summary = 2; + + // Contains snippets of text from the [Job.job_title][] field most + // closely matching a search query's keywords, if available. The matching + // query keywords are enclosed in HTML bold tags. + string job_title_snippet = 3; + + // Contains snippets of text from the + // [Job.description][google.cloud.talent.v4beta1.Job.description] and + // similar fields that most closely match a search query's keywords, if + // available. All HTML tags in the original fields are stripped when + // returned in this field, and matching query keywords are enclosed in HTML + // bold tags. + string search_text_snippet = 4; + + // Commute information which is generated based on specified + // [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter]. + CommuteInfo commute_info = 5; + } + + // Output only. + // + // Commute details related to this job. + message CommuteInfo { + // Location used as the destination in the commute calculation. + Location job_location = 1; + + // The number of seconds required to travel to the job location from the + // query location. A duration of 0 seconds indicates that the job isn't + // reachable within the requested duration, but was returned as part of an + // expanded query. + google.protobuf.Duration travel_duration = 2; + } + + // The Job entities that match the specified + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + repeated MatchingJob matching_jobs = 1; + + // The histogram results that match with specified + // [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]. + repeated HistogramQueryResult histogram_query_results = 2; + + // The token that specifies the starting position of the next page of results. + // This field is empty if there are no more results. + string next_page_token = 3; + + // The location filters that the service applied to the specified query. If + // any filters are lat-lng based, the [JobLocation.location_type][] is + // [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][]. + repeated Location location_filters = 4; + + // An estimation of the number of jobs that match the specified query. + // + // This number isn't guaranteed to be accurate. For accurate results, + // see [enable_precise_result_size][]. + int32 estimated_total_size = 5; + + // The precise result count, which is available only if the client set + // [enable_precise_result_size][] to `true`, or if the response + // is the last page of results. Otherwise, the value is `-1`. + int32 total_size = 6; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 7; + + // If query broadening is enabled, we may append additional results from the + // broadened query. This number indicates how many of the jobs returned in the + // jobs field are from the broadened query. These results are always at the + // end of the jobs list. In particular, a value of 0, or if the field isn't + // set, all the jobs in the jobs list are from the original + // (without broadening) query. If this field is non-zero, subsequent requests + // with offset after this result set should contain all broadened results. + int32 broadened_query_jobs_count = 8; + + // The spell checking result, and correction. + SpellingCorrection spell_correction = 9; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto new file mode 100644 index 000000000000..a3c19f58a0ca --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto @@ -0,0 +1,1149 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/date.proto"; +import "google/type/postal_address.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "ProfileResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Cloud Profile Discovery API definition + +// A resource that represents the profile for a job candidate (also referred to +// as a "single-source profile"). A profile belongs to a +// [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance +// of the customer that owns the profile. +message Profile { + // Required during profile update. + // + // Resource name assigned to a profile by the API. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string name = 1; + + // Optional. + // + // Profile's id in client system if available. + // + // The maximum number of bytes allowed is 100. + string external_id = 2; + + // Optional. + // + // The source description indicating where the profile is acquired. + // + // For example, if a candidate profile is acquired from a resume, the user can + // input "resume" here to indicate the source. + // + // The maximum number of bytes allowed is 100. + string source = 3; + + // Optional. + // + // The URI set by clients that links to this profile's client-side copy. + // + // The maximum number of bytes allowed is 4000. + string uri = 4; + + // Optional. + // + // The cluster id of the profile to associate with other profile(s) for the + // same candidate. + // + // A random UUID is assigned if + // [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To + // ensure global uniqueness, customized + // [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported. + // If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there + // must be at least one other profile with the same system generated + // [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an + // error is thrown. + // + // This is used to link multiple profiles to the same candidate. For example, + // a client has a candidate with two profiles, where one was created recently + // and the other one was created 5 years ago. These two profiles may be very + // different. The clients can create the first profile and get a generated + // [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it + // when the second profile is created, indicating these two profiles are + // referring to the same candidate. + string group_id = 5; + + // Optional. + // + // Indicates the hirable status of the candidate. + google.protobuf.BoolValue is_hirable = 6; + + // Optional. + // + // The timestamp when the profile was first created at this source. + google.protobuf.Timestamp create_time = 7; + + // Optional. + // + // The timestamp when the profile was last updated at this source. + google.protobuf.Timestamp update_time = 8; + + // Optional. + // + // The profile contents in HR-XML format. + // See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more + // information about Human Resources XML. + // + // Users can create a profile with only + // [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For + // example, the API parses the + // [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and + // creates a profile with all structured fields populated, for example. + // [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord], + // [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An + // error is thrown if the + // [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be + // parsed. + // + // If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is + // provided during profile creation or update, any other structured data + // provided in the profile is ignored. The API populates these fields by + // parsing the HR-XML. + string resume_hrxml = 10; + + // Optional. + // + // The names of the candidate this profile references. + // + // Currently only one person name is supported. + repeated PersonName person_names = 11; + + // Optional. + // + // The candidate's postal addresses. + repeated Address addresses = 12; + + // Optional. + // + // The candidate's email addresses. + repeated Email email_addresses = 13; + + // Optional. + // + // The candidate's phone number(s). + repeated Phone phone_numbers = 14; + + // Optional. + // + // The candidate's personal URIs. + repeated PersonalUri personal_uris = 15; + + // Optional. + // + // Available contact information besides + // [addresses][google.cloud.talent.v4beta1.Profile.addresses], + // [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses], + // [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and + // [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For + // example, Hang-out, Skype. + repeated AdditionalContactInfo additional_contact_info = 16; + + // Optional. + // + // The employment history records of the candidate. It's highly recommended + // to input this information as accurately as possible to help improve search + // quality. Here are some recommendations: + // + // * Specify the start and end dates of the employment records. + // * List different employment types separately, no matter how minor the + // change is. + // For example, only job title is changed from "software engineer" to "senior + // software engineer". + // * Provide + // [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current] + // for the current employment if possible. If not, it's inferred from user + // inputs. + repeated EmploymentRecord employment_records = 17; + + // Optional. + // + // The education history record of the candidate. It's highly recommended to + // input this information as accurately as possible to help improve search + // quality. Here are some recommendations: + // + // * Specify the start and end dates of the education records. + // * List each education type separately, no matter how minor the change is. + // For example, the profile contains the education experience from the same + // school but different degrees. + // * Provide + // [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current] + // for the current education if possible. If not, it's inferred from user + // inputs. + repeated EducationRecord education_records = 18; + + // Optional. + // + // The skill set of the candidate. It's highly recommended to provide as + // much information as possible to help improve the search quality. + repeated Skill skills = 19; + + // Optional. + // + // The individual or collaborative activities which the candidate has + // participated in, for example, open-source projects, class assignments that + // aren't listed in + // [employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + repeated Activity activities = 20; + + // Optional. + // + // The publications published by the candidate. + repeated Publication publications = 21; + + // Optional. + // + // The patents acquired by the candidate. + repeated Patent patents = 22; + + // Optional. + // + // The certifications acquired by the candidate. + repeated Certification certifications = 23; + + // Optional. + // + // The job applications of the candidate. + repeated JobApplication job_applications = 24; + + // Optional. + // + // The recruiting notes added for the candidate. + // + // For example, the recruiter can add some unstructured comments for this + // candidate like "this candidate also has experiences in volunteer work". + repeated RecruitingNote recruiting_notes = 25; + + // Optional. + // + // A map of fields to hold both filterable and non-filterable custom profile + // attributes that aren't covered by the provided structured fields. See + // [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more + // details. + // + // At most 100 filterable and at most 100 unfilterable keys are supported. If + // limit is exceeded, an error is thrown. + // + // Numeric custom attributes: each key can only map to one numeric value, + // otherwise an error is thrown. + // + // String custom attributes: each key can map up to 50 string values. For + // filterable string value, each value has a byte size of no more than 256B. + // For unfilterable string values, the maximum byte size of a single key is + // 64B. An error is thrown for any request exceeding the limit. + // The maximum total byte size is 10KB. + // + // Currently filterable numeric custom attributes are not supported, and + // they automatically set to unfilterable. + map custom_attributes = 26; + + // Output only. Indicates if the profile is fully processed and searchable. + bool processed = 27; + + // Output only. Keyword snippet shows how the search result is related to a + // search query. + string keyword_snippet = 28; +} + +// Resource that represents the name of a person. +message PersonName { + // Resource that represents a person's structured name. + message PersonStructuredName { + // Optional. + // + // Given/first name. + // + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. + // + // Number of characters allowed is 100. + string given_name = 1; + + // Optional. + // + // Middle initial. + // + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. + // + // Number of characters allowed is 20. + string middle_initial = 2; + + // Optional. + // + // Family/last name. + // + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. + // + // Number of characters allowed is 100. + string family_name = 3; + + // Optional. + // + // Suffixes. + // + // Number of characters allowed is 20. + repeated string suffixes = 4; + + // Optional. + // + // Prefixes. + // + // Number of characters allowed is 20. + repeated string prefixes = 5; + } + + // The name of a person. It can be one of [formatted_name][] or + // [structured_name][]. + oneof person_name { + // Optional. + // + // A string represents a person's full name. For example, "Dr. John Smith". + // + // Number of characters allowed is 100. + string formatted_name = 1; + + // Optional. + // + // A person's name in a structured way (last name, first name, suffix, etc.) + PersonStructuredName structured_name = 2; + } + + // Optional. + // + // Preferred name for the person. + string preferred_name = 3; +} + +// Resource that represents a address. +message Address { + // Optional. + // + // The usage of the address. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // The address of a person. It can be one of [unstructured_address][] or + // [structured_address][]. + oneof address { + // Optional. + // + // Unstructured address. + // + // For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043", + // "Sunnyvale, California". + // + // Number of characters allowed is 100. + string unstructured_address = 2; + + // Optional. + // + // Structured address that contains street address, city, state, country, + // etc. + google.type.PostalAddress structured_address = 3; + } + + // Optional. + // + // Indicates if it's the person's current address. + google.protobuf.BoolValue is_current = 4; +} + +// Resource that represents a person's email address. +message Email { + // Optional. + // + // The usage of the email address. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // Optional. + // + // Email address. + // + // Number of characters allowed is 4,000. + string email_address = 2; +} + +// Resource that represents a person's telephone number. +message Phone { + // Enum that represents the type of the telephone. + enum PhoneType { + // Default value. + PHONE_TYPE_UNSPECIFIED = 0; + + // A landline. + LANDLINE = 1; + + // A mobile. + MOBILE = 2; + + // A fax. + FAX = 3; + + // A pager. + PAGER = 4; + + // A TTY (test telephone) or TDD (telecommunication device for the deaf). + TTY_OR_TDD = 5; + + // A voicemail. + VOICEMAIL = 6; + + // A virtual telephone number is a number that can be routed to another + // number and managed by the user via Web, SMS, IVR, etc. It is associated + // with a particular person, and may be routed to either a MOBILE or + // LANDLINE number. The phone usage (see ContactInfoUsage above) should be + // set to PERSONAL for these phone types. Some more information can be + // found here: http://en.wikipedia.org/wiki/Personal_Numbers + VIRTUAL = 7; + + // Voice over IP numbers. This includes TSoIP (Telephony Service over IP). + VOIP = 8; + + // In some regions (e.g. the USA), it is impossible to distinguish between + // fixed-line and mobile numbers by looking at the phone number itself. + MOBILE_OR_LANDLINE = 9; + } + + // Optional. + // + // The usage of the phone. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // Optional. + // + // The phone type. For example, LANDLINE, MOBILE, FAX. + PhoneType type = 2; + + // Optional. + // + // Phone number. + // + // Any phone formats are supported and only exact matches are performed on + // searches. For example, if a phone number in profile is provided in the + // format of "(xxx)xxx-xxxx", in profile searches the same phone format + // has to be provided. + // + // Number of characters allowed is 20. + string number = 3; + + // Optional. + // + // When this number is available. Any descriptive string is expected. + // + // Number of characters allowed is 100. + string when_available = 4; +} + +// Resource that represents a valid URI for a personal use. +message PersonalUri { + // Optional. + // + // The personal URI. + // + // Number of characters allowed is 4,000. + string uri = 1; +} + +// Resource that represents contact information other than phone, email, +// URI and addresses. +message AdditionalContactInfo { + // Optional. + // + // The usage of this contact method. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // Optional. + // + // The name of the contact method. + // + // For example, "hangout", "skype". + // + // Number of characters allowed is 100. + string name = 2; + + // Optional. + // + // The contact id. + // + // Number of characters allowed is 100. + string contact_id = 3; +} + +// Resource that represents an employment record of a candidate. +message EmploymentRecord { + // Optional. + // + // Start date of the employment. + // + // It can be a partial date (only year, or only year and month), but must be + // valid. Otherwise an error is thrown. + // + // Examples: + // {"year": 2017, "month": 2, "day": 28} is valid. + // {"year": 2020, "month": 1, "date": 31} is valid. + // {"year": 2018, "month": 12} is valid (partial date). + // {"year": 2018} is valid (partial date). + // {"year": 2015, "day": 21} is not valid (month is missing but day is + // presented). + // {"year": 2018, "month": 13} is not valid (invalid month). + // {"year": 2017, "month": 1, "day": 32} is not valid (invalid day). + google.type.Date start_date = 1; + + // Optional. + // + // End date of the employment. + google.type.Date end_date = 2; + + // Optional. + // + // The name of the employer company/organization. + // + // For example, "Google", "Alphabet", etc. + // + // Number of characters allowed is 100. + string employer_name = 3; + + // Optional. + // + // The division name of the employment. + // + // For example, division, department, client, etc. + // + // Number of characters allowed is 100. + string division_name = 4; + + // Optional. + // + // The physical address of the employer. + Address address = 5; + + // Optional. + // + // The job title of the employment. + // + // For example, "Software Engineer", "Data Scientist", etc. + // + // Number of characters allowed is 100. + string job_title = 6; + + // Optional. + // + // The description of job content. + // + // Number of characters allowed is 100,000. + string job_description = 7; + + // Optional. + // + // If it's a supervised position. + google.protobuf.BoolValue is_supervised_position = 8; + + // Optional. + // + // If this employment is self-employed. + google.protobuf.BoolValue is_self_employed = 9; + + // Optional. + // + // If this employment is current. + google.protobuf.BoolValue is_current = 10; + + // Output only. The job title snippet shows how the + // [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is + // related to a search query. It's empty if the + // [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't + // related to the search query. + string job_title_snippet = 11; + + // Output only. The job description snippet shows how the + // [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] + // is related to a search query. It's empty if the + // [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] + // isn't related to the search query. + string job_description_snippet = 12; + + // Output only. The employer name snippet shows how the + // [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] + // is related to a search query. It's empty if the + // [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] + // isn't related to the search query. + string employer_name_snippet = 13; +} + +// Resource that represents an education record of a candidate. +message EducationRecord { + // Optional. + // + // The start date of the education. + google.type.Date start_date = 1; + + // Optional. + // + // The end date of the education. + google.type.Date end_date = 2; + + // Optional. + // + // The expected graduation date if currently pursuing a degree. + google.type.Date expected_graduation_date = 3; + + // Optional. + // + // The name of the school or institution. + // + // For example, "Stanford University", "UC Berkeley", etc. + // + // Number of characters allowed is 100. + string school_name = 4; + + // Optional. + // + // The physical address of the education institution. + Address address = 5; + + // The degree information. It can be one of [degree_description][] or + // [structured_degree][]. + oneof degree { + // Optional. + // + // The full description of the degree. + // + // For example, "Master of Science in Computer Science", "B.S in Math". + // + // Number of characters allowed is 100. + string degree_description = 6; + + // Optional. + // + // The structured notation of the degree. + Degree structured_degree = 7; + } + + // Optional. + // + // The description of the education. + // + // Number of characters allowed is 100,000. + string description = 8; + + // Optional. + // + // If this education is current. + google.protobuf.BoolValue is_current = 9; + + // Output only. The school name snippet shows how the + // [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is + // related to a search query in search result. It's empty if the + // [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] + // isn't related to the search query. + string school_name_snippet = 10; + + // Output only. The job description snippet shows how the + // [degree][google.cloud.talent.v4beta1.degree] is related to a search query + // in search result. It's empty if the + // [degree][google.cloud.talent.v4beta1.degree] isn't related to the search + // query. + string degree_snippet = 11; +} + +// Resource that represents a degree pursuing or acquired by a candidate. +message Degree { + // Optional. + // + // ISCED degree type. + DegreeType degree_type = 1; + + // Optional. + // + // Full Degree name. + // + // For example, "B.S.", "Master of Arts", etc. + // + // Number of characters allowed is 100. + string degree_name = 2; + + // Optional. + // + // Fields of study for the degree. + // + // For example, "Computer science", "engineering". + // + // Number of characters allowed is 100. + repeated string fields_of_study = 3; +} + +// Resource that represents a skill of a candidate. +message Skill { + // Enum that represents the skill proficiency level. + enum SkillProficiencyLevel { + // Default value. + SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + + // Have a common knowledge or an understanding of basic techniques and + // concepts. + FUNDAMENTAL_AWARENESS = 1; + + // Have the level of experience gained in a classroom and/or experimental + // scenarios or as a trainee on-the-job. + NOVICE = 2; + + // Be able to successfully complete tasks in this skill as requested. Help + // from an expert may be required from time to time, but can usually perform + // skill independently. + INTERMEDIATE = 3; + + // Can perform the actions associated with this skill without assistance. + ADVANCED = 4; + + // Known as an expert in this area. + EXPERT = 5; + } + + // Optional. + // + // Skill display name. + // + // For example, "Java", "Python". + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // The last time this skill was used. + google.type.Date last_used_date = 2; + + // Optional. + // + // Skill proficiency level which indicates how proficient the candidate is at + // this skill. + SkillProficiencyLevel level = 3; + + // Optional. + // + // A paragraph describes context of this skill. + // + // Number of characters allowed is 100,000. + string context = 4; + + // Output only. Skill name snippet shows how the + // [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related + // to a search query. It's empty if the + // [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't + // related to the search query. + string skill_name_snippet = 5; +} + +// Resource that represents an individual or collaborative activity participated +// in by a candidate, for example, an open-source project, a class assignment, +// etc. +message Activity { + // Optional. + // + // Activity display name. + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // Activity description. + // + // Number of characters allowed is 100,000. + string description = 2; + + // Optional. + // + // Activity URI. + // + // Number of characters allowed is 4,000. + string uri = 3; + + // Optional. + // + // The first creation date of the activity. + google.type.Date create_date = 4; + + // Optional. + // + // The last update date of the activity. + google.type.Date update_date = 5; + + // Optional. + // + // A list of team members involved in this activity. + // + // Number of characters allowed is 100. + repeated string team_members = 6; + + // Optional. + // + // A list of skills used in this activity. + repeated Skill skills_used = 7; + + // Output only. Activity name snippet shows how the + // [display_name][google.cloud.talent.v4beta1.Activity.display_name] is + // related to a search query. It's empty if the + // [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't + // related to the search query. + string activity_name_snippet = 8; + + // Output only. Activity description snippet shows how the + // [description][google.cloud.talent.v4beta1.Activity.description] is related + // to a search query. It's empty if the + // [description][google.cloud.talent.v4beta1.Activity.description] isn't + // related to the search query. + string activity_description_snippet = 9; + + // Output only. Skill used snippet shows how the corresponding + // [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related + // to a search query. It's empty if the corresponding + // [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not + // related to the search query. + repeated string skills_used_snippet = 10; +} + +// Resource that represents a publication resource of a candidate. +message Publication { + // Optional. + // + // A list of author names. + // + // Number of characters allowed is 100. + repeated string authors = 1; + + // Optional. + // + // The title of the publication. + // + // Number of characters allowed is 100. + string title = 2; + + // Optional. + // + // The description of the publication. + // + // Number of characters allowed is 100,000. + string description = 3; + + // Optional. + // + // The journal name of the publication. + // + // Number of characters allowed is 100. + string journal = 4; + + // Optional. + // + // Volume number. + // + // Number of characters allowed is 100. + string volume = 5; + + // Optional. + // + // The publisher of the journal. + // + // Number of characters allowed is 100. + string publisher = 6; + + // Optional. + // + // The publication date. + google.type.Date publication_date = 7; + + // Optional. + // + // The publication type. + // + // Number of characters allowed is 100. + string publication_type = 8; + + // Optional. + // + // ISBN number. + // + // Number of characters allowed is 100. + string isbn = 9; +} + +// Resource that represents the patent acquired by a candidate. +message Patent { + // Optional. + // + // Name of the patent. + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // A list of inventors' names. + // + // Number of characters allowed for each is 100. + repeated string inventors = 2; + + // Optional. + // + // The status of the patent. + // + // Number of characters allowed is 100. + string patent_status = 3; + + // Optional. + // + // The date the last time the status of the patent was checked. + google.type.Date patent_status_date = 4; + + // Optional. + // + // The date that the patent was filed. + google.type.Date patent_filing_date = 5; + + // Optional. + // + // The name of the patent office. + // + // Number of characters allowed is 100. + string patent_office = 6; + + // Optional. + // + // The number of the patent. + // + // Number of characters allowed is 100. + string patent_number = 7; + + // Optional. + // + // The description of the patent. + // + // Number of characters allowed is 100,000. + string patent_description = 8; + + // Optional. + // + // The skills used in this patent. + repeated Skill skills_used = 9; +} + +// Resource that represents a job application record of a candidate. +message JobApplication { + // Enum that represents the application status. + enum ApplicationStatus { + // Default value. + APPLICATION_STATUS_UNSPECIFIED = 0; + + // The offer is extended. + OFFER_EXTENDED = 1; + + // The offer is rejected by candidate. + REJECTED_BY_CANDIDATE = 2; + + // The application is active. + ACTIVE = 3; + + // The candidate is rejected by employer. + REJECTED_BY_EMPLOYER = 4; + + // The candidate is hired and hasn't started the new job. + HIRED_PENDING_DATE = 5; + + // The candidate is hired started. + HIRED_STARTED = 6; + + // The candidate is a prospect candidate. + PROSPECTED = 7; + } + + // Optional. + // + // The information of job which the candidate applied for. + // + // If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the + // corresponding [Job][google.cloud.talent.v4beta1.Job] must be created. + // + // Otherwise, only + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.title][google.cloud.talent.v4beta1.Job.title], + // [Job.description][google.cloud.talent.v4beta1.Job.description] and + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here + // are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job] + // entity is created in this case. + Job job = 1; + + // Optional. + // + // The job application id. + // + // Number of characters allowed is 100. + string application_id = 2; + + // Optional. + // + // The application date. + google.type.Date application_date = 3; + + // Optional. + // + // The last stage the candidate reached in the application progress. + // For example, "new", "phone screen", "interview". + string last_stage = 4; + + // Optional. + // + // The application state. + ApplicationStatus state = 5; + + // Optional. + // + // The average interview score. + double average_interview_score = 6; + + // Optional. + // + // The scale id of the interview score. + // + // Number of characters allowed is 100. + string interview_score_scale_id = 7; + + // Optional. + // + // The number of interviews. + int32 number_of_interviews = 8; + + // Optional. + // + // If the candidate is referred by a employee. + google.protobuf.BoolValue is_employee_referred = 9; + + // Optional. + // + // The last update timestamp. + google.protobuf.Timestamp update_time = 10; + + // Optional. + // + // The outcome reason for the job application. + // + // Number of characters allowed is 100. + string outcome_reason = 11; + + // Optional. + // + // Outcome positiveness shows how positive the outcome is. + // + // Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0 + // means neutral and 1 means positive. An error is thrown if other value is + // set. + double outcome_positiveness = 12; + + // Output only. Indicates whether this job application is a match to + // application related filters. This value is only applicable in profile + // search response. + google.protobuf.BoolValue is_match = 13; + + // Output only. Job title snippet shows how the job title is related to a + // search query. It's empty if the job title isn't related to the search + // query. + string job_title_snippet = 14; +} + +// Resource that represents a license or certification. +message Certification { + // Optional. + // + // Name of license or certification. + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // Acquirement date or effective date of license or certification. + google.type.Date acquire_date = 2; + + // Optional. + // + // Expiration date of license of certification. + google.type.Date expire_date = 3; + + // Optional. + // + // Authority of license, such as government. + // + // Number of characters allowed is 100. + string authority = 4; + + // Optional. + // + // Description of license or certification. + // + // Number of characters allowed is 100,000. + string description = 5; +} + +// RecruitingNote represents a note/comment regarding the recruiting for a +// candidate. For example, "This candidate is a potential match for a frontend +// engineer at SF". +message RecruitingNote { + // Optional. + // + // The content of note. + // + // Number of characters allowed is 4,000. + string note = 1; + + // Optional. + // + // The person who wrote the notes. + // + // Number of characters allowed is 100. + string commenter = 2; + + // Optional. + // + // The create date of the note. + google.type.Date create_date = 3; + + // Optional. + // + // The note type. + // + // Number of characters allowed is 100. + string type = 4; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto new file mode 100644 index 000000000000..aa6f5c5440b5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto @@ -0,0 +1,458 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/filters.proto"; +import "google/cloud/talent/v4beta1/histogram.proto"; +import "google/cloud/talent/v4beta1/profile.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "ProfileServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles profile management, including profile CRUD, +// enumeration and search. +service ProfileService { + // Lists profiles by filter. The order is unspecified. + rpc ListProfiles(ListProfilesRequest) returns (ListProfilesResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*/tenants/*}/profiles" + }; + } + + // Creates and returns a new profile. + rpc CreateProfile(CreateProfileRequest) returns (Profile) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*/tenants/*}/profiles" + body: "*" + }; + } + + // Gets the specified profile. + rpc GetProfile(GetProfileRequest) returns (Profile) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/tenants/*/profiles/*}" + }; + } + + // Updates the specified profile and returns the updated result. + rpc UpdateProfile(UpdateProfileRequest) returns (Profile) { + option (google.api.http) = { + patch: "/v4beta1/{profile.name=projects/*/tenants/*/profiles/*}" + body: "*" + }; + } + + // Deletes the specified profile. + rpc DeleteProfile(DeleteProfileRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/tenants/*/profiles/*}" + }; + } + + // Searches for profiles within a tenant. + // + // For example, search by raw queries "software engineer in Mountain View" or + // search by structured filters (location filter, education filter, etc.). + // + // See + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] + // for more information. + rpc SearchProfiles(SearchProfilesRequest) returns (SearchProfilesResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*/tenants/*}:search" + body: "*" + }; + } +} + +// List profiles request. +message ListProfilesRequest { + // Required. + // + // The resource name of the tenant under which the job is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string parent = 1; + + // Optional. + // + // The token that specifies the current offset (that is, starting result). + // + // Please set the value to + // [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token] + // to continue the list. + string page_token = 2; + + // Optional. + // + // The maximum number of profiles to be returned, at most 100. + // + // Default is 100 unless a positive number smaller than 100 is specified. + int32 page_size = 3; + + // Optional. + // + // A field mask to specify the profile fields to be listed in response. + // All fields are listed if it is unset. + // + // Valid values are: + // + // * name + google.protobuf.FieldMask field_mask = 4; +} + +// The List profiles response object. +message ListProfilesResponse { + // Profiles for the specific tenant. + repeated Profile profiles = 1; + + // A token to retrieve the next page of results. This is empty if there are no + // more results. + string next_page_token = 2; +} + +// Create profile request. +message CreateProfileRequest { + // Required. + // + // The name of the tenant this profile belongs to. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string parent = 1; + + // Required. + // + // The profile to be created. + Profile profile = 2; +} + +// Get profile request. +message GetProfileRequest { + // Required. + // + // Resource name of the profile to get. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string name = 1; +} + +// Update profile request +message UpdateProfileRequest { + // Required. + // + // Profile to be updated. + Profile profile = 1; + + // Optional. + // + // A field mask to specify the profile fields to update. + // + // A full update is performed if it is unset. + // + // Valid values are: + // + // * externalId + // * source + // * uri + // * isHirable + // * createTime + // * updateTime + // * resumeHrxml + // * personNames + // * addresses + // * emailAddresses + // * phoneNumbers + // * personalUris + // * additionalContactInfo + // * employmentRecords + // * educationRecords + // * skills + // * projects + // * publications + // * patents + // * certifications + // * jobApplications + // * recruitingNotes + // * customAttributes + google.protobuf.FieldMask update_mask = 2; +} + +// Delete profile request. +message DeleteProfileRequest { + // Required. + // + // Resource name of the profile to be deleted. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string name = 1; +} + +// The request body of the `SearchProfiles` call. +message SearchProfilesRequest { + // Required. + // + // The resource name of the tenant to search within. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string parent = 1; + + // Required. + // + // The meta information collected about the profile search user. This is used + // to improve the search quality of the service. These values are provided by + // users, and must be precise and consistent. + RequestMetadata request_metadata = 2; + + // Optional. + // + // Search query to execute. See + // [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. + ProfileQuery profile_query = 3; + + // Optional. + // + // A limit on the number of profiles returned in the search results. + // A value above the default value 10 can increase search response time. + // + // The maximum value allowed is 100. Otherwise an error is thrown. + int32 page_size = 4; + + // Optional. + // + // The pageToken, similar to offset enables users of the API to paginate + // through the search results. To retrieve the first page of results, set the + // pageToken to empty. The search response includes a + // [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] + // field that can be used to populate the pageToken field for the next page of + // results. Using pageToken instead of offset increases the performance of the + // API, especially compared to larger offset values. + string page_token = 5; + + // Optional. + // + // An integer that specifies the current offset (that is, starting result) in + // search results. This field is only considered if + // [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] + // is unset. + // + // The maximum allowed value is 5000. Otherwise an error is thrown. + // + // For example, 0 means to search from the first profile, and 10 means to + // search from the 11th profile. This can be used for pagination, for example + // pageSize = 10 and offset = 10 means to search from the second page. + int32 offset = 6; + + // Optional. + // + // This flag controls the spell-check feature. If `false`, the + // service attempts to correct a misspelled query. + // + // For example, "enginee" is corrected to "engineer". + bool disable_spell_check = 7; + + // Optional. + // + // The criteria that determines how search results are sorted. + // Defaults is "relevance desc" if no value is specified. + // + // Supported options are: + // + // * "relevance desc": By descending relevance, as determined by the API + // algorithms. + // * "update_date desc": Sort by [Profile.update_date][] in descending order + // (recently updated profiles first). + // * "create_date desc": Sort by [Profile.create_date][] in descending order + // (recently created profiles first). + // * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending + // order. + // * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in + // descending order. + // * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending + // order. + // * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in + // ascending order. + string order_by = 8; + + // Optional. + // + // When sort by field is based on alphabetical order, sort values case + // sensitively (based on ASCII) when the value is set to true. Default value + // is case in-sensitive sort (false). + bool case_sensitive_sort = 9; + + // Optional. + // + // A list of expressions specifies histogram requests against matching + // profiles for + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. + // + // The expression syntax looks like a function definition with optional + // parameters. + // + // Function syntax: function_name(histogram_facet[, list of buckets]) + // + // Data types: + // + // * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+. + // * String: string like "any string with backslash escape for quote(\")." + // * Number: whole number and floating point number like 10, -1 and -0.01. + // * List: list of elements with comma(,) separator surrounded by square + // brackets. For example, [1, 2, 3] and ["one", "two", "three"]. + // + // Built-in constants: + // + // * MIN (minimum number similar to java Double.MIN_VALUE) + // * MAX (maximum number similar to java Double.MAX_VALUE) + // + // Built-in functions: + // + // * bucket(start, end[, label]) + // Bucket build-in function creates a bucket with range of [start, end). Note + // that the end is exclusive. + // For example, bucket(1, MAX, "positive number") or bucket(1, 10). + // + // Histogram Facets: + // + // * admin1: Admin1 is a global placeholder for referring to state, province, + // or the particular term a country uses to define the geographic structure + // below the country level. Examples include states codes such as "CA", "IL", + // "NY", and provinces, such as "BC". + // * locality: Locality is a global placeholder for referring to city, town, + // or the particular term a country uses to define the geographic structure + // below the admin1 level. Examples include city names such as + // "Mountain View" and "New York". + // * extended_locality: Extended locality is concatenated version of admin1 + // and locality with comma separator. For example, "Mountain View, CA" and + // "New York, NY". + // * postal_code: Postal code of profile which follows locale code. + // * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US, + // JP, GB. + // * job_title: Normalized job titles specified in EmploymentHistory. + // * company_name: Normalized company name of profiles to match on. + // * institution: The school name. For example, "MIT", + // "University of California, Berkeley" + // * degree: Highest education degree in ISCED code. Each value in degree + // covers specific level of education, without any expansion to upper nor + // lower levels of education degree. + // * experience_in_months: experience in months. 0 means 0 month to 1 month + // (exclusive). + // * application_date: The application date specifies application start dates. + // See + // [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] + // for more details. + // * application_outcome_reason: The application outcome reason specifies the + // outcome reasons of job application. + // See + // [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + // for more details. + // * application_last_stage: The application last stage specifies the last + // stage of job application. + // See + // [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter] + // for more details. + // * application_job_title: The application job title specifies the job + // applied for in the application. + // See + // [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] + // for more details. + // * application_status: The application status specifies the status of job + // application. + // See + // [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter] + // for more details. + // * hirable_status: Hirable status specifies the profile's hirable status. + // * string_custom_attribute: String custom attributes. Values can be accessed + // via square bracket notation like string_custom_attribute["key1"]. + // * numeric_custom_attribute: Numeric custom attributes. Values can be + // accessed via square bracket notation like numeric_custom_attribute["key1"]. + // + // Example expressions: + // + // * count(admin1) + // * count(experience_in_months, [bucket(0, 12, "1 year"), + // bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")]) + // * count(string_custom_attribute["assigned_recruiter"]) + // * count(numeric_custom_attribute["favorite_number"], + // [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")]) + repeated HistogramQuery histogram_queries = 10; +} + +// Response of SearchProfiles method. +message SearchProfilesResponse { + // An estimation of the number of profiles that match the specified query. + // + // This number isn't guaranteed to be accurate. + int64 estimated_total_size = 1; + + // The spell checking result, and correction. + SpellingCorrection spell_correction = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; + + // A token to retrieve the next page of results. This is empty if there are no + // more results. + string next_page_token = 4; + + // The histogram results that match with specified + // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]. + repeated HistogramQueryResult histogram_query_results = 5; + + // The profile entities that match the specified + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. + repeated SummarizedProfile summarized_profiles = 6; +} + +// Output only. +// +// Profile entry with metadata inside +// [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. +message SummarizedProfile { + // A list of profiles that are linked by [Profile.cluster_id][]. + repeated Profile profiles = 1; + + // A profile summary shows the profile summary and how the profile matches the + // search query. + // + // In profile summary, the profiles with the same [Profile.cluster_id][] are + // merged together. Among profiles, same education/employment records may be + // slightly different but they are merged into one with best efforts. + // + // For example, in one profile the school name is "UC Berkeley" and the field + // study is "Computer Science" and in another one the school name is + // "University of California at Berkeley" and the field study is "CS". The API + // merges these two inputs into one and selects one value for each field. For + // example, the school name in summary is set to "University of California at + // Berkeley" and the field of study is set to "Computer Science". + Profile summary = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/resume_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/resume_service.proto new file mode 100644 index 000000000000..76530577671c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/resume_service.proto @@ -0,0 +1,142 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/profile.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "ResumeServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles resume parsing. +service ResumeService { + // Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The + // API attempts to fill out the following profile fields if present within the + // resume: + // + // * personNames + // * addresses + // * emailAddress + // * phoneNumbers + // * personalUris + // * employmentRecords + // * educationRecords + // * skills + // + // Note that some attributes in these fields may not be populated if they're + // not present within the resume or unrecognizable by the resume parser. + // + // This API does not save the resume or profile. To create a profile from this + // resume, clients need to call the CreateProfile method again with the + // profile returned. + // + // The following list of formats are supported: + // + // * PDF + // * TXT + // * DOC + // * RTF + // * DOCX + // * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`, + // otherwise an error is thrown) + rpc ParseResume(ParseResumeRequest) returns (ParseResumeResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/resumes:parse" + body: "*" + }; + } +} + +// Parse resume request. +message ParseResumeRequest { + // Required. + // + // The resource name of the project. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The bytes of the resume file in common format, for example, PDF, TXT. + // UTF-8 encoding is required if the resume is text-based, otherwise an error + // is thrown. + bytes resume = 2; + + // Optional. + // + // The region code indicating where the resume is from. Values + // are as per the ISO-3166-2 format. For example, US, FR, DE. + // + // This value is optional, but providing this value improves the resume + // parsing quality and performance. + // + // An error is thrown if the regionCode is invalid. + string region_code = 3; + + // Optional. + // + // The language code of contents in the resume. + // + // Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: + // class="external" target="_blank" }. + string language_code = 4; + + // Optional. + // + // Options that change how the resume parse is performed. + ParseResumeOptions options = 5; +} + +// Options that change how the resume parse is performed. +message ParseResumeOptions { + // Optional. + // + // Controls whether Optical Character Recognition (OCR) is enabled. + // + // OCR is used to decipher pictorial resumes, or resumes that have some + // element of pictorial detail (for example, contact information placed within + // an image in a pdf). Note that the API call has a higher latency if OCR is + // enabled. + bool enable_ocr = 1; + + // Optional. + // + // Controls whether detected skills are included in the parsed profile from + // sections of the resume other than just skills sections. + // + // Normally, returned skills are limited to those taken from a resume section + // intended to list skills. When enabled, this feature causes detected + // skills in other sections to also be included in the returned profile. + bool enable_full_skill_detection = 2; +} + +// Parse resume response. +message ParseResumeResponse { + // The profile parsed from resume. + Profile profile = 1; + + // Raw text from resume. + string raw_text = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto new file mode 100644 index 000000000000..f2f2ee496aa2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto @@ -0,0 +1,73 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "TenantResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A Tenant resource represents a tenant in the service. A tenant is a group or +// entity that shares common access with specific privileges for resources like +// profiles. Customer may create multiple tenants to provide data isolation for +// different groups. +message Tenant { + // Enum that represents how user data owned by the tenant is used. + enum DataUsageType { + // Default value. + DATA_USAGE_TYPE_UNSPECIFIED = 0; + + // Data owned by this tenant is used to improve search/recommendation + // quality across tenants. + AGGREGATED = 1; + + // Data owned by this tenant is used to improve search/recommendation + // quality for this tenant only. + ISOLATED = 2; + } + + // Required during tenant update. + // + // The resource name for a tenant. This is generated by the service when a + // tenant is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string name = 1; + + // Required. + // + // Client side tenant identifier, used to uniquely identify the tenant. + // + // The maximum number of allowed characters is 255. + string external_id = 2; + + // Optional. + // + // Indicates whether data owned by this tenant may be used to provide product + // improvements across other tenants. + // + // Defaults behavior is + // [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED] + // if it's unset. + DataUsageType usage_type = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto new file mode 100644 index 000000000000..18de6cd094c3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto @@ -0,0 +1,167 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/tenant.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "TenantServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles tenant management, including CRUD and enumeration. +service TenantService { + // Creates a new tenant entity. + rpc CreateTenant(CreateTenantRequest) returns (Tenant) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/tenants" + body: "*" + }; + } + + // Retrieves specified tenant. + rpc GetTenant(GetTenantRequest) returns (Tenant) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/tenants/*}" + }; + } + + // Updates specified tenant. + rpc UpdateTenant(UpdateTenantRequest) returns (Tenant) { + option (google.api.http) = { + patch: "/v4beta1/{tenant.name=projects/*/tenants/*}" + body: "*" + }; + } + + // Deletes specified tenant. + rpc DeleteTenant(DeleteTenantRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/tenants/*}" + }; + } + + // Lists all tenants associated with the project. + rpc ListTenants(ListTenantsRequest) returns (ListTenantsResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*}/tenants" + }; + } +} + +// The Request of the CreateTenant method. +message CreateTenantRequest { + // Required. + // + // Resource name of the project under which the tenant is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The tenant to be created. + Tenant tenant = 2; +} + +// Request for getting a tenant by name. +message GetTenantRequest { + // Required. + // + // The resource name of the tenant to be retrieved. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string name = 1; +} + +// Request for updating a specified tenant. +message UpdateTenantRequest { + // Required. + // + // The tenant resource to replace the current resource in the system. + Tenant tenant = 1; + + // Optional but strongly recommended for the best service + // experience. + // + // If + // [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask] + // is provided, only the specified fields in + // [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are + // updated. Otherwise all the fields are updated. + // + // A field mask to specify the tenant fields to be updated. Only + // top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are + // supported. + google.protobuf.FieldMask update_mask = 2; +} + +// Request to delete a tenant. +message DeleteTenantRequest { + // Required. + // + // The resource name of the tenant to be deleted. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string name = 1; +} + +// List tenants for which the client has ACL visibility. +message ListTenantsRequest { + // Required. + // + // Resource name of the project under which the tenant is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Optional. + // + // The starting indicator from which to return results. + string page_token = 2; + + // Optional. + // + // The maximum number of tenants to be returned, at most 100. + // Default is 100 if a non-positive number is provided. + int32 page_size = 3; +} + +// Output only. +// +// The List tenants response object. +message ListTenantsResponse { + // Tenants for the current client. + repeated Tenant tenants = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; +} diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index bad21c38538a..f4f29438e5de 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -960,6 +960,21 @@ google-cloud-iamcredentials 0.10.1-alpha-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + + + com.google.cloud + google-cloud-talent + 0.0.1-beta-SNAPSHOT + diff --git a/google-cloud-clients/google-cloud-talent/README.md b/google-cloud-clients/google-cloud-talent/README.md new file mode 100644 index 000000000000..534bcbecefb4 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/README.md @@ -0,0 +1,100 @@ +Google Cloud Java Client for Cloud Talent Solution +=================================================== + +Java idiomatic client for [Cloud Talent Solution][product-overview]. + +[![Kokoro CI](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.svg)](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.html) +[![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg)](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg) +[![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/google-cloud-java) + +- [Product Documentation][product-docs] +- [Client Library Documentation][lib-docs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + +Quickstart +---------- + +[//]: # ({x-version-update-start:google-cloud-talent:released}) +If you are using Maven, add this to your pom.xml file +```xml + + com.google.cloud + google-cloud-talent + 0.1.0-beta + +``` +If you are using Gradle, add this to your dependencies +```Groovy +compile 'com.google.cloud:google-cloud-talent:0.1.0-beta' +``` +If you are using SBT, add this to your dependencies +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "0.1.0-beta" +``` +[//]: # ({x-version-update-end}) + +Authentication +-------------- + +See the [Authentication](https://github.com/GoogleCloudPlatform/google-cloud-java#authentication) section in the base directory's README. + +About Cloud Talent Solution +---------------------------- + +[Cloud Talent Solution][product-overview] + +See the [Cloud Talent Solution client library docs][lib-docs] to learn how to use this Cloud Talent Solution Client Library. + +Getting Started +--------------- +#### Prerequisites +You will need a [Google Developers Console](https://console.developers.google.com/) project with the Cloud Talent Solution API enabled. [Follow these instructions](https://cloud.google.com/resource-manager/docs/creating-managing-projects) to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud SDK](https://cloud.google.com/sdk/) and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +#### Installation and setup +You'll need to obtain the `google-cloud-talent` library. See the [Quickstart](#quickstart) section to add `google-cloud-talent` as a dependency in your code. + +Troubleshooting +--------------- + +To get help, follow the instructions in the [shared Troubleshooting document](https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting). + +Transport +--------- +Cloud Talent Solution uses gRPC for the transport layer. + +Java Versions +------------- + +Java 7 or above is required for using this client. + +Versioning +---------- + +This library follows [Semantic Versioning](http://semver.org/). + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time and the public API should not be considered stable. + +Contributing +------------ + +Contributions to this library are always welcome and highly encouraged. + +See `google-cloud`'s [CONTRIBUTING] documentation and the [shared documentation](https://github.com/googleapis/google-cloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + +License +------- + +Apache 2.0 - See [LICENSE] for more information. + + +[CONTRIBUTING]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CONTRIBUTING.md +[code-of-conduct]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[LICENSE]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/LICENSE +[cloud-platform]: https://cloud.google.com/ +[product-overview]: https://cloud.google.com/solutions/talent-solution/ +[product-docs]: https://cloud.google.com/talent-solution/docs/ +[lib-docs]: https://googleapis.github.io/google-cloud-java/google-cloud-clients/apidocs/index.html?com/google/cloud/talent/v4beta1/package-summary.html \ No newline at end of file diff --git a/google-cloud-clients/google-cloud-talent/pom.xml b/google-cloud-clients/google-cloud-talent/pom.xml new file mode 100644 index 000000000000..0f6dddd4d22f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/pom.xml @@ -0,0 +1,87 @@ + + + 4.0.0 + google-cloud-talent + 0.0.1-beta-SNAPSHOT + jar + Google Cloud Talent Solution + https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-talent + + Java idiomatic client for Google Cloud Talent Solution. + + + com.google.cloud + google-cloud-clients + 0.83.1-alpha-SNAPSHOT + + + google-cloud-talent + + + + ${project.groupId} + google-cloud-core + + + ${project.groupId} + google-cloud-core-grpc + + + com.google.api.grpc + proto-google-cloud-talent-v4beta1 + + + com.google.api.grpc + grpc-google-cloud-talent-v4beta1 + + + io.grpc + grpc-netty-shaded + + + io.grpc + grpc-stub + + + io.grpc + grpc-auth + + + ${project.groupId} + google-cloud-core + test-jar + test + + + junit + junit + test + + + org.easymock + easymock + test + + + org.objenesis + objenesis + test + + + com.google.truth + truth + test + + + com.google.api.grpc + grpc-google-iam-v1 + test + + + com.google.api + gax-grpc + testlib + test + + + \ No newline at end of file diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java new file mode 100644 index 000000000000..1ab9b9204e93 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java @@ -0,0 +1,770 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.CompanyServiceStub; +import com.google.cloud.talent.v4beta1.stub.CompanyServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service that handles company management, including CRUD and enumeration. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Company company = Company.newBuilder().build();
+ *   Company response = companyServiceClient.createCompany(parent, company);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the companyServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of CompanyServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * CompanyServiceSettings companyServiceSettings =
+ *     CompanyServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * CompanyServiceClient companyServiceClient =
+ *     CompanyServiceClient.create(companyServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * CompanyServiceSettings companyServiceSettings =
+ *     CompanyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CompanyServiceClient companyServiceClient =
+ *     CompanyServiceClient.create(companyServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompanyServiceClient implements BackgroundResource { + private final CompanyServiceSettings settings; + private final CompanyServiceStub stub; + + /** Constructs an instance of CompanyServiceClient with default settings. */ + public static final CompanyServiceClient create() throws IOException { + return create(CompanyServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CompanyServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CompanyServiceClient create(CompanyServiceSettings settings) + throws IOException { + return new CompanyServiceClient(settings); + } + + /** + * Constructs an instance of CompanyServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use CompanyServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final CompanyServiceClient create(CompanyServiceStub stub) { + return new CompanyServiceClient(stub); + } + + /** + * Constructs an instance of CompanyServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected CompanyServiceClient(CompanyServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CompanyServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected CompanyServiceClient(CompanyServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final CompanyServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CompanyServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new company entity. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Company company = Company.newBuilder().build();
+   *   Company response = companyServiceClient.createCompany(parent, company);
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the company is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @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) { + + CreateCompanyRequest request = + CreateCompanyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCompany(company) + .build(); + return createCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new company entity. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Company company = Company.newBuilder().build();
+   *   Company response = companyServiceClient.createCompany(parent.toString(), company);
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the company is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param company Required. + *

The company to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company createCompany(String parent, Company company) { + + CreateCompanyRequest request = + CreateCompanyRequest.newBuilder().setParent(parent).setCompany(company).build(); + return createCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new company entity. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Company company = Company.newBuilder().build();
+   *   CreateCompanyRequest request = CreateCompanyRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setCompany(company)
+   *     .build();
+   *   Company response = companyServiceClient.createCompany(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company createCompany(CreateCompanyRequest request) { + return createCompanyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new company entity. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Company company = Company.newBuilder().build();
+   *   CreateCompanyRequest request = CreateCompanyRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setCompany(company)
+   *     .build();
+   *   ApiFuture<Company> future = companyServiceClient.createCompanyCallable().futureCall(request);
+   *   // Do something
+   *   Company response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createCompanyCallable() { + return stub.createCompanyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   Company response = companyServiceClient.getCompany(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the company to be retrieved. + *

The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company getCompany(CompanyName name) { + + GetCompanyRequest request = + GetCompanyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   Company response = companyServiceClient.getCompany(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the company to be retrieved. + *

The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company getCompany(String name) { + + GetCompanyRequest request = GetCompanyRequest.newBuilder().setName(name).build(); + return getCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   GetCompanyRequest request = GetCompanyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Company response = companyServiceClient.getCompany(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company getCompany(GetCompanyRequest request) { + return getCompanyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   GetCompanyRequest request = GetCompanyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Company> future = companyServiceClient.getCompanyCallable().futureCall(request);
+   *   // Do something
+   *   Company response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getCompanyCallable() { + return stub.getCompanyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   Company company = Company.newBuilder().build();
+   *   Company response = companyServiceClient.updateCompany(company);
+   * }
+   * 
+ * + * @param company Required. + *

The company resource to replace the current resource in the system. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company updateCompany(Company company) { + + UpdateCompanyRequest request = UpdateCompanyRequest.newBuilder().setCompany(company).build(); + return updateCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   Company company = Company.newBuilder().build();
+   *   UpdateCompanyRequest request = UpdateCompanyRequest.newBuilder()
+   *     .setCompany(company)
+   *     .build();
+   *   Company response = companyServiceClient.updateCompany(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company updateCompany(UpdateCompanyRequest request) { + return updateCompanyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   Company company = Company.newBuilder().build();
+   *   UpdateCompanyRequest request = UpdateCompanyRequest.newBuilder()
+   *     .setCompany(company)
+   *     .build();
+   *   ApiFuture<Company> future = companyServiceClient.updateCompanyCallable().futureCall(request);
+   *   // Do something
+   *   Company response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateCompanyCallable() { + return stub.updateCompanyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified company. Prerequisite: The company has no jobs associated with it. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   companyServiceClient.deleteCompany(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the company to be deleted. + *

The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCompany(CompanyName name) { + + DeleteCompanyRequest request = + DeleteCompanyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified company. Prerequisite: The company has no jobs associated with it. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   companyServiceClient.deleteCompany(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the company to be deleted. + *

The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCompany(String name) { + + DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder().setName(name).build(); + deleteCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified company. Prerequisite: The company has no jobs associated with it. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   companyServiceClient.deleteCompany(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCompany(DeleteCompanyRequest request) { + deleteCompanyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified company. Prerequisite: The company has no jobs associated with it. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = companyServiceClient.deleteCompanyCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteCompanyCallable() { + return stub.deleteCompanyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all companies associated with the project. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the company is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompaniesPagedResponse listCompanies(ProjectName parent) { + ListCompaniesRequest request = + ListCompaniesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCompanies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all companies associated with the project. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (Company element : companyServiceClient.listCompanies(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the company is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompaniesPagedResponse listCompanies(String parent) { + ListCompaniesRequest request = ListCompaniesRequest.newBuilder().setParent(parent).build(); + return listCompanies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all companies associated with the project. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (Company element : companyServiceClient.listCompanies(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest request) { + return listCompaniesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all companies associated with the project. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListCompaniesPagedResponse> future = companyServiceClient.listCompaniesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Company element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listCompaniesPagedCallable() { + return stub.listCompaniesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all companies associated with the project. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListCompaniesResponse response = companyServiceClient.listCompaniesCallable().call(request);
+   *     for (Company element : response.getCompaniesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listCompaniesCallable() { + return stub.listCompaniesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListCompaniesPagedResponse + extends AbstractPagedListResponse< + ListCompaniesRequest, + ListCompaniesResponse, + Company, + ListCompaniesPage, + ListCompaniesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCompaniesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListCompaniesPagedResponse apply(ListCompaniesPage input) { + return new ListCompaniesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListCompaniesPagedResponse(ListCompaniesPage page) { + super(page, ListCompaniesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCompaniesPage + extends AbstractPage< + ListCompaniesRequest, ListCompaniesResponse, Company, ListCompaniesPage> { + + private ListCompaniesPage( + PageContext context, + ListCompaniesResponse response) { + super(context, response); + } + + private static ListCompaniesPage createEmptyPage() { + return new ListCompaniesPage(null, null); + } + + @Override + protected ListCompaniesPage createPage( + PageContext context, + ListCompaniesResponse response) { + return new ListCompaniesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCompaniesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCompaniesRequest, + ListCompaniesResponse, + Company, + ListCompaniesPage, + ListCompaniesFixedSizeCollection> { + + private ListCompaniesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCompaniesFixedSizeCollection createEmptyCollection() { + return new ListCompaniesFixedSizeCollection(null, 0); + } + + @Override + protected ListCompaniesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCompaniesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java new file mode 100644 index 000000000000..474c83cd8f5e --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java @@ -0,0 +1,221 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.CompanyServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CompanyServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createCompany to 30 seconds: + * + *

+ * 
+ * CompanyServiceSettings.Builder companyServiceSettingsBuilder =
+ *     CompanyServiceSettings.newBuilder();
+ * companyServiceSettingsBuilder.createCompanySettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CompanyServiceSettings companyServiceSettings = companyServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompanyServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createCompany. */ + public UnaryCallSettings createCompanySettings() { + return ((CompanyServiceStubSettings) getStubSettings()).createCompanySettings(); + } + + /** Returns the object with the settings used for calls to getCompany. */ + public UnaryCallSettings getCompanySettings() { + return ((CompanyServiceStubSettings) getStubSettings()).getCompanySettings(); + } + + /** Returns the object with the settings used for calls to updateCompany. */ + public UnaryCallSettings updateCompanySettings() { + return ((CompanyServiceStubSettings) getStubSettings()).updateCompanySettings(); + } + + /** Returns the object with the settings used for calls to deleteCompany. */ + public UnaryCallSettings deleteCompanySettings() { + return ((CompanyServiceStubSettings) getStubSettings()).deleteCompanySettings(); + } + + /** Returns the object with the settings used for calls to listCompanies. */ + public PagedCallSettings + listCompaniesSettings() { + return ((CompanyServiceStubSettings) getStubSettings()).listCompaniesSettings(); + } + + public static final CompanyServiceSettings create(CompanyServiceStubSettings stub) + throws IOException { + return new CompanyServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CompanyServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CompanyServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CompanyServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CompanyServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return CompanyServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CompanyServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CompanyServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CompanyServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CompanyServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(CompanyServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(CompanyServiceStubSettings.newBuilder()); + } + + protected Builder(CompanyServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CompanyServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public CompanyServiceStubSettings.Builder getStubSettingsBuilder() { + return ((CompanyServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createCompany. */ + public UnaryCallSettings.Builder createCompanySettings() { + return getStubSettingsBuilder().createCompanySettings(); + } + + /** Returns the builder for the settings used for calls to getCompany. */ + public UnaryCallSettings.Builder getCompanySettings() { + return getStubSettingsBuilder().getCompanySettings(); + } + + /** Returns the builder for the settings used for calls to updateCompany. */ + public UnaryCallSettings.Builder updateCompanySettings() { + return getStubSettingsBuilder().updateCompanySettings(); + } + + /** Returns the builder for the settings used for calls to deleteCompany. */ + public UnaryCallSettings.Builder deleteCompanySettings() { + return getStubSettingsBuilder().deleteCompanySettings(); + } + + /** Returns the builder for the settings used for calls to listCompanies. */ + public PagedCallSettings.Builder< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse> + listCompaniesSettings() { + return getStubSettingsBuilder().listCompaniesSettings(); + } + + @Override + public CompanyServiceSettings build() throws IOException { + return new CompanyServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java new file mode 100644 index 000000000000..4b77e3f1cb57 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java @@ -0,0 +1,236 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.CompletionStub; +import com.google.cloud.talent.v4beta1.stub.CompletionStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service handles auto completion. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (CompletionClient completionClient = CompletionClient.create()) {
+ *   ProjectName name = ProjectName.of("[PROJECT]");
+ *   String query = "";
+ *   int pageSize = 0;
+ *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
+ *     .setName(name.toString())
+ *     .setQuery(query)
+ *     .setPageSize(pageSize)
+ *     .build();
+ *   CompleteQueryResponse response = completionClient.completeQuery(request);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the completionClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of CompletionSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * CompletionSettings completionSettings =
+ *     CompletionSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * CompletionClient completionClient =
+ *     CompletionClient.create(completionSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * CompletionSettings completionSettings =
+ *     CompletionSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CompletionClient completionClient =
+ *     CompletionClient.create(completionSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompletionClient implements BackgroundResource { + private final CompletionSettings settings; + private final CompletionStub stub; + + /** Constructs an instance of CompletionClient with default settings. */ + public static final CompletionClient create() throws IOException { + return create(CompletionSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CompletionClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CompletionClient create(CompletionSettings settings) throws IOException { + return new CompletionClient(settings); + } + + /** + * Constructs an instance of CompletionClient, using the given stub for making calls. This is for + * advanced usage - prefer to use CompletionSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final CompletionClient create(CompletionStub stub) { + return new CompletionClient(stub); + } + + /** + * Constructs an instance of CompletionClient, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected CompletionClient(CompletionSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CompletionStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected CompletionClient(CompletionStub stub) { + this.settings = null; + this.stub = stub; + } + + public final CompletionSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CompletionStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Completes the specified prefix with keyword suggestions. Intended for use by a job search + * auto-complete search box. + * + *

Sample code: + * + *


+   * try (CompletionClient completionClient = CompletionClient.create()) {
+   *   ProjectName name = ProjectName.of("[PROJECT]");
+   *   String query = "";
+   *   int pageSize = 0;
+   *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setQuery(query)
+   *     .setPageSize(pageSize)
+   *     .build();
+   *   CompleteQueryResponse response = completionClient.completeQuery(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompleteQueryResponse completeQuery(CompleteQueryRequest request) { + return completeQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Completes the specified prefix with keyword suggestions. Intended for use by a job search + * auto-complete search box. + * + *

Sample code: + * + *


+   * try (CompletionClient completionClient = CompletionClient.create()) {
+   *   ProjectName name = ProjectName.of("[PROJECT]");
+   *   String query = "";
+   *   int pageSize = 0;
+   *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setQuery(query)
+   *     .setPageSize(pageSize)
+   *     .build();
+   *   ApiFuture<CompleteQueryResponse> future = completionClient.completeQueryCallable().futureCall(request);
+   *   // Do something
+   *   CompleteQueryResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable completeQueryCallable() { + return stub.completeQueryCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java new file mode 100644 index 000000000000..44855c7568b2 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java @@ -0,0 +1,174 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.CompletionStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CompletionClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of completeQuery to 30 seconds: + * + *

+ * 
+ * CompletionSettings.Builder completionSettingsBuilder =
+ *     CompletionSettings.newBuilder();
+ * completionSettingsBuilder.completeQuerySettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CompletionSettings completionSettings = completionSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompletionSettings extends ClientSettings { + /** Returns the object with the settings used for calls to completeQuery. */ + public UnaryCallSettings completeQuerySettings() { + return ((CompletionStubSettings) getStubSettings()).completeQuerySettings(); + } + + public static final CompletionSettings create(CompletionStubSettings stub) throws IOException { + return new CompletionSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CompletionStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CompletionStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CompletionStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CompletionStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return CompletionStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CompletionStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CompletionStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CompletionSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CompletionSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(CompletionStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(CompletionStubSettings.newBuilder()); + } + + protected Builder(CompletionSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CompletionStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public CompletionStubSettings.Builder getStubSettingsBuilder() { + return ((CompletionStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to completeQuery. */ + public UnaryCallSettings.Builder + completeQuerySettings() { + return getStubSettingsBuilder().completeQuerySettings(); + } + + @Override + public CompletionSettings build() throws IOException { + return new CompletionSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java new file mode 100644 index 000000000000..d4f49b7208ec --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java @@ -0,0 +1,294 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.EventServiceStub; +import com.google.cloud.talent.v4beta1.stub.EventServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service handles client event report. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+ *   ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the eventServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of EventServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * EventServiceSettings eventServiceSettings =
+ *     EventServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * EventServiceClient eventServiceClient =
+ *     EventServiceClient.create(eventServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * EventServiceSettings eventServiceSettings =
+ *     EventServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * EventServiceClient eventServiceClient =
+ *     EventServiceClient.create(eventServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class EventServiceClient implements BackgroundResource { + private final EventServiceSettings settings; + private final EventServiceStub stub; + + /** Constructs an instance of EventServiceClient with default settings. */ + public static final EventServiceClient create() throws IOException { + return create(EventServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of EventServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final EventServiceClient create(EventServiceSettings settings) throws IOException { + return new EventServiceClient(settings); + } + + /** + * Constructs an instance of EventServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use EventServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final EventServiceClient create(EventServiceStub stub) { + return new EventServiceClient(stub); + } + + /** + * Constructs an instance of EventServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected EventServiceClient(EventServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((EventServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected EventServiceClient(EventServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final EventServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public EventServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Report events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. You may inspect the created events in [self service + * tools](https://console.cloud.google.com/talent-solution/overview). [Learn + * more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools. + * + *

Sample code: + * + *


+   * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+   *   ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
+   * }
+   * 
+ * + * @param parent Parent project name. + * @param clientEvent Required. + *

Events issued when end user interacts with customer's application 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) { + + CreateClientEventRequest request = + CreateClientEventRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setClientEvent(clientEvent) + .build(); + return createClientEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Report events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. You may inspect the created events in [self service + * tools](https://console.cloud.google.com/talent-solution/overview). [Learn + * more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools. + * + *

Sample code: + * + *


+   * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+   *   ClientEvent response = eventServiceClient.createClientEvent(parent.toString(), clientEvent);
+   * }
+   * 
+ * + * @param parent Parent project name. + * @param clientEvent Required. + *

Events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ClientEvent createClientEvent(String parent, ClientEvent clientEvent) { + + CreateClientEventRequest request = + CreateClientEventRequest.newBuilder().setParent(parent).setClientEvent(clientEvent).build(); + return createClientEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Report events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. You may inspect the created events in [self service + * tools](https://console.cloud.google.com/talent-solution/overview). [Learn + * more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools. + * + *

Sample code: + * + *


+   * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+   *   CreateClientEventRequest request = CreateClientEventRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setClientEvent(clientEvent)
+   *     .build();
+   *   ClientEvent response = eventServiceClient.createClientEvent(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ClientEvent createClientEvent(CreateClientEventRequest request) { + return createClientEventCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Report events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. You may inspect the created events in [self service + * tools](https://console.cloud.google.com/talent-solution/overview). [Learn + * more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools. + * + *

Sample code: + * + *


+   * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+   *   CreateClientEventRequest request = CreateClientEventRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setClientEvent(clientEvent)
+   *     .build();
+   *   ApiFuture<ClientEvent> future = eventServiceClient.createClientEventCallable().futureCall(request);
+   *   // Do something
+   *   ClientEvent response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createClientEventCallable() { + return stub.createClientEventCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java new file mode 100644 index 000000000000..b8080c5aa228 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java @@ -0,0 +1,175 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.EventServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link EventServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createClientEvent to 30 seconds: + * + *

+ * 
+ * EventServiceSettings.Builder eventServiceSettingsBuilder =
+ *     EventServiceSettings.newBuilder();
+ * eventServiceSettingsBuilder.createClientEventSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * EventServiceSettings eventServiceSettings = eventServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class EventServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createClientEvent. */ + public UnaryCallSettings createClientEventSettings() { + return ((EventServiceStubSettings) getStubSettings()).createClientEventSettings(); + } + + public static final EventServiceSettings create(EventServiceStubSettings stub) + throws IOException { + return new EventServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return EventServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return EventServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return EventServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return EventServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return EventServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return EventServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EventServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected EventServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for EventServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(EventServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(EventServiceStubSettings.newBuilder()); + } + + protected Builder(EventServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(EventServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public EventServiceStubSettings.Builder getStubSettingsBuilder() { + return ((EventServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createClientEvent. */ + public UnaryCallSettings.Builder + createClientEventSettings() { + return getStubSettingsBuilder().createClientEventSettings(); + } + + @Override + public EventServiceSettings build() throws IOException { + return new EventServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java new file mode 100644 index 000000000000..a68ef80c827d --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java @@ -0,0 +1,1307 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.JobServiceStub; +import com.google.cloud.talent.v4beta1.stub.JobServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service handles job management, including job CRUD, enumeration and + * search. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Job job = Job.newBuilder().build();
+ *   Job response = jobServiceClient.createJob(parent, job);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the jobServiceClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of JobServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * JobServiceSettings jobServiceSettings =
+ *     JobServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * JobServiceClient jobServiceClient =
+ *     JobServiceClient.create(jobServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * JobServiceSettings jobServiceSettings =
+ *     JobServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * JobServiceClient jobServiceClient =
+ *     JobServiceClient.create(jobServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class JobServiceClient implements BackgroundResource { + private final JobServiceSettings settings; + private final JobServiceStub stub; + + /** Constructs an instance of JobServiceClient with default settings. */ + public static final JobServiceClient create() throws IOException { + return create(JobServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of JobServiceClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final JobServiceClient create(JobServiceSettings settings) throws IOException { + return new JobServiceClient(settings); + } + + /** + * Constructs an instance of JobServiceClient, using the given stub for making calls. This is for + * advanced usage - prefer to use JobServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final JobServiceClient create(JobServiceStub stub) { + return new JobServiceClient(stub); + } + + /** + * Constructs an instance of JobServiceClient, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected JobServiceClient(JobServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((JobServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected JobServiceClient(JobServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final JobServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public JobServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new job. + * + *

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Job job = Job.newBuilder().build();
+   *   Job response = jobServiceClient.createJob(parent, job);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param job Required. + *

The Job to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(ProjectName parent, Job job) { + + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setJob(job) + .build(); + return createJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new job. + * + *

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Job job = Job.newBuilder().build();
+   *   Job response = jobServiceClient.createJob(parent.toString(), job);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param job Required. + *

The Job to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(String parent, Job job) { + + CreateJobRequest request = CreateJobRequest.newBuilder().setParent(parent).setJob(job).build(); + return createJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new job. + * + *

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Job job = Job.newBuilder().build();
+   *   CreateJobRequest request = CreateJobRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setJob(job)
+   *     .build();
+   *   Job response = jobServiceClient.createJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(CreateJobRequest request) { + return createJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new job. + * + *

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Job job = Job.newBuilder().build();
+   *   CreateJobRequest request = CreateJobRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setJob(job)
+   *     .build();
+   *   ApiFuture<Job> future = jobServiceClient.createJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createJobCallable() { + return stub.createJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   Job response = jobServiceClient.getJob(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the job to retrieve. + *

The format is "projects/{project_id}/jobs/{job_id}", for example, + * "projects/api-test-project/jobs/1234". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(JobName name) { + + GetJobRequest request = + GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   Job response = jobServiceClient.getJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the job to retrieve. + *

The format is "projects/{project_id}/jobs/{job_id}", for example, + * "projects/api-test-project/jobs/1234". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(String name) { + + GetJobRequest request = GetJobRequest.newBuilder().setName(name).build(); + return getJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   GetJobRequest request = GetJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Job response = jobServiceClient.getJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(GetJobRequest request) { + return getJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   GetJobRequest request = GetJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Job> future = jobServiceClient.getJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getJobCallable() { + return stub.getJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified job. + * + *

Typically, updated contents become visible in search results within 10 seconds, but it may + * take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   Job job = Job.newBuilder().build();
+   *   Job response = jobServiceClient.updateJob(job);
+   * }
+   * 
+ * + * @param job Required. + *

The Job to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job updateJob(Job job) { + + UpdateJobRequest request = UpdateJobRequest.newBuilder().setJob(job).build(); + return updateJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified job. + * + *

Typically, updated contents become visible in search results within 10 seconds, but it may + * take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   Job job = Job.newBuilder().build();
+   *   UpdateJobRequest request = UpdateJobRequest.newBuilder()
+   *     .setJob(job)
+   *     .build();
+   *   Job response = jobServiceClient.updateJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job updateJob(UpdateJobRequest request) { + return updateJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified job. + * + *

Typically, updated contents become visible in search results within 10 seconds, but it may + * take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   Job job = Job.newBuilder().build();
+   *   UpdateJobRequest request = UpdateJobRequest.newBuilder()
+   *     .setJob(job)
+   *     .build();
+   *   ApiFuture<Job> future = jobServiceClient.updateJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateJobCallable() { + return stub.updateJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified job. + * + *

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   jobServiceClient.deleteJob(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the job to be deleted. + *

The format is "projects/{project_id}/jobs/{job_id}", for example, + * "projects/api-test-project/jobs/1234". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(JobName name) { + + DeleteJobRequest request = + DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified job. + * + *

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   jobServiceClient.deleteJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the job to be deleted. + *

The format is "projects/{project_id}/jobs/{job_id}", for example, + * "projects/api-test-project/jobs/1234". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(String name) { + + DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name).build(); + deleteJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified job. + * + *

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   jobServiceClient.deleteJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(DeleteJobRequest request) { + deleteJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified job. + * + *

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = jobServiceClient.deleteJobCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteJobCallable() { + return stub.deleteJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   for (Job element : jobServiceClient.listJobs(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param filter Required. + *

The filter string specifies the jobs to be enumerated. + *

Supported operator: =, AND + *

The fields eligible for filtering are: + *

* `companyName` (Required) * `requisitionId` (Optional) * `status` + * (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified. + *

Sample Query: + *

* companyName = "projects/api-test-project/companies/123" * companyName = + * "projects/api-test-project/companies/123" AND requisitionId = "req-1" * companyName = + * "projects/api-test-project/companies/123" AND status = "EXPIRED" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(ProjectName parent, String filter) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   for (Job element : jobServiceClient.listJobs(parent.toString(), filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param filter Required. + *

The filter string specifies the jobs to be enumerated. + *

Supported operator: =, AND + *

The fields eligible for filtering are: + *

* `companyName` (Required) * `requisitionId` (Optional) * `status` + * (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified. + *

Sample Query: + *

* companyName = "projects/api-test-project/companies/123" * companyName = + * "projects/api-test-project/companies/123" AND requisitionId = "req-1" * companyName = + * "projects/api-test-project/companies/123" AND status = "EXPIRED" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(String parent, String filter) { + ListJobsRequest request = + ListJobsRequest.newBuilder().setParent(parent).setFilter(filter).build(); + return listJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   ListJobsRequest request = ListJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFilter(filter)
+   *     .build();
+   *   for (Job element : jobServiceClient.listJobs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(ListJobsRequest request) { + return listJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   ListJobsRequest request = ListJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFilter(filter)
+   *     .build();
+   *   ApiFuture<ListJobsPagedResponse> future = jobServiceClient.listJobsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Job element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listJobsPagedCallable() { + return stub.listJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   ListJobsRequest request = ListJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFilter(filter)
+   *     .build();
+   *   while (true) {
+   *     ListJobsResponse response = jobServiceClient.listJobsCallable().call(request);
+   *     for (Job element : response.getJobsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listJobsCallable() { + return stub.listJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   jobServiceClient.batchDeleteJobs(parent, filter);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param filter Required. + *

The filter string specifies the jobs to be deleted. + *

Supported operator: =, AND + *

The fields eligible for filtering are: + *

* `companyName` (Required) * `requisitionId` (Required) + *

Sample Query: companyName = "projects/api-test-project/companies/123" AND requisitionId + * = "req-1" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void batchDeleteJobs(ProjectName parent, String filter) { + + BatchDeleteJobsRequest request = + BatchDeleteJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + batchDeleteJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   jobServiceClient.batchDeleteJobs(parent.toString(), filter);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param filter Required. + *

The filter string specifies the jobs to be deleted. + *

Supported operator: =, AND + *

The fields eligible for filtering are: + *

* `companyName` (Required) * `requisitionId` (Required) + *

Sample Query: companyName = "projects/api-test-project/companies/123" AND requisitionId + * = "req-1" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void batchDeleteJobs(String parent, String filter) { + + BatchDeleteJobsRequest request = + BatchDeleteJobsRequest.newBuilder().setParent(parent).setFilter(filter).build(); + batchDeleteJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   BatchDeleteJobsRequest request = BatchDeleteJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFilter(filter)
+   *     .build();
+   *   jobServiceClient.batchDeleteJobs(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void batchDeleteJobs(BatchDeleteJobsRequest request) { + batchDeleteJobsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   BatchDeleteJobsRequest request = BatchDeleteJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFilter(filter)
+   *     .build();
+   *   ApiFuture<Void> future = jobServiceClient.batchDeleteJobsCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable batchDeleteJobsCallable() { + return stub.batchDeleteJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs that the caller has permission to search + * against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   for (SearchJobsResponse.MatchingJob element : jobServiceClient.searchJobs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchJobsPagedResponse searchJobs(SearchJobsRequest request) { + return searchJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs that the caller has permission to search + * against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   ApiFuture<SearchJobsPagedResponse> future = jobServiceClient.searchJobsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (SearchJobsResponse.MatchingJob element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable searchJobsPagedCallable() { + return stub.searchJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs that the caller has permission to search + * against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   while (true) {
+   *     SearchJobsResponse response = jobServiceClient.searchJobsCallable().call(request);
+   *     for (SearchJobsResponse.MatchingJob element : response.getMatchingJobsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable searchJobsCallable() { + return stub.searchJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This API call is intended for the use case of targeting passive job seekers (for example, + * job seekers who have signed up to receive email alerts about potential job opportunities), and + * has different algorithmic adjustments that are targeted to passive job seekers. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs the caller has permission to search against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   for (SearchJobsResponse.MatchingJob element : jobServiceClient.searchJobsForAlert(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchJobsForAlertPagedResponse searchJobsForAlert(SearchJobsRequest request) { + return searchJobsForAlertPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This API call is intended for the use case of targeting passive job seekers (for example, + * job seekers who have signed up to receive email alerts about potential job opportunities), and + * has different algorithmic adjustments that are targeted to passive job seekers. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs the caller has permission to search against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   ApiFuture<SearchJobsForAlertPagedResponse> future = jobServiceClient.searchJobsForAlertPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (SearchJobsResponse.MatchingJob element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + searchJobsForAlertPagedCallable() { + return stub.searchJobsForAlertPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This API call is intended for the use case of targeting passive job seekers (for example, + * job seekers who have signed up to receive email alerts about potential job opportunities), and + * has different algorithmic adjustments that are targeted to passive job seekers. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs the caller has permission to search against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   while (true) {
+   *     SearchJobsResponse response = jobServiceClient.searchJobsForAlertCallable().call(request);
+   *     for (SearchJobsResponse.MatchingJob element : response.getMatchingJobsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable searchJobsForAlertCallable() { + return stub.searchJobsForAlertCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListJobsPagedResponse + extends AbstractPagedListResponse< + ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListJobsPagedResponse apply(ListJobsPage input) { + return new ListJobsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListJobsPagedResponse(ListJobsPage page) { + super(page, ListJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListJobsPage + extends AbstractPage { + + private ListJobsPage( + PageContext context, ListJobsResponse response) { + super(context, response); + } + + private static ListJobsPage createEmptyPage() { + return new ListJobsPage(null, null); + } + + @Override + protected ListJobsPage createPage( + PageContext context, ListJobsResponse response) { + return new ListJobsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListJobsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { + + private ListJobsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListJobsFixedSizeCollection createEmptyCollection() { + return new ListJobsFixedSizeCollection(null, 0); + } + + @Override + protected ListJobsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListJobsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchJobsPagedResponse + extends AbstractPagedListResponse< + SearchJobsRequest, + SearchJobsResponse, + SearchJobsResponse.MatchingJob, + SearchJobsPage, + SearchJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchJobsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public SearchJobsPagedResponse apply(SearchJobsPage input) { + return new SearchJobsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private SearchJobsPagedResponse(SearchJobsPage page) { + super(page, SearchJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchJobsPage + extends AbstractPage< + SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob, SearchJobsPage> { + + private SearchJobsPage( + PageContext context, + SearchJobsResponse response) { + super(context, response); + } + + private static SearchJobsPage createEmptyPage() { + return new SearchJobsPage(null, null); + } + + @Override + protected SearchJobsPage createPage( + PageContext context, + SearchJobsResponse response) { + return new SearchJobsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchJobsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchJobsRequest, + SearchJobsResponse, + SearchJobsResponse.MatchingJob, + SearchJobsPage, + SearchJobsFixedSizeCollection> { + + private SearchJobsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchJobsFixedSizeCollection createEmptyCollection() { + return new SearchJobsFixedSizeCollection(null, 0); + } + + @Override + protected SearchJobsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchJobsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchJobsForAlertPagedResponse + extends AbstractPagedListResponse< + SearchJobsRequest, + SearchJobsResponse, + SearchJobsResponse.MatchingJob, + SearchJobsForAlertPage, + SearchJobsForAlertFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchJobsForAlertPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public SearchJobsForAlertPagedResponse apply(SearchJobsForAlertPage input) { + return new SearchJobsForAlertPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private SearchJobsForAlertPagedResponse(SearchJobsForAlertPage page) { + super(page, SearchJobsForAlertFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchJobsForAlertPage + extends AbstractPage< + SearchJobsRequest, + SearchJobsResponse, + SearchJobsResponse.MatchingJob, + SearchJobsForAlertPage> { + + private SearchJobsForAlertPage( + PageContext context, + SearchJobsResponse response) { + super(context, response); + } + + private static SearchJobsForAlertPage createEmptyPage() { + return new SearchJobsForAlertPage(null, null); + } + + @Override + protected SearchJobsForAlertPage createPage( + PageContext context, + SearchJobsResponse response) { + return new SearchJobsForAlertPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchJobsForAlertFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchJobsRequest, + SearchJobsResponse, + SearchJobsResponse.MatchingJob, + SearchJobsForAlertPage, + SearchJobsForAlertFixedSizeCollection> { + + private SearchJobsForAlertFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchJobsForAlertFixedSizeCollection createEmptyCollection() { + return new SearchJobsForAlertFixedSizeCollection(null, 0); + } + + @Override + protected SearchJobsForAlertFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchJobsForAlertFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java new file mode 100644 index 000000000000..a5852b0ccb83 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java @@ -0,0 +1,256 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsForAlertPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.JobServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link JobServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createJob to 30 seconds: + * + *

+ * 
+ * JobServiceSettings.Builder jobServiceSettingsBuilder =
+ *     JobServiceSettings.newBuilder();
+ * jobServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * JobServiceSettings jobServiceSettings = jobServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class JobServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createJob. */ + public UnaryCallSettings createJobSettings() { + return ((JobServiceStubSettings) getStubSettings()).createJobSettings(); + } + + /** Returns the object with the settings used for calls to getJob. */ + public UnaryCallSettings getJobSettings() { + return ((JobServiceStubSettings) getStubSettings()).getJobSettings(); + } + + /** Returns the object with the settings used for calls to updateJob. */ + public UnaryCallSettings updateJobSettings() { + return ((JobServiceStubSettings) getStubSettings()).updateJobSettings(); + } + + /** Returns the object with the settings used for calls to deleteJob. */ + public UnaryCallSettings deleteJobSettings() { + return ((JobServiceStubSettings) getStubSettings()).deleteJobSettings(); + } + + /** Returns the object with the settings used for calls to listJobs. */ + public PagedCallSettings + listJobsSettings() { + return ((JobServiceStubSettings) getStubSettings()).listJobsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeleteJobs. */ + public UnaryCallSettings batchDeleteJobsSettings() { + return ((JobServiceStubSettings) getStubSettings()).batchDeleteJobsSettings(); + } + + /** Returns the object with the settings used for calls to searchJobs. */ + public PagedCallSettings + searchJobsSettings() { + return ((JobServiceStubSettings) getStubSettings()).searchJobsSettings(); + } + + /** Returns the object with the settings used for calls to searchJobsForAlert. */ + public PagedCallSettings + searchJobsForAlertSettings() { + return ((JobServiceStubSettings) getStubSettings()).searchJobsForAlertSettings(); + } + + public static final JobServiceSettings create(JobServiceStubSettings stub) throws IOException { + return new JobServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return JobServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return JobServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return JobServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return JobServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return JobServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return JobServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return JobServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected JobServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for JobServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(JobServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(JobServiceStubSettings.newBuilder()); + } + + protected Builder(JobServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(JobServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public JobServiceStubSettings.Builder getStubSettingsBuilder() { + return ((JobServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createJob. */ + public UnaryCallSettings.Builder createJobSettings() { + return getStubSettingsBuilder().createJobSettings(); + } + + /** Returns the builder for the settings used for calls to getJob. */ + public UnaryCallSettings.Builder getJobSettings() { + return getStubSettingsBuilder().getJobSettings(); + } + + /** Returns the builder for the settings used for calls to updateJob. */ + public UnaryCallSettings.Builder updateJobSettings() { + return getStubSettingsBuilder().updateJobSettings(); + } + + /** Returns the builder for the settings used for calls to deleteJob. */ + public UnaryCallSettings.Builder deleteJobSettings() { + return getStubSettingsBuilder().deleteJobSettings(); + } + + /** Returns the builder for the settings used for calls to listJobs. */ + public PagedCallSettings.Builder + listJobsSettings() { + return getStubSettingsBuilder().listJobsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeleteJobs. */ + public UnaryCallSettings.Builder batchDeleteJobsSettings() { + return getStubSettingsBuilder().batchDeleteJobsSettings(); + } + + /** Returns the builder for the settings used for calls to searchJobs. */ + public PagedCallSettings.Builder + searchJobsSettings() { + return getStubSettingsBuilder().searchJobsSettings(); + } + + /** Returns the builder for the settings used for calls to searchJobsForAlert. */ + public PagedCallSettings.Builder< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse> + searchJobsForAlertSettings() { + return getStubSettingsBuilder().searchJobsForAlertSettings(); + } + + @Override + public JobServiceSettings build() throws IOException { + return new JobServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java new file mode 100644 index 000000000000..5686cf18dd78 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java @@ -0,0 +1,961 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.ProfileServiceStub; +import com.google.cloud.talent.v4beta1.stub.ProfileServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service that handles profile management, including profile CRUD, + * enumeration and search. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+ *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+ *   Profile profile = Profile.newBuilder().build();
+ *   Profile response = profileServiceClient.createProfile(parent, profile);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the profileServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ProfileServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * ProfileServiceSettings profileServiceSettings =
+ *     ProfileServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ProfileServiceClient profileServiceClient =
+ *     ProfileServiceClient.create(profileServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * ProfileServiceSettings profileServiceSettings =
+ *     ProfileServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ProfileServiceClient profileServiceClient =
+ *     ProfileServiceClient.create(profileServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ProfileServiceClient implements BackgroundResource { + private final ProfileServiceSettings settings; + private final ProfileServiceStub stub; + + /** Constructs an instance of ProfileServiceClient with default settings. */ + public static final ProfileServiceClient create() throws IOException { + return create(ProfileServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ProfileServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ProfileServiceClient create(ProfileServiceSettings settings) + throws IOException { + return new ProfileServiceClient(settings); + } + + /** + * Constructs an instance of ProfileServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use ProfileServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final ProfileServiceClient create(ProfileServiceStub stub) { + return new ProfileServiceClient(stub); + } + + /** + * Constructs an instance of ProfileServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ProfileServiceClient(ProfileServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ProfileServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected ProfileServiceClient(ProfileServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ProfileServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ProfileServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists profiles by filter. The order is unspecified. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   for (Profile element : profileServiceClient.listProfiles(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the tenant under which the job is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListProfilesPagedResponse listProfiles(TenantName parent) { + ListProfilesRequest request = + ListProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists profiles by filter. The order is unspecified. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   for (Profile element : profileServiceClient.listProfiles(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the tenant under which the job is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListProfilesPagedResponse listProfiles(String parent) { + ListProfilesRequest request = ListProfilesRequest.newBuilder().setParent(parent).build(); + return listProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists profiles by filter. The order is unspecified. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   ListProfilesRequest request = ListProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (Profile element : profileServiceClient.listProfiles(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListProfilesPagedResponse listProfiles(ListProfilesRequest request) { + return listProfilesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists profiles by filter. The order is unspecified. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   ListProfilesRequest request = ListProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListProfilesPagedResponse> future = profileServiceClient.listProfilesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Profile element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listProfilesPagedCallable() { + return stub.listProfilesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists profiles by filter. The order is unspecified. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   ListProfilesRequest request = ListProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListProfilesResponse response = profileServiceClient.listProfilesCallable().call(request);
+   *     for (Profile element : response.getProfilesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listProfilesCallable() { + return stub.listProfilesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates and returns a new profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Profile profile = Profile.newBuilder().build();
+   *   Profile response = profileServiceClient.createProfile(parent, profile);
+   * }
+   * 
+ * + * @param parent Required. + *

The name of the tenant this profile belongs to. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @param profile Required. + *

The profile to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile createProfile(TenantName parent, Profile profile) { + + CreateProfileRequest request = + CreateProfileRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setProfile(profile) + .build(); + return createProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates and returns a new profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Profile profile = Profile.newBuilder().build();
+   *   Profile response = profileServiceClient.createProfile(parent.toString(), profile);
+   * }
+   * 
+ * + * @param parent Required. + *

The name of the tenant this profile belongs to. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @param profile Required. + *

The profile to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile createProfile(String parent, Profile profile) { + + CreateProfileRequest request = + CreateProfileRequest.newBuilder().setParent(parent).setProfile(profile).build(); + return createProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates and returns a new profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Profile profile = Profile.newBuilder().build();
+   *   CreateProfileRequest request = CreateProfileRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setProfile(profile)
+   *     .build();
+   *   Profile response = profileServiceClient.createProfile(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile createProfile(CreateProfileRequest request) { + return createProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates and returns a new profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Profile profile = Profile.newBuilder().build();
+   *   CreateProfileRequest request = CreateProfileRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setProfile(profile)
+   *     .build();
+   *   ApiFuture<Profile> future = profileServiceClient.createProfileCallable().futureCall(request);
+   *   // Do something
+   *   Profile response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createProfileCallable() { + return stub.createProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   Profile response = profileServiceClient.getProfile(name);
+   * }
+   * 
+ * + * @param name Required. + *

Resource name of the profile to get. + *

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for + * example, "projects/api-test-project/tenants/foo/profiles/bar". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile getProfile(ProfileName name) { + + GetProfileRequest request = + GetProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   Profile response = profileServiceClient.getProfile(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

Resource name of the profile to get. + *

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for + * example, "projects/api-test-project/tenants/foo/profiles/bar". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile getProfile(String name) { + + GetProfileRequest request = GetProfileRequest.newBuilder().setName(name).build(); + return getProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   GetProfileRequest request = GetProfileRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Profile response = profileServiceClient.getProfile(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile getProfile(GetProfileRequest request) { + return getProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   GetProfileRequest request = GetProfileRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Profile> future = profileServiceClient.getProfileCallable().futureCall(request);
+   *   // Do something
+   *   Profile response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getProfileCallable() { + return stub.getProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified profile and returns the updated result. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   Profile profile = Profile.newBuilder().build();
+   *   Profile response = profileServiceClient.updateProfile(profile);
+   * }
+   * 
+ * + * @param profile Required. + *

Profile to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile updateProfile(Profile profile) { + + UpdateProfileRequest request = UpdateProfileRequest.newBuilder().setProfile(profile).build(); + return updateProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified profile and returns the updated result. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   Profile profile = Profile.newBuilder().build();
+   *   UpdateProfileRequest request = UpdateProfileRequest.newBuilder()
+   *     .setProfile(profile)
+   *     .build();
+   *   Profile response = profileServiceClient.updateProfile(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile updateProfile(UpdateProfileRequest request) { + return updateProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified profile and returns the updated result. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   Profile profile = Profile.newBuilder().build();
+   *   UpdateProfileRequest request = UpdateProfileRequest.newBuilder()
+   *     .setProfile(profile)
+   *     .build();
+   *   ApiFuture<Profile> future = profileServiceClient.updateProfileCallable().futureCall(request);
+   *   // Do something
+   *   Profile response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateProfileCallable() { + return stub.updateProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   profileServiceClient.deleteProfile(name);
+   * }
+   * 
+ * + * @param name Required. + *

Resource name of the profile to be deleted. + *

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for + * example, "projects/api-test-project/tenants/foo/profiles/bar". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteProfile(ProfileName name) { + + DeleteProfileRequest request = + DeleteProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   profileServiceClient.deleteProfile(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

Resource name of the profile to be deleted. + *

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for + * example, "projects/api-test-project/tenants/foo/profiles/bar". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteProfile(String name) { + + DeleteProfileRequest request = DeleteProfileRequest.newBuilder().setName(name).build(); + deleteProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   DeleteProfileRequest request = DeleteProfileRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   profileServiceClient.deleteProfile(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteProfile(DeleteProfileRequest request) { + deleteProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   DeleteProfileRequest request = DeleteProfileRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = profileServiceClient.deleteProfileCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteProfileCallable() { + return stub.deleteProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for profiles within a tenant. + * + *

For example, search by raw queries "software engineer in Mountain View" or search by + * structured filters (location filter, education filter, etc.). + * + *

See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more + * information. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchProfilesRequest request = SearchProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   for (HistogramQueryResult element : profileServiceClient.searchProfiles(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchProfilesPagedResponse searchProfiles(SearchProfilesRequest request) { + return searchProfilesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for profiles within a tenant. + * + *

For example, search by raw queries "software engineer in Mountain View" or search by + * structured filters (location filter, education filter, etc.). + * + *

See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more + * information. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchProfilesRequest request = SearchProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   ApiFuture<SearchProfilesPagedResponse> future = profileServiceClient.searchProfilesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (HistogramQueryResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + searchProfilesPagedCallable() { + return stub.searchProfilesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for profiles within a tenant. + * + *

For example, search by raw queries "software engineer in Mountain View" or search by + * structured filters (location filter, education filter, etc.). + * + *

See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more + * information. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchProfilesRequest request = SearchProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   while (true) {
+   *     SearchProfilesResponse response = profileServiceClient.searchProfilesCallable().call(request);
+   *     for (HistogramQueryResult element : response.getHistogramQueryResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + searchProfilesCallable() { + return stub.searchProfilesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListProfilesPagedResponse + extends AbstractPagedListResponse< + ListProfilesRequest, + ListProfilesResponse, + Profile, + ListProfilesPage, + ListProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListProfilesPagedResponse apply(ListProfilesPage input) { + return new ListProfilesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListProfilesPagedResponse(ListProfilesPage page) { + super(page, ListProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListProfilesPage + extends AbstractPage { + + private ListProfilesPage( + PageContext context, + ListProfilesResponse response) { + super(context, response); + } + + private static ListProfilesPage createEmptyPage() { + return new ListProfilesPage(null, null); + } + + @Override + protected ListProfilesPage createPage( + PageContext context, + ListProfilesResponse response) { + return new ListProfilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListProfilesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListProfilesRequest, + ListProfilesResponse, + Profile, + ListProfilesPage, + ListProfilesFixedSizeCollection> { + + private ListProfilesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListProfilesFixedSizeCollection createEmptyCollection() { + return new ListProfilesFixedSizeCollection(null, 0); + } + + @Override + protected ListProfilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListProfilesFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchProfilesPagedResponse + extends AbstractPagedListResponse< + SearchProfilesRequest, + SearchProfilesResponse, + HistogramQueryResult, + SearchProfilesPage, + SearchProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public SearchProfilesPagedResponse apply(SearchProfilesPage input) { + return new SearchProfilesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private SearchProfilesPagedResponse(SearchProfilesPage page) { + super(page, SearchProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchProfilesPage + extends AbstractPage< + SearchProfilesRequest, SearchProfilesResponse, HistogramQueryResult, SearchProfilesPage> { + + private SearchProfilesPage( + PageContext context, + SearchProfilesResponse response) { + super(context, response); + } + + private static SearchProfilesPage createEmptyPage() { + return new SearchProfilesPage(null, null); + } + + @Override + protected SearchProfilesPage createPage( + PageContext context, + SearchProfilesResponse response) { + return new SearchProfilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchProfilesFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchProfilesRequest, + SearchProfilesResponse, + HistogramQueryResult, + SearchProfilesPage, + SearchProfilesFixedSizeCollection> { + + private SearchProfilesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchProfilesFixedSizeCollection createEmptyCollection() { + return new SearchProfilesFixedSizeCollection(null, 0); + } + + @Override + protected SearchProfilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchProfilesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java new file mode 100644 index 000000000000..20a2b3d6adaf --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java @@ -0,0 +1,236 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.ProfileServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link ProfileServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createProfile to 30 seconds: + * + *

+ * 
+ * ProfileServiceSettings.Builder profileServiceSettingsBuilder =
+ *     ProfileServiceSettings.newBuilder();
+ * profileServiceSettingsBuilder.createProfileSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * ProfileServiceSettings profileServiceSettings = profileServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ProfileServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to listProfiles. */ + public PagedCallSettings + listProfilesSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).listProfilesSettings(); + } + + /** Returns the object with the settings used for calls to createProfile. */ + public UnaryCallSettings createProfileSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).createProfileSettings(); + } + + /** Returns the object with the settings used for calls to getProfile. */ + public UnaryCallSettings getProfileSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).getProfileSettings(); + } + + /** Returns the object with the settings used for calls to updateProfile. */ + public UnaryCallSettings updateProfileSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).updateProfileSettings(); + } + + /** Returns the object with the settings used for calls to deleteProfile. */ + public UnaryCallSettings deleteProfileSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).deleteProfileSettings(); + } + + /** Returns the object with the settings used for calls to searchProfiles. */ + public PagedCallSettings< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).searchProfilesSettings(); + } + + public static final ProfileServiceSettings create(ProfileServiceStubSettings stub) + throws IOException { + return new ProfileServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ProfileServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ProfileServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ProfileServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ProfileServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ProfileServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ProfileServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ProfileServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ProfileServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ProfileServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(ProfileServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(ProfileServiceStubSettings.newBuilder()); + } + + protected Builder(ProfileServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ProfileServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public ProfileServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ProfileServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listProfiles. */ + public PagedCallSettings.Builder< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> + listProfilesSettings() { + return getStubSettingsBuilder().listProfilesSettings(); + } + + /** Returns the builder for the settings used for calls to createProfile. */ + public UnaryCallSettings.Builder createProfileSettings() { + return getStubSettingsBuilder().createProfileSettings(); + } + + /** Returns the builder for the settings used for calls to getProfile. */ + public UnaryCallSettings.Builder getProfileSettings() { + return getStubSettingsBuilder().getProfileSettings(); + } + + /** Returns the builder for the settings used for calls to updateProfile. */ + public UnaryCallSettings.Builder updateProfileSettings() { + return getStubSettingsBuilder().updateProfileSettings(); + } + + /** Returns the builder for the settings used for calls to deleteProfile. */ + public UnaryCallSettings.Builder deleteProfileSettings() { + return getStubSettingsBuilder().deleteProfileSettings(); + } + + /** Returns the builder for the settings used for calls to searchProfiles. */ + public PagedCallSettings.Builder< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings() { + return getStubSettingsBuilder().searchProfilesSettings(); + } + + @Override + public ProfileServiceSettings build() throws IOException { + return new ProfileServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java new file mode 100644 index 000000000000..487c99b20299 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java @@ -0,0 +1,348 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.ResumeServiceStub; +import com.google.cloud.talent.v4beta1.stub.ResumeServiceStubSettings; +import com.google.protobuf.ByteString; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service that handles resume parsing. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ByteString resume = ByteString.copyFromUtf8("");
+ *   ParseResumeResponse response = resumeServiceClient.parseResume(parent, resume);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the resumeServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ResumeServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * ResumeServiceSettings resumeServiceSettings =
+ *     ResumeServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ResumeServiceClient resumeServiceClient =
+ *     ResumeServiceClient.create(resumeServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * ResumeServiceSettings resumeServiceSettings =
+ *     ResumeServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ResumeServiceClient resumeServiceClient =
+ *     ResumeServiceClient.create(resumeServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ResumeServiceClient implements BackgroundResource { + private final ResumeServiceSettings settings; + private final ResumeServiceStub stub; + + /** Constructs an instance of ResumeServiceClient with default settings. */ + public static final ResumeServiceClient create() throws IOException { + return create(ResumeServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ResumeServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ResumeServiceClient create(ResumeServiceSettings settings) + throws IOException { + return new ResumeServiceClient(settings); + } + + /** + * Constructs an instance of ResumeServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use ResumeServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final ResumeServiceClient create(ResumeServiceStub stub) { + return new ResumeServiceClient(stub); + } + + /** + * Constructs an instance of ResumeServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ResumeServiceClient(ResumeServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ResumeServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected ResumeServiceClient(ResumeServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ResumeServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ResumeServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill + * out the following profile fields if present within the resume: + * + *

* personNames * addresses * emailAddress * phoneNumbers * personalUris + * * employmentRecords * educationRecords * skills + * + *

Note that some attributes in these fields may not be populated if they're not present within + * the resume or unrecognizable by the resume parser. + * + *

This API does not save the resume or profile. To create a profile from this resume, clients + * need to call the CreateProfile method again with the profile returned. + * + *

The following list of formats are supported: + * + *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when + * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) + * + *

Sample code: + * + *


+   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ByteString resume = ByteString.copyFromUtf8("");
+   *   ParseResumeResponse response = resumeServiceClient.parseResume(parent, resume);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param resume Required. + *

The bytes of the resume file in common format, for example, PDF, TXT. UTF-8 encoding is + * required if the resume is text-based, otherwise an error is thrown. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParseResumeResponse parseResume(ProjectName parent, ByteString resume) { + + ParseResumeRequest request = + ParseResumeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setResume(resume) + .build(); + return parseResume(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill + * out the following profile fields if present within the resume: + * + *

* personNames * addresses * emailAddress * phoneNumbers * personalUris + * * employmentRecords * educationRecords * skills + * + *

Note that some attributes in these fields may not be populated if they're not present within + * the resume or unrecognizable by the resume parser. + * + *

This API does not save the resume or profile. To create a profile from this resume, clients + * need to call the CreateProfile method again with the profile returned. + * + *

The following list of formats are supported: + * + *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when + * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) + * + *

Sample code: + * + *


+   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ByteString resume = ByteString.copyFromUtf8("");
+   *   ParseResumeResponse response = resumeServiceClient.parseResume(parent.toString(), resume);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param resume Required. + *

The bytes of the resume file in common format, for example, PDF, TXT. UTF-8 encoding is + * required if the resume is text-based, otherwise an error is thrown. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParseResumeResponse parseResume(String parent, ByteString resume) { + + ParseResumeRequest request = + ParseResumeRequest.newBuilder().setParent(parent).setResume(resume).build(); + return parseResume(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill + * out the following profile fields if present within the resume: + * + *

* personNames * addresses * emailAddress * phoneNumbers * personalUris + * * employmentRecords * educationRecords * skills + * + *

Note that some attributes in these fields may not be populated if they're not present within + * the resume or unrecognizable by the resume parser. + * + *

This API does not save the resume or profile. To create a profile from this resume, clients + * need to call the CreateProfile method again with the profile returned. + * + *

The following list of formats are supported: + * + *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when + * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) + * + *

Sample code: + * + *


+   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ByteString resume = ByteString.copyFromUtf8("");
+   *   ParseResumeRequest request = ParseResumeRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setResume(resume)
+   *     .build();
+   *   ParseResumeResponse response = resumeServiceClient.parseResume(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParseResumeResponse parseResume(ParseResumeRequest request) { + return parseResumeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill + * out the following profile fields if present within the resume: + * + *

* personNames * addresses * emailAddress * phoneNumbers * personalUris + * * employmentRecords * educationRecords * skills + * + *

Note that some attributes in these fields may not be populated if they're not present within + * the resume or unrecognizable by the resume parser. + * + *

This API does not save the resume or profile. To create a profile from this resume, clients + * need to call the CreateProfile method again with the profile returned. + * + *

The following list of formats are supported: + * + *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when + * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) + * + *

Sample code: + * + *


+   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ByteString resume = ByteString.copyFromUtf8("");
+   *   ParseResumeRequest request = ParseResumeRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setResume(resume)
+   *     .build();
+   *   ApiFuture<ParseResumeResponse> future = resumeServiceClient.parseResumeCallable().futureCall(request);
+   *   // Do something
+   *   ParseResumeResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable parseResumeCallable() { + return stub.parseResumeCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java new file mode 100644 index 000000000000..bf411c4f0f48 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java @@ -0,0 +1,175 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.ResumeServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link ResumeServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of parseResume to 30 seconds: + * + *

+ * 
+ * ResumeServiceSettings.Builder resumeServiceSettingsBuilder =
+ *     ResumeServiceSettings.newBuilder();
+ * resumeServiceSettingsBuilder.parseResumeSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * ResumeServiceSettings resumeServiceSettings = resumeServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ResumeServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to parseResume. */ + public UnaryCallSettings parseResumeSettings() { + return ((ResumeServiceStubSettings) getStubSettings()).parseResumeSettings(); + } + + public static final ResumeServiceSettings create(ResumeServiceStubSettings stub) + throws IOException { + return new ResumeServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ResumeServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ResumeServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ResumeServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ResumeServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ResumeServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ResumeServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ResumeServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ResumeServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ResumeServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(ResumeServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(ResumeServiceStubSettings.newBuilder()); + } + + protected Builder(ResumeServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ResumeServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public ResumeServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ResumeServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to parseResume. */ + public UnaryCallSettings.Builder + parseResumeSettings() { + return getStubSettingsBuilder().parseResumeSettings(); + } + + @Override + public ResumeServiceSettings build() throws IOException { + return new ResumeServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java new file mode 100644 index 000000000000..65476dc57674 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java @@ -0,0 +1,769 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.TenantServiceStub; +import com.google.cloud.talent.v4beta1.stub.TenantServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service that handles tenant management, including CRUD and enumeration. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Tenant tenant = Tenant.newBuilder().build();
+ *   Tenant response = tenantServiceClient.createTenant(parent, tenant);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the tenantServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of TenantServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * TenantServiceSettings tenantServiceSettings =
+ *     TenantServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TenantServiceClient tenantServiceClient =
+ *     TenantServiceClient.create(tenantServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * TenantServiceSettings tenantServiceSettings =
+ *     TenantServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TenantServiceClient tenantServiceClient =
+ *     TenantServiceClient.create(tenantServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class TenantServiceClient implements BackgroundResource { + private final TenantServiceSettings settings; + private final TenantServiceStub stub; + + /** Constructs an instance of TenantServiceClient with default settings. */ + public static final TenantServiceClient create() throws IOException { + return create(TenantServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TenantServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TenantServiceClient create(TenantServiceSettings settings) + throws IOException { + return new TenantServiceClient(settings); + } + + /** + * Constructs an instance of TenantServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use TenantServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final TenantServiceClient create(TenantServiceStub stub) { + return new TenantServiceClient(stub); + } + + /** + * Constructs an instance of TenantServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected TenantServiceClient(TenantServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TenantServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected TenantServiceClient(TenantServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final TenantServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public TenantServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new tenant entity. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   Tenant response = tenantServiceClient.createTenant(parent, tenant);
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the tenant is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param tenant Required. + *

The tenant to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant createTenant(ProjectName parent, Tenant tenant) { + + CreateTenantRequest request = + CreateTenantRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTenant(tenant) + .build(); + return createTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new tenant entity. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   Tenant response = tenantServiceClient.createTenant(parent.toString(), tenant);
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the tenant is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param tenant Required. + *

The tenant to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant createTenant(String parent, Tenant tenant) { + + CreateTenantRequest request = + CreateTenantRequest.newBuilder().setParent(parent).setTenant(tenant).build(); + return createTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new tenant entity. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   CreateTenantRequest request = CreateTenantRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setTenant(tenant)
+   *     .build();
+   *   Tenant response = tenantServiceClient.createTenant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant createTenant(CreateTenantRequest request) { + return createTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new tenant entity. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   CreateTenantRequest request = CreateTenantRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setTenant(tenant)
+   *     .build();
+   *   ApiFuture<Tenant> future = tenantServiceClient.createTenantCallable().futureCall(request);
+   *   // Do something
+   *   Tenant response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createTenantCallable() { + return stub.createTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Tenant response = tenantServiceClient.getTenant(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the tenant to be retrieved. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant getTenant(TenantName name) { + + GetTenantRequest request = + GetTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Tenant response = tenantServiceClient.getTenant(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the tenant to be retrieved. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant getTenant(String name) { + + GetTenantRequest request = GetTenantRequest.newBuilder().setName(name).build(); + return getTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   GetTenantRequest request = GetTenantRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Tenant response = tenantServiceClient.getTenant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant getTenant(GetTenantRequest request) { + return getTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   GetTenantRequest request = GetTenantRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Tenant> future = tenantServiceClient.getTenantCallable().futureCall(request);
+   *   // Do something
+   *   Tenant response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getTenantCallable() { + return stub.getTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   Tenant response = tenantServiceClient.updateTenant(tenant);
+   * }
+   * 
+ * + * @param tenant Required. + *

The tenant resource to replace the current resource in the system. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant updateTenant(Tenant tenant) { + + UpdateTenantRequest request = UpdateTenantRequest.newBuilder().setTenant(tenant).build(); + return updateTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   UpdateTenantRequest request = UpdateTenantRequest.newBuilder()
+   *     .setTenant(tenant)
+   *     .build();
+   *   Tenant response = tenantServiceClient.updateTenant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant updateTenant(UpdateTenantRequest request) { + return updateTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   UpdateTenantRequest request = UpdateTenantRequest.newBuilder()
+   *     .setTenant(tenant)
+   *     .build();
+   *   ApiFuture<Tenant> future = tenantServiceClient.updateTenantCallable().futureCall(request);
+   *   // Do something
+   *   Tenant response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateTenantCallable() { + return stub.updateTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   tenantServiceClient.deleteTenant(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the tenant to be deleted. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTenant(TenantName name) { + + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   tenantServiceClient.deleteTenant(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the tenant to be deleted. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTenant(String name) { + + DeleteTenantRequest request = DeleteTenantRequest.newBuilder().setName(name).build(); + deleteTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   DeleteTenantRequest request = DeleteTenantRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   tenantServiceClient.deleteTenant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTenant(DeleteTenantRequest request) { + deleteTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   DeleteTenantRequest request = DeleteTenantRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = tenantServiceClient.deleteTenantCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteTenantCallable() { + return stub.deleteTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all tenants associated with the project. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (Tenant element : tenantServiceClient.listTenants(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the tenant is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTenantsPagedResponse listTenants(ProjectName parent) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTenants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all tenants associated with the project. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (Tenant element : tenantServiceClient.listTenants(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the tenant is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTenantsPagedResponse listTenants(String parent) { + ListTenantsRequest request = ListTenantsRequest.newBuilder().setParent(parent).build(); + return listTenants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all tenants associated with the project. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListTenantsRequest request = ListTenantsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (Tenant element : tenantServiceClient.listTenants(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTenantsPagedResponse listTenants(ListTenantsRequest request) { + return listTenantsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all tenants associated with the project. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListTenantsRequest request = ListTenantsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListTenantsPagedResponse> future = tenantServiceClient.listTenantsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Tenant element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listTenantsPagedCallable() { + return stub.listTenantsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all tenants associated with the project. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListTenantsRequest request = ListTenantsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListTenantsResponse response = tenantServiceClient.listTenantsCallable().call(request);
+   *     for (Tenant element : response.getTenantsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listTenantsCallable() { + return stub.listTenantsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListTenantsPagedResponse + extends AbstractPagedListResponse< + ListTenantsRequest, + ListTenantsResponse, + Tenant, + ListTenantsPage, + ListTenantsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTenantsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListTenantsPagedResponse apply(ListTenantsPage input) { + return new ListTenantsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListTenantsPagedResponse(ListTenantsPage page) { + super(page, ListTenantsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTenantsPage + extends AbstractPage { + + private ListTenantsPage( + PageContext context, + ListTenantsResponse response) { + super(context, response); + } + + private static ListTenantsPage createEmptyPage() { + return new ListTenantsPage(null, null); + } + + @Override + protected ListTenantsPage createPage( + PageContext context, + ListTenantsResponse response) { + return new ListTenantsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTenantsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTenantsRequest, + ListTenantsResponse, + Tenant, + ListTenantsPage, + ListTenantsFixedSizeCollection> { + + private ListTenantsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTenantsFixedSizeCollection createEmptyCollection() { + return new ListTenantsFixedSizeCollection(null, 0); + } + + @Override + protected ListTenantsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTenantsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java new file mode 100644 index 000000000000..fb6b8ec0e43a --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java @@ -0,0 +1,221 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.TenantServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link TenantServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createTenant to 30 seconds: + * + *

+ * 
+ * TenantServiceSettings.Builder tenantServiceSettingsBuilder =
+ *     TenantServiceSettings.newBuilder();
+ * tenantServiceSettingsBuilder.createTenantSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * TenantServiceSettings tenantServiceSettings = tenantServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class TenantServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createTenant. */ + public UnaryCallSettings createTenantSettings() { + return ((TenantServiceStubSettings) getStubSettings()).createTenantSettings(); + } + + /** Returns the object with the settings used for calls to getTenant. */ + public UnaryCallSettings getTenantSettings() { + return ((TenantServiceStubSettings) getStubSettings()).getTenantSettings(); + } + + /** Returns the object with the settings used for calls to updateTenant. */ + public UnaryCallSettings updateTenantSettings() { + return ((TenantServiceStubSettings) getStubSettings()).updateTenantSettings(); + } + + /** Returns the object with the settings used for calls to deleteTenant. */ + public UnaryCallSettings deleteTenantSettings() { + return ((TenantServiceStubSettings) getStubSettings()).deleteTenantSettings(); + } + + /** Returns the object with the settings used for calls to listTenants. */ + public PagedCallSettings + listTenantsSettings() { + return ((TenantServiceStubSettings) getStubSettings()).listTenantsSettings(); + } + + public static final TenantServiceSettings create(TenantServiceStubSettings stub) + throws IOException { + return new TenantServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TenantServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TenantServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TenantServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TenantServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TenantServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TenantServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TenantServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TenantServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TenantServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(TenantServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(TenantServiceStubSettings.newBuilder()); + } + + protected Builder(TenantServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TenantServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public TenantServiceStubSettings.Builder getStubSettingsBuilder() { + return ((TenantServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createTenant. */ + public UnaryCallSettings.Builder createTenantSettings() { + return getStubSettingsBuilder().createTenantSettings(); + } + + /** Returns the builder for the settings used for calls to getTenant. */ + public UnaryCallSettings.Builder getTenantSettings() { + return getStubSettingsBuilder().getTenantSettings(); + } + + /** Returns the builder for the settings used for calls to updateTenant. */ + public UnaryCallSettings.Builder updateTenantSettings() { + return getStubSettingsBuilder().updateTenantSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTenant. */ + public UnaryCallSettings.Builder deleteTenantSettings() { + return getStubSettingsBuilder().deleteTenantSettings(); + } + + /** Returns the builder for the settings used for calls to listTenants. */ + public PagedCallSettings.Builder< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + listTenantsSettings() { + return getStubSettingsBuilder().listTenantsSettings(); + } + + @Override + public TenantServiceSettings build() throws IOException { + return new TenantServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java new file mode 100644 index 000000000000..746d4bd63803 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java @@ -0,0 +1,143 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Talent Solution API. + * + *

The interfaces provided are listed below, along with usage samples. + * + *

==================== CompanyServiceClient ==================== + * + *

Service Description: A service that handles company management, including CRUD and + * enumeration. + * + *

Sample for CompanyServiceClient: + * + *

+ * 
+ * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Company company = Company.newBuilder().build();
+ *   Company response = companyServiceClient.createCompany(parent, company);
+ * }
+ * 
+ * 
+ * + * ================ CompletionClient ================ + * + *

Service Description: A service handles auto completion. + * + *

Sample for CompletionClient: + * + *

+ * 
+ * try (CompletionClient completionClient = CompletionClient.create()) {
+ *   ProjectName name = ProjectName.of("[PROJECT]");
+ *   String query = "";
+ *   int pageSize = 0;
+ *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
+ *     .setName(name.toString())
+ *     .setQuery(query)
+ *     .setPageSize(pageSize)
+ *     .build();
+ *   CompleteQueryResponse response = completionClient.completeQuery(request);
+ * }
+ * 
+ * 
+ * + * ================== EventServiceClient ================== + * + *

Service Description: A service handles client event report. + * + *

Sample for EventServiceClient: + * + *

+ * 
+ * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+ *   ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
+ * }
+ * 
+ * 
+ * + * ================ JobServiceClient ================ + * + *

Service Description: A service handles job management, including job CRUD, enumeration and + * search. + * + *

Sample for JobServiceClient: + * + *

+ * 
+ * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Job job = Job.newBuilder().build();
+ *   Job response = jobServiceClient.createJob(parent, job);
+ * }
+ * 
+ * 
+ * + * ==================== ProfileServiceClient ==================== + * + *

Service Description: A service that handles profile management, including profile CRUD, + * enumeration and search. + * + *

Sample for ProfileServiceClient: + * + *

+ * 
+ * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+ *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+ *   Profile profile = Profile.newBuilder().build();
+ *   Profile response = profileServiceClient.createProfile(parent, profile);
+ * }
+ * 
+ * 
+ * + * =================== ResumeServiceClient =================== + * + *

Service Description: A service that handles resume parsing. + * + *

Sample for ResumeServiceClient: + * + *

+ * 
+ * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ByteString resume = ByteString.copyFromUtf8("");
+ *   ParseResumeResponse response = resumeServiceClient.parseResume(parent, resume);
+ * }
+ * 
+ * 
+ * + * =================== TenantServiceClient =================== + * + *

Service Description: A service that handles tenant management, including CRUD and enumeration. + * + *

Sample for TenantServiceClient: + * + *

+ * 
+ * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Tenant tenant = Tenant.newBuilder().build();
+ *   Tenant response = tenantServiceClient.createTenant(parent, tenant);
+ * }
+ * 
+ * 
+ */ +package com.google.cloud.talent.v4beta1; diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStub.java new file mode 100644 index 000000000000..c0cf65b78025 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStub.java @@ -0,0 +1,70 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CreateCompanyRequest; +import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; +import com.google.cloud.talent.v4beta1.GetCompanyRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesResponse; +import com.google.cloud.talent.v4beta1.UpdateCompanyRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class CompanyServiceStub implements BackgroundResource { + + public UnaryCallable createCompanyCallable() { + throw new UnsupportedOperationException("Not implemented: createCompanyCallable()"); + } + + public UnaryCallable getCompanyCallable() { + throw new UnsupportedOperationException("Not implemented: getCompanyCallable()"); + } + + public UnaryCallable updateCompanyCallable() { + throw new UnsupportedOperationException("Not implemented: updateCompanyCallable()"); + } + + public UnaryCallable deleteCompanyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCompanyCallable()"); + } + + public UnaryCallable + listCompaniesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listCompaniesPagedCallable()"); + } + + public UnaryCallable listCompaniesCallable() { + throw new UnsupportedOperationException("Not implemented: listCompaniesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java new file mode 100644 index 000000000000..6d5f5fb20676 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java @@ -0,0 +1,436 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CreateCompanyRequest; +import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; +import com.google.cloud.talent.v4beta1.GetCompanyRequest; +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.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CompanyServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createCompany to 30 seconds: + * + *

+ * 
+ * CompanyServiceStubSettings.Builder companyServiceSettingsBuilder =
+ *     CompanyServiceStubSettings.newBuilder();
+ * companyServiceSettingsBuilder.createCompanySettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CompanyServiceStubSettings companyServiceSettings = companyServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompanyServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings createCompanySettings; + private final UnaryCallSettings getCompanySettings; + private final UnaryCallSettings updateCompanySettings; + private final UnaryCallSettings deleteCompanySettings; + private final PagedCallSettings< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse> + listCompaniesSettings; + + /** Returns the object with the settings used for calls to createCompany. */ + public UnaryCallSettings createCompanySettings() { + return createCompanySettings; + } + + /** Returns the object with the settings used for calls to getCompany. */ + public UnaryCallSettings getCompanySettings() { + return getCompanySettings; + } + + /** Returns the object with the settings used for calls to updateCompany. */ + public UnaryCallSettings updateCompanySettings() { + return updateCompanySettings; + } + + /** Returns the object with the settings used for calls to deleteCompany. */ + public UnaryCallSettings deleteCompanySettings() { + return deleteCompanySettings; + } + + /** Returns the object with the settings used for calls to listCompanies. */ + public PagedCallSettings + listCompaniesSettings() { + return listCompaniesSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CompanyServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcCompanyServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CompanyServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CompanyServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createCompanySettings = settingsBuilder.createCompanySettings().build(); + getCompanySettings = settingsBuilder.getCompanySettings().build(); + updateCompanySettings = settingsBuilder.updateCompanySettings().build(); + deleteCompanySettings = settingsBuilder.deleteCompanySettings().build(); + listCompaniesSettings = settingsBuilder.listCompaniesSettings().build(); + } + + private static final PagedListDescriptor + LIST_COMPANIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCompaniesRequest injectToken(ListCompaniesRequest payload, String token) { + return ListCompaniesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCompaniesRequest injectPageSize(ListCompaniesRequest payload, int pageSize) { + return ListCompaniesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCompaniesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCompaniesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListCompaniesResponse payload) { + return payload.getCompaniesList() != null + ? payload.getCompaniesList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse> + LIST_COMPANIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCompaniesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_COMPANIES_PAGE_STR_DESC, request, context); + return ListCompaniesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for CompanyServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createCompanySettings; + private final UnaryCallSettings.Builder getCompanySettings; + private final UnaryCallSettings.Builder updateCompanySettings; + private final UnaryCallSettings.Builder deleteCompanySettings; + private final PagedCallSettings.Builder< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse> + listCompaniesSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listCompaniesSettings = PagedCallSettings.newBuilder(LIST_COMPANIES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createCompanySettings, + getCompanySettings, + updateCompanySettings, + deleteCompanySettings, + listCompaniesSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createCompanySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getCompanySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateCompanySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteCompanySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listCompaniesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(CompanyServiceStubSettings settings) { + super(settings); + + createCompanySettings = settings.createCompanySettings.toBuilder(); + getCompanySettings = settings.getCompanySettings.toBuilder(); + updateCompanySettings = settings.updateCompanySettings.toBuilder(); + deleteCompanySettings = settings.deleteCompanySettings.toBuilder(); + listCompaniesSettings = settings.listCompaniesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createCompanySettings, + getCompanySettings, + updateCompanySettings, + deleteCompanySettings, + listCompaniesSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createCompany. */ + public UnaryCallSettings.Builder createCompanySettings() { + return createCompanySettings; + } + + /** Returns the builder for the settings used for calls to getCompany. */ + public UnaryCallSettings.Builder getCompanySettings() { + return getCompanySettings; + } + + /** Returns the builder for the settings used for calls to updateCompany. */ + public UnaryCallSettings.Builder updateCompanySettings() { + return updateCompanySettings; + } + + /** Returns the builder for the settings used for calls to deleteCompany. */ + public UnaryCallSettings.Builder deleteCompanySettings() { + return deleteCompanySettings; + } + + /** Returns the builder for the settings used for calls to listCompanies. */ + public PagedCallSettings.Builder< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse> + listCompaniesSettings() { + return listCompaniesSettings; + } + + @Override + public CompanyServiceStubSettings build() throws IOException { + return new CompanyServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStub.java new file mode 100644 index 000000000000..92b5598a8e2b --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStub.java @@ -0,0 +1,41 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CompleteQueryRequest; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class CompletionStub implements BackgroundResource { + + public UnaryCallable completeQueryCallable() { + throw new UnsupportedOperationException("Not implemented: completeQueryCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java new file mode 100644 index 000000000000..da761e929260 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java @@ -0,0 +1,270 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.CompleteQueryRequest; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CompletionStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of completeQuery to 30 seconds: + * + *

+ * 
+ * CompletionStubSettings.Builder completionSettingsBuilder =
+ *     CompletionStubSettings.newBuilder();
+ * completionSettingsBuilder.completeQuerySettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CompletionStubSettings completionSettings = completionSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompletionStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings + completeQuerySettings; + + /** Returns the object with the settings used for calls to completeQuery. */ + public UnaryCallSettings completeQuerySettings() { + return completeQuerySettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CompletionStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcCompletionStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CompletionStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CompletionStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + completeQuerySettings = settingsBuilder.completeQuerySettings().build(); + } + + /** Builder for CompletionStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder + completeQuerySettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(completeQuerySettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .completeQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(CompletionStubSettings settings) { + super(settings); + + completeQuerySettings = settings.completeQuerySettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(completeQuerySettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to completeQuery. */ + public UnaryCallSettings.Builder + completeQuerySettings() { + return completeQuerySettings; + } + + @Override + public CompletionStubSettings build() throws IOException { + return new CompletionStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStub.java new file mode 100644 index 000000000000..c397c6956219 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStub.java @@ -0,0 +1,41 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.CreateClientEventRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class EventServiceStub implements BackgroundResource { + + public UnaryCallable createClientEventCallable() { + throw new UnsupportedOperationException("Not implemented: createClientEventCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java new file mode 100644 index 000000000000..03eb9aacbc5a --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java @@ -0,0 +1,269 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.CreateClientEventRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link EventServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createClientEvent to 30 seconds: + * + *

+ * 
+ * EventServiceStubSettings.Builder eventServiceSettingsBuilder =
+ *     EventServiceStubSettings.newBuilder();
+ * eventServiceSettingsBuilder.createClientEventSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * EventServiceStubSettings eventServiceSettings = eventServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class EventServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings createClientEventSettings; + + /** Returns the object with the settings used for calls to createClientEvent. */ + public UnaryCallSettings createClientEventSettings() { + return createClientEventSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public EventServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcEventServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EventServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected EventServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createClientEventSettings = settingsBuilder.createClientEventSettings().build(); + } + + /** Builder for EventServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder + createClientEventSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createClientEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(createClientEventSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createClientEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(EventServiceStubSettings settings) { + super(settings); + + createClientEventSettings = settings.createClientEventSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(createClientEventSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createClientEvent. */ + public UnaryCallSettings.Builder + createClientEventSettings() { + return createClientEventSettings; + } + + @Override + public EventServiceStubSettings build() throws IOException { + return new EventServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceCallableFactory.java new file mode 100644 index 000000000000..b33c6c9267a3 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcCompanyServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceStub.java new file mode 100644 index 000000000000..0ab9ddff7728 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceStub.java @@ -0,0 +1,242 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.UnaryCallable; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CreateCompanyRequest; +import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; +import com.google.cloud.talent.v4beta1.GetCompanyRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesResponse; +import com.google.cloud.talent.v4beta1.UpdateCompanyRequest; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcCompanyServiceStub extends CompanyServiceStub { + + private static final MethodDescriptor + createCompanyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/CreateCompany") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCompanyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Company.getDefaultInstance())) + .build(); + private static final MethodDescriptor getCompanyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/GetCompany") + .setRequestMarshaller(ProtoUtils.marshaller(GetCompanyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Company.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateCompanyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/UpdateCompany") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCompanyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Company.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteCompanyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/DeleteCompany") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteCompanyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listCompaniesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/ListCompanies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCompaniesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCompaniesResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createCompanyCallable; + private final UnaryCallable getCompanyCallable; + private final UnaryCallable updateCompanyCallable; + private final UnaryCallable deleteCompanyCallable; + private final UnaryCallable listCompaniesCallable; + private final UnaryCallable + listCompaniesPagedCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCompanyServiceStub create(CompanyServiceStubSettings settings) + throws IOException { + return new GrpcCompanyServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCompanyServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcCompanyServiceStub( + CompanyServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCompanyServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCompanyServiceStub( + CompanyServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCompanyServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcCompanyServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcCompanyServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCompanyServiceStub( + CompanyServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createCompanyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCompanyMethodDescriptor) + .build(); + GrpcCallSettings getCompanyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCompanyMethodDescriptor) + .build(); + GrpcCallSettings updateCompanyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCompanyMethodDescriptor) + .build(); + GrpcCallSettings deleteCompanyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCompanyMethodDescriptor) + .build(); + GrpcCallSettings listCompaniesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCompaniesMethodDescriptor) + .build(); + + this.createCompanyCallable = + callableFactory.createUnaryCallable( + createCompanyTransportSettings, settings.createCompanySettings(), clientContext); + this.getCompanyCallable = + callableFactory.createUnaryCallable( + getCompanyTransportSettings, settings.getCompanySettings(), clientContext); + this.updateCompanyCallable = + callableFactory.createUnaryCallable( + updateCompanyTransportSettings, settings.updateCompanySettings(), clientContext); + this.deleteCompanyCallable = + callableFactory.createUnaryCallable( + deleteCompanyTransportSettings, settings.deleteCompanySettings(), clientContext); + this.listCompaniesCallable = + callableFactory.createUnaryCallable( + listCompaniesTransportSettings, settings.listCompaniesSettings(), clientContext); + this.listCompaniesPagedCallable = + callableFactory.createPagedCallable( + listCompaniesTransportSettings, settings.listCompaniesSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createCompanyCallable() { + return createCompanyCallable; + } + + public UnaryCallable getCompanyCallable() { + return getCompanyCallable; + } + + public UnaryCallable updateCompanyCallable() { + return updateCompanyCallable; + } + + public UnaryCallable deleteCompanyCallable() { + return deleteCompanyCallable; + } + + public UnaryCallable + listCompaniesPagedCallable() { + return listCompaniesPagedCallable; + } + + public UnaryCallable listCompaniesCallable() { + return listCompaniesCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionCallableFactory.java new file mode 100644 index 000000000000..50efe115f23f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcCompletionCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionStub.java new file mode 100644 index 000000000000..edf86b24d416 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionStub.java @@ -0,0 +1,142 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.UnaryCallable; +import com.google.cloud.talent.v4beta1.CompleteQueryRequest; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcCompletionStub extends CompletionStub { + + private static final MethodDescriptor + completeQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.Completion/CompleteQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(CompleteQueryRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CompleteQueryResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable completeQueryCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCompletionStub create(CompletionStubSettings settings) + throws IOException { + return new GrpcCompletionStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCompletionStub create(ClientContext clientContext) throws IOException { + return new GrpcCompletionStub(CompletionStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCompletionStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCompletionStub( + CompletionStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCompletionStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCompletionStub(CompletionStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcCompletionCallableFactory()); + } + + /** + * Constructs an instance of GrpcCompletionStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCompletionStub( + CompletionStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings completeQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeQueryMethodDescriptor) + .build(); + + this.completeQueryCallable = + callableFactory.createUnaryCallable( + completeQueryTransportSettings, settings.completeQuerySettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable completeQueryCallable() { + return completeQueryCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceCallableFactory.java new file mode 100644 index 000000000000..8fd94eabbba4 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcEventServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceStub.java new file mode 100644 index 000000000000..8ff57ed4fe80 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceStub.java @@ -0,0 +1,143 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.UnaryCallable; +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.CreateClientEventRequest; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcEventServiceStub extends EventServiceStub { + + private static final MethodDescriptor + createClientEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.EventService/CreateClientEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateClientEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ClientEvent.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createClientEventCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcEventServiceStub create(EventServiceStubSettings settings) + throws IOException { + return new GrpcEventServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcEventServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcEventServiceStub(EventServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcEventServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcEventServiceStub( + EventServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcEventServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcEventServiceStub(EventServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcEventServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcEventServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcEventServiceStub( + EventServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createClientEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createClientEventMethodDescriptor) + .build(); + + this.createClientEventCallable = + callableFactory.createUnaryCallable( + createClientEventTransportSettings, + settings.createClientEventSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createClientEventCallable() { + return createClientEventCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceCallableFactory.java new file mode 100644 index 000000000000..b92637440121 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcJobServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceStub.java new file mode 100644 index 000000000000..d6a9cad3729f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceStub.java @@ -0,0 +1,320 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsForAlertPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.UnaryCallable; +import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.DeleteJobRequest; +import com.google.cloud.talent.v4beta1.GetJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.ListJobsResponse; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.UpdateJobRequest; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcJobServiceStub extends JobServiceStub { + + private static final MethodDescriptor createJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/CreateJob") + .setRequestMarshaller(ProtoUtils.marshaller(CreateJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor getJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/GetJob") + .setRequestMarshaller(ProtoUtils.marshaller(GetJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/UpdateJob") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/DeleteJob") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/ListJobs") + .setRequestMarshaller(ProtoUtils.marshaller(ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListJobsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + batchDeleteJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/BatchDeleteJobs") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchDeleteJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + searchJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/SearchJobs") + .setRequestMarshaller(ProtoUtils.marshaller(SearchJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SearchJobsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + searchJobsForAlertMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/SearchJobsForAlert") + .setRequestMarshaller(ProtoUtils.marshaller(SearchJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SearchJobsResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createJobCallable; + private final UnaryCallable getJobCallable; + private final UnaryCallable updateJobCallable; + private final UnaryCallable deleteJobCallable; + private final UnaryCallable listJobsCallable; + private final UnaryCallable listJobsPagedCallable; + private final UnaryCallable batchDeleteJobsCallable; + private final UnaryCallable searchJobsCallable; + private final UnaryCallable searchJobsPagedCallable; + private final UnaryCallable searchJobsForAlertCallable; + private final UnaryCallable + searchJobsForAlertPagedCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcJobServiceStub create(JobServiceStubSettings settings) + throws IOException { + return new GrpcJobServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcJobServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcJobServiceStub(JobServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcJobServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcJobServiceStub( + JobServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcJobServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcJobServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcJobServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcJobServiceStub( + JobServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createJobMethodDescriptor) + .build(); + GrpcCallSettings getJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJobMethodDescriptor) + .build(); + GrpcCallSettings updateJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateJobMethodDescriptor) + .build(); + GrpcCallSettings deleteJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteJobMethodDescriptor) + .build(); + GrpcCallSettings listJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listJobsMethodDescriptor) + .build(); + GrpcCallSettings batchDeleteJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteJobsMethodDescriptor) + .build(); + GrpcCallSettings searchJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchJobsMethodDescriptor) + .build(); + GrpcCallSettings searchJobsForAlertTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchJobsForAlertMethodDescriptor) + .build(); + + this.createJobCallable = + callableFactory.createUnaryCallable( + createJobTransportSettings, settings.createJobSettings(), clientContext); + this.getJobCallable = + callableFactory.createUnaryCallable( + getJobTransportSettings, settings.getJobSettings(), clientContext); + this.updateJobCallable = + callableFactory.createUnaryCallable( + updateJobTransportSettings, settings.updateJobSettings(), clientContext); + this.deleteJobCallable = + callableFactory.createUnaryCallable( + deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); + this.listJobsCallable = + callableFactory.createUnaryCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.listJobsPagedCallable = + callableFactory.createPagedCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.batchDeleteJobsCallable = + callableFactory.createUnaryCallable( + batchDeleteJobsTransportSettings, settings.batchDeleteJobsSettings(), clientContext); + this.searchJobsCallable = + callableFactory.createUnaryCallable( + searchJobsTransportSettings, settings.searchJobsSettings(), clientContext); + this.searchJobsPagedCallable = + callableFactory.createPagedCallable( + searchJobsTransportSettings, settings.searchJobsSettings(), clientContext); + this.searchJobsForAlertCallable = + callableFactory.createUnaryCallable( + searchJobsForAlertTransportSettings, + settings.searchJobsForAlertSettings(), + clientContext); + this.searchJobsForAlertPagedCallable = + callableFactory.createPagedCallable( + searchJobsForAlertTransportSettings, + settings.searchJobsForAlertSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createJobCallable() { + return createJobCallable; + } + + public UnaryCallable getJobCallable() { + return getJobCallable; + } + + public UnaryCallable updateJobCallable() { + return updateJobCallable; + } + + public UnaryCallable deleteJobCallable() { + return deleteJobCallable; + } + + public UnaryCallable listJobsPagedCallable() { + return listJobsPagedCallable; + } + + public UnaryCallable listJobsCallable() { + return listJobsCallable; + } + + public UnaryCallable batchDeleteJobsCallable() { + return batchDeleteJobsCallable; + } + + public UnaryCallable searchJobsPagedCallable() { + return searchJobsPagedCallable; + } + + public UnaryCallable searchJobsCallable() { + return searchJobsCallable; + } + + public UnaryCallable + searchJobsForAlertPagedCallable() { + return searchJobsForAlertPagedCallable; + } + + public UnaryCallable searchJobsForAlertCallable() { + return searchJobsForAlertCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceCallableFactory.java new file mode 100644 index 000000000000..bf2bdb1bb25a --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcProfileServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java new file mode 100644 index 000000000000..0206978a9413 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java @@ -0,0 +1,276 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateProfileRequest; +import com.google.cloud.talent.v4beta1.DeleteProfileRequest; +import com.google.cloud.talent.v4beta1.GetProfileRequest; +import com.google.cloud.talent.v4beta1.ListProfilesRequest; +import com.google.cloud.talent.v4beta1.ListProfilesResponse; +import com.google.cloud.talent.v4beta1.Profile; +import com.google.cloud.talent.v4beta1.SearchProfilesRequest; +import com.google.cloud.talent.v4beta1.SearchProfilesResponse; +import com.google.cloud.talent.v4beta1.UpdateProfileRequest; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcProfileServiceStub extends ProfileServiceStub { + + private static final MethodDescriptor + listProfilesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/ListProfiles") + .setRequestMarshaller(ProtoUtils.marshaller(ListProfilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListProfilesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + createProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/CreateProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Profile.getDefaultInstance())) + .build(); + private static final MethodDescriptor getProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/GetProfile") + .setRequestMarshaller(ProtoUtils.marshaller(GetProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Profile.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/UpdateProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Profile.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/DeleteProfile") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + searchProfilesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/SearchProfiles") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchProfilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchProfilesResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable listProfilesCallable; + private final UnaryCallable + listProfilesPagedCallable; + private final UnaryCallable createProfileCallable; + private final UnaryCallable getProfileCallable; + private final UnaryCallable updateProfileCallable; + private final UnaryCallable deleteProfileCallable; + private final UnaryCallable searchProfilesCallable; + private final UnaryCallable + searchProfilesPagedCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcProfileServiceStub create(ProfileServiceStubSettings settings) + throws IOException { + return new GrpcProfileServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcProfileServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcProfileServiceStub( + ProfileServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcProfileServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcProfileServiceStub( + ProfileServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcProfileServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcProfileServiceStub(ProfileServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcProfileServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcProfileServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcProfileServiceStub( + ProfileServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings listProfilesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listProfilesMethodDescriptor) + .build(); + GrpcCallSettings createProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createProfileMethodDescriptor) + .build(); + GrpcCallSettings getProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getProfileMethodDescriptor) + .build(); + GrpcCallSettings updateProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateProfileMethodDescriptor) + .build(); + GrpcCallSettings deleteProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteProfileMethodDescriptor) + .build(); + GrpcCallSettings + searchProfilesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchProfilesMethodDescriptor) + .build(); + + this.listProfilesCallable = + callableFactory.createUnaryCallable( + listProfilesTransportSettings, settings.listProfilesSettings(), clientContext); + this.listProfilesPagedCallable = + callableFactory.createPagedCallable( + listProfilesTransportSettings, settings.listProfilesSettings(), clientContext); + this.createProfileCallable = + callableFactory.createUnaryCallable( + createProfileTransportSettings, settings.createProfileSettings(), clientContext); + this.getProfileCallable = + callableFactory.createUnaryCallable( + getProfileTransportSettings, settings.getProfileSettings(), clientContext); + this.updateProfileCallable = + callableFactory.createUnaryCallable( + updateProfileTransportSettings, settings.updateProfileSettings(), clientContext); + this.deleteProfileCallable = + callableFactory.createUnaryCallable( + deleteProfileTransportSettings, settings.deleteProfileSettings(), clientContext); + this.searchProfilesCallable = + callableFactory.createUnaryCallable( + searchProfilesTransportSettings, settings.searchProfilesSettings(), clientContext); + this.searchProfilesPagedCallable = + callableFactory.createPagedCallable( + searchProfilesTransportSettings, settings.searchProfilesSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable listProfilesPagedCallable() { + return listProfilesPagedCallable; + } + + public UnaryCallable listProfilesCallable() { + return listProfilesCallable; + } + + public UnaryCallable createProfileCallable() { + return createProfileCallable; + } + + public UnaryCallable getProfileCallable() { + return getProfileCallable; + } + + public UnaryCallable updateProfileCallable() { + return updateProfileCallable; + } + + public UnaryCallable deleteProfileCallable() { + return deleteProfileCallable; + } + + public UnaryCallable + searchProfilesPagedCallable() { + return searchProfilesPagedCallable; + } + + public UnaryCallable searchProfilesCallable() { + return searchProfilesCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceCallableFactory.java new file mode 100644 index 000000000000..08a5762fb816 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcResumeServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java new file mode 100644 index 000000000000..ea78e65349f1 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java @@ -0,0 +1,141 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.UnaryCallable; +import com.google.cloud.talent.v4beta1.ParseResumeRequest; +import com.google.cloud.talent.v4beta1.ParseResumeResponse; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcResumeServiceStub extends ResumeServiceStub { + + private static final MethodDescriptor + parseResumeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ResumeService/ParseResume") + .setRequestMarshaller(ProtoUtils.marshaller(ParseResumeRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ParseResumeResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable parseResumeCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcResumeServiceStub create(ResumeServiceStubSettings settings) + throws IOException { + return new GrpcResumeServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcResumeServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcResumeServiceStub(ResumeServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcResumeServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcResumeServiceStub( + ResumeServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcResumeServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcResumeServiceStub(ResumeServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcResumeServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcResumeServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcResumeServiceStub( + ResumeServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings parseResumeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(parseResumeMethodDescriptor) + .build(); + + this.parseResumeCallable = + callableFactory.createUnaryCallable( + parseResumeTransportSettings, settings.parseResumeSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable parseResumeCallable() { + return parseResumeCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceCallableFactory.java new file mode 100644 index 000000000000..da22c0c5e10b --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcTenantServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceStub.java new file mode 100644 index 000000000000..c561c9c499d1 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceStub.java @@ -0,0 +1,234 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +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.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateTenantRequest; +import com.google.cloud.talent.v4beta1.DeleteTenantRequest; +import com.google.cloud.talent.v4beta1.GetTenantRequest; +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ListTenantsResponse; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.UpdateTenantRequest; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcTenantServiceStub extends TenantServiceStub { + + private static final MethodDescriptor createTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/CreateTenant") + .setRequestMarshaller(ProtoUtils.marshaller(CreateTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tenant.getDefaultInstance())) + .build(); + private static final MethodDescriptor getTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/GetTenant") + .setRequestMarshaller(ProtoUtils.marshaller(GetTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tenant.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/UpdateTenant") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tenant.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/DeleteTenant") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listTenantsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/ListTenants") + .setRequestMarshaller(ProtoUtils.marshaller(ListTenantsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTenantsResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createTenantCallable; + private final UnaryCallable getTenantCallable; + private final UnaryCallable updateTenantCallable; + private final UnaryCallable deleteTenantCallable; + private final UnaryCallable listTenantsCallable; + private final UnaryCallable + listTenantsPagedCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTenantServiceStub create(TenantServiceStubSettings settings) + throws IOException { + return new GrpcTenantServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTenantServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcTenantServiceStub(TenantServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTenantServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTenantServiceStub( + TenantServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTenantServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcTenantServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcTenantServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcTenantServiceStub( + TenantServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTenantMethodDescriptor) + .build(); + GrpcCallSettings getTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTenantMethodDescriptor) + .build(); + GrpcCallSettings updateTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateTenantMethodDescriptor) + .build(); + GrpcCallSettings deleteTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTenantMethodDescriptor) + .build(); + GrpcCallSettings listTenantsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listTenantsMethodDescriptor) + .build(); + + this.createTenantCallable = + callableFactory.createUnaryCallable( + createTenantTransportSettings, settings.createTenantSettings(), clientContext); + this.getTenantCallable = + callableFactory.createUnaryCallable( + getTenantTransportSettings, settings.getTenantSettings(), clientContext); + this.updateTenantCallable = + callableFactory.createUnaryCallable( + updateTenantTransportSettings, settings.updateTenantSettings(), clientContext); + this.deleteTenantCallable = + callableFactory.createUnaryCallable( + deleteTenantTransportSettings, settings.deleteTenantSettings(), clientContext); + this.listTenantsCallable = + callableFactory.createUnaryCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + this.listTenantsPagedCallable = + callableFactory.createPagedCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createTenantCallable() { + return createTenantCallable; + } + + public UnaryCallable getTenantCallable() { + return getTenantCallable; + } + + public UnaryCallable updateTenantCallable() { + return updateTenantCallable; + } + + public UnaryCallable deleteTenantCallable() { + return deleteTenantCallable; + } + + public UnaryCallable listTenantsPagedCallable() { + return listTenantsPagedCallable; + } + + public UnaryCallable listTenantsCallable() { + return listTenantsCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java new file mode 100644 index 000000000000..228a90dd5f40 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java @@ -0,0 +1,95 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsForAlertPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.DeleteJobRequest; +import com.google.cloud.talent.v4beta1.GetJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.ListJobsResponse; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.UpdateJobRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class JobServiceStub implements BackgroundResource { + + public UnaryCallable createJobCallable() { + throw new UnsupportedOperationException("Not implemented: createJobCallable()"); + } + + public UnaryCallable getJobCallable() { + throw new UnsupportedOperationException("Not implemented: getJobCallable()"); + } + + public UnaryCallable updateJobCallable() { + throw new UnsupportedOperationException("Not implemented: updateJobCallable()"); + } + + public UnaryCallable deleteJobCallable() { + throw new UnsupportedOperationException("Not implemented: deleteJobCallable()"); + } + + public UnaryCallable listJobsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listJobsPagedCallable()"); + } + + public UnaryCallable listJobsCallable() { + throw new UnsupportedOperationException("Not implemented: listJobsCallable()"); + } + + public UnaryCallable batchDeleteJobsCallable() { + throw new UnsupportedOperationException("Not implemented: batchDeleteJobsCallable()"); + } + + public UnaryCallable searchJobsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchJobsPagedCallable()"); + } + + public UnaryCallable searchJobsCallable() { + throw new UnsupportedOperationException("Not implemented: searchJobsCallable()"); + } + + public UnaryCallable + searchJobsForAlertPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchJobsForAlertPagedCallable()"); + } + + public UnaryCallable searchJobsForAlertCallable() { + throw new UnsupportedOperationException("Not implemented: searchJobsForAlertCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java new file mode 100644 index 000000000000..481aee53a75f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java @@ -0,0 +1,635 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsForAlertPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.DeleteJobRequest; +import com.google.cloud.talent.v4beta1.GetJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.ListJobsResponse; +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.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link JobServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createJob to 30 seconds: + * + *

+ * 
+ * JobServiceStubSettings.Builder jobServiceSettingsBuilder =
+ *     JobServiceStubSettings.newBuilder();
+ * jobServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * JobServiceStubSettings jobServiceSettings = jobServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class JobServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings createJobSettings; + private final UnaryCallSettings getJobSettings; + private final UnaryCallSettings updateJobSettings; + private final UnaryCallSettings deleteJobSettings; + private final PagedCallSettings + listJobsSettings; + private final UnaryCallSettings batchDeleteJobsSettings; + private final PagedCallSettings + searchJobsSettings; + private final PagedCallSettings< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse> + searchJobsForAlertSettings; + + /** Returns the object with the settings used for calls to createJob. */ + public UnaryCallSettings createJobSettings() { + return createJobSettings; + } + + /** Returns the object with the settings used for calls to getJob. */ + public UnaryCallSettings getJobSettings() { + return getJobSettings; + } + + /** Returns the object with the settings used for calls to updateJob. */ + public UnaryCallSettings updateJobSettings() { + return updateJobSettings; + } + + /** Returns the object with the settings used for calls to deleteJob. */ + public UnaryCallSettings deleteJobSettings() { + return deleteJobSettings; + } + + /** Returns the object with the settings used for calls to listJobs. */ + public PagedCallSettings + listJobsSettings() { + return listJobsSettings; + } + + /** Returns the object with the settings used for calls to batchDeleteJobs. */ + public UnaryCallSettings batchDeleteJobsSettings() { + return batchDeleteJobsSettings; + } + + /** Returns the object with the settings used for calls to searchJobs. */ + public PagedCallSettings + searchJobsSettings() { + return searchJobsSettings; + } + + /** Returns the object with the settings used for calls to searchJobsForAlert. */ + public PagedCallSettings + searchJobsForAlertSettings() { + return searchJobsForAlertSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public JobServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcJobServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(JobServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected JobServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createJobSettings = settingsBuilder.createJobSettings().build(); + getJobSettings = settingsBuilder.getJobSettings().build(); + updateJobSettings = settingsBuilder.updateJobSettings().build(); + deleteJobSettings = settingsBuilder.deleteJobSettings().build(); + listJobsSettings = settingsBuilder.listJobsSettings().build(); + batchDeleteJobsSettings = settingsBuilder.batchDeleteJobsSettings().build(); + searchJobsSettings = settingsBuilder.searchJobsSettings().build(); + searchJobsForAlertSettings = settingsBuilder.searchJobsForAlertSettings().build(); + } + + private static final PagedListDescriptor + LIST_JOBS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListJobsRequest injectToken(ListJobsRequest payload, String token) { + return ListJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListJobsRequest injectPageSize(ListJobsRequest payload, int pageSize) { + return ListJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListJobsResponse payload) { + return payload.getJobsList() != null + ? payload.getJobsList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob> + SEARCH_JOBS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchJobsRequest injectToken(SearchJobsRequest payload, String token) { + return SearchJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchJobsRequest injectPageSize(SearchJobsRequest payload, int pageSize) { + return SearchJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchJobsResponse payload) { + return payload.getMatchingJobsList() != null + ? payload.getMatchingJobsList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob> + SEARCH_JOBS_FOR_ALERT_PAGE_STR_DESC = + new PagedListDescriptor< + SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchJobsRequest injectToken(SearchJobsRequest payload, String token) { + return SearchJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchJobsRequest injectPageSize(SearchJobsRequest payload, int pageSize) { + return SearchJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchJobsResponse payload) { + return payload.getMatchingJobsList() != null + ? payload.getMatchingJobsList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> + LIST_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_JOBS_PAGE_STR_DESC, request, context); + return ListJobsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchJobsRequest, SearchJobsResponse, SearchJobsPagedResponse> + SEARCH_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchJobsRequest, SearchJobsResponse, SearchJobsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create(callable, SEARCH_JOBS_PAGE_STR_DESC, request, context); + return SearchJobsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse> + SEARCH_JOBS_FOR_ALERT_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, SEARCH_JOBS_FOR_ALERT_PAGE_STR_DESC, request, context); + return SearchJobsForAlertPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for JobServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createJobSettings; + private final UnaryCallSettings.Builder getJobSettings; + private final UnaryCallSettings.Builder updateJobSettings; + private final UnaryCallSettings.Builder deleteJobSettings; + private final PagedCallSettings.Builder< + ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> + listJobsSettings; + private final UnaryCallSettings.Builder batchDeleteJobsSettings; + private final PagedCallSettings.Builder< + SearchJobsRequest, SearchJobsResponse, SearchJobsPagedResponse> + searchJobsSettings; + private final PagedCallSettings.Builder< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse> + searchJobsForAlertSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listJobsSettings = PagedCallSettings.newBuilder(LIST_JOBS_PAGE_STR_FACT); + + batchDeleteJobsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + searchJobsSettings = PagedCallSettings.newBuilder(SEARCH_JOBS_PAGE_STR_FACT); + + searchJobsForAlertSettings = + PagedCallSettings.newBuilder(SEARCH_JOBS_FOR_ALERT_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createJobSettings, + getJobSettings, + updateJobSettings, + deleteJobSettings, + listJobsSettings, + batchDeleteJobsSettings, + searchJobsSettings, + searchJobsForAlertSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .batchDeleteJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .searchJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .searchJobsForAlertSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(JobServiceStubSettings settings) { + super(settings); + + createJobSettings = settings.createJobSettings.toBuilder(); + getJobSettings = settings.getJobSettings.toBuilder(); + updateJobSettings = settings.updateJobSettings.toBuilder(); + deleteJobSettings = settings.deleteJobSettings.toBuilder(); + listJobsSettings = settings.listJobsSettings.toBuilder(); + batchDeleteJobsSettings = settings.batchDeleteJobsSettings.toBuilder(); + searchJobsSettings = settings.searchJobsSettings.toBuilder(); + searchJobsForAlertSettings = settings.searchJobsForAlertSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createJobSettings, + getJobSettings, + updateJobSettings, + deleteJobSettings, + listJobsSettings, + batchDeleteJobsSettings, + searchJobsSettings, + searchJobsForAlertSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createJob. */ + public UnaryCallSettings.Builder createJobSettings() { + return createJobSettings; + } + + /** Returns the builder for the settings used for calls to getJob. */ + public UnaryCallSettings.Builder getJobSettings() { + return getJobSettings; + } + + /** Returns the builder for the settings used for calls to updateJob. */ + public UnaryCallSettings.Builder updateJobSettings() { + return updateJobSettings; + } + + /** Returns the builder for the settings used for calls to deleteJob. */ + public UnaryCallSettings.Builder deleteJobSettings() { + return deleteJobSettings; + } + + /** Returns the builder for the settings used for calls to listJobs. */ + public PagedCallSettings.Builder + listJobsSettings() { + return listJobsSettings; + } + + /** Returns the builder for the settings used for calls to batchDeleteJobs. */ + public UnaryCallSettings.Builder batchDeleteJobsSettings() { + return batchDeleteJobsSettings; + } + + /** Returns the builder for the settings used for calls to searchJobs. */ + public PagedCallSettings.Builder + searchJobsSettings() { + return searchJobsSettings; + } + + /** Returns the builder for the settings used for calls to searchJobsForAlert. */ + public PagedCallSettings.Builder< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse> + searchJobsForAlertSettings() { + return searchJobsForAlertSettings; + } + + @Override + public JobServiceStubSettings build() throws IOException { + return new JobServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java new file mode 100644 index 000000000000..7e8850e5ea71 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java @@ -0,0 +1,81 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateProfileRequest; +import com.google.cloud.talent.v4beta1.DeleteProfileRequest; +import com.google.cloud.talent.v4beta1.GetProfileRequest; +import com.google.cloud.talent.v4beta1.ListProfilesRequest; +import com.google.cloud.talent.v4beta1.ListProfilesResponse; +import com.google.cloud.talent.v4beta1.Profile; +import com.google.cloud.talent.v4beta1.SearchProfilesRequest; +import com.google.cloud.talent.v4beta1.SearchProfilesResponse; +import com.google.cloud.talent.v4beta1.UpdateProfileRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class ProfileServiceStub implements BackgroundResource { + + public UnaryCallable listProfilesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listProfilesPagedCallable()"); + } + + public UnaryCallable listProfilesCallable() { + throw new UnsupportedOperationException("Not implemented: listProfilesCallable()"); + } + + public UnaryCallable createProfileCallable() { + throw new UnsupportedOperationException("Not implemented: createProfileCallable()"); + } + + public UnaryCallable getProfileCallable() { + throw new UnsupportedOperationException("Not implemented: getProfileCallable()"); + } + + public UnaryCallable updateProfileCallable() { + throw new UnsupportedOperationException("Not implemented: updateProfileCallable()"); + } + + public UnaryCallable deleteProfileCallable() { + throw new UnsupportedOperationException("Not implemented: deleteProfileCallable()"); + } + + public UnaryCallable + searchProfilesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchProfilesPagedCallable()"); + } + + public UnaryCallable searchProfilesCallable() { + throw new UnsupportedOperationException("Not implemented: searchProfilesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java new file mode 100644 index 000000000000..5028c0b85fd1 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java @@ -0,0 +1,528 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateProfileRequest; +import com.google.cloud.talent.v4beta1.DeleteProfileRequest; +import com.google.cloud.talent.v4beta1.GetProfileRequest; +import com.google.cloud.talent.v4beta1.HistogramQueryResult; +import com.google.cloud.talent.v4beta1.ListProfilesRequest; +import com.google.cloud.talent.v4beta1.ListProfilesResponse; +import com.google.cloud.talent.v4beta1.Profile; +import com.google.cloud.talent.v4beta1.SearchProfilesRequest; +import com.google.cloud.talent.v4beta1.SearchProfilesResponse; +import com.google.cloud.talent.v4beta1.UpdateProfileRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link ProfileServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createProfile to 30 seconds: + * + *

+ * 
+ * ProfileServiceStubSettings.Builder profileServiceSettingsBuilder =
+ *     ProfileServiceStubSettings.newBuilder();
+ * profileServiceSettingsBuilder.createProfileSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * ProfileServiceStubSettings profileServiceSettings = profileServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ProfileServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final PagedCallSettings< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> + listProfilesSettings; + private final UnaryCallSettings createProfileSettings; + private final UnaryCallSettings getProfileSettings; + private final UnaryCallSettings updateProfileSettings; + private final UnaryCallSettings deleteProfileSettings; + private final PagedCallSettings< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings; + + /** Returns the object with the settings used for calls to listProfiles. */ + public PagedCallSettings + listProfilesSettings() { + return listProfilesSettings; + } + + /** Returns the object with the settings used for calls to createProfile. */ + public UnaryCallSettings createProfileSettings() { + return createProfileSettings; + } + + /** Returns the object with the settings used for calls to getProfile. */ + public UnaryCallSettings getProfileSettings() { + return getProfileSettings; + } + + /** Returns the object with the settings used for calls to updateProfile. */ + public UnaryCallSettings updateProfileSettings() { + return updateProfileSettings; + } + + /** Returns the object with the settings used for calls to deleteProfile. */ + public UnaryCallSettings deleteProfileSettings() { + return deleteProfileSettings; + } + + /** Returns the object with the settings used for calls to searchProfiles. */ + public PagedCallSettings< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings() { + return searchProfilesSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ProfileServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcProfileServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ProfileServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ProfileServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listProfilesSettings = settingsBuilder.listProfilesSettings().build(); + createProfileSettings = settingsBuilder.createProfileSettings().build(); + getProfileSettings = settingsBuilder.getProfileSettings().build(); + updateProfileSettings = settingsBuilder.updateProfileSettings().build(); + deleteProfileSettings = settingsBuilder.deleteProfileSettings().build(); + searchProfilesSettings = settingsBuilder.searchProfilesSettings().build(); + } + + private static final PagedListDescriptor + LIST_PROFILES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListProfilesRequest injectToken(ListProfilesRequest payload, String token) { + return ListProfilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListProfilesRequest injectPageSize(ListProfilesRequest payload, int pageSize) { + return ListProfilesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListProfilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListProfilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListProfilesResponse payload) { + return payload.getProfilesList() != null + ? payload.getProfilesList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + SearchProfilesRequest, SearchProfilesResponse, HistogramQueryResult> + SEARCH_PROFILES_PAGE_STR_DESC = + new PagedListDescriptor< + SearchProfilesRequest, SearchProfilesResponse, HistogramQueryResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchProfilesRequest injectToken(SearchProfilesRequest payload, String token) { + return SearchProfilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchProfilesRequest injectPageSize( + SearchProfilesRequest payload, int pageSize) { + return SearchProfilesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchProfilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchProfilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchProfilesResponse payload) { + return payload.getHistogramQueryResultsList() != null + ? payload.getHistogramQueryResultsList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> + LIST_PROFILES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_PROFILES_PAGE_STR_DESC, request, context); + return ListProfilesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + SEARCH_PROFILES_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create(callable, SEARCH_PROFILES_PAGE_STR_DESC, request, context); + return SearchProfilesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for ProfileServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final PagedCallSettings.Builder< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> + listProfilesSettings; + private final UnaryCallSettings.Builder createProfileSettings; + private final UnaryCallSettings.Builder getProfileSettings; + private final UnaryCallSettings.Builder updateProfileSettings; + private final UnaryCallSettings.Builder deleteProfileSettings; + private final PagedCallSettings.Builder< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listProfilesSettings = PagedCallSettings.newBuilder(LIST_PROFILES_PAGE_STR_FACT); + + createProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + searchProfilesSettings = PagedCallSettings.newBuilder(SEARCH_PROFILES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listProfilesSettings, + createProfileSettings, + getProfileSettings, + updateProfileSettings, + deleteProfileSettings, + searchProfilesSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .listProfilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .createProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .searchProfilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(ProfileServiceStubSettings settings) { + super(settings); + + listProfilesSettings = settings.listProfilesSettings.toBuilder(); + createProfileSettings = settings.createProfileSettings.toBuilder(); + getProfileSettings = settings.getProfileSettings.toBuilder(); + updateProfileSettings = settings.updateProfileSettings.toBuilder(); + deleteProfileSettings = settings.deleteProfileSettings.toBuilder(); + searchProfilesSettings = settings.searchProfilesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listProfilesSettings, + createProfileSettings, + getProfileSettings, + updateProfileSettings, + deleteProfileSettings, + searchProfilesSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listProfiles. */ + public PagedCallSettings.Builder< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> + listProfilesSettings() { + return listProfilesSettings; + } + + /** Returns the builder for the settings used for calls to createProfile. */ + public UnaryCallSettings.Builder createProfileSettings() { + return createProfileSettings; + } + + /** Returns the builder for the settings used for calls to getProfile. */ + public UnaryCallSettings.Builder getProfileSettings() { + return getProfileSettings; + } + + /** Returns the builder for the settings used for calls to updateProfile. */ + public UnaryCallSettings.Builder updateProfileSettings() { + return updateProfileSettings; + } + + /** Returns the builder for the settings used for calls to deleteProfile. */ + public UnaryCallSettings.Builder deleteProfileSettings() { + return deleteProfileSettings; + } + + /** Returns the builder for the settings used for calls to searchProfiles. */ + public PagedCallSettings.Builder< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings() { + return searchProfilesSettings; + } + + @Override + public ProfileServiceStubSettings build() throws IOException { + return new ProfileServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java new file mode 100644 index 000000000000..260df6b18e77 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java @@ -0,0 +1,41 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.ParseResumeRequest; +import com.google.cloud.talent.v4beta1.ParseResumeResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class ResumeServiceStub implements BackgroundResource { + + public UnaryCallable parseResumeCallable() { + throw new UnsupportedOperationException("Not implemented: parseResumeCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java new file mode 100644 index 000000000000..fd37031959cf --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java @@ -0,0 +1,269 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.ParseResumeRequest; +import com.google.cloud.talent.v4beta1.ParseResumeResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link ResumeServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of parseResume to 30 seconds: + * + *

+ * 
+ * ResumeServiceStubSettings.Builder resumeServiceSettingsBuilder =
+ *     ResumeServiceStubSettings.newBuilder();
+ * resumeServiceSettingsBuilder.parseResumeSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * ResumeServiceStubSettings resumeServiceSettings = resumeServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ResumeServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings parseResumeSettings; + + /** Returns the object with the settings used for calls to parseResume. */ + public UnaryCallSettings parseResumeSettings() { + return parseResumeSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ResumeServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcResumeServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ResumeServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ResumeServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + parseResumeSettings = settingsBuilder.parseResumeSettings().build(); + } + + /** Builder for ResumeServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder + parseResumeSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + parseResumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(parseResumeSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .parseResumeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(ResumeServiceStubSettings settings) { + super(settings); + + parseResumeSettings = settings.parseResumeSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(parseResumeSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to parseResume. */ + public UnaryCallSettings.Builder + parseResumeSettings() { + return parseResumeSettings; + } + + @Override + public ResumeServiceStubSettings build() throws IOException { + return new ResumeServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStub.java new file mode 100644 index 000000000000..80f642dcf220 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStub.java @@ -0,0 +1,69 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateTenantRequest; +import com.google.cloud.talent.v4beta1.DeleteTenantRequest; +import com.google.cloud.talent.v4beta1.GetTenantRequest; +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ListTenantsResponse; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.UpdateTenantRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class TenantServiceStub implements BackgroundResource { + + public UnaryCallable createTenantCallable() { + throw new UnsupportedOperationException("Not implemented: createTenantCallable()"); + } + + public UnaryCallable getTenantCallable() { + throw new UnsupportedOperationException("Not implemented: getTenantCallable()"); + } + + public UnaryCallable updateTenantCallable() { + throw new UnsupportedOperationException("Not implemented: updateTenantCallable()"); + } + + public UnaryCallable deleteTenantCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTenantCallable()"); + } + + public UnaryCallable listTenantsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTenantsPagedCallable()"); + } + + public UnaryCallable listTenantsCallable() { + throw new UnsupportedOperationException("Not implemented: listTenantsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java new file mode 100644 index 000000000000..e30e3dc00dd7 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java @@ -0,0 +1,435 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateTenantRequest; +import com.google.cloud.talent.v4beta1.DeleteTenantRequest; +import com.google.cloud.talent.v4beta1.GetTenantRequest; +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ListTenantsResponse; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.UpdateTenantRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link TenantServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createTenant to 30 seconds: + * + *

+ * 
+ * TenantServiceStubSettings.Builder tenantServiceSettingsBuilder =
+ *     TenantServiceStubSettings.newBuilder();
+ * tenantServiceSettingsBuilder.createTenantSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * TenantServiceStubSettings tenantServiceSettings = tenantServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class TenantServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings createTenantSettings; + private final UnaryCallSettings getTenantSettings; + private final UnaryCallSettings updateTenantSettings; + private final UnaryCallSettings deleteTenantSettings; + private final PagedCallSettings + listTenantsSettings; + + /** Returns the object with the settings used for calls to createTenant. */ + public UnaryCallSettings createTenantSettings() { + return createTenantSettings; + } + + /** Returns the object with the settings used for calls to getTenant. */ + public UnaryCallSettings getTenantSettings() { + return getTenantSettings; + } + + /** Returns the object with the settings used for calls to updateTenant. */ + public UnaryCallSettings updateTenantSettings() { + return updateTenantSettings; + } + + /** Returns the object with the settings used for calls to deleteTenant. */ + public UnaryCallSettings deleteTenantSettings() { + return deleteTenantSettings; + } + + /** Returns the object with the settings used for calls to listTenants. */ + public PagedCallSettings + listTenantsSettings() { + return listTenantsSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public TenantServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTenantServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TenantServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TenantServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createTenantSettings = settingsBuilder.createTenantSettings().build(); + getTenantSettings = settingsBuilder.getTenantSettings().build(); + updateTenantSettings = settingsBuilder.updateTenantSettings().build(); + deleteTenantSettings = settingsBuilder.deleteTenantSettings().build(); + listTenantsSettings = settingsBuilder.listTenantsSettings().build(); + } + + private static final PagedListDescriptor + LIST_TENANTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTenantsRequest injectToken(ListTenantsRequest payload, String token) { + return ListTenantsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTenantsRequest injectPageSize(ListTenantsRequest payload, int pageSize) { + return ListTenantsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTenantsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTenantsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTenantsResponse payload) { + return payload.getTenantsList() != null + ? payload.getTenantsList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + LIST_TENANTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTenantsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TENANTS_PAGE_STR_DESC, request, context); + return ListTenantsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for TenantServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createTenantSettings; + private final UnaryCallSettings.Builder getTenantSettings; + private final UnaryCallSettings.Builder updateTenantSettings; + private final UnaryCallSettings.Builder deleteTenantSettings; + private final PagedCallSettings.Builder< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + listTenantsSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listTenantsSettings = PagedCallSettings.newBuilder(LIST_TENANTS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createTenantSettings, + getTenantSettings, + updateTenantSettings, + deleteTenantSettings, + listTenantsSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listTenantsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(TenantServiceStubSettings settings) { + super(settings); + + createTenantSettings = settings.createTenantSettings.toBuilder(); + getTenantSettings = settings.getTenantSettings.toBuilder(); + updateTenantSettings = settings.updateTenantSettings.toBuilder(); + deleteTenantSettings = settings.deleteTenantSettings.toBuilder(); + listTenantsSettings = settings.listTenantsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createTenantSettings, + getTenantSettings, + updateTenantSettings, + deleteTenantSettings, + listTenantsSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createTenant. */ + public UnaryCallSettings.Builder createTenantSettings() { + return createTenantSettings; + } + + /** Returns the builder for the settings used for calls to getTenant. */ + public UnaryCallSettings.Builder getTenantSettings() { + return getTenantSettings; + } + + /** Returns the builder for the settings used for calls to updateTenant. */ + public UnaryCallSettings.Builder updateTenantSettings() { + return updateTenantSettings; + } + + /** Returns the builder for the settings used for calls to deleteTenant. */ + public UnaryCallSettings.Builder deleteTenantSettings() { + return deleteTenantSettings; + } + + /** Returns the builder for the settings used for calls to listTenants. */ + public PagedCallSettings.Builder< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + listTenantsSettings() { + return listTenantsSettings; + } + + @Override + public TenantServiceStubSettings build() throws IOException { + return new TenantServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java new file mode 100644 index 000000000000..0506cc723ac5 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java @@ -0,0 +1,367 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class CompanyServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private CompanyServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + CompanyServiceSettings settings = + CompanyServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompanyServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createCompanyTest() { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + String displayName = "displayName1615086568"; + String externalId = "externalId-1153075697"; + String headquartersAddress = "headquartersAddress-1879520036"; + boolean hiringAgency = false; + String eeoText = "eeoText-1652097123"; + String websiteUri = "websiteUri-2118185016"; + String careerSiteUri = "careerSiteUri1223331861"; + String imageUri = "imageUri-877823864"; + boolean suspended = false; + Company expectedResponse = + Company.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setExternalId(externalId) + .setHeadquartersAddress(headquartersAddress) + .setHiringAgency(hiringAgency) + .setEeoText(eeoText) + .setWebsiteUri(websiteUri) + .setCareerSiteUri(careerSiteUri) + .setImageUri(imageUri) + .setSuspended(suspended) + .build(); + mockCompanyService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Company company = Company.newBuilder().build(); + + Company actualResponse = client.createCompany(parent, company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCompanyRequest actualRequest = (CreateCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(company, actualRequest.getCompany()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Company company = Company.newBuilder().build(); + + client.createCompany(parent, company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getCompanyTest() { + CompanyName name2 = CompanyName.of("[PROJECT]", "[COMPANY]"); + String displayName = "displayName1615086568"; + String externalId = "externalId-1153075697"; + String headquartersAddress = "headquartersAddress-1879520036"; + boolean hiringAgency = false; + String eeoText = "eeoText-1652097123"; + String websiteUri = "websiteUri-2118185016"; + String careerSiteUri = "careerSiteUri1223331861"; + String imageUri = "imageUri-877823864"; + boolean suspended = false; + Company expectedResponse = + Company.newBuilder() + .setName(name2.toString()) + .setDisplayName(displayName) + .setExternalId(externalId) + .setHeadquartersAddress(headquartersAddress) + .setHiringAgency(hiringAgency) + .setEeoText(eeoText) + .setWebsiteUri(websiteUri) + .setCareerSiteUri(careerSiteUri) + .setImageUri(imageUri) + .setSuspended(suspended) + .build(); + mockCompanyService.addResponse(expectedResponse); + + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + Company actualResponse = client.getCompany(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCompanyRequest actualRequest = (GetCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(name, CompanyName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + client.getCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateCompanyTest() { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + String displayName = "displayName1615086568"; + String externalId = "externalId-1153075697"; + String headquartersAddress = "headquartersAddress-1879520036"; + boolean hiringAgency = false; + String eeoText = "eeoText-1652097123"; + String websiteUri = "websiteUri-2118185016"; + String careerSiteUri = "careerSiteUri1223331861"; + String imageUri = "imageUri-877823864"; + boolean suspended = false; + Company expectedResponse = + Company.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setExternalId(externalId) + .setHeadquartersAddress(headquartersAddress) + .setHiringAgency(hiringAgency) + .setEeoText(eeoText) + .setWebsiteUri(websiteUri) + .setCareerSiteUri(careerSiteUri) + .setImageUri(imageUri) + .setSuspended(suspended) + .build(); + mockCompanyService.addResponse(expectedResponse); + + Company company = Company.newBuilder().build(); + + Company actualResponse = client.updateCompany(company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCompanyRequest actualRequest = (UpdateCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(company, actualRequest.getCompany()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + Company company = Company.newBuilder().build(); + + client.updateCompany(company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteCompanyTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockCompanyService.addResponse(expectedResponse); + + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + client.deleteCompany(name); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCompanyRequest actualRequest = (DeleteCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(name, CompanyName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + client.deleteCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listCompaniesTest() { + String nextPageToken = ""; + Company companiesElement = Company.newBuilder().build(); + List companies = Arrays.asList(companiesElement); + ListCompaniesResponse expectedResponse = + ListCompaniesResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllCompanies(companies) + .build(); + mockCompanyService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListCompaniesPagedResponse pagedListResponse = client.listCompanies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompaniesList().get(0), resources.get(0)); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCompaniesRequest actualRequest = (ListCompaniesRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listCompaniesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + + client.listCompanies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java new file mode 100644 index 000000000000..41881e8e74f6 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java @@ -0,0 +1,86 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import java.io.IOException; +import java.util.Arrays; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; + +@javax.annotation.Generated("by GAPIC") +public class CompletionClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private CompletionClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + CompletionSettings settings = + CompletionSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompletionClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java new file mode 100644 index 000000000000..10e7f20c526a --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class EventServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private EventServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + EventServiceSettings settings = + EventServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EventServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createClientEventTest() { + String requestId = "requestId37109963"; + String eventId = "eventId278118624"; + ClientEvent expectedResponse = + ClientEvent.newBuilder().setRequestId(requestId).setEventId(eventId).build(); + mockEventService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + ClientEvent actualResponse = client.createClientEvent(parent, clientEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEventService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateClientEventRequest actualRequest = (CreateClientEventRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(clientEvent, actualRequest.getClientEvent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createClientEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockEventService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + client.createClientEvent(parent, clientEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java new file mode 100644 index 000000000000..485ad0618398 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java @@ -0,0 +1,419 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class JobServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private JobServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + JobServiceSettings settings = + JobServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = JobServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createJobTest() { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + String companyName = "companyName1429880077"; + String requisitionId = "requisitionId980224926"; + String title = "title110371416"; + String description = "description-1724546052"; + String department = "department848184146"; + String incentives = "incentives-1262874520"; + String languageCode = "languageCode-412800396"; + int promotionValue = 353413845; + String qualifications = "qualifications1903501412"; + String responsibilities = "responsibilities-926952660"; + String companyDisplayName = "companyDisplayName1982424170"; + Job expectedResponse = + Job.newBuilder() + .setName(name.toString()) + .setCompanyName(companyName) + .setRequisitionId(requisitionId) + .setTitle(title) + .setDescription(description) + .setDepartment(department) + .setIncentives(incentives) + .setLanguageCode(languageCode) + .setPromotionValue(promotionValue) + .setQualifications(qualifications) + .setResponsibilities(responsibilities) + .setCompanyDisplayName(companyDisplayName) + .build(); + mockJobService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Job job = Job.newBuilder().build(); + + Job actualResponse = client.createJob(parent, job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateJobRequest actualRequest = (CreateJobRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Job job = Job.newBuilder().build(); + + client.createJob(parent, job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getJobTest() { + JobName name2 = JobName.of("[PROJECT]", "[JOBS]"); + String companyName = "companyName1429880077"; + String requisitionId = "requisitionId980224926"; + String title = "title110371416"; + String description = "description-1724546052"; + String department = "department848184146"; + String incentives = "incentives-1262874520"; + String languageCode = "languageCode-412800396"; + int promotionValue = 353413845; + String qualifications = "qualifications1903501412"; + String responsibilities = "responsibilities-926952660"; + String companyDisplayName = "companyDisplayName1982424170"; + Job expectedResponse = + Job.newBuilder() + .setName(name2.toString()) + .setCompanyName(companyName) + .setRequisitionId(requisitionId) + .setTitle(title) + .setDescription(description) + .setDepartment(department) + .setIncentives(incentives) + .setLanguageCode(languageCode) + .setPromotionValue(promotionValue) + .setQualifications(qualifications) + .setResponsibilities(responsibilities) + .setCompanyDisplayName(companyDisplayName) + .build(); + mockJobService.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetJobRequest actualRequest = (GetJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateJobTest() { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + String companyName = "companyName1429880077"; + String requisitionId = "requisitionId980224926"; + String title = "title110371416"; + String description = "description-1724546052"; + String department = "department848184146"; + String incentives = "incentives-1262874520"; + String languageCode = "languageCode-412800396"; + int promotionValue = 353413845; + String qualifications = "qualifications1903501412"; + String responsibilities = "responsibilities-926952660"; + String companyDisplayName = "companyDisplayName1982424170"; + Job expectedResponse = + Job.newBuilder() + .setName(name.toString()) + .setCompanyName(companyName) + .setRequisitionId(requisitionId) + .setTitle(title) + .setDescription(description) + .setDepartment(department) + .setIncentives(incentives) + .setLanguageCode(languageCode) + .setPromotionValue(promotionValue) + .setQualifications(qualifications) + .setResponsibilities(responsibilities) + .setCompanyDisplayName(companyDisplayName) + .build(); + mockJobService.addResponse(expectedResponse); + + Job job = Job.newBuilder().build(); + + Job actualResponse = client.updateJob(job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateJobRequest actualRequest = (UpdateJobRequest) actualRequests.get(0); + + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + Job job = Job.newBuilder().build(); + + client.updateJob(job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteJobTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockJobService.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + client.deleteJob(name); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteJobRequest actualRequest = (DeleteJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + client.deleteJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listJobsTest() { + String nextPageToken = ""; + Job jobsElement = Job.newBuilder().build(); + List jobs = Arrays.asList(jobsElement); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build(); + mockJobService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListJobsRequest actualRequest = (ListJobsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + client.listJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void batchDeleteJobsTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockJobService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + client.batchDeleteJobs(parent, filter); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteJobsRequest actualRequest = (BatchDeleteJobsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void batchDeleteJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + client.batchDeleteJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyService.java new file mode 100644 index 000000000000..486157eb0444 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompanyService implements MockGrpcService { + private final MockCompanyServiceImpl serviceImpl; + + public MockCompanyService() { + serviceImpl = new MockCompanyServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyServiceImpl.java new file mode 100644 index 000000000000..2aa65fade100 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyServiceImpl.java @@ -0,0 +1,132 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.CompanyServiceGrpc.CompanyServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompanyServiceImpl extends CompanyServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockCompanyServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createCompany( + CreateCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Company) { + requests.add(request); + responseObserver.onNext((Company) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getCompany(GetCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Company) { + requests.add(request); + responseObserver.onNext((Company) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateCompany( + UpdateCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Company) { + requests.add(request); + responseObserver.onNext((Company) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteCompany(DeleteCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listCompanies( + ListCompaniesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListCompaniesResponse) { + requests.add(request); + responseObserver.onNext((ListCompaniesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletion.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletion.java new file mode 100644 index 000000000000..fb932934b36e --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletion.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompletion implements MockGrpcService { + private final MockCompletionImpl serviceImpl; + + public MockCompletion() { + serviceImpl = new MockCompletionImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletionImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletionImpl.java new file mode 100644 index 000000000000..dd9ce13c6689 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletionImpl.java @@ -0,0 +1,73 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.CompletionGrpc.CompletionImplBase; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompletionImpl extends CompletionImplBase { + private ArrayList requests; + private Queue responses; + + public MockCompletionImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void completeQuery( + CompleteQueryRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof CompleteQueryResponse) { + requests.add(request); + responseObserver.onNext((CompleteQueryResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventService.java new file mode 100644 index 000000000000..d3ff2ae24c03 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockEventService implements MockGrpcService { + private final MockEventServiceImpl serviceImpl; + + public MockEventService() { + serviceImpl = new MockEventServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventServiceImpl.java new file mode 100644 index 000000000000..33edc4e1bbb0 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventServiceImpl.java @@ -0,0 +1,73 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.EventServiceGrpc.EventServiceImplBase; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockEventServiceImpl extends EventServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockEventServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createClientEvent( + CreateClientEventRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ClientEvent) { + requests.add(request); + responseObserver.onNext((ClientEvent) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobService.java new file mode 100644 index 000000000000..b2627ec50436 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockJobService implements MockGrpcService { + private final MockJobServiceImpl serviceImpl; + + public MockJobService() { + serviceImpl = new MockJobServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobServiceImpl.java new file mode 100644 index 000000000000..8bde932a8deb --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobServiceImpl.java @@ -0,0 +1,174 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.JobServiceGrpc.JobServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockJobServiceImpl extends JobServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockJobServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createJob(CreateJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getJob(GetJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateJob(UpdateJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteJob(DeleteJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listJobs(ListJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListJobsResponse) { + requests.add(request); + responseObserver.onNext((ListJobsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void batchDeleteJobs( + BatchDeleteJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void searchJobs( + SearchJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SearchJobsResponse) { + requests.add(request); + responseObserver.onNext((SearchJobsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void searchJobsForAlert( + SearchJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SearchJobsResponse) { + requests.add(request); + responseObserver.onNext((SearchJobsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java new file mode 100644 index 000000000000..ac7562ebe9b4 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockProfileService implements MockGrpcService { + private final MockProfileServiceImpl serviceImpl; + + public MockProfileService() { + serviceImpl = new MockProfileServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java new file mode 100644 index 000000000000..9f29331ef48e --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java @@ -0,0 +1,147 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.ProfileServiceGrpc.ProfileServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockProfileServiceImpl extends ProfileServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockProfileServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listProfiles( + ListProfilesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListProfilesResponse) { + requests.add(request); + responseObserver.onNext((ListProfilesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createProfile( + CreateProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Profile) { + requests.add(request); + responseObserver.onNext((Profile) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getProfile(GetProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Profile) { + requests.add(request); + responseObserver.onNext((Profile) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateProfile( + UpdateProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Profile) { + requests.add(request); + responseObserver.onNext((Profile) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteProfile(DeleteProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void searchProfiles( + SearchProfilesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SearchProfilesResponse) { + requests.add(request); + responseObserver.onNext((SearchProfilesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java new file mode 100644 index 000000000000..98b0befccbe7 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockResumeService implements MockGrpcService { + private final MockResumeServiceImpl serviceImpl; + + public MockResumeService() { + serviceImpl = new MockResumeServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java new file mode 100644 index 000000000000..a4e5c340b825 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java @@ -0,0 +1,73 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.ResumeServiceGrpc.ResumeServiceImplBase; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockResumeServiceImpl extends ResumeServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockResumeServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void parseResume( + ParseResumeRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ParseResumeResponse) { + requests.add(request); + responseObserver.onNext((ParseResumeResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantService.java new file mode 100644 index 000000000000..cd1ee604db7f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockTenantService implements MockGrpcService { + private final MockTenantServiceImpl serviceImpl; + + public MockTenantService() { + serviceImpl = new MockTenantServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantServiceImpl.java new file mode 100644 index 000000000000..90afb0cad258 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantServiceImpl.java @@ -0,0 +1,130 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.TenantServiceGrpc.TenantServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockTenantServiceImpl extends TenantServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockTenantServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createTenant(CreateTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext((Tenant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getTenant(GetTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext((Tenant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateTenant(UpdateTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext((Tenant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteTenant(DeleteTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listTenants( + ListTenantsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListTenantsResponse) { + requests.add(request); + responseObserver.onNext((ListTenantsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java new file mode 100644 index 000000000000..a57b9f9d8e43 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java @@ -0,0 +1,355 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class ProfileServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private ProfileServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + ProfileServiceSettings settings = + ProfileServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ProfileServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void listProfilesTest() { + String nextPageToken = ""; + Profile profilesElement = Profile.newBuilder().build(); + List profiles = Arrays.asList(profilesElement); + ListProfilesResponse expectedResponse = + ListProfilesResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllProfiles(profiles) + .build(); + mockProfileService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + + ListProfilesPagedResponse pagedListResponse = client.listProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProfilesList().get(0), resources.get(0)); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListProfilesRequest actualRequest = (ListProfilesRequest) actualRequests.get(0); + + Assert.assertEquals(parent, TenantName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listProfilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + + client.listProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createProfileTest() { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + String externalId = "externalId-1153075697"; + String source = "source-896505829"; + String uri = "uri116076"; + String groupId = "groupId506361563"; + String resumeHrxml = "resumeHrxml1834730555"; + boolean processed = true; + String keywordSnippet = "keywordSnippet1325317319"; + Profile expectedResponse = + Profile.newBuilder() + .setName(name.toString()) + .setExternalId(externalId) + .setSource(source) + .setUri(uri) + .setGroupId(groupId) + .setResumeHrxml(resumeHrxml) + .setProcessed(processed) + .setKeywordSnippet(keywordSnippet) + .build(); + mockProfileService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Profile profile = Profile.newBuilder().build(); + + Profile actualResponse = client.createProfile(parent, profile); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateProfileRequest actualRequest = (CreateProfileRequest) actualRequests.get(0); + + Assert.assertEquals(parent, TenantName.parse(actualRequest.getParent())); + Assert.assertEquals(profile, actualRequest.getProfile()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Profile profile = Profile.newBuilder().build(); + + client.createProfile(parent, profile); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getProfileTest() { + ProfileName name2 = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + String externalId = "externalId-1153075697"; + String source = "source-896505829"; + String uri = "uri116076"; + String groupId = "groupId506361563"; + String resumeHrxml = "resumeHrxml1834730555"; + boolean processed = true; + String keywordSnippet = "keywordSnippet1325317319"; + Profile expectedResponse = + Profile.newBuilder() + .setName(name2.toString()) + .setExternalId(externalId) + .setSource(source) + .setUri(uri) + .setGroupId(groupId) + .setResumeHrxml(resumeHrxml) + .setProcessed(processed) + .setKeywordSnippet(keywordSnippet) + .build(); + mockProfileService.addResponse(expectedResponse); + + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + Profile actualResponse = client.getProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProfileRequest actualRequest = (GetProfileRequest) actualRequests.get(0); + + Assert.assertEquals(name, ProfileName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + client.getProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateProfileTest() { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + String externalId = "externalId-1153075697"; + String source = "source-896505829"; + String uri = "uri116076"; + String groupId = "groupId506361563"; + String resumeHrxml = "resumeHrxml1834730555"; + boolean processed = true; + String keywordSnippet = "keywordSnippet1325317319"; + Profile expectedResponse = + Profile.newBuilder() + .setName(name.toString()) + .setExternalId(externalId) + .setSource(source) + .setUri(uri) + .setGroupId(groupId) + .setResumeHrxml(resumeHrxml) + .setProcessed(processed) + .setKeywordSnippet(keywordSnippet) + .build(); + mockProfileService.addResponse(expectedResponse); + + Profile profile = Profile.newBuilder().build(); + + Profile actualResponse = client.updateProfile(profile); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateProfileRequest actualRequest = (UpdateProfileRequest) actualRequests.get(0); + + Assert.assertEquals(profile, actualRequest.getProfile()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + Profile profile = Profile.newBuilder().build(); + + client.updateProfile(profile); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteProfileTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockProfileService.addResponse(expectedResponse); + + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + client.deleteProfile(name); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteProfileRequest actualRequest = (DeleteProfileRequest) actualRequests.get(0); + + Assert.assertEquals(name, ProfileName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + client.deleteProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java new file mode 100644 index 000000000000..4cfe84007cf1 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.ByteString; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class ResumeServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private ResumeServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + ResumeServiceSettings settings = + ResumeServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ResumeServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void parseResumeTest() { + String rawText = "rawText503586532"; + ParseResumeResponse expectedResponse = + ParseResumeResponse.newBuilder().setRawText(rawText).build(); + mockResumeService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + ByteString resume = ByteString.copyFromUtf8("45"); + + ParseResumeResponse actualResponse = client.parseResume(parent, resume); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockResumeService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ParseResumeRequest actualRequest = (ParseResumeRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(resume, actualRequest.getResume()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void parseResumeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockResumeService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + ByteString resume = ByteString.copyFromUtf8("45"); + + client.parseResume(parent, resume); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java new file mode 100644 index 000000000000..e364a4be2411 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java @@ -0,0 +1,310 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class TenantServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private TenantServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + TenantServiceSettings settings = + TenantServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TenantServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createTenantTest() { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + String externalId = "externalId-1153075697"; + Tenant expectedResponse = + Tenant.newBuilder().setName(name.toString()).setExternalId(externalId).build(); + mockTenantService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + + Tenant actualResponse = client.createTenant(parent, tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTenantRequest actualRequest = (CreateTenantRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(tenant, actualRequest.getTenant()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + + client.createTenant(parent, tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getTenantTest() { + TenantName name2 = TenantName.of("[PROJECT]", "[TENANT]"); + String externalId = "externalId-1153075697"; + Tenant expectedResponse = + Tenant.newBuilder().setName(name2.toString()).setExternalId(externalId).build(); + mockTenantService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTenantRequest actualRequest = (GetTenantRequest) actualRequests.get(0); + + Assert.assertEquals(name, TenantName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateTenantTest() { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + String externalId = "externalId-1153075697"; + Tenant expectedResponse = + Tenant.newBuilder().setName(name.toString()).setExternalId(externalId).build(); + mockTenantService.addResponse(expectedResponse); + + Tenant tenant = Tenant.newBuilder().build(); + + Tenant actualResponse = client.updateTenant(tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTenantRequest actualRequest = (UpdateTenantRequest) actualRequests.get(0); + + Assert.assertEquals(tenant, actualRequest.getTenant()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + Tenant tenant = Tenant.newBuilder().build(); + + client.updateTenant(tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteTenantTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockTenantService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.deleteTenant(name); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTenantRequest actualRequest = (DeleteTenantRequest) actualRequests.get(0); + + Assert.assertEquals(name, TenantName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listTenantsTest() { + String nextPageToken = ""; + Tenant tenantsElement = Tenant.newBuilder().build(); + List tenants = Arrays.asList(tenantsElement); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllTenants(tenants) + .build(); + mockTenantService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTenantsRequest actualRequest = (ListTenantsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listTenantsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/synth.py b/google-cloud-clients/google-cloud-talent/synth.py new file mode 100644 index 000000000000..4e7f3014f927 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/synth.py @@ -0,0 +1,40 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""This script is used to synthesize generated parts of this library.""" + +import synthtool as s +import synthtool.gcp as gcp +import synthtool.languages.java as java + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +versions = ['v4beta1'] +service = 'talent' + +for version in versions: + library = gapic.java_library( + service=service, + version=version, + config_path=f'/google/cloud/talent/artman_talent_v4beta1.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') + s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') + + java.format_code('./src') + java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') + java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') \ No newline at end of file diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 6329f703ed28..4ab56ff7a62e 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -453,6 +453,7 @@ google-cloud-spanner google-cloud-speech google-cloud-storage + google-cloud-talent google-cloud-tasks google-cloud-texttospeech google-cloud-trace @@ -784,7 +785,7 @@ Stub packages - com.google.cloud.asset.v1beta1.stub:com.google.cloud.automl.v1beta1.stub:com.google.cloud.bigquerydatatransfer.v1.stub:com.google.cloud.bigquerystorage.v1beta1.stub:com.google.cloud.bigtable-admin.v2.stub:com.google.cloud.bigtable.v2.stub:com.google.cloud.container.v1.stub:com.google.cloud.containeranalysis.v1beta1.stub:com.google.cloud.dataproc.v1.stub:com.google.cloud.dataproc.v1beta2.stub:com.google.cloud.dialogflow.v2.stub:com.google.cloud.dialogflow.v2beta1.stub:com.google.cloud.dlp.v2.stub:com.google.cloud.error-reporting.v1beta1.stub:com.google.cloud.firestore.v1.stub:com.google.cloud.firestore.v1beta1.stub:com.google.cloud.iamcredentials.v1.stub:com.google.cloud.iot.v1.stub:com.google.cloud.kms.v1.stub:com.google.cloud.language.v1.stub:com.google.cloud.language.v1beta2.stub:com.google.cloud.logging.v2.stub:com.google.cloud.monitoring.v3.stub:com.google.cloud.os-login.v1.stub:com.google.cloud.pubsub.v1.stub:com.google.cloud.redis.v1.stub:com.google.cloud.redis.v1beta1.stub:com.google.cloud.scheduler.v1beta1.stub:com.google.cloud.securitycenter.v1beta1.stub:com.google.cloud.spanner-admin-database.v1.stub:com.google.cloud.spanner-admin-instance.v1.stub:com.google.cloud.spanner.v1.stub:com.google.cloud.speech.v1.stub:com.google.cloud.speech.v1beta1.stub:com.google.cloud.speech.v1p1beta1.stub:com.google.cloud.tasks.v2beta2.stub:com.google.cloud.tasks.v2beta3.stub:com.google.cloud.texttospeech.v1.stub:com.google.cloud.texttospeech.v1beta1.stub:com.google.cloud.trace.v1.stub:com.google.cloud.trace.v2.stub:com.google.cloud.video-intelligence.v1.stub:com.google.cloud.video-intelligence.v1beta1.stub:com.google.cloud.video-intelligence.v1beta2.stub:com.google.cloud.video-intelligence.v1p1beta1.stub:com.google.cloud.video-intelligence.v1p2beta1.stub:com.google.cloud.vision.v1.stub:com.google.cloud.vision.v1p1beta1.stub:com.google.cloud.vision.v1p2beta1.stub:com.google.cloud.vision.v1p3beta1.stub:com.google.cloud.vision.v1p4beta1.stub:com.google.cloud.websecurityscanner.v1alpha.stub + com.google.cloud.asset.v1beta1.stub:com.google.cloud.automl.v1beta1.stub:com.google.cloud.bigquerydatatransfer.v1.stub:com.google.cloud.bigquerystorage.v1beta1.stub:com.google.cloud.bigtable-admin.v2.stub:com.google.cloud.bigtable.v2.stub:com.google.cloud.container.v1.stub:com.google.cloud.containeranalysis.v1beta1.stub:com.google.cloud.dataproc.v1.stub:com.google.cloud.dataproc.v1beta2.stub:com.google.cloud.dialogflow.v2.stub:com.google.cloud.dialogflow.v2beta1.stub:com.google.cloud.dlp.v2.stub:com.google.cloud.error-reporting.v1beta1.stub:com.google.cloud.firestore.v1.stub:com.google.cloud.firestore.v1beta1.stub:com.google.cloud.iamcredentials.v1.stub:com.google.cloud.iot.v1.stub:com.google.cloud.kms.v1.stub:com.google.cloud.language.v1.stub:com.google.cloud.language.v1beta2.stub:com.google.cloud.logging.v2.stub:com.google.cloud.monitoring.v3.stub:com.google.cloud.os-login.v1.stub:com.google.cloud.pubsub.v1.stub:com.google.cloud.redis.v1.stub:com.google.cloud.redis.v1beta1.stub:com.google.cloud.scheduler.v1.stub:com.google.cloud.scheduler.v1beta1.stub:com.google.cloud.securitycenter.v1.stub:com.google.cloud.securitycenter.v1beta1.stub:com.google.cloud.spanner-admin-database.v1.stub:com.google.cloud.spanner-admin-instance.v1.stub:com.google.cloud.spanner.v1.stub:com.google.cloud.speech.v1.stub:com.google.cloud.speech.v1beta1.stub:com.google.cloud.speech.v1p1beta1.stub:com.google.cloud.talent.v4beta1.stub:com.google.cloud.tasks.v2beta2.stub:com.google.cloud.tasks.v2beta3.stub:com.google.cloud.texttospeech.v1.stub:com.google.cloud.texttospeech.v1beta1.stub:com.google.cloud.trace.v1.stub:com.google.cloud.trace.v2.stub:com.google.cloud.video-intelligence.v1.stub:com.google.cloud.video-intelligence.v1beta1.stub:com.google.cloud.video-intelligence.v1beta2.stub:com.google.cloud.video-intelligence.v1p1beta1.stub:com.google.cloud.video-intelligence.v1p2beta1.stub:com.google.cloud.video-intelligence.v1p3beta1.stub:com.google.cloud.vision.v1.stub:com.google.cloud.vision.v1p1beta1.stub:com.google.cloud.vision.v1p2beta1.stub:com.google.cloud.vision.v1p3beta1.stub:com.google.cloud.vision.v1p4beta1.stub:com.google.cloud.websecurityscanner.v1alpha.stub Deprecated packages diff --git a/versions.txt b/versions.txt index 22870c7dd649..081f21b9178d 100644 --- a/versions.txt +++ b/versions.txt @@ -53,6 +53,7 @@ google-cloud-securitycenter:0.83.0-alpha:0.83.1-alpha-SNAPSHOT google-cloud-spanner:1.10.0:1.10.1-SNAPSHOT google-cloud-speech:0.83.0-beta:0.83.1-beta-SNAPSHOT google-cloud-storage:1.65.0:1.65.1-SNAPSHOT +google-cloud-talent:0.0.0-beta:0.0.1-beta-SNAPSHOT google-cloud-tasks:0.83.0-beta:0.83.1-beta-SNAPSHOT google-cloud-testing:0.83.0-alpha:0.83.1-alpha-SNAPSHOT google-cloud-texttospeech:0.83.0-beta:0.83.1-beta-SNAPSHOT @@ -76,8 +77,8 @@ grpc-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT grpc-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT @@ -89,16 +90,17 @@ grpc-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT grpc-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT grpc-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT grpc-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT grpc-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-talent-v4beta1:0.0.0-beta:0.0.1-beta-SNAPSHOT grpc-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT @@ -132,8 +134,8 @@ proto-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT proto-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT @@ -145,16 +147,17 @@ proto-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT proto-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT proto-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT proto-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT proto-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-talent-v4beta1:0.0.0-beta:0.0.1-beta-SNAPSHOT proto-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT From e9ed7b0fba36cbe562cba08500bb4ae4a451040b Mon Sep 17 00:00:00 2001 From: dietervdw-spotify <36199260+dietervdw-spotify@users.noreply.github.com> Date: Tue, 19 Mar 2019 19:40:12 +0100 Subject: [PATCH 47/53] Add MDC support in Logback appender (#4477) --- .../logging/logback/LoggingAppender.java | 5 ++++ .../logging/logback/LoggingAppenderTest.java | 30 +++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/main/java/com/google/cloud/logging/logback/LoggingAppender.java b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/main/java/com/google/cloud/logging/logback/LoggingAppender.java index 547ca81da6fa..23d5e4183fdf 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/main/java/com/google/cloud/logging/logback/LoggingAppender.java +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/main/java/com/google/cloud/logging/logback/LoggingAppender.java @@ -36,6 +36,7 @@ import java.util.Collections; import java.util.HashSet; import java.util.List; +import java.util.Map; import java.util.Set; /** @@ -232,6 +233,10 @@ private LogEntry logEntryFor(ILoggingEvent e) { .addLabel(LEVEL_NAME_KEY, level.toString()) .addLabel(LEVEL_VALUE_KEY, String.valueOf(level.toInt())); + for (Map.Entry entry : e.getMDCPropertyMap().entrySet()) { + builder.addLabel(entry.getKey(), entry.getValue()); + } + if (loggingEnhancers != null) { for (LoggingEnhancer enhancer : loggingEnhancers) { enhancer.enhanceLogEntry(builder); diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java index ed43475e3897..5855c80177d7 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java @@ -181,6 +181,36 @@ public void testDefaultWriteOptionsHasExpectedDefaults() { // assertThat(resourceArg.getValue()).isEqualTo(defaultWriteOptions[1]); } + @Test + public void testMdcValuesAreConvertedToLabels() { + LogEntry logEntry = + LogEntry.newBuilder(StringPayload.of("this is a test")) + .setTimestamp(100000L) + .setSeverity(Severity.INFO) + .setLabels( + new ImmutableMap.Builder() + .put("levelName", "INFO") + .put("levelValue", String.valueOf(20000L)) + .put("mdc1", "value1") + .put("mdc2", "value2") + .build()) + .build(); + logging.setFlushSeverity(Severity.ERROR); + Capture> capturedArgument = Capture.newInstance(); + logging.write(capture(capturedArgument), (WriteOption) anyObject(), (WriteOption) anyObject()); + expectLastCall().once(); + replay(logging); + Timestamp timestamp = Timestamp.ofTimeSecondsAndNanos(100000, 0); + LoggingEvent loggingEvent = createLoggingEvent(Level.INFO, timestamp.getSeconds()); + loggingEvent.setMDCPropertyMap(ImmutableMap.of("mdc1", "value1", "mdc2", "value2")); + loggingAppender.start(); + // info event does not get logged + loggingAppender.doAppend(loggingEvent); + verify(logging); + assertThat(capturedArgument.getValue().iterator().hasNext()).isTrue(); + assertThat(capturedArgument.getValue().iterator().next()).isEqualTo(logEntry); + } + private LoggingEvent createLoggingEvent(Level level, long timestamp) { LoggingEvent loggingEvent = new LoggingEvent(); loggingEvent.setMessage("this is a test"); From 242a655231295afd3da1fbaf36cc56031eb7adcd Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Tue, 19 Mar 2019 11:46:52 -0700 Subject: [PATCH 48/53] Firestore: Update CustomClassMapper (#4675) * Firestore: Update CustomClassMapper * Adding Unit tests * Lint fix --- .../cloud/firestore/CustomClassMapper.java | 74 +++++++++++-------- .../firestore/DocumentReferenceTest.java | 66 +++++++++++++++++ .../cloud/firestore/LocalFirestoreHelper.java | 34 +++++++++ 3 files changed, 144 insertions(+), 30 deletions(-) diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CustomClassMapper.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CustomClassMapper.java index 1ba2de65328f..fc9f009e8581 100644 --- a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CustomClassMapper.java +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CustomClassMapper.java @@ -72,7 +72,7 @@ private static void hardAssert(boolean assertion, String message) { * @param object The representation of the JSON data * @return JSON representation containing only standard library Java types */ - public static Object convertToPlainJavaTypes(Object object) { + static Object convertToPlainJavaTypes(Object object) { return serialize(object); } @@ -92,11 +92,11 @@ public static Map convertToPlainJavaTypes(Map update) * @param clazz The class of the object to convert to * @return The POJO object. */ - public static T convertToCustomClass(Object object, Class clazz) { + static T convertToCustomClass(Object object, Class clazz) { return deserializeToClass(object, clazz, ErrorPath.EMPTY); } - protected static Object serialize(T o) { + static Object serialize(T o) { return serialize(o, ErrorPath.EMPTY); } @@ -112,22 +112,21 @@ private static Object serialize(T o, ErrorPath path) { if (o == null) { return null; } else if (o instanceof Number) { - if (o instanceof Float) { - return ((Float) o).doubleValue(); - } else if (o instanceof Short) { - throw serializeError(path, "Shorts are not supported, please use int or long"); - } else if (o instanceof Byte) { - throw serializeError(path, "Bytes are not supported, please use int or long"); - } else { - // Long, Integer, Double + if (o instanceof Long || o instanceof Integer || o instanceof Double || o instanceof Float) { return o; + } else { + throw serializeError( + path, + String.format( + "Numbers of type %s are not supported, please use an int, long, float or double", + o.getClass().getSimpleName())); } } else if (o instanceof String) { return o; } else if (o instanceof Boolean) { return o; } else if (o instanceof Character) { - throw serializeError(path, "Characters are not supported, please use Strings."); + throw serializeError(path, "Characters are not supported, please use Strings"); } else if (o instanceof Map) { Map result = new HashMap<>(); for (Map.Entry entry : ((Map) o).entrySet()) { @@ -155,7 +154,13 @@ private static Object serialize(T o, ErrorPath path) { } else if (o.getClass().isArray()) { throw serializeError(path, "Serializing Arrays is not supported, please use Lists instead"); } else if (o instanceof Enum) { - return ((Enum) o).name(); + String enumName = ((Enum) o).name(); + try { + Field enumField = o.getClass().getField(enumName); + return BeanMapper.propertyName(enumField); + } catch (NoSuchFieldException ex) { + return enumName; + } } else if (o instanceof Date || o instanceof Timestamp || o instanceof GeoPoint @@ -212,7 +217,7 @@ private static T deserializeToClass(Object o, Class clazz, ErrorPath path || Number.class.isAssignableFrom(clazz) || Boolean.class.isAssignableFrom(clazz) || Character.class.isAssignableFrom(clazz)) { - return (T) deserializeToPrimitive(o, clazz, path); + return deserializeToPrimitive(o, clazz, path); } else if (String.class.isAssignableFrom(clazz)) { return (T) convertString(o, path); } else if (Date.class.isAssignableFrom(clazz)) { @@ -306,14 +311,10 @@ private static T deserializeToPrimitive(Object o, Class clazz, ErrorPath return (T) convertLong(o, path); } else if (Float.class.isAssignableFrom(clazz) || float.class.isAssignableFrom(clazz)) { return (T) (Float) convertDouble(o, path).floatValue(); - } else if (Short.class.isAssignableFrom(clazz) || short.class.isAssignableFrom(clazz)) { - throw deserializeError(path, "Deserializing to shorts is not supported"); - } else if (Byte.class.isAssignableFrom(clazz) || byte.class.isAssignableFrom(clazz)) { - throw deserializeError(path, "Deserializing to bytes is not supported"); - } else if (Character.class.isAssignableFrom(clazz) || char.class.isAssignableFrom(clazz)) { - throw deserializeError(path, "Deserializing to chars is not supported"); } else { - throw new IllegalArgumentException("Unknown primitive type: " + clazz); + throw deserializeError( + path, + String.format("Deserializing values to %s is not supported", clazz.getSimpleName())); } } @@ -323,6 +324,19 @@ private static T deserializeToEnum(Object object, Class clazz, ErrorPath String value = (String) object; // We cast to Class without generics here since we can't prove the bound // T extends Enum statically + + // try to use PropertyName if exist + Field[] enumFields = clazz.getFields(); + for (Field field : enumFields) { + if (field.isEnumConstant()) { + String propertyName = BeanMapper.propertyName(field); + if (value.equals(propertyName)) { + value = field.getName(); + break; + } + } + } + try { return (T) Enum.valueOf((Class) clazz, value); } catch (IllegalArgumentException e) { @@ -355,7 +369,7 @@ private static BeanMapper loadOrCreateBeanMapperForClass(Class clazz) @SuppressWarnings("unchecked") private static Map expectMap(Object object, ErrorPath path) { if (object instanceof Map) { - // TODO(dimond): runtime validation of keys? + // TODO: runtime validation of keys? return (Map) object; } else { throw deserializeError( @@ -508,12 +522,12 @@ private static T convertBean(Object o, Class clazz, ErrorPath path) { } } - private static RuntimeException serializeError(ErrorPath path, String reason) { + private static IllegalArgumentException serializeError(ErrorPath path, String reason) { reason = "Could not serialize object. " + reason; if (path.getLength() > 0) { reason = reason + " (found in field '" + path.toString() + "')"; } - return new RuntimeException(reason); + return new IllegalArgumentException(reason); } private static RuntimeException deserializeError(ErrorPath path, String reason) { @@ -539,7 +553,7 @@ private static class BeanMapper { // A list of any properties that were annotated with @ServerTimestamp. private final HashSet serverTimestamps; - public BeanMapper(Class clazz) { + BeanMapper(Class clazz) { this.clazz = clazz; throwOnUnknownProperties = clazz.isAnnotationPresent(ThrowOnExtraProperties.class); warnOnUnknownProperties = !clazz.isAnnotationPresent(IgnoreExtraProperties.class); @@ -614,7 +628,7 @@ public BeanMapper(Class clazz) { // We require that setters with conflicting property names are // overrides from a base class if (currentClass == clazz) { - // TODO(mikelehen): Should we support overloads? + // TODO: Should we support overloads? throw new RuntimeException( "Class " + clazz.getName() @@ -670,11 +684,11 @@ private void addProperty(String property) { } } - public T deserialize(Map values, ErrorPath path) { + T deserialize(Map values, ErrorPath path) { return deserialize(values, Collections.>, Type>emptyMap(), path); } - public T deserialize( + T deserialize( Map values, Map>, Type> types, ErrorPath path) { if (constructor == null) { throw deserializeError( @@ -746,7 +760,7 @@ private Type resolveType(Type type, Map>, Type> types) { } } - public Map serialize(T object, ErrorPath path) { + Map serialize(T object, ErrorPath path) { if (!clazz.isAssignableFrom(object.getClass())) { throw new IllegalArgumentException( "Can't serialize object of class " @@ -992,7 +1006,7 @@ int getLength() { return length; } - public ErrorPath child(String name) { + ErrorPath child(String name) { return new ErrorPath(this, name, length + 1); } diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java index f441f06efd70..f3c7f767459d 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/DocumentReferenceTest.java @@ -66,6 +66,7 @@ import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.Timestamp; +import com.google.cloud.firestore.LocalFirestoreHelper.InvalidPOJO; import com.google.cloud.firestore.spi.v1.FirestoreRpc; import com.google.common.collect.ImmutableList; import com.google.firestore.v1.BatchGetDocumentsRequest; @@ -73,12 +74,14 @@ import com.google.firestore.v1.CommitRequest; import com.google.firestore.v1.CommitResponse; import com.google.firestore.v1.Value; +import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -166,6 +169,38 @@ public void serializeDocumentReference() throws Exception { assertCommitEquals(commit(set(documentReferenceFields)), commitCapture.getValue()); } + @Test + public void doesNotSerializeAdvancedNumberTypes() { + Map expectedErrorMessages = new HashMap<>(); + + InvalidPOJO pojo = new InvalidPOJO(); + pojo.bigIntegerValue = new BigInteger("0"); + expectedErrorMessages.put( + pojo, + "Could not serialize object. Numbers of type BigInteger are not supported, please use an int, long, float or double (found in field 'bigIntegerValue')"); + + pojo = new InvalidPOJO(); + pojo.byteValue = 0; + expectedErrorMessages.put( + pojo, + "Could not serialize object. Numbers of type Byte are not supported, please use an int, long, float or double (found in field 'byteValue')"); + + pojo = new InvalidPOJO(); + pojo.shortValue = 0; + expectedErrorMessages.put( + pojo, + "Could not serialize object. Numbers of type Short are not supported, please use an int, long, float or double (found in field 'shortValue')"); + + for (Map.Entry testCase : expectedErrorMessages.entrySet()) { + try { + documentReference.set(testCase.getKey()); + fail(); + } catch (IllegalArgumentException e) { + assertEquals(testCase.getValue(), e.getMessage()); + } + } + } + @Test public void deserializeBasicTypes() throws Exception { doAnswer(getAllResponse(ALL_SUPPORTED_TYPES_PROTO)) @@ -264,6 +299,37 @@ public void deserializesDates() throws Exception { assertEquals(TIMESTAMP, snapshot.getData().get("timestampValue")); } + @Test + public void doesNotDeserializeAdvancedNumberTypes() throws Exception { + Map fieldNamesToTypeNames = + map("bigIntegerValue", "BigInteger", "shortValue", "Short", "byteValue", "Byte"); + + for (Entry testCase : fieldNamesToTypeNames.entrySet()) { + String fieldName = testCase.getKey(); + String typeName = testCase.getValue(); + Map response = map(fieldName, Value.newBuilder().setIntegerValue(0).build()); + + doAnswer(getAllResponse(response)) + .when(firestoreMock) + .streamRequest( + getAllCapture.capture(), + streamObserverCapture.capture(), + Matchers.any()); + + DocumentSnapshot snapshot = documentReference.get().get(); + try { + snapshot.toObject(InvalidPOJO.class); + fail(); + } catch (RuntimeException e) { + assertEquals( + String.format( + "Could not deserialize object. Deserializing values to %s is not supported (found in field '%s')", + typeName, fieldName), + e.getMessage()); + } + } + } + @Test public void notFound() throws Exception { final BatchGetDocumentsResponse.Builder getDocumentResponse = diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java index 20337f8e6095..c57a8e024fbd 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java @@ -52,6 +52,7 @@ import com.google.protobuf.Empty; import com.google.protobuf.NullValue; import com.google.type.LatLng; +import java.math.BigInteger; import java.nio.charset.Charset; import java.text.ParseException; import java.text.SimpleDateFormat; @@ -147,6 +148,39 @@ class Inner { } } + public static class InvalidPOJO { + @Nullable BigInteger bigIntegerValue = null; + @Nullable Byte byteValue = null; + @Nullable Short shortValue = null; + + @Nullable + public BigInteger getBigIntegerValue() { + return bigIntegerValue; + } + + public void setBigIntegerValue(@Nullable BigInteger bigIntegerValue) { + this.bigIntegerValue = bigIntegerValue; + } + + @Nullable + public Byte getByteValue() { + return byteValue; + } + + public void setByteValue(@Nullable Byte byteValue) { + this.byteValue = byteValue; + } + + @Nullable + public Short getShortValue() { + return shortValue; + } + + public void setShortValue(@Nullable Short shortValue) { + this.shortValue = shortValue; + } + } + public static Map map(K key, V value, Object... moreKeysAndValues) { Map map = new HashMap<>(); map.put(key, value); From 47662260c80f4fe3051dfb5b9bb8526647462dbb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 20 Mar 2019 01:53:31 -0700 Subject: [PATCH 49/53] Regenerate securitycenter client (#4704) --- .../cloud/securitycenter/v1/AssetOuterClass.java | 5 +++-- .../cloud/securitycenter/v1/FindingOuterClass.java | 5 +++-- .../v1/OrganizationSettingsOuterClass.java | 5 +++-- .../securitycenter/v1/SecurityMarksOuterClass.java | 5 +++-- .../cloud/securitycenter/v1/SecuritycenterService.java | 5 +++-- .../cloud/securitycenter/v1/SourceOuterClass.java | 5 +++-- .../proto/google/cloud/securitycenter/v1/asset.proto | 1 + .../proto/google/cloud/securitycenter/v1/finding.proto | 1 + .../securitycenter/v1/organization_settings.proto | 1 + .../cloud/securitycenter/v1/security_marks.proto | 1 + .../securitycenter/v1/securitycenter_service.proto | 1 + .../proto/google/cloud/securitycenter/v1/source.proto | 1 + .../google-cloud-securitycenter/synth.metadata | 10 +++++----- 13 files changed, 29 insertions(+), 17 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java index 0a1b0c5df296..4365ab2b9774 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java @@ -60,11 +60,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\t\022\027\n\017resource_owners\030\005 \003(\t\032 \n\tIamPolicy" + "\022\023\n\013policy_blob\030\001 \001(\t\032Q\n\027ResourcePropert" + "iesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.g" - + "oogle.protobuf.Value:\0028\001B\225\001\n\"com.google." + + "oogle.protobuf.Value:\0028\001B\266\001\n\"com.google." + "cloud.securitycenter.v1P\001ZLgoogle.golang" + ".org/genproto/googleapis/cloud/securityc" + "enter/v1;securitycenter\252\002\036Google.Cloud.S" - + "ecurityCenter.V1b\006proto3" + + "ecurityCenter.V1\312\002\036Google\\Cloud\\Security" + + "Center\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java index e0c07e97bbe6..04a2f1869cc8 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -48,11 +48,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Timestamp\032O\n\025SourcePropertiesEntry\022\013\n\003ke" + "y\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" + ".Value:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED" - + "\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002B\225\001\n\"com.goo" + + "\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002B\266\001\n\"com.goo" + "gle.cloud.securitycenter.v1P\001ZLgoogle.go" + "lang.org/genproto/googleapis/cloud/secur" + "itycenter/v1;securitycenter\252\002\036Google.Clo" - + "ud.SecurityCenter.V1b\006proto3" + + "ud.SecurityCenter.V1\312\002\036Google\\Cloud\\Secu" + + "rityCenter\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java index 0144b7a5839a..66071fa3fd9c 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java @@ -42,11 +42,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v1.OrganizationSettings.AssetDiscoveryC" + "onfig.InclusionMode\"N\n\rInclusionMode\022\036\n\032" + "INCLUSION_MODE_UNSPECIFIED\020\000\022\020\n\014INCLUDE_" - + "ONLY\020\001\022\013\n\007EXCLUDE\020\002J\004\010\004\020\005J\004\010\005\020\006B\225\001\n\"com." + + "ONLY\020\001\022\013\n\007EXCLUDE\020\002J\004\010\004\020\005J\004\010\005\020\006B\266\001\n\"com." + "google.cloud.securitycenter.v1P\001ZLgoogle" + ".golang.org/genproto/googleapis/cloud/se" + "curitycenter/v1;securitycenter\252\002\036Google." - + "Cloud.SecurityCenter.V1b\006proto3" + + "Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\S" + + "ecurityCenter\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java index 0a9ad0c57199..c1a6cc560b4c 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java @@ -35,11 +35,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "SecurityMarks\022\014\n\004name\030\001 \001(\t\022G\n\005marks\030\002 \003" + "(\01328.google.cloud.securitycenter.v1.Secu" + "rityMarks.MarksEntry\032,\n\nMarksEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\225\001\n\"com.googl" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\266\001\n\"com.googl" + "e.cloud.securitycenter.v1P\001ZLgoogle.gola" + "ng.org/genproto/googleapis/cloud/securit" + "ycenter/v1;securitycenter\252\002\036Google.Cloud" - + ".SecurityCenter.V1b\006proto3" + + ".SecurityCenter.V1\312\002\036Google\\Cloud\\Securi" + + "tyCenter\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java index f1bc76e24cd5..b9fd2e2b74ec 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java @@ -310,11 +310,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "organizations/*/assets/*/securityMarks}:" + "\016security_marksZ^2L/v1/{security_marks.n" + "ame=organizations/*/sources/*/findings/*" - + "/securityMarks}:\016security_marksB\225\001\n\"com." + + "/securityMarks}:\016security_marksB\266\001\n\"com." + "google.cloud.securitycenter.v1P\001ZLgoogle" + ".golang.org/genproto/googleapis/cloud/se" + "curitycenter/v1;securitycenter\252\002\036Google." - + "Cloud.SecurityCenter.V1b\006proto3" + + "Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\S" + + "ecurityCenter\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java index f38499291a14..8a8b231908b7 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java @@ -29,11 +29,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\022\036google.cloud.securitycenter.v1\032\034g" + "oogle/api/annotations.proto\"G\n\006Source\022\014\n" + "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013des" - + "cription\030\003 \001(\tJ\004\010\004\020\005B\225\001\n\"com.google.clou" + + "cription\030\003 \001(\tJ\004\010\004\020\005B\266\001\n\"com.google.clou" + "d.securitycenter.v1P\001ZLgoogle.golang.org" + "/genproto/googleapis/cloud/securitycente" + "r/v1;securitycenter\252\002\036Google.Cloud.Secur" - + "ityCenter.V1b\006proto3" + + "ityCenter.V1\312\002\036Google\\Cloud\\SecurityCent" + + "er\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto index 97b5bfb0b94e..8e8bcb2979fa 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto @@ -26,6 +26,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud // Platform (GCP) resource. diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto index 0c20b85f693d..2a8e75b9c348 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto @@ -26,6 +26,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // Cloud Security Command Center (Cloud SCC) finding. // diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto index 92c2f9d5b850..05e24e28ac17 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto @@ -23,6 +23,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // User specified settings that are attached to the Cloud Security Command // Center (Cloud SCC) organization. diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto index 00328a53d552..4ba82d974f03 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto @@ -23,6 +23,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // User specified security marks that are attached to the parent Cloud Security // Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto index 7a5d2e744505..681956f741f0 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -36,6 +36,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // V1 APIs for Security Center service. service SecurityCenter { diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto index 7d835ec05a74..07f4c59b2058 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto @@ -23,6 +23,7 @@ option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; // Cloud Security Command Center's (Cloud SCC) finding source. A finding source // is an entity or a mechanism that can produce a finding. A source is like a diff --git a/google-cloud-clients/google-cloud-securitycenter/synth.metadata b/google-cloud-clients/google-cloud-securitycenter/synth.metadata index 9d1ae46819c9..96d7b1176f39 100644 --- a/google-cloud-clients/google-cloud-securitycenter/synth.metadata +++ b/google-cloud-clients/google-cloud-securitycenter/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-14T07:50:15.054260Z", + "updateTime": "2019-03-20T07:51:04.644878Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.17", - "dockerImage": "googleapis/artman@sha256:7231f27272231a884e09edb5953148c85ecd8467780d33c4a35c3e507885715b" + "version": "0.16.18", + "dockerImage": "googleapis/artman@sha256:e8ac9200640e76d54643f370db71a1556bf254f565ce46b45a467bbcbacbdb37" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d05a746ba27b89374c7407c88c0d5dabfb0afc7c", - "internalRef": "238372434" + "sha": "285b7fb430c19b2939313d79ae4ee5170d01cf35", + "internalRef": "239259121" } } ], From 8379b2c1be657233f817c25e0d3dfc99abf5a550 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 20 Mar 2019 01:54:16 -0700 Subject: [PATCH 50/53] Regenerate talent client (#4705) --- .../google-cloud-talent/synth.metadata | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 google-cloud-clients/google-cloud-talent/synth.metadata diff --git a/google-cloud-clients/google-cloud-talent/synth.metadata b/google-cloud-clients/google-cloud-talent/synth.metadata new file mode 100644 index 000000000000..b896a580b615 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/synth.metadata @@ -0,0 +1,32 @@ +{ + "updateTime": "2019-03-20T07:53:52.599485Z", + "sources": [ + { + "generator": { + "name": "artman", + "version": "0.16.18", + "dockerImage": "googleapis/artman@sha256:e8ac9200640e76d54643f370db71a1556bf254f565ce46b45a467bbcbacbdb37" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "285b7fb430c19b2939313d79ae4ee5170d01cf35", + "internalRef": "239259121" + } + } + ], + "destinations": [ + { + "client": { + "source": "googleapis", + "apiName": "talent", + "apiVersion": "v4beta1", + "language": "java", + "generator": "gapic", + "config": "google/cloud/talent/artman_talent_v4beta1.yaml" + } + } + ] +} \ No newline at end of file From f1d2976e9fb26c440b94b9dfa012e52493132f53 Mon Sep 17 00:00:00 2001 From: Praful Makani Date: Wed, 20 Mar 2019 19:56:43 +0530 Subject: [PATCH 51/53] BigQuery: Added missing partitioned fields to listTables. (#4701) * Add missing partitioned fields to listTables * Fix table delete in finally block * Fix test failing --- .../bigquery/spi/v2/HttpBigQueryRpc.java | 4 ++- .../cloud/bigquery/BigQueryImplTest.java | 29 ++++++++++++++++ .../cloud/bigquery/it/ITBigQueryTest.java | 34 +++++++++++++++++++ 3 files changed, 66 insertions(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java index 21df417ecc41..70ade809b8ee 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java +++ b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java @@ -276,7 +276,9 @@ public Table apply(TableList.Tables tablePb) { .setId(tablePb.getId()) .setKind(tablePb.getKind()) .setTableReference(tablePb.getTableReference()) - .setType(tablePb.getType()); + .setType(tablePb.getType()) + .setCreationTime(tablePb.getCreationTime()) + .setTimePartitioning(tablePb.getTimePartitioning()); } })); } catch (IOException ex) { diff --git a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java index 8ee3bac25e55..c69eb2532506 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java +++ b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java @@ -111,12 +111,25 @@ public class BigQueryImplTest { StandardTableDefinition.of(TABLE_SCHEMA); private static final ModelTableDefinition MODEL_TABLE_DEFINITION = ModelTableDefinition.newBuilder().build(); + private static final Long EXPIRATION_MS = 86400000L; + private static final Long TABLE_CREATION_TIME = 1546275600000L; + private static final TimePartitioning TIME_PARTITIONING = + TimePartitioning.of(TimePartitioning.Type.DAY, EXPIRATION_MS); + private static final StandardTableDefinition TABLE_DEFINITION_WITH_PARTITIONING = + StandardTableDefinition.newBuilder() + .setSchema(TABLE_SCHEMA) + .setTimePartitioning(TIME_PARTITIONING) + .build(); private static final TableInfo TABLE_INFO = TableInfo.of(TABLE_ID, TABLE_DEFINITION); private static final TableInfo OTHER_TABLE_INFO = TableInfo.of(OTHER_TABLE_ID, TABLE_DEFINITION); private static final TableInfo TABLE_INFO_WITH_PROJECT = TableInfo.of(TABLE_ID_WITH_PROJECT, TABLE_DEFINITION); private static final TableInfo MODEL_TABLE_INFO_WITH_PROJECT = TableInfo.of(TABLE_ID_WITH_PROJECT, MODEL_TABLE_DEFINITION); + private static final TableInfo TABLE_INFO_WITH_PARTITIONS = + TableInfo.newBuilder(TABLE_ID, TABLE_DEFINITION_WITH_PARTITIONING) + .setCreationTime(TABLE_CREATION_TIME) + .build(); private static final LoadJobConfiguration LOAD_JOB_CONFIGURATION = LoadJobConfiguration.of(TABLE_ID, "URI"); private static final LoadJobConfiguration LOAD_JOB_CONFIGURATION_WITH_PROJECT = @@ -721,6 +734,22 @@ public void testListTables() { assertArrayEquals(tableList.toArray(), Iterables.toArray(page.getValues(), Table.class)); } + @Test + public void testListTablesReturnedParameters() { + bigquery = options.getService(); + ImmutableList tableList = + ImmutableList.of( + new Table(bigquery, new TableInfo.BuilderImpl(TABLE_INFO_WITH_PARTITIONS))); + Tuple> result = + Tuple.of(CURSOR, Iterables.transform(tableList, TableInfo.TO_PB_FUNCTION)); + EasyMock.expect(bigqueryRpcMock.listTables(PROJECT, DATASET, TABLE_LIST_OPTIONS)) + .andReturn(result); + EasyMock.replay(bigqueryRpcMock); + Page
page = bigquery.listTables(DATASET, TABLE_LIST_PAGE_SIZE, TABLE_LIST_PAGE_TOKEN); + assertEquals(CURSOR, page.getNextPageToken()); + assertArrayEquals(tableList.toArray(), Iterables.toArray(page.getValues(), Table.class)); + } + @Test public void testListTablesFromDatasetId() { bigquery = options.getService(); diff --git a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index c7fe1ee35c75..e852cfc8a276 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -111,6 +111,7 @@ public class ITBigQueryTest { private static final byte[] BYTES = {0xD, 0xE, 0xA, 0xD}; private static final String BYTES_BASE64 = BaseEncoding.base64().encode(BYTES); + private static final Long EXPIRATION_MS = 86400000L; private static final Logger LOG = Logger.getLogger(ITBigQueryTest.class.getName()); private static final String DATASET = RemoteBigQueryHelper.generateDatasetName(); private static final String DESCRIPTION = "Test dataset"; @@ -607,6 +608,39 @@ public void testListTables() { assertTrue(createdTable.delete()); } + @Test + public void testListTablesWithPartitioning() { + String tableName = "test_list_tables_partitioning"; + TimePartitioning timePartitioning = TimePartitioning.of(Type.DAY, EXPIRATION_MS); + StandardTableDefinition tableDefinition = + StandardTableDefinition.newBuilder() + .setSchema(TABLE_SCHEMA) + .setTimePartitioning(timePartitioning) + .build(); + TableInfo tableInfo = TableInfo.of(TableId.of(DATASET, tableName), tableDefinition); + Table createdPartitioningTable = bigquery.create(tableInfo); + assertNotNull(createdPartitioningTable); + try { + Page
tables = bigquery.listTables(DATASET); + boolean found = false; + Iterator
tableIterator = tables.getValues().iterator(); + while (tableIterator.hasNext() && !found) { + StandardTableDefinition standardTableDefinition = tableIterator.next().getDefinition(); + if (standardTableDefinition.getTimePartitioning() != null + && standardTableDefinition.getTimePartitioning().getType().equals(Type.DAY) + && standardTableDefinition + .getTimePartitioning() + .getExpirationMs() + .equals(EXPIRATION_MS)) { + found = true; + } + } + assertTrue(found); + } finally { + createdPartitioningTable.delete(); + } + } + @Test public void testUpdateTable() { String tableName = "test_update_table"; From e3e812b42322a1587cc5a648035dd5dbd39743b9 Mon Sep 17 00:00:00 2001 From: Dino Oliva Date: Wed, 20 Mar 2019 07:28:12 -0700 Subject: [PATCH 52/53] OpenCensus Support for Cloud Pub/Sub (#4240) * Adds OpenCensus context propagation to Publisher and Subscriber. * Updates OpenCensus attribute keys so that they will be propagated by CPS. * Addresses reviewer comments by fixing build files and using only defined annotations. * Updates build dependencies and copyright date. * Fixes typo. * Removes encoding of OpenCensus tags. Will re-enable once text encoding spec has been finalized (https://github.com/census-instrumentation/opencensus-specs/issues/65). * Updates encoding of SpanContext to use W3C specified encoding; Also preserves sampling decision from the publisher in the subscriber. * Adds unit test for OpenCensusUtil. * Adds unit test for OpenCensusUtil. * Updates OpenCensus integration to use a generic MessageTransform. * Removes now-unused private constant. * Update pom.xml * Marking setTransform as BetaApi * Fixes for formatting issues. --- .../google-cloud-pubsub/pom.xml | 6 + .../cloud/pubsub/v1/OpenCensusUtil.java | 175 ++++++++++++++++++ .../com/google/cloud/pubsub/v1/Publisher.java | 23 +++ .../cloud/pubsub/v1/OpenCensusUtilTest.java | 139 ++++++++++++++ 4 files changed, 343 insertions(+) create mode 100644 google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java create mode 100644 google-cloud-clients/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java diff --git a/google-cloud-clients/google-cloud-pubsub/pom.xml b/google-cloud-clients/google-cloud-pubsub/pom.xml index bb1935fbcaca..9b904e790482 100644 --- a/google-cloud-clients/google-cloud-pubsub/pom.xml +++ b/google-cloud-clients/google-cloud-pubsub/pom.xml @@ -78,6 +78,12 @@ grpc-google-iam-v1 test + + io.opencensus + opencensus-impl + ${opencensus.version} + test + com.google.api diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java new file mode 100644 index 000000000000..018c63452640 --- /dev/null +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java @@ -0,0 +1,175 @@ +/* Copyright 2019 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiFunction; +import com.google.common.annotations.VisibleForTesting; +import com.google.errorprone.annotations.MustBeClosed; +import com.google.pubsub.v1.PubsubMessage; +import io.opencensus.common.Scope; +import io.opencensus.tags.TagContext; +import io.opencensus.tags.Tagger; +import io.opencensus.tags.Tags; +import io.opencensus.tags.propagation.TagContextBinarySerializer; +import io.opencensus.trace.Link; +import io.opencensus.trace.SpanContext; +import io.opencensus.trace.Tracer; +import io.opencensus.trace.Tracing; +import io.opencensus.trace.propagation.SpanContextParseException; +import io.opencensus.trace.propagation.TextFormat; +import io.opencensus.trace.propagation.TextFormat.Getter; +import io.opencensus.trace.propagation.TextFormat.Setter; +import io.opencensus.trace.samplers.Samplers; +import java.util.logging.Level; +import java.util.logging.Logger; + +/** + * Utilities for propagating OpenCensus {@link TagContext} and {@link SpanContext} from publishers + * to subscribers. + */ +public class OpenCensusUtil { + private static final Logger logger = Logger.getLogger(OpenCensusUtil.class.getName()); + + public static final String TAG_CONTEXT_KEY = "googclient_OpenCensusTagContextKey"; + public static final String TRACE_CONTEXT_KEY = "googclient_OpenCensusTraceContextKey"; + @VisibleForTesting static final String MESSAGE_RECEIVER_SPAN_NAME = "OpenCensusMessageReceiver"; + private static final String TRACEPARENT_KEY = "traceparent"; + + private static final Tagger tagger = Tags.getTagger(); + private static final TagContextBinarySerializer serializer = + Tags.getTagPropagationComponent().getBinarySerializer(); + + private static final Tracer tracer = Tracing.getTracer(); + private static final TextFormat traceContextTextFormat = + Tracing.getPropagationComponent().getTraceContextFormat(); + + /** + * Propagates active OpenCensus trace and tag contexts from the Publisher by adding them as + * attributes to the {@link PubsubMessage}. + */ + public static final ApiFunction OPEN_CENSUS_MESSAGE_TRANSFORM = + new ApiFunction() { + @Override + public PubsubMessage apply(PubsubMessage message) { + PubsubMessage.Builder builder = PubsubMessage.newBuilder(message); + String encodedSpanContext = encodeSpanContext(tracer.getCurrentSpan().getContext()); + String encodedTagContext = encodeTagContext(tagger.getCurrentTagContext()); + if (encodedSpanContext.isEmpty() && encodedTagContext.isEmpty()) { + return message; + } + if (!encodedSpanContext.isEmpty()) { + builder.putAttributes(TRACE_CONTEXT_KEY, encodedSpanContext); + } + if (!encodedTagContext.isEmpty()) { + builder.putAttributes(TAG_CONTEXT_KEY, encodedTagContext); + } + return builder.build(); + } + }; + + private static final Setter setter = + new Setter() { + @Override + public void put(StringBuilder carrier, String key, String value) { + if (key.equals(TRACEPARENT_KEY)) { + carrier.append(value); + } + } + }; + + private static final Getter getter = + new Getter() { + @Override + public String get(String carrier, String key) { + return key.equals(TRACEPARENT_KEY) ? carrier : null; + } + }; + + @VisibleForTesting + static String encodeSpanContext(SpanContext ctxt) { + StringBuilder builder = new StringBuilder(); + traceContextTextFormat.inject(ctxt, builder, setter); + return builder.toString(); + } + + // TODO: update this code once the text encoding of tags has been resolved + // (https://github.com/census-instrumentation/opencensus-specs/issues/65). + private static String encodeTagContext(TagContext tags) { + return ""; + } + + // TODO: update this code once the text encoding of tags has been resolved + // (https://github.com/census-instrumentation/opencensus-specs/issues/65). + private static Scope createScopedTagContext(String encodedTags) { + return tagger.withTagContext(tagger.getCurrentTagContext()); + } + + @VisibleForTesting + @MustBeClosed + static Scope createScopedSpan(String name) { + return tracer + .spanBuilderWithExplicitParent(name, tracer.getCurrentSpan()) + .setRecordEvents(true) + // Note: we preserve the sampling decision from the publisher. + .setSampler(Samplers.alwaysSample()) + .startScopedSpan(); + } + + private static void addParentLink(String encodedParentSpanContext) { + try { + SpanContext ctxt = traceContextTextFormat.extract(encodedParentSpanContext, getter); + tracer.getCurrentSpan().addLink(Link.fromSpanContext(ctxt, Link.Type.PARENT_LINKED_SPAN)); + } catch (SpanContextParseException exn) { + logger.log(Level.INFO, "OpenCensus: Trace Context Deserialization Exception: " + exn); + } + } + + /** + * Wrapper class for {@link MessageReceiver} that decodes any received trace and tag contexts and + * puts them in scope. + */ + public static class OpenCensusMessageReceiver implements MessageReceiver { + private final MessageReceiver receiver; + + public OpenCensusMessageReceiver(MessageReceiver receiver) { + this.receiver = receiver; + } + + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + String encodedTagContext = message.getAttributesOrDefault(TAG_CONTEXT_KEY, ""); + if (encodedTagContext.isEmpty()) { + addTraceScope(message, consumer); + return; + } + try (Scope statsScope = createScopedTagContext(encodedTagContext)) { + addTraceScope(message, consumer); + } + } + + private void addTraceScope(PubsubMessage message, AckReplyConsumer consumer) { + String encodedSpanContext = message.getAttributesOrDefault(TRACE_CONTEXT_KEY, ""); + if (encodedSpanContext.isEmpty()) { + receiver.receiveMessage(message, consumer); + return; + } + try (Scope spanScope = createScopedSpan(MESSAGE_RECEIVER_SPAN_NAME)) { + addParentLink(encodedSpanContext); + receiver.receiveMessage(message, consumer); + } + } + } +} diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 557a483073de..ea2475cb3fdf 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1; +import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutureCallback; import com.google.api.core.ApiFutures; @@ -95,6 +96,7 @@ public class Publisher { private final List closeables; private final MessageWaiter messagesWaiter; private ScheduledFuture currentAlarmFuture; + private final ApiFunction messageTransform; /** The maximum number of messages in one request. Defined by the API. */ public static long getApiMaxRequestElementCount() { @@ -110,6 +112,7 @@ private Publisher(Builder builder) throws IOException { topicName = builder.topicName; this.batchingSettings = builder.batchingSettings; + this.messageTransform = builder.messageTransform; messagesBatch = new LinkedList<>(); messagesBatchLock = new ReentrantLock(); @@ -192,6 +195,7 @@ public ApiFuture publish(PubsubMessage message) { throw new IllegalStateException("Cannot publish on a shut-down publisher."); } + message = messageTransform.apply(message); final int messageSize = message.getSerializedSize(); OutstandingBatch batchToSend = null; SettableApiFuture publishResult = SettableApiFuture.create(); @@ -528,6 +532,14 @@ public static final class Builder { CredentialsProvider credentialsProvider = TopicAdminSettings.defaultCredentialsProviderBuilder().build(); + ApiFunction messageTransform = + new ApiFunction() { + @Override + public PubsubMessage apply(PubsubMessage input) { + return input; + } + }; + private Builder(String topic) { this.topicName = Preconditions.checkNotNull(topic); } @@ -610,6 +622,17 @@ public Builder setExecutorProvider(ExecutorProvider executorProvider) { return this; } + /** + * Gives the ability to set an {@link ApiFunction} that will transform the {@link PubsubMessage} + * before it is sent + */ + @BetaApi + public Builder setTransform(ApiFunction messageTransform) { + this.messageTransform = + Preconditions.checkNotNull(messageTransform, "The messageTransform cannnot be null."); + return this; + } + public Publisher build() throws IOException { return new Publisher(this); } diff --git a/google-cloud-clients/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java b/google-cloud-clients/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java new file mode 100644 index 000000000000..6f74d5917c76 --- /dev/null +++ b/google-cloud-clients/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.OpenCensusUtil.MESSAGE_RECEIVER_SPAN_NAME; +import static com.google.cloud.pubsub.v1.OpenCensusUtil.OPEN_CENSUS_MESSAGE_TRANSFORM; +import static com.google.cloud.pubsub.v1.OpenCensusUtil.TAG_CONTEXT_KEY; +import static com.google.cloud.pubsub.v1.OpenCensusUtil.TRACE_CONTEXT_KEY; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotEquals; + +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import io.opencensus.common.Scope; +import io.opencensus.tags.TagContext; +import io.opencensus.tags.TagKey; +import io.opencensus.tags.TagValue; +import io.opencensus.tags.Tagger; +import io.opencensus.tags.Tags; +import io.opencensus.trace.Link; +import io.opencensus.trace.SpanContext; +import io.opencensus.trace.Tracer; +import io.opencensus.trace.Tracing; +import io.opencensus.trace.export.RunningSpanStore; +import io.opencensus.trace.export.RunningSpanStore.Filter; +import io.opencensus.trace.export.SpanData; +import java.util.Collection; +import java.util.List; +import org.junit.Test; + +/** Tests for {@link OpenCensusUtil}. */ +public class OpenCensusUtilTest { + private static final Tagger tagger = Tags.getTagger(); + private static final Tracer tracer = Tracing.getTracer(); + private static final TagKey TEST_TAG_KEY = TagKey.create("TEST_TAG_KEY"); + private static final TagValue TEST_TAG_VAL = TagValue.create("TEST_TAG_VAL"); + private static final String TEST_PARENT_LINK_NAME = "TEST_PARENT_LINK"; + + // Verifies that trace contexts propagated as an attribute are set as the parent link in the + // message receiver and that the tag context is not change (for now). + @Test + public void testOpenCensusMessageReceiver() throws Exception { + PubsubMessage message; + SpanContext publisherContext; + try (Scope traceScope = OpenCensusUtil.createScopedSpan(TEST_PARENT_LINK_NAME); + Scope tagScope = createScopeTags()) { + message = OPEN_CENSUS_MESSAGE_TRANSFORM.apply(generatePubsubMessage(500)); + publisherContext = tracer.getCurrentSpan().getContext(); + } + MessageReceiver receiver = + new OpenCensusUtil.OpenCensusMessageReceiver( + new TestMessageReceiver(publisherContext, tagger.getCurrentTagContext())); + receiver.receiveMessage(message, new NoOpAckReplyConsumer()); + } + + // Verifies that the current span context is added as an attribute and that (for now) the tag + // context is not added as an attribute. + @Test + public void testOpenCensusMessageTransformer() { + try (Scope traceScope = OpenCensusUtil.createScopedSpan("PublisherTestRoot"); + Scope tagScope = createScopeTags()) { + PubsubMessage originalMessage = generatePubsubMessage(500); + assertEquals("", originalMessage.getAttributesOrDefault(TRACE_CONTEXT_KEY, "")); + assertEquals("", originalMessage.getAttributesOrDefault(TAG_CONTEXT_KEY, "")); + + PubsubMessage attributedMessage = OPEN_CENSUS_MESSAGE_TRANSFORM.apply(originalMessage); + String encodedSpanContext = + OpenCensusUtil.encodeSpanContext(tracer.getCurrentSpan().getContext()); + assertNotEquals("", encodedSpanContext); + assertEquals( + encodedSpanContext, attributedMessage.getAttributesOrDefault(TRACE_CONTEXT_KEY, "")); + assertEquals("", attributedMessage.getAttributesOrDefault(TAG_CONTEXT_KEY, "")); + } + } + + private static PubsubMessage generatePubsubMessage(int size) { + byte[] bytes = new byte[size]; + for (int i = 0; i < size; i++) { + bytes[i] = (byte) (120 + i % 20); + } + return PubsubMessage.newBuilder().setData(ByteString.copyFrom(bytes)).build(); + } + + private static Scope createScopeTags() { + return tagger.currentBuilder().put(TEST_TAG_KEY, TEST_TAG_VAL).buildScoped(); + } + + private static final class NoOpAckReplyConsumer implements AckReplyConsumer { + @Override + public void ack() {} + + @Override + public void nack() {} + } + + private static final class TestMessageReceiver implements MessageReceiver { + private static final RunningSpanStore runningSpanStore = + Tracing.getExportComponent().getRunningSpanStore(); + private static final Filter RECEIVER_FILTER = Filter.create(MESSAGE_RECEIVER_SPAN_NAME, 0); + + SpanContext parentLinkedSpan; + TagContext originalTagContext; + + private TestMessageReceiver(SpanContext parentLinkedSpan, TagContext originalTagContext) { + this.parentLinkedSpan = parentLinkedSpan; + this.originalTagContext = originalTagContext; + } + + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + assertEquals(originalTagContext, tagger.getCurrentTagContext()); + Collection spanDatas = runningSpanStore.getRunningSpans(RECEIVER_FILTER); + assertEquals(spanDatas.size(), 1); + for (SpanData spanData : spanDatas) { + List links = spanData.getLinks().getLinks(); + assertEquals(links.size(), 1); + Link link = links.get(0); + assertEquals(Link.Type.PARENT_LINKED_SPAN, link.getType()); + assertEquals(parentLinkedSpan.getTraceId(), link.getTraceId()); + assertEquals(parentLinkedSpan.getSpanId(), link.getSpanId()); + } + consumer.ack(); + } + } +} From 71e85198495a39f4524afa2669434b5075c17c3d Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 21 Mar 2019 12:59:23 -0400 Subject: [PATCH 53/53] Release v0.84.0 (#4713) --- README.md | 8 +- .../grpc-google-cloud-asset-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-bigtable-v2/pom.xml | 4 +- .../grpc-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-firestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-iot-v1/pom.xml | 4 +- .../grpc-google-cloud-kms-v1/pom.xml | 4 +- .../grpc-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-logging-v2/pom.xml | 4 +- .../grpc-google-cloud-monitoring-v3/pom.xml | 4 +- .../grpc-google-cloud-os-login-v1/pom.xml | 4 +- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-spanner-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-talent-v4beta1/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../grpc-google-cloud-texttospeech-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-trace-v1/pom.xml | 4 +- .../grpc-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-api-grpc/pom.xml | 228 ++++++------ .../proto-google-cloud-asset-v1beta1/pom.xml | 4 +- .../proto-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-bigtable-v2/pom.xml | 4 +- .../proto-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-datastore-v1/pom.xml | 4 +- .../proto-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-firestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-iot-v1/pom.xml | 4 +- .../proto-google-cloud-kms-v1/pom.xml | 4 +- .../proto-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-logging-v2/pom.xml | 4 +- .../proto-google-cloud-monitoring-v3/pom.xml | 4 +- .../proto-google-cloud-os-login-v1/pom.xml | 4 +- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1beta1/pom.xml | 4 +- .../proto-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-spanner-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-talent-v4beta1/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-trace-v1/pom.xml | 4 +- .../proto-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-cloud-bom/README.md | 2 +- google-cloud-bom/pom.xml | 314 ++++++++-------- .../google-cloud-asset/README.md | 6 +- .../google-cloud-asset/pom.xml | 4 +- .../google-cloud-automl/README.md | 6 +- .../google-cloud-automl/pom.xml | 4 +- .../google-cloud-bigquery/README.md | 6 +- .../google-cloud-bigquery/pom.xml | 4 +- .../README.md | 6 +- .../google-cloud-bigquerydatatransfer/pom.xml | 4 +- .../google-cloud-bigquerystorage/README.md | 6 +- .../google-cloud-bigquerystorage/pom.xml | 4 +- .../google-cloud-bigtable/README.md | 6 +- .../google-cloud-bigtable/pom.xml | 4 +- .../google-cloud-compute/README.md | 6 +- .../google-cloud-compute/pom.xml | 4 +- .../google-cloud-container/README.md | 6 +- .../google-cloud-container/pom.xml | 4 +- .../google-cloud-containeranalysis/README.md | 6 +- .../google-cloud-containeranalysis/pom.xml | 4 +- .../google-cloud-contrib/README.md | 6 +- .../google-cloud-logging-logback/README.md | 6 +- .../google-cloud-logging-logback/pom.xml | 4 +- .../google-cloud-nio-examples/README.md | 4 +- .../google-cloud-nio-examples/pom.xml | 4 +- .../google-cloud-nio/README.md | 6 +- .../google-cloud-nio/pom.xml | 4 +- .../google-cloud-contrib/pom.xml | 4 +- .../google-cloud-core-grpc/pom.xml | 4 +- .../google-cloud-core-http/pom.xml | 4 +- .../google-cloud-core/README.md | 6 +- .../google-cloud-core/pom.xml | 4 +- .../google-cloud-dataproc/README.md | 6 +- .../google-cloud-dataproc/pom.xml | 4 +- .../google-cloud-datastore/README.md | 6 +- .../google-cloud-datastore/pom.xml | 4 +- .../google-cloud-dialogflow/README.md | 6 +- .../google-cloud-dialogflow/pom.xml | 4 +- .../google-cloud-dlp/README.md | 6 +- google-cloud-clients/google-cloud-dlp/pom.xml | 4 +- .../google-cloud-dns/README.md | 6 +- google-cloud-clients/google-cloud-dns/pom.xml | 4 +- .../google-cloud-errorreporting/README.md | 6 +- .../google-cloud-errorreporting/pom.xml | 4 +- .../google-cloud-firestore/README.md | 6 +- .../google-cloud-firestore/pom.xml | 4 +- .../google-cloud-iamcredentials/README.md | 6 +- .../google-cloud-iamcredentials/pom.xml | 4 +- .../google-cloud-iot/README.md | 6 +- google-cloud-clients/google-cloud-iot/pom.xml | 4 +- .../google-cloud-kms/README.md | 6 +- google-cloud-clients/google-cloud-kms/pom.xml | 4 +- .../google-cloud-language/README.md | 6 +- .../google-cloud-language/pom.xml | 4 +- .../google-cloud-logging/README.md | 6 +- .../google-cloud-logging/pom.xml | 4 +- .../google-cloud-monitoring/README.md | 6 +- .../google-cloud-monitoring/pom.xml | 4 +- .../google-cloud-notification/README.md | 6 +- .../google-cloud-notification/pom.xml | 4 +- .../google-cloud-os-login/README.md | 6 +- .../google-cloud-os-login/pom.xml | 4 +- .../google-cloud-pubsub/README.md | 6 +- .../google-cloud-pubsub/pom.xml | 4 +- .../google-cloud-redis/README.md | 6 +- .../google-cloud-redis/pom.xml | 4 +- .../google-cloud-resourcemanager/README.md | 6 +- .../google-cloud-resourcemanager/pom.xml | 4 +- .../google-cloud-scheduler/README.md | 6 +- .../google-cloud-scheduler/pom.xml | 4 +- .../google-cloud-securitycenter/README.md | 6 +- .../google-cloud-securitycenter/pom.xml | 4 +- .../google-cloud-spanner/README.md | 6 +- .../google-cloud-spanner/pom.xml | 4 +- .../google-cloud-speech/README.md | 6 +- .../google-cloud-speech/pom.xml | 4 +- .../google-cloud-storage/README.md | 6 +- .../google-cloud-storage/pom.xml | 4 +- .../google-cloud-talent/pom.xml | 4 +- .../google-cloud-tasks/README.md | 6 +- .../google-cloud-tasks/pom.xml | 4 +- .../google-cloud-texttospeech/README.md | 6 +- .../google-cloud-texttospeech/pom.xml | 4 +- .../google-cloud-trace/README.md | 6 +- .../google-cloud-trace/pom.xml | 4 +- .../google-cloud-translate/README.md | 6 +- .../google-cloud-translate/pom.xml | 4 +- .../google-cloud-video-intelligence/README.md | 6 +- .../google-cloud-video-intelligence/pom.xml | 4 +- .../google-cloud-vision/README.md | 6 +- .../google-cloud-vision/pom.xml | 4 +- .../google-cloud-websecurityscanner/README.md | 6 +- .../google-cloud-websecurityscanner/pom.xml | 4 +- google-cloud-clients/pom.xml | 6 +- google-cloud-examples/README.md | 6 +- google-cloud-examples/pom.xml | 4 +- .../google-cloud-appengineflexcompat/pom.xml | 4 +- .../google-cloud-appengineflexcustom/pom.xml | 4 +- .../google-cloud-appengineflexjava/pom.xml | 4 +- .../google-cloud-appenginejava8/pom.xml | 4 +- .../google-cloud-bigtable-emulator/README.md | 10 +- .../google-cloud-bigtable-emulator/pom.xml | 6 +- .../google-cloud-gcloud-maven-plugin/pom.xml | 4 +- .../google-cloud-managedtest/pom.xml | 4 +- google-cloud-testing/pom.xml | 6 +- .../google-cloud-compat-checker/pom.xml | 4 +- google-cloud-util/pom.xml | 2 +- versions.txt | 350 +++++++++--------- 223 files changed, 936 insertions(+), 936 deletions(-) diff --git a/README.md b/README.md index 7d8cbe72d010..ef11609648fd 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.84.0-alpha pom import @@ -85,11 +85,11 @@ If you are using Maven, add this to your pom.xml file [//]: # ({x-version-update-start:google-cloud-storage:released}) If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-storage:1.65.0' +compile 'com.google.cloud:google-cloud-storage:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.66.0" ``` [//]: # ({x-version-update-end}) @@ -110,7 +110,7 @@ If you are running into problems with version conflicts, the easiest way to solv com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.84.0-alpha pom import diff --git a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml index 2f8ff1a8e69b..13731bff8962 100644 --- a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-asset-v1beta1 GRPC library for grpc-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml index 3edab8befcfd..c68dd5326128 100644 --- a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 8ad69b0d89b0..418bcc44e558 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml index 661d19352263..5d2ec28ff50a 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-bigquerystorage-v1beta1 GRPC library for grpc-google-cloud-bigquerystorage-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml index db943ed73fbe..2fe1791abad4 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-bigtable-admin-v2 GRPC library for grpc-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml index 178c0fd8d2eb..c834fcd2e0a6 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-bigtable-v2 GRPC library for grpc-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml index 6cd6cc8e61fa..154a77a53392 100644 --- a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index 8d13712144ee..b3afa833e15a 100644 --- a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml index fbdf897a821a..55541e140c43 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml index 6ebbcdb4e3de..b3f42b890156 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml index 297916f58bba..b55ee0180c72 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml index 2ab7f7b14c47..9d13866eb426 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml index 60f5b3c2e8ac..2e00f303ee5c 100644 --- a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml index 95bc4a9ba286..0fdd8a9b638d 100644 --- a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml index 668dbffd77f7..528b220edeec 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-firestore-v1 GRPC library for grpc-google-cloud-firestore-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml index c8f5728633c7..a5b69a7d2731 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-firestore-v1beta1 GRPC library for grpc-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml index 9de6ad76cec3..825b06719962 100644 --- a/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iamcredentials-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha grpc-google-cloud-iamcredentials-v1 GRPC library for grpc-google-cloud-iamcredentials-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml index ea8f9c31a865..d244220118e1 100644 --- a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml index 961768ed0f1a..eef2e453f711 100644 --- a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml index 46266bb8367b..286c46431a24 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml index 6cd584578477..4d0fceaafc62 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml index 3ae9892ddc83..43972d89f7ad 100644 --- a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-logging-v2 GRPC library for grpc-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml index 00a7cfaf1e48..1fa68e1c2bbf 100644 --- a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml index c969f7552c0f..f618eb88941f 100644 --- a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml index e97e39c9a96b..ec273e5b682d 100644 --- a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml index ce7c3ad5486c..4fc592e5f5cf 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml index faf7d391681d..20c18e6007ae 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml index 4330d35ad64b..b7ffa95b6ba1 100644 --- a/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-scheduler-v1 GRPC library for grpc-google-cloud-scheduler-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml index 7da525823bae..34dfe9288201 100644 --- a/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-scheduler-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-scheduler-v1beta1 GRPC library for grpc-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml index c4e1cdcd4091..9e48dd7bfa2b 100644 --- a/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 49a334e89bf3..41c41813d582 100644 --- a/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml index 7f629327b1f0..a2dc21babb04 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 grpc-google-cloud-spanner-admin-database-v1 GRPC library for grpc-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml index 737e4e95c847..f1ab400c8f02 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 grpc-google-cloud-spanner-admin-instance-v1 GRPC library for grpc-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml index ac8d895a6863..3ba0f0d6d184 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 grpc-google-cloud-spanner-v1 GRPC library for grpc-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml index 5faab62b16a2..244774590cd6 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml index 7fc317b9e820..b4bc0eb246da 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml index 07057fbfc700..c16eaca99aac 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml b/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml index 3f5aa22be136..c30f53c5cbe0 100644 --- a/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta grpc-google-cloud-talent-v4beta1 GRPC library for grpc-google-cloud-talent-v4beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml index 221804e528ac..d6a629f44423 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml index 1f9e2daddf44..f96d30287a1b 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml index e0a44ab64dba..da9f94f1bb59 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml index 29120b187974..7290233fc809 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml index 11f99d327ac5..6455bec1303a 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml index 026afd61babb..3d28b0d31ef6 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml index 28c86ba497c1..699cd8293711 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml index db1f1fc8d9a6..bd81fd01241f 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index 25afcea6c813..e70ce7617d3a 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index 34fe1c9f4618..6b3426fee33b 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index 245abd6af3b4..b56ddcb6a1f4 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml index ad3c2dd09cb1..4c90a29e9fdc 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-video-intelligence-v1p3beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p3beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml index 0e5a23c5a4e2..3aef059ea94b 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml index 4ed8d668b1d6..38f938aabd1e 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml index 59f5f9426c07..c8316134a0d2 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml index 832983fd275d..d48617b43c8a 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml index ca6590beeeed..357ca9a6c707 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index ba0a7440df31..c56fa761c2ae 100644 --- a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index e30114d2aa84..6171619f5f59 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-api-grpc pom - 0.48.1-SNAPSHOT + 0.49.0 Google Cloud API gRPC https://github.com/googleapis/google-cloud-java/tree/master/google-api-grpc @@ -142,567 +142,567 @@ com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-datastore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml index c087e1262960..b98303369d3e 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-asset-v1beta1 PROTO library for proto-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml index 3aed1a15d76c..83a98a0e5a63 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 9b315fb05677..4128b85d0b8a 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml index 863b36f2f68b..d5d7aa8e9e8a 100644 --- a/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-bigquerystorage-v1beta1 PROTO library for proto-google-cloud-bigquerystorage-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml index afd60c9a1d98..abb683c11f44 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-bigtable-admin-v2 PROTO library for proto-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml index f87417dde929..25b0c1ed832a 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-bigtable-v2 PROTO library for proto-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-container-v1/pom.xml b/google-api-grpc/proto-google-cloud-container-v1/pom.xml index 9912dbb364bc..00231b9f4c99 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml index 76aa7a30abb5..de5f1eb3bdcc 100644 --- a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml index 164eefeff848..3f9dcc00b742 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml index 9d6e577c0a52..07a4ad18b86e 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml index 3fc45d306546..2fd1d573c10d 100644 --- a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-datastore-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-datastore-v1 PROTO library for proto-google-cloud-datastore-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml index c40320c3315e..5321d8626b2d 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml index 7fb1c8e877f3..bdaf6ad6c004 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml index 97f2f7e9c09d..234137ced034 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml index 0899d6e30337..8a78d62a390d 100644 --- a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml index 3543177245b6..14ae4a7dd538 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-firestore-v1 PROTO library for proto-google-cloud-firestore-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml index 16ee70fc6c90..b17cd14bf309 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-firestore-v1beta1 PROTO library for proto-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml b/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml index 9062e046a62b..3eaa8a305036 100644 --- a/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iamcredentials-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha proto-google-cloud-iamcredentials-v1 PROTO library for proto-google-cloud-iamcredentials-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml index 1cc1c35dd721..55ec948d15c3 100644 --- a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml index 6197d9641c04..08443ca925d0 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-language-v1/pom.xml b/google-api-grpc/proto-google-cloud-language-v1/pom.xml index 43a63447bdb8..ad7e10a2f2ef 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml index 88a98c002065..9608ded6e563 100644 --- a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml index c25573d31664..c3681617f617 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-logging-v2 PROTO library for proto-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml index 0c789062d9de..81ae2feaba89 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml index 74fed5f996b9..0819401b566d 100644 --- a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml index ec5ce024ae19..0247795ca6ba 100644 --- a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml index aba8c980eb72..482e429409cd 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml index 6ba7cfd08961..fcd5e0278324 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml index 6de8444001ae..862e3e9cc5dc 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-scheduler-v1 PROTO library for proto-google-cloud-scheduler-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml index 8f5e67c93f31..98e82ee1ba1a 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-scheduler-v1beta1 PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml index 5467154dafea..096ad88dea77 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml index 21ac8f034973..21047e5ea350 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml index 549bf3669833..f6c35e23a82b 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 proto-google-cloud-spanner-admin-database-v1 PROTO library for proto-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml index 71ae588ef108..393ae76cf8f7 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 proto-google-cloud-spanner-admin-instance-v1 PROTO library for proto-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml index 65f566ee5dd3..719be3ee84e1 100644 --- a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 proto-google-cloud-spanner-v1 PROTO library for proto-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml index 0750ff2fe43b..51b5fe88e7f5 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml index a043fdf3e468..2ef9a1d8e51a 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml index 9663506c645a..5c770c5d31be 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml b/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml index 0063b2d5b067..eeec03290777 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta proto-google-cloud-talent-v4beta1 PROTO library for proto-google-cloud-talent-v4beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml index e7929c84f766..33dc0d9b2d5e 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml index 3d7d85185101..a9b57ba977cb 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml index afc78b9905c4..fc0ad6c013f0 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml index 4599080ab875..1f545aa69e02 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml index 7670de04bc35..29990ed6f985 100644 --- a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml index 04b581bf12f1..c1c61181ef37 100644 --- a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml index d593b2b45751..b72c7ee08511 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml index ce0b7d038cb2..6b20ae2ce2b3 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1beta1 PROTO library for proto-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml index db31ea582ee0..c8c162281ebb 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index 8084cb091256..244ed39b0f3a 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index 8dd10c8ae4ba..1d0ef00d3311 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml index 91d7ac9a8d72..e990efa5a1d0 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-video-intelligence-v1p3beta1 PROTO library for proto-google-cloud-video-intelligence-v1p3beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml index 5c6a5d1cfe02..676a02e908da 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml index 4f5eb5d5f7e4..f8543c6b6447 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml index 9022da7adb78..df93d7f3d71b 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml index aa8ddb1e1685..7c7ffc483109 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml index f7de8dd891a3..c076777f6989 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index d006f256e944..c64cc0e9635b 100644 --- a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/google-cloud-bom/README.md b/google-cloud-bom/README.md index d12172f5bae3..3bb5b01cda4e 100644 --- a/google-cloud-bom/README.md +++ b/google-cloud-bom/README.md @@ -13,7 +13,7 @@ To use it in Maven, add the following to your POM: com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.84.0-alpha pom import diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index f4f29438e5de..59b28e95d077 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bom pom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha Google Cloud Java BOM https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-bom @@ -197,783 +197,783 @@ com.google.cloud google-cloud-asset - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-automl - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-bigtable - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-bigtable-emulator - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-bigquery - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-bigquerydatatransfer - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-compute - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-container - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-container-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-containeranalysis - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-contrib - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-nio - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-core - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-core-grpc - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-core-http - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-dataproc - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-datastore - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-datastore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-dlp - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-dialogflow - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-dns - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-errorreporting - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-firestore - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-firestore-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-kms - 1.1.1-SNAPSHOT + 1.2.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-language - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-language-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-logging - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-logging-logback - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-monitoring - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.47.1-SNAPSHOT + 1.48.0 com.google.cloud google-cloud-os-login - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-pubsub - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.cloud google-cloud-redis - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-resourcemanager - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.cloud google-cloud-scheduler - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-securitycenter - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha com.google.api.grpc grpc-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-spanner - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 1.10.1-SNAPSHOT + 1.11.0 com.google.cloud google-cloud-speech - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-storage - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-tasks - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-texttospeech - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-trace - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-translate - 1.65.1-SNAPSHOT + 1.66.0 com.google.cloud google-cloud-vision - 1.65.1-SNAPSHOT + 1.66.0 com.google.api.grpc proto-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.47.1-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.cloud google-cloud-video-intelligence - 0.83.1-beta-SNAPSHOT + 0.84.0-beta com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.48.1-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha com.google.cloud google-cloud-iamcredentials - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.0.1-beta-SNAPSHOT + 0.1.0-beta com.google.cloud google-cloud-talent - 0.0.1-beta-SNAPSHOT + 0.1.0-beta diff --git a/google-cloud-clients/google-cloud-asset/README.md b/google-cloud-clients/google-cloud-asset/README.md index 77b3cc41102e..24b8ee6a79fb 100644 --- a/google-cloud-clients/google-cloud-asset/README.md +++ b/google-cloud-clients/google-cloud-asset/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-asset - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-asset:0.83.0-beta' +compile 'com.google.cloud:google-cloud-asset:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-asset/pom.xml b/google-cloud-clients/google-cloud-asset/pom.xml index 231ec0beb85f..64b910b3ee97 100644 --- a/google-cloud-clients/google-cloud-asset/pom.xml +++ b/google-cloud-clients/google-cloud-asset/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-asset - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Asset https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-asset @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-asset diff --git a/google-cloud-clients/google-cloud-automl/README.md b/google-cloud-clients/google-cloud-automl/README.md index 0a05d802f633..b96352368159 100644 --- a/google-cloud-clients/google-cloud-automl/README.md +++ b/google-cloud-clients/google-cloud-automl/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-automl - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-automl:0.83.0-beta' +compile 'com.google.cloud:google-cloud-automl:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-automl/pom.xml b/google-cloud-clients/google-cloud-automl/pom.xml index 265736758520..e8b5f053ea86 100644 --- a/google-cloud-clients/google-cloud-automl/pom.xml +++ b/google-cloud-clients/google-cloud-automl/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-automl - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Auto ML https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-automl @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-automl diff --git a/google-cloud-clients/google-cloud-bigquery/README.md b/google-cloud-clients/google-cloud-bigquery/README.md index 7e735ba98bcc..92264301809d 100644 --- a/google-cloud-clients/google-cloud-bigquery/README.md +++ b/google-cloud-clients/google-cloud-bigquery/README.md @@ -18,16 +18,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bigquery - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquery:1.65.0' +compile 'com.google.cloud:google-cloud-bigquery:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquery/pom.xml b/google-cloud-clients/google-cloud-bigquery/pom.xml index bec297d8ef58..e28ab06a0253 100644 --- a/google-cloud-clients/google-cloud-bigquery/pom.xml +++ b/google-cloud-clients/google-cloud-bigquery/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquery - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud BigQuery https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquery @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-bigquery diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md b/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md index 0dce526cdde0..68f524c16a45 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md @@ -23,16 +23,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-bigquerydatatransfer - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquerydatatransfer:0.83.0-beta' +compile 'com.google.cloud:google-cloud-bigquerydatatransfer:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml index d01057066554..65783d9ae89e 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerydatatransfer - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Bigquery Data Transfer https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerydatatransfer @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-bigquerydatatransfer diff --git a/google-cloud-clients/google-cloud-bigquerystorage/README.md b/google-cloud-clients/google-cloud-bigquerystorage/README.md index 4257c612f049..b47f1700b93e 100644 --- a/google-cloud-clients/google-cloud-bigquerystorage/README.md +++ b/google-cloud-clients/google-cloud-bigquerystorage/README.md @@ -20,16 +20,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-bigquerystorage - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquerystorage:0.83.0-beta' +compile 'com.google.cloud:google-cloud-bigquerystorage:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml index 7bced8792cbc..cf0236def3da 100644 --- a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerystorage - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Bigquery Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerystorage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-bigquerystorage diff --git a/google-cloud-clients/google-cloud-bigtable/README.md b/google-cloud-clients/google-cloud-bigtable/README.md index 825529cb763e..c4e01470c089 100644 --- a/google-cloud-clients/google-cloud-bigtable/README.md +++ b/google-cloud-clients/google-cloud-bigtable/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bigtable - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigtable:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-bigtable:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigtable/pom.xml b/google-cloud-clients/google-cloud-bigtable/pom.xml index f9e34585b780..341c54d0c35b 100644 --- a/google-cloud-clients/google-cloud-bigtable/pom.xml +++ b/google-cloud-clients/google-cloud-bigtable/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Bigtable https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigtable @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-bigtable diff --git a/google-cloud-clients/google-cloud-compute/README.md b/google-cloud-clients/google-cloud-compute/README.md index aca73bd237ff..46cff3936971 100644 --- a/google-cloud-clients/google-cloud-compute/README.md +++ b/google-cloud-clients/google-cloud-compute/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-compute - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-compute:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-compute:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-compute/pom.xml b/google-cloud-clients/google-cloud-compute/pom.xml index 4286c812fc29..34e3a51a6781 100644 --- a/google-cloud-clients/google-cloud-compute/pom.xml +++ b/google-cloud-clients/google-cloud-compute/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compute - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Compute https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-compute @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-compute diff --git a/google-cloud-clients/google-cloud-container/README.md b/google-cloud-clients/google-cloud-container/README.md index 545ce0bd6765..0c83c80d1012 100644 --- a/google-cloud-clients/google-cloud-container/README.md +++ b/google-cloud-clients/google-cloud-container/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-container - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-container:0.83.0-beta' +compile 'com.google.cloud:google-cloud-container:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-container/pom.xml b/google-cloud-clients/google-cloud-container/pom.xml index 736eaa81aef8..92e921da43d6 100644 --- a/google-cloud-clients/google-cloud-container/pom.xml +++ b/google-cloud-clients/google-cloud-container/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-container - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Container https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-container @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-container diff --git a/google-cloud-clients/google-cloud-containeranalysis/README.md b/google-cloud-clients/google-cloud-containeranalysis/README.md index 559aa0bfeb2f..d8fff6f8e427 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/README.md +++ b/google-cloud-clients/google-cloud-containeranalysis/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-containeranalysis - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-containeranalysis:0.83.0-beta' +compile 'com.google.cloud:google-cloud-containeranalysis:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-containeranalysis/pom.xml b/google-cloud-clients/google-cloud-containeranalysis/pom.xml index 09ad34da3e4f..dce78b73dc57 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/pom.xml +++ b/google-cloud-clients/google-cloud-containeranalysis/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-containeranalysis - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Container Analysis https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-containeranalysis @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-containeranalysis diff --git a/google-cloud-clients/google-cloud-contrib/README.md b/google-cloud-clients/google-cloud-contrib/README.md index c2eca9650029..b20f9e7fe620 100644 --- a/google-cloud-clients/google-cloud-contrib/README.md +++ b/google-cloud-clients/google-cloud-contrib/README.md @@ -25,16 +25,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-contrib - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-contrib:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-contrib:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contrib" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-contrib" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md index ee77bfe6e4e0..ba815c51741e 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-logging-logback - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-logging-logback:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-logging-logback:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging-logback" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-logging-logback" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml index d85dcb275d35..5fa18cac2f28 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-logging-logback - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Logging Logback Appender https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback @@ -20,7 +20,7 @@ com.google.cloud google-cloud-contrib - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md index f3c89f0fe389..a1169dbfc1dc 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md @@ -24,12 +24,12 @@ To run this example: [//]: # ({x-version-update-start:google-cloud-nio:current}) ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.83.1-alpha-SNAPSHOT.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.83.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.84.0-alpha.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.84.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems ``` Notice that it lists Google Cloud Storage, which it wouldn't if you ran it without the NIO jar: ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.83.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.84.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml index 54b5ce4c9678..150536882e5e 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio-examples - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud NIO Examples https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-nio-examples diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md index ff8d567d1d3c..582fc6c58821 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md @@ -26,16 +26,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-nio - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-nio:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-nio:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-nio" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-nio" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml index 9e53d212c630..f576dc0cfbd9 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud NIO https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-nio diff --git a/google-cloud-clients/google-cloud-contrib/pom.xml b/google-cloud-clients/google-cloud-contrib/pom.xml index 6dfc6eccf7d4..145980f493c9 100644 --- a/google-cloud-clients/google-cloud-contrib/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-contrib - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom Google Cloud Contributions https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-contrib diff --git a/google-cloud-clients/google-cloud-core-grpc/pom.xml b/google-cloud-clients/google-cloud-core-grpc/pom.xml index be975207cd10..ec819e862817 100644 --- a/google-cloud-clients/google-cloud-core-grpc/pom.xml +++ b/google-cloud-clients/google-cloud-core-grpc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-grpc - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Core gRPC https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-grpc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-core-grpc diff --git a/google-cloud-clients/google-cloud-core-http/pom.xml b/google-cloud-clients/google-cloud-core-http/pom.xml index 07756a0a3ca4..fc1ec80819b3 100644 --- a/google-cloud-clients/google-cloud-core-http/pom.xml +++ b/google-cloud-clients/google-cloud-core-http/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-http - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Core HTTP https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-http @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-core-http diff --git a/google-cloud-clients/google-cloud-core/README.md b/google-cloud-clients/google-cloud-core/README.md index 80d63a0c7073..4ab5644adc86 100644 --- a/google-cloud-clients/google-cloud-core/README.md +++ b/google-cloud-clients/google-cloud-core/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-core - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-core:1.65.0' +compile 'com.google.cloud:google-cloud-core:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-core" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-core" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-core/pom.xml b/google-cloud-clients/google-cloud-core/pom.xml index 8bb0aaf1091f..c48a1fecd349 100644 --- a/google-cloud-clients/google-cloud-core/pom.xml +++ b/google-cloud-clients/google-cloud-core/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Core https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-core diff --git a/google-cloud-clients/google-cloud-dataproc/README.md b/google-cloud-clients/google-cloud-dataproc/README.md index 5e126bfa782f..3eafb34eb15a 100644 --- a/google-cloud-clients/google-cloud-dataproc/README.md +++ b/google-cloud-clients/google-cloud-dataproc/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-dataproc - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-dataproc:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dataproc/pom.xml b/google-cloud-clients/google-cloud-dataproc/pom.xml index c908d02a8567..ba103a0ddc1f 100644 --- a/google-cloud-clients/google-cloud-dataproc/pom.xml +++ b/google-cloud-clients/google-cloud-dataproc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dataproc - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Dataproc https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dataproc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-dataproc diff --git a/google-cloud-clients/google-cloud-datastore/README.md b/google-cloud-clients/google-cloud-datastore/README.md index 6b4768878faf..acdb60178399 100644 --- a/google-cloud-clients/google-cloud-datastore/README.md +++ b/google-cloud-clients/google-cloud-datastore/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-datastore - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-datastore:1.65.0' +compile 'com.google.cloud:google-cloud-datastore:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-datastore/pom.xml b/google-cloud-clients/google-cloud-datastore/pom.xml index 01784c766afc..6302770437a3 100644 --- a/google-cloud-clients/google-cloud-datastore/pom.xml +++ b/google-cloud-clients/google-cloud-datastore/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-datastore - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Datastore https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-datastore @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-datastore diff --git a/google-cloud-clients/google-cloud-dialogflow/README.md b/google-cloud-clients/google-cloud-dialogflow/README.md index b928c426e1cf..055141f0df70 100644 --- a/google-cloud-clients/google-cloud-dialogflow/README.md +++ b/google-cloud-clients/google-cloud-dialogflow/README.md @@ -23,16 +23,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dialogflow - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dialogflow:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-dialogflow:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dialogflow/pom.xml b/google-cloud-clients/google-cloud-dialogflow/pom.xml index 701aba3f0291..244af295c941 100644 --- a/google-cloud-clients/google-cloud-dialogflow/pom.xml +++ b/google-cloud-clients/google-cloud-dialogflow/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dialogflow - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Dialog Flow API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dialogflow @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-dialogflow diff --git a/google-cloud-clients/google-cloud-dlp/README.md b/google-cloud-clients/google-cloud-dlp/README.md index aaec3d873b04..f794ada7154a 100644 --- a/google-cloud-clients/google-cloud-dlp/README.md +++ b/google-cloud-clients/google-cloud-dlp/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dlp - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dlp:0.83.0-beta' +compile 'com.google.cloud:google-cloud-dlp:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dlp/pom.xml b/google-cloud-clients/google-cloud-dlp/pom.xml index 363c7e571558..7ea81f448d89 100644 --- a/google-cloud-clients/google-cloud-dlp/pom.xml +++ b/google-cloud-clients/google-cloud-dlp/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dlp - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Data Loss Prevention API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dlp @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-dlp diff --git a/google-cloud-clients/google-cloud-dns/README.md b/google-cloud-clients/google-cloud-dns/README.md index 0227efc727e7..f33a24466160 100644 --- a/google-cloud-clients/google-cloud-dns/README.md +++ b/google-cloud-clients/google-cloud-dns/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dns - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dns:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-dns:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dns/pom.xml b/google-cloud-clients/google-cloud-dns/pom.xml index a1fe2123d438..51bc289aa279 100644 --- a/google-cloud-clients/google-cloud-dns/pom.xml +++ b/google-cloud-clients/google-cloud-dns/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-dns - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud DNS https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dns @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-dns diff --git a/google-cloud-clients/google-cloud-errorreporting/README.md b/google-cloud-clients/google-cloud-errorreporting/README.md index 4b5d7f7400ca..6275d1f19720 100644 --- a/google-cloud-clients/google-cloud-errorreporting/README.md +++ b/google-cloud-clients/google-cloud-errorreporting/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-errorreporting - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-errorreporting:0.83.0-beta' +compile 'com.google.cloud:google-cloud-errorreporting:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-errorreporting/pom.xml b/google-cloud-clients/google-cloud-errorreporting/pom.xml index 522f04d1d7bd..d1c240fc5a96 100644 --- a/google-cloud-clients/google-cloud-errorreporting/pom.xml +++ b/google-cloud-clients/google-cloud-errorreporting/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-errorreporting - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Error Reporting https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-errorreporting @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-errorreporting diff --git a/google-cloud-clients/google-cloud-firestore/README.md b/google-cloud-clients/google-cloud-firestore/README.md index a192a6d999fe..7f24ca8013b3 100644 --- a/google-cloud-clients/google-cloud-firestore/README.md +++ b/google-cloud-clients/google-cloud-firestore/README.md @@ -17,16 +17,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-firestore - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-firestore:0.83.0-beta' +compile 'com.google.cloud:google-cloud-firestore:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-firestore/pom.xml b/google-cloud-clients/google-cloud-firestore/pom.xml index f527eb4a6b6b..aa7c4c7294d5 100644 --- a/google-cloud-clients/google-cloud-firestore/pom.xml +++ b/google-cloud-clients/google-cloud-firestore/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-firestore - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Firestore https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-firestore @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-firestore diff --git a/google-cloud-clients/google-cloud-iamcredentials/README.md b/google-cloud-clients/google-cloud-iamcredentials/README.md index 94970c7717c5..a329061b2c7f 100644 --- a/google-cloud-clients/google-cloud-iamcredentials/README.md +++ b/google-cloud-clients/google-cloud-iamcredentials/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-iamcredentials - 0.10.0-alpha + 0.11.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-iamcredentials:0.10.0-alpha' +compile 'com.google.cloud:google-cloud-iamcredentials:0.11.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "0.10.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "0.11.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-iamcredentials/pom.xml b/google-cloud-clients/google-cloud-iamcredentials/pom.xml index 5f37a2cd4df9..7eb89d7d2941 100644 --- a/google-cloud-clients/google-cloud-iamcredentials/pom.xml +++ b/google-cloud-clients/google-cloud-iamcredentials/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iamcredentials - 0.10.1-alpha-SNAPSHOT + 0.11.0-alpha jar Google Cloud Java Client for IAM Service Account Credentials API https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iamcredentials @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-iamcredentials diff --git a/google-cloud-clients/google-cloud-iot/README.md b/google-cloud-clients/google-cloud-iot/README.md index 0fc8d568093a..67ae9cf755f6 100644 --- a/google-cloud-clients/google-cloud-iot/README.md +++ b/google-cloud-clients/google-cloud-iot/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-iot - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-iot:0.83.0-beta' +compile 'com.google.cloud:google-cloud-iot:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-iot/pom.xml b/google-cloud-clients/google-cloud-iot/pom.xml index 4fb5f9302de4..daeac61c6b73 100644 --- a/google-cloud-clients/google-cloud-iot/pom.xml +++ b/google-cloud-clients/google-cloud-iot/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iot - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud IoT https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iot @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-iot diff --git a/google-cloud-clients/google-cloud-kms/README.md b/google-cloud-clients/google-cloud-kms/README.md index 3f7267b715cf..73da73347fb8 100644 --- a/google-cloud-clients/google-cloud-kms/README.md +++ b/google-cloud-clients/google-cloud-kms/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-kms - 1.1.0 + 1.2.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-kms:1.1.0' +compile 'com.google.cloud:google-cloud-kms:1.2.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "1.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "1.2.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-kms/pom.xml b/google-cloud-clients/google-cloud-kms/pom.xml index ad6c131badb5..8f2572d20aa9 100644 --- a/google-cloud-clients/google-cloud-kms/pom.xml +++ b/google-cloud-clients/google-cloud-kms/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-kms - 1.1.1-SNAPSHOT + 1.2.0 jar Google Cloud KMS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-kms @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-kms-v1 diff --git a/google-cloud-clients/google-cloud-language/README.md b/google-cloud-clients/google-cloud-language/README.md index 089bb908848c..de2028a4aacb 100644 --- a/google-cloud-clients/google-cloud-language/README.md +++ b/google-cloud-clients/google-cloud-language/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-language - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-language:1.65.0' +compile 'com.google.cloud:google-cloud-language:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-language/pom.xml b/google-cloud-clients/google-cloud-language/pom.xml index 33f5a8b4440f..a8410fe3201b 100644 --- a/google-cloud-clients/google-cloud-language/pom.xml +++ b/google-cloud-clients/google-cloud-language/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-language - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Natural Language https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-language @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-language diff --git a/google-cloud-clients/google-cloud-logging/README.md b/google-cloud-clients/google-cloud-logging/README.md index 8d076c140317..8af27bccefbc 100644 --- a/google-cloud-clients/google-cloud-logging/README.md +++ b/google-cloud-clients/google-cloud-logging/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-logging - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-logging:1.65.0' +compile 'com.google.cloud:google-cloud-logging:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-logging/pom.xml b/google-cloud-clients/google-cloud-logging/pom.xml index e74c940a537f..74b87e2d8934 100644 --- a/google-cloud-clients/google-cloud-logging/pom.xml +++ b/google-cloud-clients/google-cloud-logging/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-logging - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Logging https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-logging @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-logging diff --git a/google-cloud-clients/google-cloud-monitoring/README.md b/google-cloud-clients/google-cloud-monitoring/README.md index 7b855671e4ed..744198b6e528 100644 --- a/google-cloud-clients/google-cloud-monitoring/README.md +++ b/google-cloud-clients/google-cloud-monitoring/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-monitoring - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-monitoring:1.65.0' +compile 'com.google.cloud:google-cloud-monitoring:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-monitoring/pom.xml b/google-cloud-clients/google-cloud-monitoring/pom.xml index 05d48e01f227..7bbf4cfc0eb5 100644 --- a/google-cloud-clients/google-cloud-monitoring/pom.xml +++ b/google-cloud-clients/google-cloud-monitoring/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-monitoring - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Monitoring https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-monitoring @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-monitoring diff --git a/google-cloud-clients/google-cloud-notification/README.md b/google-cloud-clients/google-cloud-notification/README.md index 5c78a69135d8..dc30156cc4fa 100644 --- a/google-cloud-clients/google-cloud-notification/README.md +++ b/google-cloud-clients/google-cloud-notification/README.md @@ -17,16 +17,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-notification - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-notification:0.83.0-beta' +compile 'com.google.cloud:google-cloud-notification:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-notification/pom.xml b/google-cloud-clients/google-cloud-notification/pom.xml index b04d810f66a8..7ea12c372bdd 100644 --- a/google-cloud-clients/google-cloud-notification/pom.xml +++ b/google-cloud-clients/google-cloud-notification/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-notification - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Pub/Sub Notifications for GCS https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-notification @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-notification diff --git a/google-cloud-clients/google-cloud-os-login/README.md b/google-cloud-clients/google-cloud-os-login/README.md index cd56a3182bd6..6a2cc0def662 100644 --- a/google-cloud-clients/google-cloud-os-login/README.md +++ b/google-cloud-clients/google-cloud-os-login/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-os-login - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-os-login:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-os-login:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-os-login/pom.xml b/google-cloud-clients/google-cloud-os-login/pom.xml index 28183ba34d04..078d6ff292f1 100644 --- a/google-cloud-clients/google-cloud-os-login/pom.xml +++ b/google-cloud-clients/google-cloud-os-login/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-os-login - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud OS Login https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-os-login @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-os-login diff --git a/google-cloud-clients/google-cloud-pubsub/README.md b/google-cloud-clients/google-cloud-pubsub/README.md index 7d5920c117e4..07a9dceaeab4 100644 --- a/google-cloud-clients/google-cloud-pubsub/README.md +++ b/google-cloud-clients/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.65.0' +compile 'com.google.cloud:google-cloud-pubsub:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-pubsub/pom.xml b/google-cloud-clients/google-cloud-pubsub/pom.xml index 9b904e790482..f7aa44ecfa29 100644 --- a/google-cloud-clients/google-cloud-pubsub/pom.xml +++ b/google-cloud-clients/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-pubsub diff --git a/google-cloud-clients/google-cloud-redis/README.md b/google-cloud-clients/google-cloud-redis/README.md index a9d984097c5b..a9c288214ed4 100644 --- a/google-cloud-clients/google-cloud-redis/README.md +++ b/google-cloud-clients/google-cloud-redis/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-redis - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-redis:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-redis:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-redis/pom.xml b/google-cloud-clients/google-cloud-redis/pom.xml index 7965f3dd8e92..792b4aa92a70 100644 --- a/google-cloud-clients/google-cloud-redis/pom.xml +++ b/google-cloud-clients/google-cloud-redis/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-redis - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Redis https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-redis @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-redis diff --git a/google-cloud-clients/google-cloud-resourcemanager/README.md b/google-cloud-clients/google-cloud-resourcemanager/README.md index 27f1d1c2639b..99df4ab98d90 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/README.md +++ b/google-cloud-clients/google-cloud-resourcemanager/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-resourcemanager - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-resourcemanager:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-resourcemanager:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-resourcemanager/pom.xml b/google-cloud-clients/google-cloud-resourcemanager/pom.xml index 1408f7cea01f..ba6d4164ed49 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/pom.xml +++ b/google-cloud-clients/google-cloud-resourcemanager/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-resourcemanager - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Resource Manager https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-resourcemanager @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-resourcemanager diff --git a/google-cloud-clients/google-cloud-scheduler/README.md b/google-cloud-clients/google-cloud-scheduler/README.md index 659095d29027..bc864c3b9d48 100644 --- a/google-cloud-clients/google-cloud-scheduler/README.md +++ b/google-cloud-clients/google-cloud-scheduler/README.md @@ -22,16 +22,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-scheduler - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-scheduler:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-scheduler:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-scheduler/pom.xml b/google-cloud-clients/google-cloud-scheduler/pom.xml index e161c7bc6706..959359343470 100644 --- a/google-cloud-clients/google-cloud-scheduler/pom.xml +++ b/google-cloud-clients/google-cloud-scheduler/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-scheduler - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Scheduler https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-scheduler @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-scheduler diff --git a/google-cloud-clients/google-cloud-securitycenter/README.md b/google-cloud-clients/google-cloud-securitycenter/README.md index 21715d86bff1..dfd10ebba5e1 100644 --- a/google-cloud-clients/google-cloud-securitycenter/README.md +++ b/google-cloud-clients/google-cloud-securitycenter/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-securitycenter - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-securitycenter:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-securitycenter:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-securitycenter/pom.xml b/google-cloud-clients/google-cloud-securitycenter/pom.xml index c3d1971846fc..a04aebd71d0e 100644 --- a/google-cloud-clients/google-cloud-securitycenter/pom.xml +++ b/google-cloud-clients/google-cloud-securitycenter/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-securitycenter - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Security Command Center https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-securitycenter @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-securitycenter diff --git a/google-cloud-clients/google-cloud-spanner/README.md b/google-cloud-clients/google-cloud-spanner/README.md index 51ce371a2e75..2d719c293ccf 100644 --- a/google-cloud-clients/google-cloud-spanner/README.md +++ b/google-cloud-clients/google-cloud-spanner/README.md @@ -20,16 +20,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-spanner - 1.10.0 + 1.11.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-spanner:1.10.0' +compile 'com.google.cloud:google-cloud-spanner:1.11.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "1.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "1.11.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-spanner/pom.xml b/google-cloud-clients/google-cloud-spanner/pom.xml index 0f7646f86be1..248f7090a535 100644 --- a/google-cloud-clients/google-cloud-spanner/pom.xml +++ b/google-cloud-clients/google-cloud-spanner/pom.xml @@ -4,7 +4,7 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 google-cloud-spanner - 1.10.1-SNAPSHOT + 1.11.0 jar Google Cloud Spanner https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-spanner @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-spanner diff --git a/google-cloud-clients/google-cloud-speech/README.md b/google-cloud-clients/google-cloud-speech/README.md index 930aa14c9d8b..ef4b8553a0ca 100644 --- a/google-cloud-clients/google-cloud-speech/README.md +++ b/google-cloud-clients/google-cloud-speech/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-speech - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-speech:0.83.0-beta' +compile 'com.google.cloud:google-cloud-speech:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-speech/pom.xml b/google-cloud-clients/google-cloud-speech/pom.xml index 13b0184c5a45..fa253a82123a 100644 --- a/google-cloud-clients/google-cloud-speech/pom.xml +++ b/google-cloud-clients/google-cloud-speech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-speech - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Speech https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-speech diff --git a/google-cloud-clients/google-cloud-storage/README.md b/google-cloud-clients/google-cloud-storage/README.md index f8ba67aca86c..6cb606af933f 100644 --- a/google-cloud-clients/google-cloud-storage/README.md +++ b/google-cloud-clients/google-cloud-storage/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-storage - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-storage:1.65.0' +compile 'com.google.cloud:google-cloud-storage:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-storage/pom.xml b/google-cloud-clients/google-cloud-storage/pom.xml index c5c792ca7862..1f128f3bb358 100644 --- a/google-cloud-clients/google-cloud-storage/pom.xml +++ b/google-cloud-clients/google-cloud-storage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-storage - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-storage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-storage diff --git a/google-cloud-clients/google-cloud-talent/pom.xml b/google-cloud-clients/google-cloud-talent/pom.xml index 0f6dddd4d22f..5df8009c0773 100644 --- a/google-cloud-clients/google-cloud-talent/pom.xml +++ b/google-cloud-clients/google-cloud-talent/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-talent - 0.0.1-beta-SNAPSHOT + 0.1.0-beta jar Google Cloud Talent Solution https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-talent @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-talent diff --git a/google-cloud-clients/google-cloud-tasks/README.md b/google-cloud-clients/google-cloud-tasks/README.md index e3138406b363..06fef29dc53a 100644 --- a/google-cloud-clients/google-cloud-tasks/README.md +++ b/google-cloud-clients/google-cloud-tasks/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-tasks - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:0.83.0-beta' +compile 'com.google.cloud:google-cloud-tasks:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-tasks/pom.xml b/google-cloud-clients/google-cloud-tasks/pom.xml index 60efe14dedcf..2627575579f9 100644 --- a/google-cloud-clients/google-cloud-tasks/pom.xml +++ b/google-cloud-clients/google-cloud-tasks/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-tasks - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Tasks https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-tasks @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-tasks-v2beta2 diff --git a/google-cloud-clients/google-cloud-texttospeech/README.md b/google-cloud-clients/google-cloud-texttospeech/README.md index c37561b98eaf..6afbeb0bf804 100644 --- a/google-cloud-clients/google-cloud-texttospeech/README.md +++ b/google-cloud-clients/google-cloud-texttospeech/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-texttospeech - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-texttospeech:0.83.0-beta' +compile 'com.google.cloud:google-cloud-texttospeech:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-texttospeech/pom.xml b/google-cloud-clients/google-cloud-texttospeech/pom.xml index bc3e48b0a5df..4831f4910dfd 100644 --- a/google-cloud-clients/google-cloud-texttospeech/pom.xml +++ b/google-cloud-clients/google-cloud-texttospeech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-texttospeech - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Text-to-Speech https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-texttospeech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-texttospeech-v1beta1 diff --git a/google-cloud-clients/google-cloud-trace/README.md b/google-cloud-clients/google-cloud-trace/README.md index d1faf9b8ad9a..77e781bd5104 100644 --- a/google-cloud-clients/google-cloud-trace/README.md +++ b/google-cloud-clients/google-cloud-trace/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-trace - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-trace:0.83.0-beta' +compile 'com.google.cloud:google-cloud-trace:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-trace/pom.xml b/google-cloud-clients/google-cloud-trace/pom.xml index 7b980c807b41..b2befed7a945 100644 --- a/google-cloud-clients/google-cloud-trace/pom.xml +++ b/google-cloud-clients/google-cloud-trace/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-trace - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Trace https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-trace diff --git a/google-cloud-clients/google-cloud-translate/README.md b/google-cloud-clients/google-cloud-translate/README.md index e6b5a9efac52..ec961a9b81b2 100644 --- a/google-cloud-clients/google-cloud-translate/README.md +++ b/google-cloud-clients/google-cloud-translate/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-translate - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-translate:1.65.0' +compile 'com.google.cloud:google-cloud-translate:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-translate/pom.xml b/google-cloud-clients/google-cloud-translate/pom.xml index c333beccf1e3..8c5bef0dc899 100644 --- a/google-cloud-clients/google-cloud-translate/pom.xml +++ b/google-cloud-clients/google-cloud-translate/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-translate - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Translation https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-translate @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-translate diff --git a/google-cloud-clients/google-cloud-video-intelligence/README.md b/google-cloud-clients/google-cloud-video-intelligence/README.md index ce73e0c0a26a..b24760da1a14 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/README.md +++ b/google-cloud-clients/google-cloud-video-intelligence/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-video-intelligence - 0.83.0-beta + 0.84.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-video-intelligence:0.83.0-beta' +compile 'com.google.cloud:google-cloud-video-intelligence:0.84.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "0.83.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "0.84.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-video-intelligence/pom.xml b/google-cloud-clients/google-cloud-video-intelligence/pom.xml index e7edc3c3ab9b..a72bbc5887f7 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/pom.xml +++ b/google-cloud-clients/google-cloud-video-intelligence/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-video-intelligence - 0.83.1-beta-SNAPSHOT + 0.84.0-beta jar Google Cloud Video Intelligence https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-video-intelligence @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-video-intelligence diff --git a/google-cloud-clients/google-cloud-vision/README.md b/google-cloud-clients/google-cloud-vision/README.md index f2609cee13ac..812eb2a19f6a 100644 --- a/google-cloud-clients/google-cloud-vision/README.md +++ b/google-cloud-clients/google-cloud-vision/README.md @@ -19,16 +19,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-vision - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-vision:1.65.0' +compile 'com.google.cloud:google-cloud-vision:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-vision/pom.xml b/google-cloud-clients/google-cloud-vision/pom.xml index 30b66b8737bc..f6b76debb65e 100644 --- a/google-cloud-clients/google-cloud-vision/pom.xml +++ b/google-cloud-clients/google-cloud-vision/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-vision - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Vision https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-vision @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-vision diff --git a/google-cloud-clients/google-cloud-websecurityscanner/README.md b/google-cloud-clients/google-cloud-websecurityscanner/README.md index ed2b387a4fb9..5af61360b757 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/README.md +++ b/google-cloud-clients/google-cloud-websecurityscanner/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-websecurityscanner - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-websecurityscanner:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-websecurityscanner:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml index cb40683dc1a3..21ccd4d0f1a7 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-websecurityscanner - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Web Security Scanner https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-websecurityscanner @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-websecurityscanner diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 4ab56ff7a62e..b50333f568a5 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-clients pom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha Google Cloud https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients @@ -152,7 +152,7 @@ UTF-8 github google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha 1.27.0 1.42.0 @@ -247,7 +247,7 @@ com.google.cloud google-cloud-core - 1.65.1-SNAPSHOT + 1.66.0 test-jar diff --git a/google-cloud-examples/README.md b/google-cloud-examples/README.md index 750295b29e77..0d6a4f58b9d8 100644 --- a/google-cloud-examples/README.md +++ b/google-cloud-examples/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-examples - 0.83.0-alpha + 0.84.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-examples:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-examples:0.84.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-examples" % "0.83.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-examples" % "0.84.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-examples/pom.xml b/google-cloud-examples/pom.xml index ed63603f2c51..c2cdf8894ca8 100644 --- a/google-cloud-examples/pom.xml +++ b/google-cloud-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-examples - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Examples https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples @@ -18,7 +18,7 @@ com.google.cloud google-cloud-bom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom import diff --git a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml index b5f1fb0ce07e..1015aa771093 100644 --- a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcompat - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha war google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml index 81ead40d6167..b6e45e212180 100644 --- a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcustom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha war google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml index c3852305d73f..76ecf99bb840 100644 --- a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexjava - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha war google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-testing/google-cloud-appenginejava8/pom.xml b/google-cloud-testing/google-cloud-appenginejava8/pom.xml index 039bb461c16c..3c130d5ee5a4 100644 --- a/google-cloud-testing/google-cloud-appenginejava8/pom.xml +++ b/google-cloud-testing/google-cloud-appenginejava8/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appenginejava8 - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha war google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-testing/google-cloud-bigtable-emulator/README.md b/google-cloud-testing/google-cloud-bigtable-emulator/README.md index 698b3c6eaf9b..6b8c8ead1976 100644 --- a/google-cloud-testing/google-cloud-bigtable-emulator/README.md +++ b/google-cloud-testing/google-cloud-bigtable-emulator/README.md @@ -19,7 +19,7 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bom - 0.83.0-alpha + 0.84.0-alpha pom import @@ -48,14 +48,14 @@ If you are using Maven, add this to your pom.xml file If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigtable:0.83.0-alpha' -testCompile 'com.google.cloud:google-cloud-bigtable-emulator:0.83.0-alpha' +compile 'com.google.cloud:google-cloud-bigtable:0.84.0-alpha' +testCompile 'com.google.cloud:google-cloud-bigtable-emulator:0.84.0-alpha' testCompile 'junit:junit:4.12' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.83.0-alpha" -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable-emulator" % "0.83.0-alpha" % Test +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.84.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable-emulator" % "0.84.0-alpha" % Test libraryDependencies += "junit" % "junit" % "4.12" % Test ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml b/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml index e7c2e305c214..01035af6efc3 100644 --- a/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml +++ b/google-cloud-testing/google-cloud-bigtable-emulator/pom.xml @@ -6,7 +6,7 @@ com.google.cloud google-cloud-bigtable-emulator - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha Google Cloud Java - Bigtable Emulator https://github.com/googleapis/google-cloud-java @@ -69,7 +69,7 @@ com.google.cloud google-cloud-gcloud-maven-plugin - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha @@ -126,7 +126,7 @@ com.google.cloud google-cloud-bom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom import diff --git a/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml b/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml index 4076cbe3cc18..209029473d0d 100644 --- a/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml +++ b/google-cloud-testing/google-cloud-gcloud-maven-plugin/pom.xml @@ -7,11 +7,11 @@ google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-gcloud-maven-plugin - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha maven-plugin Experimental Maven plugin to interact with the Google Cloud SDK (https://cloud.google.com/sdk/). Currently this plugin is meant to be an internal implementation diff --git a/google-cloud-testing/google-cloud-managedtest/pom.xml b/google-cloud-testing/google-cloud-managedtest/pom.xml index 013429fe51ba..9b98f3428f56 100644 --- a/google-cloud-testing/google-cloud-managedtest/pom.xml +++ b/google-cloud-testing/google-cloud-managedtest/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-managedtest - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar google-cloud-testing com.google.cloud - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha diff --git a/google-cloud-testing/pom.xml b/google-cloud-testing/pom.xml index 61d4336b82e9..cb0601345320 100644 --- a/google-cloud-testing/pom.xml +++ b/google-cloud-testing/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-testing - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom Google Cloud Testing @@ -32,14 +32,14 @@ com.google.cloud google-cloud-bom - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom import com.google.cloud google-cloud-core - 1.65.1-SNAPSHOT + 1.66.0 test-jar diff --git a/google-cloud-util/google-cloud-compat-checker/pom.xml b/google-cloud-util/google-cloud-compat-checker/pom.xml index daa8990e48e4..0eae7b61f6a1 100644 --- a/google-cloud-util/google-cloud-compat-checker/pom.xml +++ b/google-cloud-util/google-cloud-compat-checker/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compat-checker - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha jar Google Cloud Java Compatibility Checker https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-util/google-cloud-compat-checker @@ -12,7 +12,7 @@ com.google.cloud google-cloud-util - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-compat-checker diff --git a/google-cloud-util/pom.xml b/google-cloud-util/pom.xml index 1ecbec112f54..2cceda704b06 100644 --- a/google-cloud-util/pom.xml +++ b/google-cloud-util/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-util - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha pom Google Cloud Util https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-util diff --git a/versions.txt b/versions.txt index 081f21b9178d..a7e5776c0957 100644 --- a/versions.txt +++ b/versions.txt @@ -1,178 +1,178 @@ # Format: # module:released-version:current-version -google-api-grpc:0.48.0:0.48.1-SNAPSHOT -google-cloud:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-appengineflexcompat:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-appengineflexcustom:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-appengineflexjava:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-appenginejava8:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-asset:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-automl:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-bigquery:1.65.0:1.65.1-SNAPSHOT -google-cloud-bigquerydatatransfer:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-bigquerystorage:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-bigtable:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-bigtable-emulator:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-bom:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-clients:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-compat-checker:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-compute:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-container:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-containeranalysis:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-contrib:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-core:1.65.0:1.65.1-SNAPSHOT -google-cloud-core-grpc:1.65.0:1.65.1-SNAPSHOT -google-cloud-core-http:1.65.0:1.65.1-SNAPSHOT -google-cloud-dataproc:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-datastore:1.65.0:1.65.1-SNAPSHOT -google-cloud-dialogflow:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-dlp:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-dns:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-errorreporting:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-examples:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-firestore:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-gcloud-maven-plugin:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-iamcredentials:0.10.0-alpha:0.10.1-alpha-SNAPSHOT -google-cloud-iot:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-kms:1.1.0:1.1.1-SNAPSHOT -google-cloud-language:1.65.0:1.65.1-SNAPSHOT -google-cloud-logging:1.65.0:1.65.1-SNAPSHOT -google-cloud-logging-logback:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-managedtest:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-monitoring:1.65.0:1.65.1-SNAPSHOT -google-cloud-nio:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-nio-examples:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-notification:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-os-login:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-pubsub:1.65.0:1.65.1-SNAPSHOT -google-cloud-redis:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-resourcemanager:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-scheduler:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-securitycenter:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-spanner:1.10.0:1.10.1-SNAPSHOT -google-cloud-speech:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-storage:1.65.0:1.65.1-SNAPSHOT -google-cloud-talent:0.0.0-beta:0.0.1-beta-SNAPSHOT -google-cloud-tasks:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-testing:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-texttospeech:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-trace:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-translate:1.65.0:1.65.1-SNAPSHOT -google-cloud-util:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -google-cloud-video-intelligence:0.83.0-beta:0.83.1-beta-SNAPSHOT -google-cloud-vision:1.65.0:1.65.1-SNAPSHOT -google-cloud-websecurityscanner:0.83.0-alpha:0.83.1-alpha-SNAPSHOT -grpc-google-cloud-asset-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-automl-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-bigquerydatatransfer-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-bigquerystorage-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-bigtable-admin-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-bigtable-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-container-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-containeranalysis-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT -grpc-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-language-v1:1.47.0:1.47.1-SNAPSHOT -grpc-google-cloud-language-v1beta2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-logging-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-monitoring-v3:1.47.0:1.47.1-SNAPSHOT -grpc-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT -grpc-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT -grpc-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT -grpc-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT -grpc-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-talent-v4beta1:0.0.0-beta:0.0.1-beta-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-texttospeech-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-trace-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-trace-v2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p3beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-vision-v1:1.47.0:1.47.1-SNAPSHOT -grpc-google-cloud-vision-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-vision-v1p2beta1:1.47.0:1.47.1-SNAPSHOT -grpc-google-cloud-vision-v1p3beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-vision-v1p4beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-websecurityscanner-v1alpha:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-asset-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-automl-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-bigquerydatatransfer-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-bigquerystorage-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-bigtable-admin-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-bigtable-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-container-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-containeranalysis-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-dataproc-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-datastore-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT -proto-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-language-v1:1.47.0:1.47.1-SNAPSHOT -proto-google-cloud-language-v1beta2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-logging-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-monitoring-v3:1.47.0:1.47.1-SNAPSHOT -proto-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT -proto-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT -proto-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT -proto-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT -proto-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-talent-v4beta1:0.0.0-beta:0.0.1-beta-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-texttospeech-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-trace-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-trace-v2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1beta2:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1p2beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1p3beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-vision-v1:1.47.0:1.47.1-SNAPSHOT -proto-google-cloud-vision-v1p1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-vision-v1p2beta1:1.47.0:1.47.1-SNAPSHOT -proto-google-cloud-vision-v1p3beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-vision-v1p4beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-websecurityscanner-v1alpha:0.48.0:0.48.1-SNAPSHOT +google-api-grpc:0.49.0:0.49.0 +google-cloud:0.84.0-alpha:0.84.0-alpha +google-cloud-appengineflexcompat:0.84.0-alpha:0.84.0-alpha +google-cloud-appengineflexcustom:0.84.0-alpha:0.84.0-alpha +google-cloud-appengineflexjava:0.84.0-alpha:0.84.0-alpha +google-cloud-appenginejava8:0.84.0-alpha:0.84.0-alpha +google-cloud-asset:0.84.0-beta:0.84.0-beta +google-cloud-automl:0.84.0-beta:0.84.0-beta +google-cloud-bigquery:1.66.0:1.66.0 +google-cloud-bigquerydatatransfer:0.84.0-beta:0.84.0-beta +google-cloud-bigquerystorage:0.84.0-beta:0.84.0-beta +google-cloud-bigtable:0.84.0-alpha:0.84.0-alpha +google-cloud-bigtable-emulator:0.84.0-alpha:0.84.0-alpha +google-cloud-bom:0.84.0-alpha:0.84.0-alpha +google-cloud-clients:0.84.0-alpha:0.84.0-alpha +google-cloud-compat-checker:0.84.0-alpha:0.84.0-alpha +google-cloud-compute:0.84.0-alpha:0.84.0-alpha +google-cloud-container:0.84.0-beta:0.84.0-beta +google-cloud-containeranalysis:0.84.0-beta:0.84.0-beta +google-cloud-contrib:0.84.0-alpha:0.84.0-alpha +google-cloud-core:1.66.0:1.66.0 +google-cloud-core-grpc:1.66.0:1.66.0 +google-cloud-core-http:1.66.0:1.66.0 +google-cloud-dataproc:0.84.0-alpha:0.84.0-alpha +google-cloud-datastore:1.66.0:1.66.0 +google-cloud-dialogflow:0.84.0-alpha:0.84.0-alpha +google-cloud-dlp:0.84.0-beta:0.84.0-beta +google-cloud-dns:0.84.0-alpha:0.84.0-alpha +google-cloud-errorreporting:0.84.0-beta:0.84.0-beta +google-cloud-examples:0.84.0-alpha:0.84.0-alpha +google-cloud-firestore:0.84.0-beta:0.84.0-beta +google-cloud-gcloud-maven-plugin:0.84.0-alpha:0.84.0-alpha +google-cloud-iamcredentials:0.11.0-alpha:0.11.0-alpha +google-cloud-iot:0.84.0-beta:0.84.0-beta +google-cloud-kms:1.2.0:1.2.0 +google-cloud-language:1.66.0:1.66.0 +google-cloud-logging:1.66.0:1.66.0 +google-cloud-logging-logback:0.84.0-alpha:0.84.0-alpha +google-cloud-managedtest:0.84.0-alpha:0.84.0-alpha +google-cloud-monitoring:1.66.0:1.66.0 +google-cloud-nio:0.84.0-alpha:0.84.0-alpha +google-cloud-nio-examples:0.84.0-alpha:0.84.0-alpha +google-cloud-notification:0.84.0-beta:0.84.0-beta +google-cloud-os-login:0.84.0-alpha:0.84.0-alpha +google-cloud-pubsub:1.66.0:1.66.0 +google-cloud-redis:0.84.0-alpha:0.84.0-alpha +google-cloud-resourcemanager:0.84.0-alpha:0.84.0-alpha +google-cloud-scheduler:0.84.0-alpha:0.84.0-alpha +google-cloud-securitycenter:0.84.0-alpha:0.84.0-alpha +google-cloud-spanner:1.11.0:1.11.0 +google-cloud-speech:0.84.0-beta:0.84.0-beta +google-cloud-storage:1.66.0:1.66.0 +google-cloud-talent:0.1.0-beta:0.1.0-beta +google-cloud-tasks:0.84.0-beta:0.84.0-beta +google-cloud-testing:0.84.0-alpha:0.84.0-alpha +google-cloud-texttospeech:0.84.0-beta:0.84.0-beta +google-cloud-trace:0.84.0-beta:0.84.0-beta +google-cloud-translate:1.66.0:1.66.0 +google-cloud-util:0.84.0-alpha:0.84.0-alpha +google-cloud-video-intelligence:0.84.0-beta:0.84.0-beta +google-cloud-vision:1.66.0:1.66.0 +google-cloud-websecurityscanner:0.84.0-alpha:0.84.0-alpha +grpc-google-cloud-asset-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-automl-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-bigquerydatatransfer-v1:0.49.0:0.49.0 +grpc-google-cloud-bigquerystorage-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-bigtable-admin-v2:0.49.0:0.49.0 +grpc-google-cloud-bigtable-v2:0.49.0:0.49.0 +grpc-google-cloud-container-v1:0.49.0:0.49.0 +grpc-google-cloud-containeranalysis-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-dataproc-v1:0.49.0:0.49.0 +grpc-google-cloud-dataproc-v1beta2:0.49.0:0.49.0 +grpc-google-cloud-dialogflow-v2:0.49.0:0.49.0 +grpc-google-cloud-dialogflow-v2beta1:0.49.0:0.49.0 +grpc-google-cloud-dlp-v2:0.49.0:0.49.0 +grpc-google-cloud-error-reporting-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-firestore-v1:0.49.0:0.49.0 +grpc-google-cloud-firestore-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-iamcredentials-v1:0.11.0-alpha:0.11.0-alpha +grpc-google-cloud-iot-v1:0.49.0:0.49.0 +grpc-google-cloud-kms-v1:0.49.0:0.49.0 +grpc-google-cloud-language-v1:1.48.0:1.48.0 +grpc-google-cloud-language-v1beta2:0.49.0:0.49.0 +grpc-google-cloud-logging-v2:0.49.0:0.49.0 +grpc-google-cloud-monitoring-v3:1.48.0:1.48.0 +grpc-google-cloud-os-login-v1:0.49.0:0.49.0 +grpc-google-cloud-pubsub-v1:1.48.0:1.48.0 +grpc-google-cloud-redis-v1:0.49.0:0.49.0 +grpc-google-cloud-redis-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-scheduler-v1:0.49.0:0.49.0 +grpc-google-cloud-scheduler-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-securitycenter-v1:0.49.0:0.49.0 +grpc-google-cloud-securitycenter-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-spanner-admin-database-v1:1.11.0:1.11.0 +grpc-google-cloud-spanner-admin-instance-v1:1.11.0:1.11.0 +grpc-google-cloud-spanner-v1:1.11.0:1.11.0 +grpc-google-cloud-speech-v1:0.49.0:0.49.0 +grpc-google-cloud-speech-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-speech-v1p1beta1:0.49.0:0.49.0 +grpc-google-cloud-talent-v4beta1:0.1.0-beta:0.1.0-beta +grpc-google-cloud-tasks-v2beta2:0.49.0:0.49.0 +grpc-google-cloud-tasks-v2beta3:0.49.0:0.49.0 +grpc-google-cloud-texttospeech-v1:0.49.0:0.49.0 +grpc-google-cloud-texttospeech-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-trace-v1:0.49.0:0.49.0 +grpc-google-cloud-trace-v2:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1beta2:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1p1beta1:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1p2beta1:0.49.0:0.49.0 +grpc-google-cloud-video-intelligence-v1p3beta1:0.49.0:0.49.0 +grpc-google-cloud-vision-v1:1.48.0:1.48.0 +grpc-google-cloud-vision-v1p1beta1:0.49.0:0.49.0 +grpc-google-cloud-vision-v1p2beta1:1.48.0:1.48.0 +grpc-google-cloud-vision-v1p3beta1:0.49.0:0.49.0 +grpc-google-cloud-vision-v1p4beta1:0.49.0:0.49.0 +grpc-google-cloud-websecurityscanner-v1alpha:0.49.0:0.49.0 +proto-google-cloud-asset-v1beta1:0.49.0:0.49.0 +proto-google-cloud-automl-v1beta1:0.49.0:0.49.0 +proto-google-cloud-bigquerydatatransfer-v1:0.49.0:0.49.0 +proto-google-cloud-bigquerystorage-v1beta1:0.49.0:0.49.0 +proto-google-cloud-bigtable-admin-v2:0.49.0:0.49.0 +proto-google-cloud-bigtable-v2:0.49.0:0.49.0 +proto-google-cloud-container-v1:0.49.0:0.49.0 +proto-google-cloud-containeranalysis-v1beta1:0.49.0:0.49.0 +proto-google-cloud-dataproc-v1:0.49.0:0.49.0 +proto-google-cloud-dataproc-v1beta2:0.49.0:0.49.0 +proto-google-cloud-datastore-v1:0.49.0:0.49.0 +proto-google-cloud-dialogflow-v2:0.49.0:0.49.0 +proto-google-cloud-dialogflow-v2beta1:0.49.0:0.49.0 +proto-google-cloud-dlp-v2:0.49.0:0.49.0 +proto-google-cloud-error-reporting-v1beta1:0.49.0:0.49.0 +proto-google-cloud-firestore-v1:0.49.0:0.49.0 +proto-google-cloud-firestore-v1beta1:0.49.0:0.49.0 +proto-google-cloud-iamcredentials-v1:0.11.0-alpha:0.11.0-alpha +proto-google-cloud-iot-v1:0.49.0:0.49.0 +proto-google-cloud-kms-v1:0.49.0:0.49.0 +proto-google-cloud-language-v1:1.48.0:1.48.0 +proto-google-cloud-language-v1beta2:0.49.0:0.49.0 +proto-google-cloud-logging-v2:0.49.0:0.49.0 +proto-google-cloud-monitoring-v3:1.48.0:1.48.0 +proto-google-cloud-os-login-v1:0.49.0:0.49.0 +proto-google-cloud-pubsub-v1:1.48.0:1.48.0 +proto-google-cloud-redis-v1:0.49.0:0.49.0 +proto-google-cloud-redis-v1beta1:0.49.0:0.49.0 +proto-google-cloud-scheduler-v1:0.49.0:0.49.0 +proto-google-cloud-scheduler-v1beta1:0.49.0:0.49.0 +proto-google-cloud-securitycenter-v1:0.49.0:0.49.0 +proto-google-cloud-securitycenter-v1beta1:0.49.0:0.49.0 +proto-google-cloud-spanner-admin-database-v1:1.11.0:1.11.0 +proto-google-cloud-spanner-admin-instance-v1:1.11.0:1.11.0 +proto-google-cloud-spanner-v1:1.11.0:1.11.0 +proto-google-cloud-speech-v1:0.49.0:0.49.0 +proto-google-cloud-speech-v1beta1:0.49.0:0.49.0 +proto-google-cloud-speech-v1p1beta1:0.49.0:0.49.0 +proto-google-cloud-talent-v4beta1:0.1.0-beta:0.1.0-beta +proto-google-cloud-tasks-v2beta2:0.49.0:0.49.0 +proto-google-cloud-tasks-v2beta3:0.49.0:0.49.0 +proto-google-cloud-texttospeech-v1:0.49.0:0.49.0 +proto-google-cloud-texttospeech-v1beta1:0.49.0:0.49.0 +proto-google-cloud-trace-v1:0.49.0:0.49.0 +proto-google-cloud-trace-v2:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1beta1:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1beta2:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1p1beta1:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1p2beta1:0.49.0:0.49.0 +proto-google-cloud-video-intelligence-v1p3beta1:0.49.0:0.49.0 +proto-google-cloud-vision-v1:1.48.0:1.48.0 +proto-google-cloud-vision-v1p1beta1:0.49.0:0.49.0 +proto-google-cloud-vision-v1p2beta1:1.48.0:1.48.0 +proto-google-cloud-vision-v1p3beta1:0.49.0:0.49.0 +proto-google-cloud-vision-v1p4beta1:0.49.0:0.49.0 +proto-google-cloud-websecurityscanner-v1alpha:0.49.0:0.49.0